/* =====================================================================
   BIM-FCS — Styles du socle (coquille, environnements, documents A4)
   Complète styles.css / portal.css / manager.css
   ===================================================================== */

/* ---------- 1. Coquille ---------- */
.sidebar-env {
  display: flex; align-items: center; gap: 8px;
  margin: 0 14px 10px; padding: 7px 11px; border-radius: 8px;
  font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: #9fb0cd; background: rgba(255, 255, 255, .05);
}
.sidebar-env-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--brand);
  box-shadow: 0 0 0 3px rgba(230, 57, 70, .22);
}
.nav-badge {
  min-width: 19px; height: 19px; padding: 0 5px; border-radius: 99px;
  display: inline-grid; place-items: center;
  font-size: .64rem; font-weight: 800; color: #fff; background: var(--brand);
}
.topbar-heading { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.topbar-kicker {
  font-size: .64rem; text-transform: uppercase; letter-spacing: .1em;
  color: var(--muted); font-weight: 700;
}
.topbar-title { margin: 0 !important; }

/* ---------- 2. Cartes / sections génériques ---------- */
.card-soft {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px 20px;
}
.card-soft h3 { margin: 0 0 4px; font-size: .95rem; }
.card-soft .hint { color: var(--muted); font-size: .78rem; }

.grid-2 { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
.grid-3 { display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1000px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

.kpi-row {
  display: grid; gap: 12px; margin-bottom: 18px;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}
.kpi {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
}
.kpi i {
  width: 36px; height: 36px; flex: 0 0 36px; border-radius: 10px;
  display: grid; place-items: center; background: var(--brand-soft); color: var(--brand);
}
.kpi-val { font-size: 1.3rem; font-weight: 800; line-height: 1.1; }
.kpi-lab { font-size: .7rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }

.section-head {
  display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin: 0 0 14px;
}
.section-head h2 { margin: 0; font-size: 1rem; }
.section-head .hint { color: var(--muted); font-size: .76rem; }
.section-head .spacer { flex: 1; }

/* ---------- 3. Listes / lignes ---------- */
.row-item {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 12px 14px; border-radius: var(--radius-sm);
  background: var(--surface-2); border: 1px solid var(--line); margin-bottom: 8px;
}
.row-item .row-main { flex: 1; min-width: 160px; display: flex; flex-direction: column; gap: 2px; }
.row-item .row-main strong { font-size: .86rem; }
.row-item .row-main span { font-size: .75rem; color: var(--muted); }
.row-item .row-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.row-item.is-alert { border-left: 3px solid var(--warn); }
.row-item.is-done { opacity: .72; }

.avatar-sm {
  width: 34px; height: 34px; flex: 0 0 34px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 800; font-size: .74rem;
  background: linear-gradient(135deg, var(--brand), var(--accent)); color: #fff;
}

/* ---------- 4. Formations (candidat) ---------- */
.formation-row {
  display: flex; gap: 14px; align-items: center; flex-wrap: wrap;
  padding: 14px; border-radius: var(--radius-sm);
  background: var(--surface-2); border: 1px solid var(--line); margin-bottom: 10px;
}
.formation-row .fr-main { flex: 1; min-width: 200px; }
.formation-row h4 { margin: 0 0 4px; font-size: .9rem; }
.formation-row .fr-meta { font-size: .74rem; color: var(--muted); display: flex; gap: 12px; flex-wrap: wrap; }
.formation-row .fr-progress { min-width: 140px; }

.res-group { margin-bottom: 22px; }
.res-group h4 { margin: 0 0 10px; font-size: .84rem; color: var(--ink-2); }
.res-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.res-item {
  display: flex; align-items: center; gap: 10px; padding: 11px 13px;
  border-radius: var(--radius-sm); background: var(--surface);
  border: 1px solid var(--line); text-decoration: none; color: var(--ink);
  transition: border-color .15s, transform .15s;
}
.res-item:hover { border-color: var(--brand); transform: translateY(-1px); text-decoration: none; }
.res-item .ri-icon {
  width: 32px; height: 32px; flex: 0 0 32px; border-radius: 8px;
  display: grid; place-items: center; font-size: .9rem;
  background: var(--accent-soft); color: var(--accent);
}
.res-item.is-sim .ri-icon { background: var(--brand-soft); color: var(--brand); }
.res-item .ri-body { min-width: 0; }
.res-item .ri-body strong { display: block; font-size: .8rem; line-height: 1.3; }
.res-item .ri-body span { font-size: .7rem; color: var(--muted); }

/* ---------- 5. Messagerie ---------- */
.thread {
  display: flex; gap: 12px; padding: 12px 14px; cursor: pointer;
  border-radius: var(--radius-sm); border: 1px solid var(--line);
  background: var(--surface-2); margin-bottom: 8px;
}
.thread:hover { border-color: var(--brand); }
.thread.unread { border-left: 3px solid var(--brand); }
.thread .th-main { flex: 1; min-width: 0; }
.thread .th-subject { font-size: .84rem; font-weight: 600; }
.thread .th-preview {
  font-size: .75rem; color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.thread .th-time { font-size: .7rem; color: var(--muted); white-space: nowrap; }

.msg-bubble {
  padding: 12px 14px; border-radius: 12px; margin-bottom: 10px;
  background: var(--surface-2); border: 1px solid var(--line); max-width: 88%;
}
.msg-bubble.mine { margin-left: auto; background: var(--brand-soft); border-color: transparent; }
.msg-bubble .mb-head { font-size: .72rem; color: var(--muted); margin-bottom: 6px; }
.msg-bubble .mb-body { font-size: .84rem; line-height: 1.55; white-space: pre-wrap; }

/* ---------- 6. Webinars / sessions ---------- */
.wb-card {
  padding: 14px; border-radius: var(--radius-sm); border: 1px solid var(--line);
  background: var(--surface-2); margin-bottom: 10px;
}
.wb-card h4 { margin: 0 0 6px; font-size: .88rem; }
.wb-meta { display: flex; gap: 12px; flex-wrap: wrap; font-size: .74rem; color: var(--muted); margin-bottom: 10px; }

/* ---------- 7. Barres de progression ---------- */
.prog { display: flex; align-items: center; gap: 8px; }
.prog-track { flex: 1; height: 7px; border-radius: 99px; background: var(--line-2); overflow: hidden; }
.prog-fill { height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--brand), var(--accent)); }
.prog span { font-size: .72rem; color: var(--muted); min-width: 32px; text-align: right; }

/* ---------- 8. Timeline / historique ---------- */
.timeline { border-left: 2px solid var(--line); padding-left: 16px; }
.tl-item { position: relative; padding-bottom: 14px; }
.tl-item::before {
  content: ''; position: absolute; left: -22px; top: 4px;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--brand); box-shadow: 0 0 0 3px var(--surface);
}
.tl-item .tl-time { font-size: .7rem; color: var(--muted); }
.tl-item .tl-text { font-size: .82rem; }

/* ---------- 9. Documents A4 (impression / PDF) ---------- */
.doc-page {
  background: #fff; color: #14202e;
  width: 210mm; min-height: 297mm; margin: 0 auto; padding: 16mm 16mm 12mm;
  font-family: "Manrope", "Helvetica Neue", Arial, sans-serif;
  font-size: 10.5pt; line-height: 1.5; box-sizing: border-box;
  display: flex; flex-direction: column;
}
.doc-head { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; padding-bottom: 10px; border-bottom: 2px solid #E63946; }
.doc-brand { display: flex; align-items: center; gap: 10px; }
.doc-logo { width: 54px; height: 54px; object-fit: contain; }
.doc-brand-name { font-size: 15pt; font-weight: 800; letter-spacing: .02em; color: #0d1b2a; }
.doc-brand-sub { font-size: 8pt; color: #5b6b7c; letter-spacing: .04em; }
.doc-co { text-align: right; font-size: 7.6pt; line-height: 1.45; color: #3d4a58; }
.doc-qualiopi { color: #10B981; font-weight: 700; margin-top: 2px; }
.doc-title-band {
  display: flex; align-items: baseline; justify-content: space-between; gap: 14px;
  margin: 14px 0 12px; padding: 8px 12px; background: #0d1b2a; color: #fff; border-radius: 4px;
}
.doc-title-band h1 { margin: 0; font-size: 13pt; letter-spacing: .04em; text-transform: uppercase; }
.doc-ref { font-size: 8pt; color: #c7d3e8; }
.doc-body { flex: 1; }
.doc-lead { font-size: 10pt; margin: 0 0 10px; }
.doc-h2 { font-size: 9.6pt; text-transform: uppercase; letter-spacing: .05em; margin: 16px 0 6px; color: #0d1b2a; border-bottom: 1px solid #dde3ea; padding-bottom: 3px; }
.doc-p { margin: 0 0 8px; font-size: 9.6pt; }
.doc-list { margin: 0 0 10px 18px; font-size: 9.6pt; }
.doc-list li { margin-bottom: 3px; }
.doc-meta-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 18px; margin: 12px 0; }
.doc-meta-item { font-size: 8.6pt; }
.doc-meta-item span { display: block; color: #6b7a8c; text-transform: uppercase; letter-spacing: .05em; font-size: 7pt; }
.doc-meta-item strong { font-size: 9.4pt; }
.doc-parties { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 12px 0 16px; }
.doc-party { border: 1px solid #dde3ea; border-radius: 4px; padding: 10px 12px; font-size: 8.8pt; line-height: 1.45; }
.doc-party-label { font-size: 7pt; text-transform: uppercase; letter-spacing: .06em; color: #6b7a8c; margin-bottom: 4px; }
.doc-person { text-align: center; margin: 14px 0; padding: 12px; border: 1px solid #dde3ea; border-radius: 4px; background: #f7f9fc; }
.doc-person-name { font-size: 12pt; font-weight: 700; }
.doc-person-sub { font-size: 8.6pt; color: #5b6b7c; }
.doc-table { width: 100%; border-collapse: collapse; margin: 10px 0 14px; font-size: 8.8pt; }
.doc-table th, .doc-table td { border: 1px solid #dde3ea; padding: 6px 8px; text-align: left; vertical-align: top; }
.doc-table th { background: #f2f5f9; font-weight: 700; font-size: 8pt; text-transform: uppercase; letter-spacing: .03em; color: #3d4a58; }
.doc-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.doc-table-sign td { height: 26px; }
.doc-sign-cell { min-width: 26px; }
.doc-legend { font-size: 7.8pt; color: #6b7a8c; margin: -6px 0 12px; }
.doc-src {
  font-size: 7pt; font-weight: 600; letter-spacing: .02em; text-transform: uppercase;
  color: #6b7a8c; background: #eef2f6; border-radius: 99px; padding: 1px 7px;
  vertical-align: middle; margin-left: 6px;
}
.doc-none { color: #8a97a6; font-style: italic; }
.doc-page-break { break-before: page; page-break-before: always; }
.doc-transcript {
  font-size: 8pt; line-height: 1.6; color: #33404f;
  border-left: 3px solid #d62828; padding: 8px 12px; background: #fafbfc;
}
.doc-note { padding: 9px 12px; border-left: 3px solid #F59E0B; background: #fff8ec; font-size: 8.6pt; margin: 12px 0; }
.doc-place { text-align: right; font-size: 9pt; margin: 14px 0 6px; }
.doc-sign { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 18px; }
.doc-sign-box { border-top: 1px solid #9aa7b6; padding-top: 6px; }
.doc-sign-title { font-size: 8pt; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: #3d4a58; }
.doc-sign-line { height: 42px; }
.doc-sign-hint { font-size: 7pt; color: #8b98a8; }
.doc-sign-id { margin: 5px 0 0; font-size: 7.6pt; color: #33404f; }
.doc-sign-row { display: flex; gap: 6px; line-height: 1.5; }
.doc-sign-row span { color: #6b7a8c; min-width: 74px; }
.doc-sign-row strong { font-weight: 600; }
.doc-fill { min-height: 42px; border: 1px dashed #b9c4d0; border-radius: 4px; padding: 8px 10px; font-size: 9pt; margin-bottom: 10px; }
.doc-fill-hint { color: #9aa7b6; font-style: italic; }
.doc-foot { margin-top: 16px; padding-top: 8px; border-top: 1px solid #dde3ea; }
.doc-foot-legal { font-size: 6.6pt; color: #6b7a8c; line-height: 1.45; text-align: center; }

.doc-bill-top { display: flex; justify-content: flex-end; }
.doc-bill-meta { display: grid; grid-template-columns: repeat(2, minmax(140px, auto)); gap: 6px 22px; }
.doc-bill-meta span { display: block; font-size: 7pt; text-transform: uppercase; letter-spacing: .05em; color: #6b7a8c; }
.doc-bill-meta strong { font-size: 9.4pt; }
.doc-bill-table { margin-top: 14px; }
.doc-totals { margin-left: auto; width: 62%; margin-top: 6px; }
.doc-totals-row { display: flex; justify-content: space-between; padding: 5px 8px; font-size: 9pt; border-bottom: 1px solid #eef2f7; }
.doc-totals-net { border-top: 2px solid #0d1b2a; border-bottom: 0; font-weight: 800; font-size: 10.5pt; padding-top: 8px; }
.doc-vat { font-size: 7.6pt; color: #6b7a8c; margin-top: 8px; }
.doc-legal-line { font-size: 7.4pt; color: #6b7a8c; margin-top: 10px; line-height: 1.5; }

.doc-toolbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 10px 16px; background: var(--glass); border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}
.doc-stage { padding: 24px 12px 60px; background: var(--bg); }

@media print {
  @page { size: A4; margin: 0; }
  html, body { background: #fff !important; }
  .doc-toolbar, .no-print { display: none !important; }
  .doc-stage { padding: 0 !important; }
  .doc-page { box-shadow: none; margin: 0; width: auto; min-height: auto; padding: 14mm 15mm; }
  .doc-page + .doc-page { page-break-before: always; }
}

/* ---------- 10. Public ---------- */
.public-wrap { max-width: 1080px; margin: 0 auto; padding: 40px 24px; }
.public-nav {
  display: flex; align-items: center; gap: 14px; padding: 14px 24px;
  border-bottom: 1px solid var(--line); background: var(--surface);
}
.public-nav .brand { display: flex; align-items: center; gap: 10px; font-weight: 800; }
.public-nav img { width: 38px; height: 38px; }
.public-nav .spacer { flex: 1; }

.hero {
  display: grid; gap: 28px; grid-template-columns: 1.15fr .85fr; align-items: center;
  padding: 44px 0 20px;
}
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; } }
.hero h1 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); line-height: 1.15; margin: 0 0 14px; }
.hero p.lead { font-size: 1rem; color: var(--ink-2); line-height: 1.6; margin: 0 0 22px; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.env-cards { display: grid; gap: 14px; }
.env-card {
  display: flex; gap: 14px; padding: 16px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
}
.env-card i {
  width: 40px; height: 40px; flex: 0 0 40px; border-radius: 11px;
  display: grid; place-items: center; font-size: 1rem;
  background: var(--brand-soft); color: var(--brand);
}
.env-card h3 { margin: 0 0 3px; font-size: .9rem; }
.env-card p { margin: 0; font-size: .78rem; color: var(--muted); line-height: 1.5; }

/* ---------- 11. Auth ---------- */
.auth-shell { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
@media (max-width: 900px) { .auth-shell { grid-template-columns: 1fr; } }
.auth-side {
  padding: 48px 44px; display: flex; flex-direction: column; justify-content: center;
  background:
    radial-gradient(120% 120% at 0% 0%, rgba(230,57,70,.22), transparent 55%),
    radial-gradient(120% 120% at 100% 100%, rgba(59,130,246,.18), transparent 55%),
    var(--surface);
}
.auth-side img { width: 64px; height: 64px; margin-bottom: 18px; }
.auth-side h1 { margin: 0 0 8px; font-size: 1.5rem; }
.auth-side p { color: var(--muted); font-size: .86rem; line-height: 1.6; }
.auth-form-side { padding: 40px 44px; display: flex; align-items: center; justify-content: center; }
.auth-card { width: 100%; max-width: 460px; }
.auth-tabs { display: flex; gap: 6px; margin-bottom: 20px; }
.auth-tabs button {
  flex: 1; padding: 10px; border-radius: var(--radius-sm); cursor: pointer;
  background: var(--surface-2); border: 1px solid var(--line);
  color: var(--ink-2); font-family: inherit; font-size: .84rem; font-weight: 600;
}
.auth-tabs button.active { background: var(--brand); border-color: transparent; color: #fff; }
.pane { display: none; }
.pane.active { display: block; }
.form-row { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }

.check-list {
  max-height: 210px; overflow-y: auto; border: 1px solid var(--line);
  border-radius: var(--radius-sm); background: var(--field); padding: 8px;
}
.check-item {
  display: flex; align-items: flex-start; gap: 9px; padding: 7px 8px;
  border-radius: 7px; font-size: .8rem; cursor: pointer;
}
.check-item:hover { background: var(--surface-2); }
.check-item input { margin-top: 2px; accent-color: var(--brand); }
.check-item small { display: block; color: var(--muted); font-size: .7rem; }
.check-item.is-off { opacity: .45; pointer-events: none; }

.banner-note {
  padding: 12px 14px; border-radius: var(--radius-sm); font-size: .8rem; line-height: 1.5;
  background: var(--accent-soft); border: 1px solid rgba(59,130,246,.35); color: var(--ink-2);
}
.banner-ok { background: var(--ok-soft); border-color: rgba(16,185,129,.4); }
.banner-warn { background: var(--warn-soft); border-color: rgba(245,158,11,.4); }

/* ---------- 12. Tableaux compacts ---------- */
.tbl { width: 100%; border-collapse: collapse; font-size: .8rem; }
.tbl th {
  text-align: left; padding: 9px 11px; font-size: .68rem; text-transform: uppercase;
  letter-spacing: .05em; color: var(--muted); background: var(--surface-2);
  border-bottom: 1px solid var(--line); white-space: nowrap;
}
.tbl td { padding: 9px 11px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; }
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); }

/* ---------- 13. Divers ---------- */
.tag { display: inline-flex; align-items: center; gap: 5px; font-size: .7rem; padding: 3px 8px; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-2); }
.muted { color: var(--muted); }
.small { font-size: .76rem; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 10px; } .mt-2 { margin-top: 20px; }
.mb-1 { margin-bottom: 10px; } .mb-2 { margin-bottom: 20px; }
.flex { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.right { margin-left: auto; }

/* ---------- 14. Indicateurs cliquables ---------- */
.kpi.is-link {
  cursor: pointer; text-align: left; font-family: inherit;
  transition: transform .14s, border-color .14s, box-shadow .14s;
  position: relative; width: 100%;
}
.kpi.is-link:hover {
  transform: translateY(-2px); border-color: var(--brand);
  box-shadow: 0 8px 22px -14px rgba(230, 57, 70, .8);
}
.kpi.is-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.kpi.is-link::after {
  content: '→'; position: absolute; right: 12px; top: 10px;
  font-size: .8rem; color: var(--muted); opacity: 0; transition: opacity .14s;
}
.kpi.is-link:hover::after { opacity: 1; color: var(--brand); }

/* ---------- 15. Messagerie : compositeur ---------- */
.mc-chips { display: flex; flex-wrap: wrap; gap: 6px; min-height: 34px; padding: 7px 9px;
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--field); }
.mc-chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 6px 3px 10px;
  border-radius: 99px; background: var(--brand-soft); color: var(--brand);
  font-size: .74rem; font-weight: 600; }
.mc-chip button { border: 0; background: none; color: inherit; cursor: pointer; font-size: .72rem; padding: 0 3px; }
.mc-list { max-height: 210px; overflow-y: auto; border: 1px solid var(--line);
  border-radius: var(--radius-sm); background: var(--field); margin-top: 8px; }
.mc-item { display: flex; align-items: center; gap: 9px; padding: 7px 10px; cursor: pointer; font-size: .8rem; }
.mc-item:hover { background: var(--surface-2); }
.mc-item.is-on { background: var(--brand-soft); }
.mc-item input { accent-color: var(--brand); }
.mc-av { width: 26px; height: 26px; flex: 0 0 26px; border-radius: 50%; display: grid; place-items: center;
  font-size: .62rem; font-weight: 800; background: linear-gradient(135deg, var(--brand), var(--accent)); color: #fff; }
.mc-info { display: flex; flex-direction: column; min-width: 0; }
.mc-info small { color: var(--muted); font-size: .7rem; }
.mc-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.mc-files { display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; }
.mc-file { display: flex; align-items: center; gap: 8px; padding: 7px 10px;
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-2); font-size: .78rem; }
.mc-file small { color: var(--muted); }
.mc-file button { margin-left: auto; border: 0; background: none; color: var(--danger); cursor: pointer; }
.mc-attachments { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.mc-attach { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px;
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface);
  font-size: .76rem; color: var(--ink); text-decoration: none; }
.mc-attach:hover { border-color: var(--brand); text-decoration: none; }

/* ---------- 16. Manuel d'utilisation ---------- */
.manual-card { display: flex; gap: 18px; align-items: center; flex-wrap: wrap;
  padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.manual-cover { width: 58px; height: 74px; flex: 0 0 58px; border-radius: 6px;
  display: grid; place-items: center; font-size: 1.3rem; color: #fff;
  background: linear-gradient(160deg, #0d1b2a, #22354a); border-left: 4px solid var(--brand); }
.manual-body { flex: 1; min-width: 220px; }
.manual-body h3 { margin: 0 0 4px; font-size: .95rem; }
.manual-overlay { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center;
  background: rgba(4, 8, 16, .78); opacity: 0; transition: opacity .2s; padding: 20px; }
.manual-overlay.is-open { opacity: 1; }
.manual-shell { width: min(1100px, 96vw); height: 92vh; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.manual-shell.is-full { width: 99vw; height: 98vh; }
.manual-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.manual-frame-wrap { flex: 1; background: #525659; }
.manual-frame { width: 100%; height: 100%; border: 0; }

/* ---------- 17. QCM ---------- */
.quiz-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 12px; }
.quiz-progress { flex: 1; min-width: 140px; }
.quiz-q { padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--surface-2); margin-bottom: 10px; }
.quiz-q h4 { margin: 0 0 10px; font-size: .88rem; line-height: 1.4; }
.quiz-opt { display: flex; align-items: flex-start; gap: 9px; padding: 8px 10px; border-radius: 8px;
  cursor: pointer; font-size: .83rem; border: 1px solid transparent; }
.quiz-opt:hover { background: var(--surface); }
.quiz-opt.is-picked { background: var(--brand-soft); border-color: var(--brand); }
.quiz-opt input { margin-top: 2px; accent-color: var(--brand); }
.quiz-nav { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.quiz-dots { display: flex; flex-wrap: wrap; gap: 5px; }
.quiz-dot { width: 26px; height: 26px; border-radius: 7px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink-2); font-size: .7rem; font-weight: 700; cursor: pointer; }
.quiz-dot.is-done { background: var(--ok-soft); border-color: transparent; color: var(--ok); }
.quiz-dot.is-current { background: var(--brand); border-color: transparent; color: #fff; }

/* ---------- 18. Profil ---------- */
.profile-grid { display: grid; gap: 18px; grid-template-columns: 260px 1fr; }
@media (max-width: 900px) { .profile-grid { grid-template-columns: 1fr; } }
.avatar-xl { width: 132px; height: 132px; border-radius: 50%; object-fit: cover;
  border: 3px solid var(--line); background: var(--surface-2); display: grid; place-items: center;
  font-size: 2.2rem; font-weight: 800; color: #fff;
  background-image: linear-gradient(135deg, var(--brand), var(--accent)); }
.avatar-xl img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }

/* =====================================================================
   19. Parcours de formation — code couleur RVB imposé
   incendie #D62828 · prévention #15996E · BIM #2878D2
   ===================================================================== */
.pc-badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 2px 8px; border-radius: 99px; font-size: .66rem; font-weight: 700;
  letter-spacing: .02em; color: var(--pc); background: color-mix(in srgb, var(--pc) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--pc) 40%, transparent);
}
.pc-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--pc); flex: 0 0 9px; }

/* --- Bloc de sélection par parcours --- */
.pc-block {
  border: 1px solid var(--line); border-left: 4px solid var(--pc);
  border-radius: var(--radius-sm); background: var(--surface-2);
  padding: 12px 14px; margin-bottom: 12px;
}
.pc-block-head { display: flex; align-items: center; gap: 8px; }
.pc-block-head h4 { margin: 0; font-size: .86rem; color: var(--pc); flex: 1; }
.pc-count {
  font-size: .7rem; font-weight: 800; color: var(--pc);
  background: color-mix(in srgb, var(--pc) 14%, transparent);
  padding: 2px 8px; border-radius: 99px;
}
.pc-block-actions { display: flex; gap: 6px; margin: 7px 0 9px; }
.pc-mini {
  border: 1px solid var(--line); background: var(--surface); color: var(--ink-2);
  font-size: .68rem; font-weight: 600; padding: 3px 9px; border-radius: 99px; cursor: pointer;
}
.pc-mini:hover { border-color: var(--pc); color: var(--pc); }
.pc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 7px; }
.pc-opt {
  display: flex; flex-direction: column; gap: 2px; cursor: pointer;
  padding: 8px 10px; border-radius: 9px; border: 1px solid var(--line);
  background: var(--surface); transition: border-color .12s, background .12s;
  position: relative;
}
.pc-opt:hover { border-color: color-mix(in srgb, var(--pc) 55%, transparent); }
.pc-opt.is-on {
  border-color: var(--pc);
  background: color-mix(in srgb, var(--pc) 11%, var(--surface));
  box-shadow: inset 3px 0 0 var(--pc);
}
.pc-opt input { position: absolute; opacity: 0; pointer-events: none; }
.pc-opt-name { font-size: .8rem; font-weight: 700; padding-left: 18px; }
.pc-opt.is-on .pc-opt-name::before {
  content: '✓'; position: absolute; left: 9px; color: var(--pc); font-weight: 900;
}
.pc-opt:not(.is-on) .pc-opt-name::before {
  content: ''; position: absolute; left: 9px; top: 10px; width: 11px; height: 11px;
  border: 1.5px solid var(--line); border-radius: 3px;
}
.pc-opt-meta { font-size: .68rem; color: var(--muted); padding-left: 18px; }

/* --- Cartes de formation (page d'accueil, catalogue) --- */
.pc-card {
  display: flex; flex-direction: column; gap: 8px;
  border: 1px solid var(--line); border-top: 3px solid var(--pc);
  border-radius: var(--radius); background: var(--surface);
  padding: 16px 16px 14px; transition: transform .14s, box-shadow .14s;
}
.pc-card:hover { transform: translateY(-3px); box-shadow: 0 16px 32px -22px rgba(0,0,0,.7); }
.pc-card-top { display: flex; align-items: center; justify-content: space-between; }
.pc-pill {
  font-size: .64rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
  color: var(--pc); background: color-mix(in srgb, var(--pc) 13%, transparent);
  padding: 3px 9px; border-radius: 99px;
}
.pc-hours { font-size: .72rem; font-weight: 700; color: var(--muted); }
.pc-card h3 { margin: 0; font-size: .95rem; line-height: 1.3; }
.pc-desc { margin: 0; font-size: .76rem; color: var(--ink-2); line-height: 1.5; }
.pc-points { margin: 0; padding-left: 16px; font-size: .72rem; color: var(--muted); line-height: 1.55; }
.pc-points li { margin-bottom: 2px; }
.pc-card-foot {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 10px;
  margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
.pc-price { display: flex; flex-direction: column; }
.pc-price strong { font-size: 1.05rem; color: var(--ink); letter-spacing: -.02em; }
.pc-price small { font-size: .64rem; color: var(--muted); }
.pc-card-actions { display: flex; gap: 6px; flex-wrap: wrap; }

/* --- Sections de parcours --- */
.pc-section { margin-bottom: 30px; }
.pc-section-head {
  display: flex; align-items: center; gap: 12px; margin-bottom: 14px;
  padding-bottom: 10px; border-bottom: 2px solid var(--pc);
}
.pc-section-head h2 { margin: 0; font-size: 1.05rem; color: var(--pc); }
.pc-section-head .pc-section-desc { font-size: .76rem; color: var(--muted); }
.pc-grid-3 { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }

/* --- Formules commerciales --- */
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.plan-card {
  display: flex; flex-direction: column; gap: 10px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
  padding: 22px 20px; position: relative; overflow: hidden;
}
.plan-card.is-featured { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand) inset; }
.plan-flag {
  position: absolute; top: 0; right: 0; background: var(--brand); color: #fff;
  font-size: .62rem; font-weight: 800; letter-spacing: .05em; padding: 4px 12px;
  border-bottom-left-radius: 8px;
}
.plan-name { font-size: .95rem; font-weight: 800; }
.plan-tagline { font-size: .76rem; color: var(--muted); }
.plan-price { display: flex; align-items: baseline; gap: 5px; }
.plan-price strong { font-size: 1.9rem; letter-spacing: -.03em; }
.plan-price span { font-size: .78rem; color: var(--muted); }
.plan-list { list-style: none; margin: 0; padding: 0; font-size: .78rem; line-height: 1.7; }
.plan-list li { display: flex; gap: 8px; align-items: flex-start; }
.plan-list li i { margin-top: 4px; font-size: .7rem; }
.plan-list li.ok i { color: var(--ok); }
.plan-list li.no i { color: var(--muted); }
.plan-list li.no { color: var(--muted); }
.plan-bonus {
  font-size: .74rem; font-weight: 700; color: var(--ok);
  background: var(--ok-soft); padding: 8px 11px; border-radius: 8px;
}

/* --- Récapitulatif de commande --- */
.order-grid { display: grid; grid-template-columns: 1fr 320px; gap: 18px; align-items: start; }
@media (max-width: 900px) { .order-grid { grid-template-columns: 1fr; } }
.order-sum { position: sticky; top: 16px; }
.order-line { display: flex; justify-content: space-between; gap: 10px; font-size: .82rem; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.order-line span:last-child { font-weight: 700; }
.order-total { display: flex; justify-content: space-between; font-size: 1rem; font-weight: 800; padding-top: 10px; }

/* =====================================================================
   20. Messagerie — dossiers, actions, corbeille
   ===================================================================== */
.mbx { display: grid; grid-template-columns: 210px 1fr; gap: 14px; align-items: start; }
@media (max-width: 820px) { .mbx { grid-template-columns: 1fr; } }
.mbx-folders { display: flex; flex-direction: column; gap: 4px; }
.mbx-folder {
  display: flex; align-items: center; gap: 9px; width: 100%; text-align: left;
  padding: 9px 11px; border-radius: 9px; border: 1px solid transparent;
  background: none; color: var(--ink-2); font-size: .8rem; font-weight: 600;
  cursor: pointer; font-family: inherit;
}
.mbx-folder:hover { background: var(--surface-2); }
.mbx-folder.is-active { background: var(--brand-soft); color: var(--brand); border-color: color-mix(in srgb, var(--brand) 35%, transparent); }
.mbx-folder i { width: 15px; text-align: center; font-size: .78rem; }
.mbx-folder .n {
  margin-left: auto; font-size: .68rem; font-weight: 800; padding: 1px 7px;
  border-radius: 99px; background: var(--surface-3, var(--surface-2)); color: var(--muted);
}
.mbx-folder.is-active .n { background: var(--brand); color: #fff; }
.mbx-folder .n.hot { background: var(--danger); color: #fff; }
.mbx-main { min-width: 0; }
.mbx-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.mbx-bar .spacer { flex: 1; }
.mbx-row {
  display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px;
  border: 1px solid var(--line); border-radius: 9px; background: var(--surface);
  margin-bottom: 6px; cursor: pointer; transition: border-color .12s;
}
.mbx-row:hover { border-color: color-mix(in srgb, var(--brand) 45%, transparent); }
.mbx-row.is-unread { border-left: 3px solid var(--brand); background: var(--surface-2); }
.mbx-row.is-selected { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand) inset; }
.mbx-av {
  width: 30px; height: 30px; flex: 0 0 30px; border-radius: 50%; display: grid; place-items: center;
  font-size: .66rem; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--accent));
}
.mbx-body { flex: 1; min-width: 0; }
.mbx-subject { font-size: .82rem; font-weight: 700; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.mbx-preview { font-size: .74rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mbx-meta { font-size: .68rem; color: var(--muted); text-align: right; flex: 0 0 auto; }
.mbx-tools { display: flex; gap: 3px; margin-top: 5px; }
.mbx-tool {
  border: 1px solid var(--line); background: var(--surface); color: var(--ink-2);
  border-radius: 6px; padding: 2px 6px; font-size: .66rem; cursor: pointer;
}
.mbx-tool:hover { border-color: var(--brand); color: var(--brand); }
.mbx-tool.danger:hover { border-color: var(--danger); color: var(--danger); }
.mbx-empty { padding: 26px; text-align: center; color: var(--muted); font-size: .82rem; }
.mbx-note { font-size: .7rem; color: var(--muted); margin-top: 10px; }

/* =====================================================================
   21. Webinar — compte rendu éditable
   ===================================================================== */
.wr-section { border: 1px solid var(--line); border-radius: 9px; padding: 10px 12px; margin-bottom: 9px; background: var(--surface-2); }
.wr-section h5 { margin: 0 0 5px; font-size: .78rem; display: flex; align-items: center; gap: 7px; }
.wr-section h5 .badge-auto { font-size: .6rem; font-weight: 700; padding: 1px 6px; border-radius: 99px; background: var(--ok-soft); color: var(--ok); }
.wr-section h5 .badge-empty { font-size: .6rem; font-weight: 700; padding: 1px 6px; border-radius: 99px; background: var(--warn-soft); color: var(--warn); }
.wr-section textarea { width: 100%; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); color: var(--ink); padding: 7px 9px; font: inherit; font-size: .78rem; resize: vertical; }
.wr-seg { display: flex; gap: 8px; font-size: .74rem; padding: 4px 0; border-bottom: 1px dashed var(--line); }
.wr-seg time { color: var(--brand); font-variant-numeric: tabular-nums; font-weight: 700; flex: 0 0 46px; }
.wr-seg .who { color: var(--muted); flex: 0 0 84px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.pc-ask { font-style: normal; color: var(--warn); font-weight: 600; }
.pc-status {
  margin-top: 6px; font-size: .68rem; padding: 2px 5px; border-radius: 6px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink-2);
  font-family: inherit; cursor: pointer; display: none;
}
.pc-opt.is-on .pc-status { display: block; }
.pc-summary {
  border: 1px dashed var(--line); border-radius: var(--radius-sm);
  padding: 10px 12px; font-size: .76rem; color: var(--ink-2); background: var(--surface-2);
}
.pc-summary strong { color: var(--ink); }
.pc-summary .pc-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.pc-summary .pc-tag {
  font-size: .68rem; padding: 2px 8px; border-radius: 99px;
  border: 1px solid var(--line); background: var(--surface);
}

/* =====================================================================
   Sélecteur compact en menus déroulants (inscription, affectations)
   ===================================================================== */
.pc-drops { display: flex; flex-direction: column; gap: 8px; }
.pc-drop {
  border: 1px solid var(--line); border-left: 4px solid var(--pc);
  border-radius: var(--radius-sm); background: var(--surface-2); overflow: hidden;
}
.pc-drop[open] { background: var(--surface); }
.pc-drop-sum {
  display: flex; align-items: center; gap: 8px; cursor: pointer;
  padding: 9px 12px; list-style: none; user-select: none;
}
.pc-drop-sum::-webkit-details-marker { display: none; }
.pc-drop-sum:hover { background: color-mix(in srgb, var(--pc) 7%, transparent); }
.pc-drop-label { font-size: .82rem; font-weight: 800; color: var(--pc); flex: 0 1 auto; }
.pc-drop-count {
  font-size: .68rem; font-weight: 800; color: var(--pc);
  background: color-mix(in srgb, var(--pc) 14%, transparent);
  padding: 2px 8px; border-radius: 99px;
}
.pc-drop-sum-total { font-size: .7rem; font-weight: 700; color: var(--ink-2); margin-left: auto; }
.pc-drop-chev { font-size: .7rem; color: var(--muted); transition: transform .16s; }
.pc-drop[open] .pc-drop-chev { transform: rotate(180deg); }
.pc-drop-body { padding: 0 12px 12px; border-top: 1px solid var(--line); }

/* =====================================================================
   Échéancier de paiement
   ===================================================================== */
.pay-terms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 6px; }
.pay-term {
  display: flex; flex-direction: column; gap: 2px; cursor: pointer; position: relative;
  border: 1px solid var(--line); border-radius: 10px; background: var(--surface);
  padding: 9px 11px; transition: border-color .12s, background .12s;
}
.pay-term:hover { border-color: color-mix(in srgb, var(--brand) 50%, transparent); }
.pay-term.is-on {
  border-color: var(--brand);
  background: color-mix(in srgb, var(--brand) 10%, var(--surface));
  box-shadow: inset 3px 0 0 var(--brand);
}
.pay-term input { position: absolute; opacity: 0; pointer-events: none; }
.pay-term-n { font-size: .84rem; font-weight: 800; color: var(--ink); padding-left: 18px; }
.pay-term.is-on .pay-term-n::before {
  content: '✓'; position: absolute; left: 10px; color: var(--brand); font-weight: 900;
}
.pay-term:not(.is-on) .pay-term-n::before {
  content: ''; position: absolute; left: 10px; top: 11px; width: 11px; height: 11px;
  border: 1.5px solid var(--line); border-radius: 50%;
}
.pay-term-amount { font-size: .74rem; font-weight: 700; color: var(--brand); padding-left: 18px; }
.pay-term-hint { font-size: .64rem; color: var(--muted); padding-left: 18px; line-height: 1.35; }
.pay-mandate {
  display: flex; gap: 8px; align-items: flex-start; margin-top: 10px;
  font-size: .72rem; color: var(--ink-2); line-height: 1.45;
}
.pay-mandate input { margin-top: 2px; accent-color: var(--brand); }
.sched { width: 100%; border-collapse: collapse; font-size: .74rem; margin-top: 8px; }
.sched th { text-align: left; font-size: .64rem; text-transform: uppercase; letter-spacing: .05em;
  color: var(--muted); padding: 6px 8px; border-bottom: 1px solid var(--line); }
.sched td { padding: 6px 8px; border-bottom: 1px solid var(--line); }
.sched .num { text-align: right; font-variant-numeric: tabular-nums; }
.sched tr.total td { font-weight: 800; border-bottom: 0; }

/* =====================================================================
   Lisibilité des documents contractuels — corps de texte 10 à 12 pt
   (demande BIM-FCS : agrandir la police du texte et des titres)
   ===================================================================== */
.doc-page { font-size: 11pt; line-height: 1.55; }
.doc-lead { font-size: 11pt; }
.doc-p { font-size: 11pt; }
.doc-h2 { font-size: 11pt; letter-spacing: .04em; margin: 18px 0 7px; }
.doc-table { font-size: 10.5pt; }
.doc-table th, .doc-table td { padding: 7px 9px; }
.doc-note { font-size: 10pt; }
.doc-legend { font-size: 9.5pt; }
.doc-list li { font-size: 11pt; margin-bottom: 4px; }
.doc-fill { font-size: 11pt; }
.doc-sign-title { font-size: 10.5pt; }
.doc-sign-row { font-size: 9.8pt; }
.doc-sign-hint { font-size: 9pt; }
.doc-co { font-size: 8.6pt; }
.doc-brand-sub { font-size: 9pt; }
.doc-person-name { font-size: 14pt; }
.doc-person-sub { font-size: 10pt; }
.doc-foot-legal { font-size: 8.6pt; }
.doc-ref { font-size: 9.5pt; }
.doc-title-band h1 { font-size: 17pt; }

/* Sommaire du dossier documentaire */
.doc-toc { font-size: 10.5pt; }
.doc-toc li { margin-bottom: 5px; }

/* Signature manuscrite scannée ou photographiée, apposée dans les documents */
.doc-sign-img {
  display: block; max-height: 54px; max-width: 200px; object-fit: contain;
  margin: 6px 0 2px;
}
.doc-sign-box { min-height: 118px; }
.doc-sign-placeholder {
  height: 42px; border-bottom: 1px solid #c9d2dc; margin: 6px 0 4px;
}
.doc-half { width: 100%; border-collapse: collapse; font-size: 9.5pt; }
.doc-half th, .doc-half td { border: 1px solid #c9d2dc; padding: 4px 5px; text-align: center; }
.doc-half th { background: #f2f5f9; font-size: 8.6pt; }
.doc-half td.lbl { text-align: left; font-size: 9pt; }
.doc-half .sign-cell { height: 26px; }

/* =====================================================================
   Ressources pédagogiques groupées par parcours puis par formation
   ===================================================================== */
.res-section { margin-bottom: 18px; }
.res-section-head { display: flex; align-items: center; gap: 9px; margin-bottom: 9px; }
.res-section-head h3 { margin: 0; font-size: .92rem; color: var(--pc); }
.res-cols {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 12px; align-items: start;
}
.res-col {
  border: 1px solid var(--line); border-top: 2px solid var(--pc);
  border-radius: 10px; background: var(--surface); padding: 10px 11px;
}
.res-col-head {
  display: flex; align-items: center; gap: 8px; margin-bottom: 7px;
  padding-bottom: 6px; border-bottom: 1px dashed var(--line);
}
.res-col-head strong { font-size: .78rem; flex: 1; }
.res-col-head span {
  font-size: .64rem; font-weight: 800; color: var(--pc);
  background: color-mix(in srgb, var(--pc) 14%, transparent); padding: 1px 7px; border-radius: 99px;
}
.res-line { display: flex; align-items: center; gap: 6px; padding: 5px 0; border-bottom: 1px solid var(--line); }
.res-line:last-child { border-bottom: 0; }
.res-line.is-off { opacity: .5; }
.res-line-main {
  display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0;
  text-decoration: none; color: inherit;
}
.res-line-main i { color: var(--pc); font-size: .78rem; width: 14px; text-align: center; }
.res-line-main span { min-width: 0; }
.res-line-main strong { display: block; font-size: .74rem; line-height: 1.25;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.res-line-main em { display: block; font-size: .64rem; color: var(--muted); font-style: normal; }
.res-line-actions { display: flex; gap: 3px; flex: 0 0 auto; }

/* =====================================================================
   Stratégie marketing et agent vocal
   ===================================================================== */
.mkt-grid { display: grid; grid-template-columns: 230px 1fr; gap: 14px; align-items: start; }
@media (max-width: 860px) { .mkt-grid { grid-template-columns: 1fr; } }
.mkt-list { display: flex; flex-direction: column; gap: 3px; }
.mkt-item {
  display: flex; align-items: center; gap: 8px; text-align: left; width: 100%;
  border: 1px solid transparent; background: transparent; color: var(--ink-2);
  font-size: .76rem; font-weight: 600; padding: 7px 9px; border-radius: 8px; cursor: pointer;
}
.mkt-item:hover { background: var(--surface-2); }
.mkt-item.active { background: color-mix(in srgb, var(--brand) 12%, transparent); color: var(--brand); border-color: color-mix(in srgb, var(--brand) 35%, transparent); }
.mkt-item i { width: 15px; text-align: center; }
.mkt-subject { font-size: .8rem; padding: 8px 10px; background: var(--surface-2); border-radius: 8px; margin-bottom: 8px; }
.voice-caps { display: flex; flex-wrap: wrap; gap: 6px; }
.voice-cap {
  display: inline-flex; align-items: center; gap: 6px; font-size: .7rem;
  border: 1px solid var(--line); border-radius: 99px; padding: 3px 10px; color: var(--ink-2);
  background: var(--surface-2);
}
.voice-cap i { color: var(--brand); font-size: .72rem; }

/* =====================================================================
   Dossier formateur — pièces jointes et revue
   ===================================================================== */
.upload-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 8px; }
@media (max-width: 720px) { .upload-grid { grid-template-columns: 1fr; } }
.upload-box {
  border: 1px dashed var(--line); border-radius: 10px; padding: 11px 12px;
  background: var(--surface-2); display: flex; flex-direction: column; gap: 6px; align-items: flex-start;
}
.ub-head { display: flex; align-items: center; gap: 8px; width: 100%; }
.ub-head strong { font-size: .78rem; flex: 1; }
.ub-head .mg-badge { font-size: .6rem; }
.sign-state { display: flex; flex-direction: column; gap: 2px; font-size: .72rem; }
.sign-state span { color: var(--muted); font-size: .66rem; text-transform: uppercase; letter-spacing: .05em; }
.review-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
@media (max-width: 860px) { .review-grid { grid-template-columns: 1fr; } }
.review-grid h4 { margin: 0 0 6px; font-size: .84rem; }

/* =====================================================================
   Agent vocal — fil de conversation
   ===================================================================== */
.vb-thread {
  border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2);
  padding: 10px 12px; max-height: 260px; overflow-y: auto; margin: 8px 0 10px;
  display: flex; flex-direction: column; gap: 8px;
}
.vb-turn { max-width: 86%; padding: 7px 10px; border-radius: 10px; font-size: .76rem; line-height: 1.45; }
.vb-turn.is-agent { background: color-mix(in srgb, var(--brand) 12%, var(--surface)); border-left: 3px solid var(--brand); }
.vb-turn.is-caller { align-self: flex-end; background: var(--surface); border-right: 3px solid var(--ok); }
.vb-who { display: block; font-size: .6rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: .06em; color: var(--muted); margin-bottom: 2px; }
.vb-turn p { margin: 0; }

/* Ressources verrouillées avant l'achat (fiche formation publique) */
.resource-card.is-locked {
  cursor: not-allowed; opacity: .82; position: relative;
  border-style: dashed; background: var(--surface-2);
}
.resource-card.is-locked:hover { transform: none; box-shadow: none; border-color: var(--line); }
.resource-card .resource-hint {
  display: block; font-size: .62rem; color: var(--warn); margin-top: 3px; font-weight: 600;
}
.resource-card.is-locked .resource-type i { color: var(--warn); }

/* =====================================================================
   Catalogue groupé par catégorie (formateur et gestionnaire)
   ===================================================================== */
.cat-group {
  border: 1px solid var(--line); border-left: 4px solid var(--pc);
  border-radius: 10px; background: var(--surface); padding: 10px 12px; margin-bottom: 12px;
}
.cat-group-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.cat-group-head h3 { margin: 0; font-size: .9rem; color: var(--pc); flex: 1; }
.row-list { display: flex; flex-direction: column; }
