/* Académie — plateforme de formation. Feuille de style unique, aucune ressource extérieure.
   Identité : école en ligne. Titres en Lora (manuel scolaire), texte en Work Sans (lisible),
   bleu encre pour la structure, vert « médical » pour les actions, jaune pour les réussites. */

@font-face { font-family: "Lora"; src: url("fonts/Lora-Regular.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Lora"; src: url("fonts/Lora-Bold.woff") format("woff"); font-weight: 600 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Work Sans"; src: url("fonts/WorkSans-Regular.woff") format("woff"); font-weight: 300 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Work Sans"; src: url("fonts/WorkSans-Bold.woff") format("woff"); font-weight: 600 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Work Sans"; src: url("fonts/WorkSans-Italic.woff") format("woff"); font-weight: 300 500; font-style: italic; font-display: swap; }

:root {
  /* Encre (structure) */
  --ink: #1C2536; --ink-2: #3B4457; --muted: #5F6779; --faint: #8A91A0;
  --brand: #1F3A5F; --brand-2: #2B4C78; --brand-soft: #E9EEF6;
  /* Action (vert médical) */
  --teal: #0E7468; --teal-dark: #0A5A51; --teal-soft: #E3F2EF; --teal-line: #B9DDD6;
  /* Réussite (surligneur) */
  --sun: #E2A91F; --sun-dark: #8A6410; --sun-soft: #FCF3DA;
  /* États */
  --orange: #B45309; --orange-text: #8A4106; --orange-soft: #FFF3E3; --orange-line: #F1CB92;
  --red: #B42318; --red-text: #9B1C12; --red-soft: #FDECEA; --red-line: #F1B7B1;
  /* Surfaces */
  --bg: #F4F5F7; --card: #FFFFFF; --line: #E1E4EA; --line-2: #EDEFF3; --hover: #F2F4F7;
  /* Anciens noms gardés pour compatibilité */
  --navy: var(--brand); --navy-2: var(--brand-2); --navy-text: #C9D3E0;
  --radius: 12px; --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05);
  --shadow-up: 0 6px 20px rgba(16, 24, 40, .08);
  --serif: "Lora", Georgia, "Times New Roman", serif;
  --sans: "Work Sans", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --mono: ui-monospace, Consolas, Menlo, monospace;
  font-family: var(--sans);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font-size: 15px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: var(--teal); text-underline-offset: 2px; } a:hover { color: var(--teal-dark); }
h1, h2 { font-family: var(--serif); color: var(--ink); text-wrap: balance; }
h1 { font-size: 28px; line-height: 1.2; margin: 0; font-weight: 700; }
h2 { font-size: 19px; line-height: 1.3; margin: 0 0 12px; font-weight: 700; }
h3 { font-size: 15px; margin: 0 0 8px; font-weight: 700; }
p { margin: 0 0 10px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.hidden { display: none !important; }
::selection { background: var(--sun-soft); }

/* ------------------------------------------------------------------ Structure de la plateforme */
.shell { display: flex; min-height: 100vh; background: linear-gradient(to right, var(--card) 267px, var(--line) 267px, var(--line) 268px, var(--bg) 268px); }
.sidebar { width: 268px; flex: none; background: var(--card); border-right: 1px solid var(--line); padding: 18px 14px; display: flex; flex-direction: column; gap: 2px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 11px; padding: 4px 8px 18px; color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--ink); }
.brand img { width: 42px; height: 42px; object-fit: contain; border-radius: 10px; background: #fff; border: 1px solid var(--line); }
.brand .ph { width: 42px; height: 42px; border-radius: 10px; background: var(--brand); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 20px; font-weight: 700; flex: none; }
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand strong { font-family: var(--serif); font-size: 18px; line-height: 1.15; }
.brand .tagline { font-size: 11.5px; color: var(--muted); line-height: 1.3; }
.nav-section { margin: 16px 12px 4px; font-size: 11px; text-transform: uppercase; letter-spacing: .09em; color: var(--faint); font-weight: 600; }
.nav a { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 12px; border-radius: var(--radius-sm); color: var(--ink-2); text-decoration: none; font-size: 14.5px; position: relative; }
.nav a:hover { background: var(--hover); color: var(--ink); }
.nav a.active { background: var(--teal-soft); color: var(--teal-dark); font-weight: 600; }
.nav a.active::before { content: ""; position: absolute; left: -14px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--teal); }
.nav .soon { font-size: 10px; padding: 1px 6px; border-radius: 99px; background: var(--line-2); color: var(--muted); }
.sidebar-foot { margin-top: auto; padding: 18px 10px 0; font-size: 11.5px; color: var(--faint); border-top: 1px solid var(--line-2); }
.sidebar-foot .btn { width: 100%; margin-bottom: 12px; }
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar { display: flex; align-items: center; gap: 10px; padding: 10px 32px; min-height: 62px; background: rgba(255, 255, 255, .92); border-bottom: 1px solid var(--line); flex-wrap: wrap; position: sticky; top: 0; z-index: 20; backdrop-filter: saturate(1.2) blur(6px); }
.topbar .spacer { flex: 1; }
.topbar-title { font-size: 13px; color: var(--muted); }
.topbar-title strong { color: var(--ink); font-weight: 600; }
.icon-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 40px; height: 40px; padding: 0 10px; border-radius: 99px; border: 1px solid var(--line); background: #fff; color: var(--ink-2); text-decoration: none; font-size: 13px; font-weight: 600; }
.icon-btn:hover { background: var(--hover); color: var(--ink); }
.user-chip { display: inline-flex; align-items: center; gap: 10px; padding: 4px 12px 4px 4px; border-radius: 99px; border: 1px solid var(--line); background: #fff; text-decoration: none; color: var(--ink); }
.user-chip:hover { background: var(--hover); color: var(--ink); }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--brand); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 12.5px; font-weight: 700; letter-spacing: .02em; flex: none; }
.user-chip .who { display: flex; flex-direction: column; line-height: 1.15; }
.user-chip .who b { font-size: 13px; }
.user-chip .who span { font-size: 11.5px; color: var(--muted); }
.content { padding: 28px 32px 56px; display: flex; flex-direction: column; gap: 22px; max-width: 1240px; width: 100%; }
.content.narrow { max-width: 980px; margin: 0 auto; }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
.page-head > div:first-child { flex: 1 1 320px; min-width: 0; }
.page-head p { margin: 6px 0 0; color: var(--muted); max-width: 72ch; }
.eyebrow { font-size: 12px; text-transform: uppercase; letter-spacing: .09em; color: var(--teal-dark); font-weight: 700; margin-bottom: 6px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--teal-dark); text-decoration: underline; }
.crumbs .sep { color: var(--faint); }
.menu-toggle { display: none; }

/* Bandeau défilant (nouvelles) */
.marquee { overflow: hidden; white-space: nowrap; background: var(--brand-soft); color: var(--brand); font-size: 13px; font-weight: 600; padding: 7px 0; border-bottom: 1px solid #D6DFEC; }
.marquee span { display: inline-block; padding-left: 100%; animation: marquee 38s linear infinite; }
@keyframes marquee { to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) { .marquee span { animation: none; padding-left: 16px; white-space: normal; } }

/* ------------------------------------------------------------------ Composants */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.card > h2:first-child, .card > .actions:first-child h2 { margin-bottom: 14px; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.row { display: flex; flex-wrap: wrap; gap: 22px; align-items: flex-start; }
.row > .card { flex: 1 1 380px; min-width: 0; }
.stat { display: flex; flex-direction: column; gap: 2px; }
.stat .label { font-size: 13px; color: var(--muted); font-weight: 500; }
.stat .value { font-family: var(--serif); font-size: 34px; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--line-2); color: var(--ink-2); white-space: nowrap; line-height: 1.5; }
.badge.teal { background: var(--teal-soft); color: var(--teal-dark); }
.badge.orange { background: var(--orange-soft); color: var(--orange-text); }
.badge.red { background: var(--red-soft); color: var(--red-text); }
.badge.navy { background: var(--brand); color: #fff; }
.badge.sun { background: var(--sun-soft); color: var(--sun-dark); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font: inherit; font-size: 14px; font-weight: 600; border-radius: var(--radius-sm); padding: 9px 16px; min-height: 42px; border: 1px solid #D3D8E0; background: #fff; color: var(--ink); cursor: pointer; text-decoration: none; transition: background .12s, border-color .12s, box-shadow .12s; }
.btn:hover { background: var(--hover); color: var(--ink); }
.btn.primary { background: var(--teal); border-color: var(--teal); color: #fff; }
.btn.primary:hover { background: var(--teal-dark); border-color: var(--teal-dark); }
.btn.danger { background: var(--red); border-color: var(--red); color: #fff; }
.btn.danger:hover { background: var(--red-text); }
.btn.dark { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn.dark:hover { background: var(--brand-2); }
.btn.small { min-height: 34px; padding: 5px 12px; font-size: 13px; }
.btn.lg { min-height: 50px; padding: 12px 24px; font-size: 15.5px; }
.btn:disabled, .btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn.link { border: none; background: none; color: var(--teal); padding: 0; min-height: 0; text-decoration: underline; text-underline-offset: 2px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
form.inline { display: inline; }

/* Formulaires */
label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; color: var(--ink); }
label .hint { font-weight: 400; color: var(--muted); font-size: 13px; }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number], input[type=date], input[type=time], input[type=search], input[type=url], select, textarea {
  font: inherit; font-size: 15px; font-weight: 400; color: var(--ink); border: 1px solid #CFD5DE; border-radius: var(--radius-sm); padding: 0 12px; min-height: 44px; background: #fff; width: 100%; transition: border-color .12s, box-shadow .12s; }
input:hover, select:hover, textarea:hover { border-color: #B6BECB; }
textarea { padding: 10px 12px; min-height: 110px; resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(14, 116, 104, .18); }
.btn:focus-visible, a:focus-visible, summary:focus-visible, button:focus-visible { outline: 3px solid rgba(14, 116, 104, .35); outline-offset: 2px; }
input[type=file] { font: inherit; font-size: 14px; }
.form { display: flex; flex-direction: column; gap: 16px; max-width: 640px; }
.form-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.check { flex-direction: row; align-items: center; gap: 10px; font-weight: 500; }
.check input { width: 20px; height: 20px; accent-color: var(--teal); flex: none; }
.code-input { font-size: 24px !important; letter-spacing: .35em; text-align: center; font-weight: 700; max-width: 240px; font-variant-numeric: tabular-nums; }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; margin: 0; }
legend { font-weight: 700; padding: 0 6px; }

/* Messages */
.alert { border-radius: var(--radius-sm); padding: 12px 16px; font-size: 14px; border: 1px solid; border-left-width: 4px; }
.alert.success { background: var(--teal-soft); border-color: var(--teal-line); border-left-color: var(--teal); color: var(--teal-dark); }
.alert.info { background: var(--brand-soft); border-color: #C9D5E7; border-left-color: var(--brand-2); color: #23406A; }
.alert.warning { background: var(--orange-soft); border-color: var(--orange-line); border-left-color: var(--orange); color: var(--orange-text); }
.alert.error { background: var(--red-soft); border-color: var(--red-line); border-left-color: var(--red); color: var(--red-text); }
.alert ul { margin: 6px 0 0; padding-left: 18px; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }
.blink { animation: blink 1.6s ease-in-out infinite; }
.urgent-banner { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; background: var(--orange-soft); border-bottom: 1px solid var(--orange-line); padding: 10px 32px; font-size: 14px; }
.urgent-banner.tres_urgent { background: var(--red-soft); border-color: var(--red-line); }
.preview-banner { background: #7A2B31; color: #fff; padding: 10px 32px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; font-size: 14px; }
.preview-banner .btn { min-height: 34px; }

/* Tableaux */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; padding: 10px; border-bottom: 1px solid var(--line); white-space: nowrap; background: #FAFBFC; }
td { padding: 12px 10px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
tbody tr:hover td { background: #FBFCFD; }
td.center, th.center { text-align: center; }
.perm-group th.group { background: var(--brand-soft); color: var(--brand); font-size: 12px; }
.pager { display: flex; gap: 8px; align-items: center; }

.list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.list li { display: flex; gap: 10px; align-items: flex-start; flex-wrap: wrap; }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.tabs a { padding: 10px 16px; font-weight: 600; color: var(--muted); text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a:hover { color: var(--ink); }
.tabs a.active { color: var(--teal-dark); border-bottom-color: var(--teal); }
.key-box { font-family: var(--mono); font-size: 15px; background: #FAFBFC; border: 1px dashed #B8C2CF; border-radius: 10px; padding: 14px; word-break: break-all; }

/* ------------------------------------------------------------------ Pages d'accueil (connexion, vérification, installation) */
.bare { min-height: 100vh; display: grid; grid-template-columns: minmax(320px, 44%) 1fr; }
.bare-side { background: var(--brand); color: #fff; padding: 56px 56px 40px; display: flex; flex-direction: column; gap: 28px; position: relative; overflow: hidden; }
.bare-side::after { content: ""; position: absolute; right: -120px; bottom: -120px; width: 360px; height: 360px; border-radius: 50%; border: 48px solid rgba(255, 255, 255, .05); }
.bare-side .brand-bare { display: flex; align-items: center; gap: 14px; }
.bare-side .brand-bare img { max-height: 56px; max-width: 160px; background: #fff; border-radius: 10px; padding: 4px; }
.bare-side .brand-bare .ph { width: 52px; height: 52px; border-radius: 12px; background: #fff; color: var(--brand); display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 26px; font-weight: 700; }
.bare-side .brand-bare strong { font-family: var(--serif); font-size: 26px; }
.bare-side h2 { color: #fff; font-size: 30px; line-height: 1.25; margin: 20px 0 0; max-width: 18ch; }
.bare-side p { color: #CCD7E6; max-width: 46ch; }
.bare-points { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 14px; max-width: 44ch; }
.bare-points li { display: flex; gap: 12px; align-items: flex-start; color: #E6ECF4; }
.bare-points .num { flex: none; width: 28px; height: 28px; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; }
.bare-side footer { margin-top: auto; font-size: 12px; color: #9FB0C8; }
.bare-main { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 48px 24px; }
.bare .box { width: 100%; max-width: 440px; }
.bare .box > .card { padding: 30px; box-shadow: var(--shadow-up); }
.bare-main footer { margin-top: 24px; font-size: 12px; color: var(--muted); text-align: center; max-width: 460px; }
.bare.single { display: flex; flex-direction: column; align-items: center; padding: 48px 16px; }
.bare.single .box.wide { max-width: 780px; }
.bare.single .brand-bare { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-bottom: 22px; text-align: center; }
.bare.single .brand-bare img { max-height: 72px; max-width: 200px; }
.bare.single .brand-bare strong { font-family: var(--serif); font-size: 24px; }
.bare.single footer { margin-top: 28px; font-size: 12px; color: var(--muted); text-align: center; max-width: 560px; }
.steps-dots { display: flex; gap: 6px; justify-content: center; margin-bottom: 14px; }
.steps-dots span { width: 28px; height: 6px; border-radius: 99px; background: #D5DBE3; }
.steps-dots span.on { background: var(--teal); }
.spinner { width: 42px; height: 42px; border-radius: 50%; border: 4px solid var(--teal-soft); border-top-color: var(--teal); animation: spin 1s linear infinite; margin: 10px auto; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ------------------------------------------------------------------ Protection des contenus (nouvelles) */
.watermark { position: fixed; inset: 0; pointer-events: none; z-index: 50; overflow: hidden; display: flex; flex-wrap: wrap; align-content: space-around; justify-content: space-around; gap: 120px 80px; padding: 40px; }
.watermark span { transform: rotate(-24deg); font-size: 20px; font-weight: 700; color: var(--brand); opacity: .055; white-space: nowrap; user-select: none; }
.protected { -webkit-user-select: none; user-select: none; }
.protected input, .protected textarea { -webkit-user-select: text; user-select: text; }
@media print { body.protected * { display: none !important; } body.protected::after { content: "Impression interdite — propriété de l'Académie."; display: block; padding: 40px; } }
.legal { font-size: 12px; color: var(--faint); text-align: center; padding: 18px 32px 28px; }

/* ------------------------------------------------------------------ Téléphone */
@media (max-width: 900px) {
  .shell { flex-direction: column; }
  .sidebar { width: 100%; height: auto; position: static; padding: 10px 14px; border-right: 0; border-bottom: 1px solid var(--line); }
  .sidebar .nav-wrap { display: none; }
  .sidebar.open .nav-wrap { display: block; padding-bottom: 8px; }
  .sidebar-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
  .brand { padding: 0; }
  .brand .tagline { display: none; }
  .menu-toggle { display: inline-flex; }
  .sidebar-foot { display: none; }
  .sidebar.open .sidebar-foot { display: block; }
  .nav a.active::before { display: none; }
  .topbar { position: static; }
  .topbar, .content, .urgent-banner, .preview-banner, .reminder-banner { padding-left: 16px; padding-right: 16px; }
  .content { padding-top: 20px; }
  .user-chip .who { display: none; }
  .shell { background: var(--bg); }
  .topbar { flex-wrap: nowrap; gap: 8px; min-height: 54px; }
  .topbar-title { font-size: 12.5px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
  .topbar .spacer { display: none; }
  .course-head { grid-template-columns: 1fr; }
  .lesson { flex-wrap: wrap; }
  .lesson-meta { order: 3; }
  .block-card { padding: 22px 18px; }
  .user-chip { padding: 4px; }
  h1 { font-size: 23px; }
  .bare { grid-template-columns: 1fr; }
  .bare-side { padding: 28px 22px; gap: 14px; }
  .bare-side h2 { font-size: 22px; margin-top: 6px; }
  .bare-points, .bare-side footer, .bare-side::after { display: none; }
  .bare-main { padding: 28px 16px; justify-content: flex-start; }
}

/* ------------------------------------------------------------------ Utilitaires */
.spacer { flex: 1; }
.mb { margin-bottom: 14px; }
.mt { margin-top: 14px; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.stack-sm { display: flex; flex-direction: column; gap: 8px; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.grow { flex: 1 1 260px; }
.strong { font-weight: 700; }
.big { font-family: var(--serif); font-size: 30px; font-weight: 700; }
.danger-zone { border-color: var(--red-line); }
.ok { color: var(--teal-dark); font-weight: 600; }
.ko { color: var(--red-text); font-weight: 600; }
.state-pill { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 18px; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: #B8C2CF; display: inline-block; }
.dot.on { background: #12A27F; box-shadow: 0 0 0 3px rgba(18, 162, 127, .18); } .dot.pause { background: #F59E0B; }
details summary { cursor: pointer; font-weight: 600; min-height: 32px; }
.sidebar .menu-toggle { display: none; }
.list li .grow { flex: 1 1 0; min-width: 150px; }
@media (max-width: 900px) { .sidebar .menu-toggle { display: inline-flex; } }
.hidden-label { position: absolute; left: -9999px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.pre { white-space: pre-wrap; }
.plain { list-style: none; padding: 0; margin: 0; display: grid; gap: .35rem; }
.danger-text { color: var(--red-text); }

/* ------------------------------------------------------------------ Recrutement */
.board { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 8px; align-items: flex-start; }
.board-col { flex: 0 0 236px; background: #ECEFF3; border-radius: var(--radius); padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.board-col.black { background: #FBE9E7; }
.board-col h2 { font-family: var(--sans); font-size: 13px; text-transform: uppercase; letter-spacing: .05em; margin: 0; display: flex; justify-content: space-between; }
.board-card { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 11px; display: flex; flex-direction: column; gap: 6px; font-size: 13px; box-shadow: var(--shadow); }
.board-card.alert-card { border-color: #E8A23A; }
.board-card .move { display: flex; gap: 6px; }
.board-card .move label { flex: 1; }
.small-select { min-height: 34px !important; font-size: 13px !important; padding: 0 6px !important; }
.cand-head { display: flex; gap: 16px; align-items: center; }
.cand-photo { width: 96px; height: 120px; object-fit: cover; border-radius: 10px; background: #DDE3EA; display: flex; align-items: center; justify-content: center; font-size: 11px; color: var(--muted); text-align: center; }
table.compare th { text-transform: none; letter-spacing: 0; font-size: 13px; width: 160px; }
table.compare tr.same td { background: var(--orange-soft); font-weight: 600; }
.answer-box { background: #FAFBFC; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; font-size: 15px; }
.card-inner { border: 1px dashed #B8C2CF; border-radius: var(--radius); padding: 14px; }
.interview { border-bottom: 1px solid var(--line-2); padding-bottom: 14px; }
.points { max-width: 320px; }

/* Pré-test (candidate) */
.test-top { background: var(--brand); color: #fff; padding: 12px 24px; display: flex; align-items: center; gap: 12px; }
.test-top strong { font-family: var(--serif); font-size: 18px; }
.test-top img { height: 36px; border-radius: 6px; background: #fff; }
.test-main { max-width: 860px; margin: 0 auto; padding: 28px 18px; display: flex; flex-direction: column; gap: 16px; }
.test-card { padding: 30px; }
.timer { font-size: 24px; font-weight: 700; background: var(--orange-soft); color: var(--orange-text); border-radius: 10px; padding: 6px 14px; font-variant-numeric: tabular-nums; }
.timer.urgent { background: var(--red-soft); color: var(--red-text); }
.steps-dots span.cur { background: var(--orange); }
.option { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; cursor: pointer; transition: border-color .12s, background .12s; }
.option:hover { border-color: var(--teal-line); background: #FAFDFC; }
.option:has(input:checked) { border-color: var(--teal); background: var(--teal-soft); }
.big-text { min-height: 200px !important; font-size: 16px !important; line-height: 1.6; }
.audio-box { display: flex; gap: 12px; align-items: center; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; }

/* ------------------------------------------------------------------ Formation : la salle de classe */
.hero { background: linear-gradient(120deg, #FFFFFF 0%, #FFFFFF 55%, var(--teal-soft) 100%); }
.day-title { margin: 8px 0 0; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .07em; font-weight: 700; }
.module-tile { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; color: var(--ink); background: #fff; transition: border-color .12s, box-shadow .12s; }
.module-tile:hover { border-color: var(--teal-line); color: var(--ink); box-shadow: 0 2px 10px rgba(14, 116, 104, .08); }
.module-tile.done { background: #FBFDFC; }

/* Accueil élève : parcours */
.course-head { display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; }
.course-head h1 { font-size: 30px; }
progress.progress-line { -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 10px; border: 0; border-radius: 99px; background: var(--line-2); overflow: hidden; }
progress.progress-line::-webkit-progress-bar { background: var(--line-2); border-radius: 99px; }
progress.progress-line::-webkit-progress-value { background: linear-gradient(90deg, var(--teal) 0%, #18A08F 100%); border-radius: 99px; }
progress.progress-line::-moz-progress-bar { background: linear-gradient(90deg, var(--teal) 0%, #18A08F 100%); border-radius: 99px; }
.progress-meta { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--muted); margin-top: 6px; }
.resume-card { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; border: 1px solid var(--teal-line); background: var(--teal-soft); border-radius: var(--radius); padding: 16px 18px; }
.resume-card .label { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--teal-dark); font-weight: 700; }
.resume-card strong { font-family: var(--serif); font-size: 19px; display: block; }
.chapter { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; }
.chapter-head { display: flex; gap: 14px; align-items: center; padding: 14px 18px; background: #FAFBFC; border-bottom: 1px solid var(--line-2); }
.chapter-num { flex: none; width: 40px; height: 40px; border-radius: 10px; background: var(--brand); color: #fff; display: grid; place-items: center; font-family: var(--serif); font-weight: 700; font-size: 17px; }
.chapter.locked .chapter-num { background: #C7CDD7; }
.chapter-head h3 { font-family: var(--serif); font-size: 17px; margin: 0; }
.chapter-head .small { color: var(--muted); }
.lessons { list-style: none; margin: 0; padding: 6px 0; }
.lesson { display: flex; gap: 14px; align-items: center; padding: 11px 18px; text-decoration: none; color: var(--ink); border-left: 3px solid transparent; }
a.lesson:hover { background: #FAFDFC; border-left-color: var(--teal); color: var(--ink); }
.lesson-icon { flex: none; width: 30px; height: 30px; border-radius: 50%; border: 2px solid #CDD3DC; display: grid; place-items: center; font-size: 13px; font-weight: 700; color: var(--muted); background: #fff; }
.lesson.is-done .lesson-icon { background: var(--teal); border-color: var(--teal); color: #fff; }
.lesson.is-current .lesson-icon { border-color: var(--teal); color: var(--teal-dark); box-shadow: 0 0 0 4px var(--teal-soft); }
.lesson.is-review .lesson-icon { border-color: var(--red); color: var(--red-text); }
.lesson-body { flex: 1; min-width: 0; }
.lesson-body strong { display: block; font-weight: 600; }
.lesson-body span { font-size: 13px; color: var(--muted); }
.lesson-meta { font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.chapter-locked { padding: 14px 18px; font-size: 13.5px; color: var(--muted); display: flex; align-items: center; gap: 10px; }
.side-col { display: flex; flex-direction: column; gap: 18px; }
.class-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 22px; align-items: start; }
@media (max-width: 1100px) { .class-layout { grid-template-columns: 1fr; } }
.tool-link { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 10px; text-decoration: none; color: var(--ink); border: 1px solid transparent; }
.tool-link:hover { background: var(--hover); border-color: var(--line); color: var(--ink); }
.tool-ico { flex: none; width: 34px; height: 34px; border-radius: 9px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; }
.tool-ico svg { width: 18px; height: 18px; }
.tool-link small { display: block; color: var(--muted); font-size: 12.5px; }
.badge-shelf { display: flex; flex-wrap: wrap; gap: 6px; }

/* Leçon */
.lesson-top { max-width: 900px; width: 100%; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.step-bar { display: flex; gap: 4px; }
.step-bar span { flex: 1; height: 6px; border-radius: 99px; background: var(--line); }
.step-bar span.done { background: var(--teal); }
.step-bar span.cur { background: var(--sun); }
.block-card { max-width: 900px; width: 100%; margin: 0 auto; padding: 30px 34px; }
.block-card h1 { font-size: 27px; }
.prose { font-size: 16.5px; line-height: 1.72; max-width: 72ch; }
.prose h3 { font-family: var(--serif); font-size: 19px; margin: 22px 0 8px; }
.prose ul, .prose ol { margin: 0 0 14px; padding-left: 22px; }
.prose li { margin-bottom: 4px; }
.prose strong { color: var(--ink); }
.prose blockquote { margin: 12px 0; padding: 10px 16px; border-left: 4px solid var(--sun); background: var(--sun-soft); border-radius: 0 8px 8px 0; }
.slides { display: flex; flex-direction: column; gap: 14px; }
.slide { min-height: 220px; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; background: #FCFCFD; }
.slide-img { max-width: 100%; max-height: 360px; display: block; margin: 0 auto 14px; border-radius: 10px; }
.slide-admin { border-bottom: 1px solid var(--line-2); padding-bottom: 12px; display: flex; flex-direction: column; gap: 8px; }
.slide-thumb { max-width: 220px; max-height: 140px; border-radius: 8px; border: 1px solid var(--line); }
.media { width: 100%; max-height: 520px; border-radius: var(--radius); background: #000; }
.quiz-q { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.quiz-q legend { padding: 0 6px; font-family: var(--serif); font-size: 16px; }
.gap-text { font-size: 17px; line-height: 2.4; }
.gap-input { display: inline-block; width: 150px !important; min-height: 36px !important; margin: 0 4px; font-size: 16px !important; border-width: 0 0 2px !important; border-color: var(--teal) !important; border-radius: 4px 4px 0 0 !important; background: var(--teal-soft) !important; }
.tech-test meter { width: 180px; height: 18px; }
.rating { display: flex; flex-wrap: wrap; gap: 8px; border: none; padding: 0; }
.doc-row { border-bottom: 1px solid var(--line-2); padding-bottom: 10px; }
.thread { gap: 12px; }
.msg { max-width: 760px; border-radius: 14px; padding: 10px 14px; border: 1px solid var(--line); background: #fff; }
.msg.from-team { background: var(--teal-soft); border-color: #C4E3DD; border-bottom-left-radius: 4px; }
.msg.from-learner { background: #fff; margin-left: auto; border-bottom-right-radius: 4px; }
dl.glossary { display: grid; grid-template-columns: minmax(140px, 220px) 1fr; gap: 8px 20px; margin: 0; }
dl.glossary dt { font-weight: 700; font-family: var(--serif); }
dl.glossary dd { margin: 0; color: var(--ink-2); }
@media (max-width: 600px) { dl.glossary { grid-template-columns: 1fr; } dl.glossary dd { margin-bottom: 8px; } }
.modal { position: fixed; inset: 0; background: rgba(28, 37, 54, .55); z-index: 100; display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal-box { background: #fff; border-radius: 16px; padding: 26px; width: 100%; max-width: 520px; box-shadow: 0 20px 60px rgba(0, 0, 0, .25); border-top: 6px solid var(--sun); }
.module-clock { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.module-clock.over { color: var(--orange-text); font-weight: 600; }
.module-clock .clock-warn { flex-basis: 100%; }

/* ------------------------------------------------------------------ Formation : côté équipe */
.day-box { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; background: #FCFCFD; }
.day-box h3 { font-family: var(--serif); font-size: 16px; }
.module-row, .block-list li { border-bottom: 1px solid var(--line-2); padding-bottom: 8px; align-items: center !important; }
.module-row.off, .block-list li.off { opacity: .55; }
.block-list { counter-reset: none; }
progress { width: 110px; height: 10px; accent-color: var(--teal); vertical-align: middle; }
table.grid-eval td, table.grid-eval th { padding: 6px; }
table.grid-eval input { width: 18px; height: 18px; accent-color: var(--teal); }

/* Attestation imprimable */
.print-page { background: #E9EDF1; }
.print-tools { text-align: center; padding: 16px; }
.attestation { background: #fff; max-width: 780px; margin: 0 auto 40px; padding: 64px 72px; min-height: 1000px; display: flex; flex-direction: column; gap: 14px; font-size: 17px; line-height: 1.7; border: 1px solid var(--line); font-family: var(--serif); }
.attestation header { display: flex; align-items: center; gap: 14px; margin-bottom: 40px; }
.attestation header img { max-height: 70px; max-width: 160px; }
.attestation header strong { font-size: 20px; }
.attestation h1 { text-align: center; font-size: 32px; margin: 10px 0 30px; letter-spacing: .02em; }
.att-name { text-align: center; font-size: 28px; font-weight: 700; margin: 10px 0; }
.att-sign { margin-top: 50px; margin-left: auto; text-align: left; min-width: 260px; }
.att-sign-box { border: 1px dashed #B8C2CF; height: 90px; border-radius: 8px; color: var(--muted); font-size: 12px; padding: 6px; }
.attestation footer { margin-top: auto; text-align: center; }
@media print { .print-tools { display: none; } .print-page { background: #fff; } .attestation { border: none; margin: 0; padding: 30px 40px; min-height: 0; } }

/* Visio (classe virtuelle) */
.visio-wrap { position: relative; height: calc(100vh - 230px); min-height: 480px; border-radius: var(--radius); overflow: hidden; background: #0B1220; }
.jitsi { position: absolute; inset: 0; }
.visio-loading { color: #C9D3E0; padding-top: 120px; }
.annot { position: absolute; inset: 0; z-index: 5; pointer-events: none; }
.annot.drawing { pointer-events: auto; cursor: crosshair; touch-action: none; }
.swatch { width: 28px; height: 28px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px #B8C2CF; cursor: pointer; padding: 0; }
.swatch.on { box-shadow: 0 0 0 3px var(--brand); }
.sw-rouge { background: #E11D48; } .sw-bleu { background: #2563EB; } .sw-jaune { background: #F59E0B; } .sw-vert { background: #16A34A; } .sw-noir { background: #111827; }
.avatar-preview { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; border: 1px solid var(--line); }
.visio-card { border-color: var(--teal-line); background: var(--teal-soft); }

/* ------------------------------------------------------------------ RH et communication */
.reminder-banner { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 10px 32px; font-size: 14px; background: var(--brand-soft); border-bottom: 1px solid #C9D5E7; }
.reminder-banner.urgent { background: var(--orange-soft); border-color: var(--orange-line); }
.reminder-banner.tres_urgent { background: var(--red-soft); border-color: var(--red-line); }
.planning-table td, .planning-table th { min-width: 110px; vertical-align: top; }
.planning-table th:first-child, .planning-table td:first-child { min-width: 150px; position: sticky; left: 0; background: #fff; }
.shift { display: block; border-radius: 8px; padding: 4px 6px; font-size: 12px; margin-bottom: 4px; background: var(--teal-soft); color: var(--teal-dark); }
.shift.formation { background: var(--brand-soft); color: #28426B; }
.shift.accompagnement { background: #F3E8FF; color: #5B2A86; }
.shift.reunion { background: var(--orange-soft); color: var(--orange-text); }
.shift.leave { background: var(--red-soft); color: var(--red-text); }
.shift form { display: inline; }
.shift button { border: none; background: none; color: inherit; cursor: pointer; padding: 0 2px; font-size: 13px; }
.chat-layout { display: grid; grid-template-columns: 240px 1fr; gap: 20px; align-items: start; }
.chat-side a { display: flex; justify-content: space-between; padding: 8px 10px; border-radius: 8px; text-decoration: none; color: var(--ink); }
.chat-side a.active, .chat-side a:hover { background: var(--teal-soft); }
.chat-list { height: 55vh; min-height: 320px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding: 4px; }
.msg.urgent { border-color: var(--orange-line); } .msg.tres_urgent { border-color: var(--red-line); border-width: 2px; }
@media (max-width: 760px) { .chat-layout { grid-template-columns: 1fr; } }
.todo-done { text-decoration: line-through; color: var(--muted); }
.sign-box { border: 1px dashed #B8C2CF; border-radius: var(--radius); padding: 14px; background: #FCFCFD; }

/* ------------------------------------------------------------------ Espace gérante */
.nav-section.gerante { color: var(--sun-dark); border-top: 1px solid var(--line-2); padding-top: 16px; margin-top: 18px; }
.gerante-banner { background: var(--sun-soft); color: var(--sun-dark); padding: 8px 32px; font-size: 13px; font-weight: 600; letter-spacing: .02em; border-bottom: 1px solid #EBD9A6; }
.gerante-tiles { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.gerante-tile { display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: var(--ink); border-top: 3px solid var(--sun); transition: box-shadow .12s, transform .12s; }
.gerante-tile strong { font-family: var(--serif); font-size: 16px; }
.gerante-tile:hover { box-shadow: var(--shadow-up); color: var(--ink); transform: translateY(-1px); }
.charter-text { min-height: 420px !important; }

/* Ressources (vidéos en ligne, fichiers) */
.resources figure { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.resource-video iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--radius); background: #000; }

/* Réglages et accès */
.access-module { border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; background: #fff; }
.access-module summary { list-style: none; }
.access-module summary::-webkit-details-marker { display: none; }
.access-module.off, .access-blocks li.off { opacity: .5; }
.access-blocks { margin: 8px 0 4px 30px; }
.inline-field { flex-direction: row; align-items: center; gap: 6px; font-weight: 500; font-size: 13px; }
.inline-field input { width: 76px !important; min-height: 34px !important; }
.sticky-actions { position: sticky; bottom: 0; background: var(--bg); padding: 12px 0; border-top: 1px solid var(--line); z-index: 5; }

/* Suivi en direct */
.timeline { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.timeline li { display: flex; gap: 12px; align-items: baseline; padding: 6px 10px; border-radius: 8px; }
.tl-time { font-variant-numeric: tabular-nums; font-weight: 700; min-width: 48px; }
.tl-icon { width: 18px; text-align: center; }
.tl-cut, .tl-ko { background: var(--red-soft); }
.tl-idle { background: var(--orange-soft); }
.tl-ok { background: var(--teal-soft); }
.voice { margin-top: 6px; font-size: 14px; }

/* Application d'authentification */
.setup-steps { padding-left: 1.2rem; display: grid; gap: .8rem; }
.qr-box { display: flex; justify-content: center; margin: .8rem 0; }
.qr-box svg { width: 210px; height: 210px; max-width: 100%; border-radius: 8px; border: 1px solid var(--line); }
.totp-key { font-family: var(--mono); font-size: 1.05rem; letter-spacing: .05em; word-break: break-all; background: var(--bg); padding: .5rem .7rem; border-radius: 6px; }
.ip-block { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: space-between; align-items: center; padding: .7rem 0; border-top: 1px solid var(--line); }
.alert-card { border-left: 4px solid var(--red); }
.sec-box { border: 1px solid var(--line); border-radius: 10px; padding: .8rem 1rem; margin: .6rem 0; }

/* Revoir un support (sur demande) */
.review-item, .review-req { display: flex; flex-wrap: wrap; gap: .7rem; align-items: center; justify-content: space-between; padding: .8rem 0; border-top: 1px solid var(--line-2); }
.review-item:first-child, .review-req:first-of-type { border-top: 0; }
.review-item .grow, .review-req .grow { min-width: 0; flex: 1 1 260px; }
.review-ask { display: flex; flex-wrap: wrap; gap: .4rem; }
.review-ask input[type=text] { width: 14rem; max-width: 100%; }
.lock { margin-right: .3rem; }
.review-slide { border-top: 1px solid var(--line); padding-top: .8rem; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
.course-title { font-size: 24px; margin: 0; }

/* Bouton « Aide » */
.help-btn { background: var(--red); border-color: var(--red); color: #fff; font-weight: 700; }
.help-btn:hover { background: var(--red-text); color: #fff; }
.help-mine { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 10px 32px; background: var(--red-soft); border-bottom: 1px solid var(--red-line); color: var(--red-text); font-size: 14px; }
.help-alert { display: flex; gap: 18px; align-items: center; padding: 12px 32px; background: var(--red); color: #fff; border-bottom: 3px solid #7A140D; }
.help-word { font-family: var(--serif); font-size: 34px; font-weight: 800; letter-spacing: .08em; }
.help-list { flex: 1; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.help-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 14px; }
.help-row .btn { min-height: 32px; }
.help-row .btn:not(.primary) { background: rgba(255, 255, 255, .15); color: #fff; border-color: rgba(255, 255, 255, .4); }
.help-row .btn.primary { background: #fff; color: var(--red-text); border-color: #fff; }
@keyframes helpflash { 0%, 100% { background: var(--red); } 50% { background: #E2483D; } }
.blink-strong { animation: helpflash 1s ease-in-out infinite; }
.blink-strong .help-word { animation: blink 1s steps(2, start) infinite; }
@media (prefers-reduced-motion: reduce) { .blink-strong, .blink-strong .help-word { animation: none; } }
@media (max-width: 900px) { .help-alert, .help-mine { padding-left: 16px; padding-right: 16px; } .help-word { font-size: 24px; } }

/* Diaporamas d'animation (gérante) */
.deck-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.deck-card { display: flex; flex-direction: column; gap: 14px; }
.deck-thumb { aspect-ratio: 16 / 9; border-radius: 10px; background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%); color: #fff; display: grid; place-items: center; padding: 16px; text-align: center; }
.deck-thumb span { font-family: var(--serif); font-size: 19px; font-weight: 700; line-height: 1.25; }
.plain-ol { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
textarea.mono { font-family: var(--mono); font-size: 14px; line-height: 1.55; }
code { font-family: var(--mono); font-size: .92em; background: var(--line-2); padding: 1px 5px; border-radius: 4px; }
.present-body { background: #0E1522; margin: 0; height: 100vh; overflow: hidden; }
.deck { height: 100vh; display: flex; flex-direction: column; }
.deck-stage { flex: 1; position: relative; display: grid; place-items: center; padding: 18px; min-height: 0; }
.pslide { display: none; width: min(100%, calc((100vh - 90px) * 16 / 9)); aspect-ratio: 16 / 9; background: #fff; border-radius: 10px; position: relative; overflow: hidden; box-shadow: 0 20px 60px rgba(0, 0, 0, .4); container-type: inline-size; }
.pslide.on { display: flex; flex-direction: column; }
.pslide::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 1.1cqw; background: var(--teal); }
.pslide-inner { flex: 1; padding: 5cqw 7cqw 3cqw 8cqw; font-size: 2.3cqw; line-height: 1.5; max-width: none; overflow: hidden; display: flex; flex-direction: column; gap: 1.2cqw; }
.pslide-inner h3 { font-size: 3.6cqw; margin: 0 0 1cqw; color: var(--brand); }
.pslide-inner p { margin: 0; }
.pslide-inner ul { margin: 0; padding-left: 3cqw; display: grid; gap: .8cqw; }
.pslide-inner blockquote { font-size: 2.2cqw; padding: 1.4cqw 2cqw; }
.pslide-inner .illus { margin: .5cqw 0 0; flex: 1; min-height: 0; display: flex; flex-direction: column; align-items: center; }
.pslide-inner .illus img { max-height: 100%; max-width: 100%; min-height: 0; object-fit: contain; flex: 1; border: 0; }
.pslide-inner .illus figcaption { font-size: 1.5cqw; }
.pslide.is-title { background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%); }
.pslide.is-title::before { background: var(--sun); }
.pslide.is-title .pslide-inner { justify-content: center; color: #E6ECF4; }
.pslide.is-title .slide-title { font-size: 6cqw; color: #fff; margin: 0 0 1.5cqw; line-height: 1.12; max-width: 22ch; }
.pslide.is-title .pslide-foot { color: #9FB0C8; }
.pslide-foot { display: flex; justify-content: space-between; padding: 0 3cqw 1.8cqw 8cqw; font-size: 1.3cqw; color: var(--faint); }
.deck-black { position: absolute; inset: 0; background: #000; z-index: 3; }
.deck-bar { display: flex; gap: 10px; align-items: center; padding: 10px 18px; background: #0B111C; color: #C9D3E0; }
.deck-bar .btn { background: #1B2536; color: #fff; border-color: #2E3A50; }
.deck-bar progress { flex: 1; }
.deck-count { font-variant-numeric: tabular-nums; font-size: 13px; min-width: 56px; text-align: center; }
.deck:fullscreen .deck-bar { opacity: 0; transition: opacity .2s; }
.deck:fullscreen .deck-bar:hover { opacity: 1; }
.deck:fullscreen .pslide { width: min(100%, calc((100vh - 36px) * 16 / 9)); }

/* Illustrations dans les cours */
.illus { margin: 6px 0 4px; display: flex; flex-direction: column; gap: 6px; }
.illus img { max-width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--line); background: #fff; }
.illus figcaption { font-size: 13px; color: var(--muted); }
.slide .illus img { max-height: 340px; width: auto; align-self: center; }

/* ----- Mot d'accueil enregistré (2.5.0) ----- */
.welcome-card { max-width: 820px; margin: 0 auto; }
.welcome-audio { display: flex; align-items: center; gap: 16px; padding: 18px; border-radius: var(--radius); background: var(--teal-soft); border: 1px solid var(--teal-line); }
.welcome-audio audio { flex: 1; min-width: 0; }
.welcome-avatar { flex: none; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--teal); color: #fff; }
.welcome-avatar svg { width: 24px; height: 24px; }
.welcome-note { padding: 14px 16px; border-left: 3px solid var(--sun); background: var(--sun-soft); border-radius: var(--radius-sm); }
.embed iframe, figure.embed iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--radius); background: #000; }
figure.embed { margin: 0; }
.welcome-ways { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; padding-top: 8px; border-top: 1px solid var(--line-2); }
.rec-preview { max-height: 300px; transform: scaleX(-1); }
.welcome-script { font-family: var(--serif); font-size: 16.5px; line-height: 1.7; max-width: 68ch; padding: 18px 22px; background: var(--bg); border-radius: var(--radius); }
.welcome-script p { margin: 0; }

/* ----- Manuel de l'équipe (2.5.0) ----- */
.manual { max-width: 860px; }
.manual h3 { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line-2); }
.manual h4 { margin: 18px 0 6px; color: var(--teal-dark); font-size: 16px; }
.manual ol { padding-left: 22px; }
.mono-area { font-family: var(--mono); font-size: 13.5px; line-height: 1.55; }

/* ----- Menu de l'équipe en catégories (2.6.0) ----- */
.sec-quotidien { --sec: #0E7468; --sec-soft: #E3F2EF; }
.sec-formation { --sec: #1F3A5F; --sec-soft: #E9EEF6; }
.sec-contenus { --sec: #5B3FA8; --sec-soft: #EFEBFA; }
.sec-ressources { --sec: #2B6CB0; --sec-soft: #E6F0FA; }
.sec-recrutement { --sec: #B45309; --sec-soft: #FFF3E3; }
.sec-rh { --sec: #A3326B; --sec-soft: #FBEAF2; }
.sec-perso { --sec: #475467; --sec-soft: #EEF0F3; }
.sec-securite { --sec: #B42318; --sec-soft: #FDECEA; }
.sec-gerante { --sec: #8A6410; --sec-soft: #FCF3DA; }
.nav-group { margin: 2px 0; }
.nav-group summary { list-style: none; display: flex; align-items: center; gap: 10px; padding: 8px 8px; border-radius: var(--radius-sm); cursor: pointer; color: var(--sec); font-weight: 700; font-size: 14.5px; user-select: none; }
.nav-group summary::-webkit-details-marker { display: none; }
.nav-group summary:hover { background: var(--sec-soft); }
.nav-group summary:focus-visible { outline: 2px solid var(--sec); outline-offset: 1px; }
.nav-group-ico { flex: none; width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: var(--sec-soft); color: var(--sec); }
.nav-group-label { flex: 1; min-width: 0; }
.nav-chev { flex: none; display: grid; place-items: center; color: var(--faint); transition: transform .15s ease; }
.nav-chev svg { width: 16px; height: 16px; }
.nav-group[open] .nav-chev { transform: rotate(90deg); }
.nav-group[open] > summary { background: var(--sec-soft); }
.nav-group-items { margin: 4px 0 8px 22px; padding-left: 10px; border-left: 2px solid var(--sec-soft); display: flex; flex-direction: column; gap: 1px; }
.nav-group-items .nav-row a { font-size: 14px; padding: 7px 10px; }
.nav-group .nav-row a.active { background: var(--sec-soft); color: var(--sec); }
.nav-group .nav-row a.active::before { display: none; }
.nav-row { position: relative; display: flex; align-items: center; }
.nav-row > a { flex: 1; min-width: 0; padding-right: 34px !important; }
.pin-form { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); margin: 0; }
.pin { width: 26px; height: 26px; border: 0; border-radius: 6px; background: transparent; color: var(--faint); display: grid; place-items: center; cursor: pointer; opacity: 0; padding: 0; }
.pin svg { width: 15px; height: 15px; }
.nav-row:hover .pin, .pin:focus-visible { opacity: 1; }
.pin:hover { background: var(--hover); color: var(--sun-dark); }
.nav-row.is-pinned .pin { opacity: 1; color: var(--sun); }
.nav-row.is-pinned .pin svg { fill: currentColor; }
@media (hover: none) { .pin { opacity: .55; } }
.nav-pins { margin: 6px 0 10px; padding: 8px 6px 6px; border-radius: var(--radius); background: var(--sun-soft); }
.nav-pins-head { display: flex; align-items: center; gap: 8px; padding: 2px 6px 6px; font-weight: 700; font-size: 13px; color: var(--sun-dark); text-transform: uppercase; letter-spacing: .06em; }
.nav-pins-head svg { width: 16px; height: 16px; fill: currentColor; }
.nav-pins .nav-row a { padding: 7px 10px; font-size: 14px; }
.nav-pins .nav-row a.active { background: #fff; }
.nav-pins .nav-row a.active::before { display: none; }
.nav-hint { margin: 0; padding: 2px 8px 4px; font-size: 12.5px; color: var(--muted); }
/* Menu des apprenantes : des titres de rubrique plus visibles */
.nav-section.learner-sec { font-size: 12.5px; color: var(--teal-dark); font-weight: 700; letter-spacing: .07em; margin-top: 18px; padding-bottom: 4px; border-bottom: 1px solid var(--line-2); }

/* ----- Mode d'emploi (2.6.0) ----- */
.guide-toc { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 16px; }
.guide-toc a { padding: 6px 12px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); text-decoration: none; font-size: 14px; font-weight: 600; }
.guide-toc a:hover { background: var(--brand); color: #fff; }
.guide-sec { scroll-margin-top: 16px; }
.guide-sec > h2 { font-family: var(--serif); font-size: 22px; }
.guide-roles { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.guide-roles > div { padding: 14px 16px; border-radius: var(--radius); background: var(--bg); }
.guide-roles h3 { margin: 0 0 6px; font-size: 15.5px; color: var(--brand); }
.guide-roles p { margin: 0; font-size: 14.5px; line-height: 1.55; }
.guide-menu { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.guide-menu-sec { border: 1px solid var(--line); border-top: 4px solid var(--sec); border-radius: var(--radius); padding: 12px 14px; }
.guide-menu-sec h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; color: var(--sec); font-size: 16px; }
.guide-menu-sec dl { margin: 0; }
.guide-menu-sec dt { font-weight: 600; font-size: 14.5px; margin-top: 8px; }
.guide-menu-sec dt a { color: var(--ink); }
.guide-menu-sec dd { margin: 2px 0 0; font-size: 13.5px; color: var(--muted); line-height: 1.5; }
.guide-illus { width: 100%; max-width: 640px; height: auto; border-radius: var(--radius); border: 1px solid var(--line); }
.guide-day { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.guide-day-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 14px; background: var(--brand-soft); color: var(--brand); }
.guide-mods { margin: 0; padding: 6px 14px 10px 36px; }
.guide-mods li { padding: 6px 0; border-bottom: 1px solid var(--line-2); }
.guide-mods li:last-child { border-bottom: 0; }
.guide-mods li { display: list-item; }
.guide-mods li > .grow { display: inline; }
.guide-mods li > .muted { float: right; }
.guide-steps { margin: 0; padding-left: 22px; line-height: 1.6; }
.guide-steps li { margin-bottom: 8px; }
