/* AMOPY Dashboard — custom.css v10 (sidebar 6 items + homepage opiniâtré) */

:root {
    --pri: #1a4f7a;
    --pri-light: #2874a6;
    --acc: #0f766e;
    --green: #16a34a;
    --orange: #d97706;
    --red: #dc2626;
    --bg: #f8fafc;
    --bg-card: #ffffff;
    --sidebar: #1e293b;
    --sidebar-text: #cbd5e1;
    --text: #1e293b;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --border-strong: #cbd5e1;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
    --shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

* { box-sizing: border-box; }
[x-cloak] { display: none !important; }

html, body {
    margin: 0; padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 14px;
    color: var(--text);
    background: var(--bg);
    line-height: 1.5;
    height: 100%;
}

main { padding: 0; }
section { padding: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.25; color: var(--text); }
h1 { font-size: 28px; }
h2 { font-size: 20px; }
h3 { font-size: 16px; margin-bottom: 16px; }
h4 { font-size: 14px; margin-bottom: 10px; }
p { margin: 0; }
a { color: var(--pri); text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
small { font-size: 12px; color: var(--text-muted); }
ul { margin: 0; padding-left: 20px; }
details { padding: 4px 0; }
summary { cursor: pointer; padding: 8px 0; font-weight: 500; }
summary:hover { color: var(--pri); }
details[open] summary { color: var(--pri); }

.muted { color: var(--text-muted); }
.small { font-size: 13px; }

/* ─── Layout ─────────────────────────────────────────────────────────────── */
.layout {
    display: grid;
    grid-template-columns: 230px 1fr;
    min-height: 100vh;
}

/* Mobile burger + overlay */
.mobile-burger {
    display: none;
    position: fixed;
    top: 12px;
    right: 16px;
    z-index: 50;
    background: white;
    border: 1px solid var(--border-strong);
    width: 40px; height: 40px;
    border-radius: 8px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text);
    box-shadow: var(--shadow);
}
.mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15,23,42,0.4);
    z-index: 40;
}

@media (max-width: 800px) {
    .layout { grid-template-columns: 1fr; }
    .mobile-burger { display: flex; }
    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        width: 260px;
        z-index: 45;
        transform: translateX(-100%);
        transition: transform 0.25s ease;
        box-shadow: 4px 0 16px rgba(0,0,0,0.08);
    }
    .layout.mobile-menu-open .sidebar { transform: translateX(0); }
    .layout.mobile-menu-open .mobile-overlay { display: block; }
    .main-content { padding: 60px 16px 32px !important; max-width: 100% !important; }
    .greeting-title { font-size: 22px !important; }
    .filters-row { gap: 12px; }
    .kpi-grid-6 { grid-template-columns: repeat(2, 1fr) !important; }
    .hub-timeline { overflow-x: auto; padding-bottom: 8px; }
    .table-wrap { font-size: 12px; }
    .drawer { width: 100% !important; max-width: 100% !important; }
    .drawer-content { padding: 16px !important; }
    .demo-banner { flex-wrap: wrap; }
    .demo-banner-cta { width: 100%; text-align: center; }
}

/* ─── Sidebar ────────────────────────────────────────────────────────────── */
.sidebar {
    background: var(--sidebar);
    color: var(--sidebar-text);
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
}
.sidebar-brand {
    padding: 0 20px 24px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 16px;
}
.logo-circle {
    width: 38px; height: 38px;
    background: var(--pri-light);
    color: white;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700;
    font-size: 17px;
    flex-shrink: 0;
}
.logo-img {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    object-fit: cover;
    background: white;
    flex-shrink: 0;
}
.brand-block { min-width: 0; }
.brand-name { color: white; font-weight: 600; font-size: 15px; }
.brand-sub { color: var(--sidebar-text); font-size: 11px; opacity: 0.7; }

.sidebar-nav { flex: 1; padding: 0 12px; }
.nav-section-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.35);
    padding: 14px 12px 6px;
}
.nav-section-label:first-child { padding-top: 2px; }
.badge-new.badge-soft { background: rgba(255,255,255,0.16); color: rgba(255,255,255,0.85); }
.powered-by {
    margin-top: 8px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.35);
}
.powered-by strong { color: rgba(255, 255, 255, 0.6); font-weight: 600; }
.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    color: var(--sidebar-text);
    border-radius: 6px;
    font-size: 14px;
    margin-bottom: 2px;
    transition: background 0.15s, color 0.15s;
    position: relative;
}
.sidebar-nav a:hover { background: rgba(255, 255, 255, 0.06); color: white; }
.sidebar-nav a.active { background: var(--pri); color: white; }
.sidebar-nav a svg { width: 18px; height: 18px; fill: currentColor; flex-shrink: 0; }
.badge-new {
    position: absolute;
    right: 12px;
    background: var(--orange);
    color: white;
    font-size: 10px;
    font-weight: 700;
    width: 16px; height: 16px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
}

.sidebar-footer {
    padding: 12px 16px 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}
.sidebar-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 8px 12px;
    margin: 0 -4px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.sidebar-user-avatar {
    width: 30px; height: 30px;
    background: var(--pri-light);
    color: white;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 600;
    font-size: 13px;
    flex-shrink: 0;
}
.sidebar-user-meta { flex: 1; min-width: 0; }
.sidebar-user-email {
    color: rgba(255,255,255,0.85);
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sidebar-user-role { margin-top: 2px; }
.role-badge {
    display: inline-block;
    padding: 1px 7px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.6);
}
.role-badge.role-admin { background: rgba(15,118,110,0.25); color: #6ee7b7; }
.role-badge.role-demo { background: rgba(217,119,6,0.25); color: #fcd34d; }
.sidebar-logout {
    background: none;
    border: none;
    color: rgba(255,255,255,0.4);
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
    transition: background 0.15s, color 0.15s;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.sidebar-logout:hover { background: rgba(255,255,255,0.08); color: white; }
.sync-info { display: flex; align-items: center; gap: 6px; }
.sync-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--text-muted);
}
.sync-dot.sync-green { background: var(--green); animation: pulse 2s infinite; }
.sync-dot.sync-orange { background: var(--orange); }
.sync-dot.sync-red { background: var(--red); }
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* ─── Main content ───────────────────────────────────────────────────────── */
.main-content { padding: 32px 40px; max-width: 1400px; }
.page-header { margin-bottom: 24px; }
.page-header h1 { margin-bottom: 4px; }
.page-header p { font-size: 13px; }

/* ─── ACCUEIL : Bandeau mode démo ────────────────────────────────────────── */
.demo-banner {
    display: flex;
    align-items: center;
    gap: 16px;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 1px solid #f59e0b;
    border-radius: 10px;
    padding: 14px 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 6px rgba(245,158,11,0.12);
}
.demo-banner-icon {
    width: 36px; height: 36px;
    background: #f59e0b;
    color: white;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}
.demo-banner-body { flex: 1; }
.demo-banner-title {
    font-weight: 600;
    color: #92400e;
    font-size: 14px;
    margin-bottom: 2px;
}
.demo-banner-sub {
    font-size: 13px;
    color: #78350f;
}
.demo-banner-cta {
    background: #92400e;
    color: white;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    flex-shrink: 0;
    transition: background 0.15s;
}
.demo-banner-cta:hover { background: #78350f; color: white; }

/* ─── ACCUEIL : En-tête salutation ───────────────────────────────────────── */
.page-greeting {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}
.greeting-date {
    font-size: 13px;
    color: var(--text-muted);
    text-transform: capitalize;
    margin-bottom: 4px;
    letter-spacing: 0.01em;
}
.greeting-title {
    font-size: 28px;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 6px 0;
    line-height: 1.2;
}
.greeting-sub {
    font-size: 14px;
    color: var(--text-muted);
    margin: 0;
}
.greeting-side-stats {
    display: flex;
    gap: 28px;
    flex-shrink: 0;
}
.side-stat {
    text-align: right;
    min-width: 130px;
}
.side-stat-val {
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
    line-height: 1;
    margin-bottom: 4px;
}
.side-stat-unit {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
    margin-left: 2px;
}
.side-stat-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}

/* ─── ACCUEIL : Empty state mode démo ────────────────────────────────────── */
.empty-demo {
    background: white;
    border: 1px dashed var(--border-strong);
    border-radius: 10px;
    padding: 40px 32px;
    text-align: center;
    margin-bottom: 24px;
}
.empty-demo-icon {
    width: 56px; height: 56px;
    margin: 0 auto 16px;
    background: var(--bg);
    color: var(--acc);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 24px;
}
.empty-demo h2 {
    font-size: 20px;
    margin-bottom: 10px;
}
.empty-demo p {
    color: var(--text-muted);
    font-size: 14px;
    max-width: 540px;
    margin: 0 auto 16px;
    line-height: 1.6;
}
.empty-demo ul {
    text-align: left;
    max-width: 540px;
    margin: 0 auto 24px;
    color: var(--text);
    font-size: 14px;
    line-height: 1.8;
    list-style: none;
    padding: 0;
}
.empty-demo ul li {
    padding-left: 18px;
    position: relative;
}
.empty-demo ul li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--acc);
    font-weight: 700;
}

.btn-primary.inline {
    display: inline-block;
    padding: 11px 22px;
    font-size: 14px;
    text-decoration: none;
    cursor: pointer;
}

/* ─── Section head : titre + sub à droite ────────────────────────────────── */
.section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}
.section-head h3 { margin: 0; }
.section-sub {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 400;
}
.section-link {
    font-size: 13px;
    color: var(--pri);
    font-weight: 500;
    text-decoration: none;
    transition: color 0.15s;
}
.section-link:hover { color: var(--pri-light); text-decoration: underline; }
@media (max-width: 900px) {
    .page-greeting { flex-direction: column; align-items: flex-start; gap: 16px; }
    .greeting-side-stats { width: 100%; justify-content: flex-start; }
    .side-stat { text-align: left; min-width: auto; }
}

/* ─── ACCUEIL : Alertes ──────────────────────────────────────────────────── */
.alerts-zone {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.alert-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    border-radius: 8px;
    background: white;
    border-left: 4px solid var(--orange);
    box-shadow: var(--shadow-sm);
}
.alert-card.alert-red { border-left-color: var(--red); background: #fef2f2; }
.alert-card.alert-orange { border-left-color: var(--orange); background: #fffbeb; }
.alert-card.alert-success { border-left-color: var(--green); background: #f0fdf4; }
.alert-icon { font-size: 22px; flex-shrink: 0; }
.alert-content { flex: 1; }
.alert-title { font-weight: 600; font-size: 14px; }
.alert-desc { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.alert-action {
    background: var(--pri);
    color: white;
    border: none;
    padding: 7px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
}
.alert-action:hover { background: var(--pri-light); }

/* ─── ACCUEIL : Cards sessions ───────────────────────────────────────────── */
.section-block {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
}
.session-cards {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.session-card {
    display: grid;
    grid-template-columns: 70px 1fr auto;
    gap: 18px;
    align-items: center;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s;
    background: white;
}
.session-card:hover { border-color: var(--pri-light); box-shadow: var(--shadow); }
.session-card-date {
    text-align: center;
    background: var(--bg);
    border-radius: 6px;
    padding: 10px 6px;
    line-height: 1;
}
.date-day-big { font-size: 24px; font-weight: 700; color: var(--text); }
.date-month-big { font-size: 11px; color: var(--text-muted); text-transform: uppercase; margin-top: 4px; }
.session-card-title {
    font-weight: 500;
    font-size: 15px;
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 6px;
}
.session-card-meta {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    gap: 16px;
    margin-bottom: 10px;
}
.session-card-meta .paiement-warn { color: var(--orange); font-weight: 500; }
.session-card-progress {
    display: flex;
    align-items: center;
    gap: 10px;
}
.session-card-progress .progress-bar { flex: 1; max-width: 200px; }
.progress-label { font-size: 11px; color: var(--text-muted); font-weight: 500; min-width: 90px; }
.session-card-status { text-align: right; }

/* ─── ACCUEIL : CTA Formateur ─────────────────────────────────────────────── */
.formateur-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 16px 20px;
    background: #eff6ff;
    border-left: 4px solid var(--pri);
    border-radius: 8px;
    margin-bottom: 20px;
}
.formateur-cta-title { font-weight: 600; font-size: 14px; }
.formateur-cta-sub { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

/* ─── ACCUEIL : 3 chiffres mensuels ──────────────────────────────────────── */
.monthly-numbers {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
.monthly-stat {
    background: white;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 16px 20px;
    text-align: left;
    box-shadow: var(--shadow-sm);
}
.monthly-label {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 6px;
    font-weight: 500;
}
.monthly-value { font-size: 22px; font-weight: 700; color: var(--text); }
.monthly-unit { font-size: 14px; color: var(--text-muted); font-weight: 500; margin-left: 4px; }

/* ─── Status badges ──────────────────────────────────────────────────────── */
.status-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.status-planifiee { background: #dbeafe; color: #1e40af; }
.status-en_cours { background: #fef3c7; color: #92400e; }
.status-terminee { background: #f1f5f9; color: var(--text-muted); }
.status-annulee { background: #fee2e2; color: #991b1b; }

/* ─── Formation tag ──────────────────────────────────────────────────────── */
.formation-tag {
    display: inline-block;
    background: var(--pri);
    color: white;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 4px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* ─── Recherche (Sessions) ───────────────────────────────────────────────── */
.search-row {
    display: flex;
    align-items: center;
    gap: 10px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 4px 14px;
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
    max-width: 560px;
}
.search-row:focus-within { border-color: var(--pri-light); box-shadow: 0 0 0 3px rgba(40,116,166,0.10); }
.search-icon { color: var(--text-muted); flex-shrink: 0; }
.search-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 8px 0;
    font-size: 14px;
    font-family: inherit;
    background: transparent;
    color: var(--text);
}
.search-clear {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 13px;
    padding: 4px 6px;
    border-radius: 4px;
}
.search-clear:hover { background: var(--bg); color: var(--text); }
.search-results { border-left: 3px solid var(--acc); }

/* ─── Tri colonne ────────────────────────────────────────────────────────── */
.th-sortable { cursor: pointer; user-select: none; }
.th-sortable:hover { color: var(--text); }

/* ─── Barre neutre (QCM avant sur session à venir) ───────────────────────── */
.progress-bar-fill.fill-neutral { background: var(--pri-light); }

/* ─── Impayés (Paiements) ────────────────────────────────────────────────── */
.impayes-block { border-left: 3px solid var(--orange); }
.impayes-count {
    display: inline-block;
    background: var(--orange);
    color: white;
    font-size: 12px;
    font-weight: 700;
    padding: 1px 8px;
    border-radius: 10px;
    margin-left: 6px;
    vertical-align: middle;
}
.impayes-total { font-size: 13px; color: var(--text-muted); }
.impayes-total strong { color: var(--orange); font-size: 15px; }

/* ─── Espace Formateur : bloc préparation (action n°1) ───────────────────── */
.formateur-prep { border-left: 3px solid var(--pri); }

/* ─── Page Mon site ──────────────────────────────────────────────────────── */
.publish-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bg);
    border: 1px solid var(--border-strong);
    border-radius: 16px;
    padding: 3px 10px 3px 3px;
    cursor: pointer;
    transition: all 0.15s;
}
.publish-toggle .publish-knob {
    width: 18px; height: 18px;
    border-radius: 50%;
    background: var(--text-muted);
    transition: background 0.15s;
}
.publish-toggle .publish-label { font-size: 12px; font-weight: 600; color: var(--text-muted); }
.publish-toggle.on { background: #ecfdf5; border-color: var(--green); }
.publish-toggle.on .publish-knob { background: var(--green); }
.publish-toggle.on .publish-label { color: var(--green); }

.site-config-form { max-width: 680px; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cfg-field { margin-bottom: 14px; }
.cfg-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 5px;
}
.cfg-field input, .cfg-field select, .cfg-field textarea {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid var(--border-strong);
    border-radius: 7px;
    font-size: 14px;
    font-family: inherit;
    background: white;
    color: var(--text);
}
.cfg-field input:focus, .cfg-field select:focus, .cfg-field textarea:focus {
    outline: none;
    border-color: var(--pri-light);
    box-shadow: 0 0 0 3px rgba(40,116,166,0.10);
}

.new-session-modal {
    position: fixed;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 12px;
    padding: 28px;
    width: 480px;
    max-width: 92vw;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 101;
    box-shadow: 0 20px 50px rgba(15,23,42,0.25);
}
@media (max-width: 800px) {
    .form-grid-2 { grid-template-columns: 1fr; }
}

/* ─── Automatisations ────────────────────────────────────────────────────── */
.auto-flux-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}
.auto-flux-card {
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 16px 18px;
    background: white;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: opacity 0.15s;
}
.auto-flux-card.off { opacity: 0.55; background: var(--bg); }
.auto-flux-head { display: flex; align-items: center; justify-content: space-between; }
.auto-flux-icon { font-size: 22px; }
.auto-flux-title { font-weight: 600; font-size: 14px; }
.auto-flux-meta { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.03em; }
.auto-flux-sujet {
    font-size: 12px; color: var(--text-muted);
    border-left: 2px solid var(--border-strong);
    padding-left: 8px; margin: 2px 0 4px;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.auto-flux-card .btn-small { align-self: flex-start; }

/* Vue d'ensemble : process map horizontal */
.process-overview {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 6px;
}
.process-step {
    flex: 1;
    min-width: 92px;
    text-align: center;
    position: relative;
    padding-top: 6px;
}
.process-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 26px;
    left: 60%;
    width: 80%;
    height: 2px;
    background: var(--border);
}
.process-dot {
    width: 42px; height: 42px;
    margin: 0 auto 8px;
    border-radius: 50%;
    background: var(--pri-pale, #f0fdfa);
    border: 2px solid var(--pri-light);
    display: flex; align-items: center; justify-content: center;
    font-size: 19px;
    position: relative;
    z-index: 1;
}
.process-step.milestone .process-dot {
    background: var(--pri);
    border-color: var(--pri);
    color: white;
}
.process-step.off { opacity: 0.4; }
.process-step.off .process-dot { border-style: dashed; }
.process-label { font-size: 12px; font-weight: 600; line-height: 1.3; }
.process-when { font-size: 10px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.03em; margin-top: 2px; }
@media (max-width: 700px) { .process-step { min-width: 84px; } }
.auto-flux-incl { display: flex; flex-direction: column; gap: 4px; padding: 6px 0; border-top: 1px solid var(--border); }
.incl-check { font-size: 12px; color: var(--text); display: flex; align-items: center; gap: 6px; cursor: pointer; }

/* Espace Formateur — questionnaires & ressources */
.formateur-quest { margin-top: 6px; }
.quest-link-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.quest-link-card {
    border: 1px solid var(--border); border-radius: 8px; padding: 10px 14px;
    display: flex; align-items: center; justify-content: space-between; gap: 10px; background: white;
}
.quest-link-info { display: flex; flex-direction: column; }
.quest-link-type { font-weight: 600; font-size: 13px; }
.quest-link-actions { display: flex; gap: 6px; flex-shrink: 0; }
.formateur-sub { margin-top: 22px; }
.formateur-sub h4 { margin-bottom: 4px; }
.res-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.res-tile {
    display: flex; flex-direction: column; gap: 2px;
    border: 1px solid var(--border); border-radius: 10px;
    padding: 14px 16px; background: white; text-decoration: none;
    color: var(--text); cursor: pointer; text-align: left; font-family: inherit;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.res-tile:hover { border-color: var(--pri-light); box-shadow: var(--shadow-sm); }
.res-tile-icon { font-size: 22px; }
.res-tile-label { font-weight: 600; font-size: 14px; }
.res-tile-sub { font-size: 12px; color: var(--text-muted); }
.res-tile.wa:hover { border-color: #86efac; }
.res-tile.action { background: var(--pri-pale, #f0fdfa); border-color: var(--pri-light); }
.ponctuel-files { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.ponctuel-file {
    background: var(--bg); border: 1px solid var(--border); border-radius: 14px;
    padding: 4px 10px; font-size: 12px; display: inline-flex; align-items: center; gap: 6px;
}
.ponctuel-file button { background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 12px; }
.ponctuel-file button:hover { color: var(--red); }
@media (max-width: 700px) { .res-tiles { grid-template-columns: 1fr; } }
.formateur-res-links { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.res-link {
    display: inline-flex; align-items: center; gap: 6px;
    background: var(--bg); border: 1px solid var(--border); border-radius: 8px;
    padding: 8px 14px; font-size: 13px; font-weight: 500; color: var(--text); text-decoration: none;
}
.res-link:hover { border-color: var(--pri-light); }
.res-link.wa { background: #f0fdf4; border-color: #86efac; color: #15803d; }
/* Éditeur de texte riche (Trix) */
trix-editor.trix-content {
    min-height: 160px;
    border: 1px solid var(--border-strong);
    border-radius: 0 0 8px 8px;
    padding: 12px 14px;
    font-size: 14px;
    background: white;
}
trix-editor.trix-content:focus { outline: none; border-color: var(--pri-light); box-shadow: 0 0 0 3px rgba(40,116,166,0.10); }
trix-toolbar .trix-button-group--file-tools { display: none; }  /* pas d'upload dans les emails */
trix-toolbar .trix-button-group { border-radius: 8px 8px 0 0; }
trix-toolbar { margin-bottom: 0; }
.rt-varbar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 8px; }
.rt-var {
    background: var(--bg); border: 1px solid var(--border-strong); border-radius: 5px;
    padding: 3px 8px; font-size: 12px; font-family: 'JetBrains Mono', monospace; cursor: pointer; color: var(--pri-dark, var(--pri));
}
.rt-var:hover { background: var(--pri-pale, #f0fdfa); border-color: var(--pri-light); }

.formation-editor-modal { width: 640px; max-width: 94vw; }
.obj-row { display: flex; gap: 8px; align-items: center; margin-bottom: 6px; }
.obj-row input { flex: 1; }
.btn-danger-link { background: none; border: none; color: var(--red); font-size: 13px; font-weight: 500; cursor: pointer; padding: 6px 8px; }
.btn-danger-link:hover { text-decoration: underline; }
.formation-res-row { border: 1px solid var(--border); border-radius: 8px; padding: 14px 16px; margin-bottom: 12px; }
.formation-res-head { font-weight: 600; font-size: 14px; margin-bottom: 10px; }
@media (max-width: 700px) { .quest-link-grid { grid-template-columns: 1fr; } }

.auto-timeline { display: flex; flex-direction: column; gap: 0; position: relative; }
.auto-tl-step { display: flex; gap: 16px; padding-bottom: 22px; position: relative; }
.auto-tl-step:not(:last-child)::before {
    content: ''; position: absolute; left: 19px; top: 40px; bottom: 0;
    width: 2px; background: var(--border);
}
.auto-tl-step.done:not(:last-child)::before { background: var(--green); }
.auto-tl-dot {
    width: 40px; height: 40px; flex-shrink: 0;
    border-radius: 50%; background: var(--bg);
    border: 2px solid var(--border-strong);
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; z-index: 1;
}
.auto-tl-step.done .auto-tl-dot { background: #f0fdf4; border-color: var(--green); }
.auto-tl-step.inactive .auto-tl-dot { opacity: 0.5; }
.auto-tl-body { flex: 1; padding-top: 2px; }
.auto-tl-title { font-weight: 600; font-size: 14px; display: flex; align-items: center; gap: 10px; }
.auto-tl-when { font-size: 11px; font-weight: 500; color: var(--text-muted); background: var(--bg); padding: 2px 8px; border-radius: 10px; text-transform: uppercase; letter-spacing: 0.03em; }
.auto-tl-status { font-size: 13px; margin-top: 3px; }
.auto-tl-count { color: var(--green); font-weight: 600; }
.auto-tl-sim { color: var(--text-muted); font-weight: 400; }
.auto-tl-emails { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.auto-tl-email {
    background: var(--bg); border: 1px solid var(--border);
    border-radius: 14px; padding: 3px 10px; font-size: 12px;
    color: var(--text); cursor: pointer; display: inline-flex; gap: 4px; align-items: center;
}
.auto-tl-email:hover { border-color: var(--pri-light); background: white; }

.email-preview-modal { width: 640px; max-width: 94vw; }
.email-preview-head { border-bottom: 1px solid var(--border); padding-bottom: 14px; margin-bottom: 16px; padding-right: 40px; }
.email-preview-meta { font-size: 13px; display: flex; flex-direction: column; gap: 6px; }
.email-preview-body {
    background: var(--bg); border: 1px solid var(--border); border-radius: 8px;
    padding: 20px 24px; font-size: 14px; line-height: 1.6; max-height: 50vh; overflow-y: auto;
}
.email-preview-body p { margin-bottom: 10px; }
@media (max-width: 900px) { .auto-flux-grid { grid-template-columns: 1fr; } }

/* ─── Éditeur de questionnaires ──────────────────────────────────────────── */
.q-editor-modal { width: 640px; }
.q-edit-card {
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px 14px;
    margin-bottom: 10px;
    background: white;
}
.q-edit-card.q-locked { background: var(--bg); border-style: dashed; }
.q-edit-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.q-edit-type {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: var(--pri);
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
}
.q-locked .q-edit-type { background: var(--text-muted); }
.q-lock-badge { font-size: 11px; color: var(--text-muted); font-weight: 600; }
.q-edit-locked-label { font-size: 13px; color: var(--text); }
.q-edit-label {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid var(--border-strong);
    border-radius: 6px;
    font-size: 13px;
    font-family: inherit;
    margin-bottom: 8px;
}
.q-edit-opt { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.q-edit-opt input[type=text] {
    flex: 1;
    padding: 6px 10px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 13px;
    font-family: inherit;
}
.q-edit-opt input[type=radio] { accent-color: var(--green); }

/* ─── Checklist Jour J éditable ──────────────────────────────────────────── */
.hub-checklist.editable li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 7px 6px;
    border-radius: 6px;
    transition: background 0.15s, opacity 0.15s;
    position: relative;
}
.hub-checklist.editable li:not(.auto):hover { background: var(--bg); }
.hub-checklist.editable li.dragging { opacity: 0.4; background: #eff6ff; }
.cl-handle {
    cursor: grab;
    color: var(--border-strong);
    font-size: 13px;
    line-height: 1.5;
    flex-shrink: 0;
    user-select: none;
}
.hub-checklist.editable li:hover .cl-handle { color: var(--text-muted); }
.cl-handle:active { cursor: grabbing; }
.hub-checklist.editable input[type="checkbox"] { margin-top: 3px; flex-shrink: 0; }
.cl-text { flex: 1; font-size: 13px; line-height: 1.5; }
.cl-text.cl-done { text-decoration: line-through; color: var(--text-muted); }
.cl-delete {
    background: none;
    border: none;
    color: transparent;
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 4px;
    flex-shrink: 0;
    cursor: pointer;
    transition: color 0.15s, background 0.15s;
}
.hub-checklist.editable li:hover .cl-delete { color: var(--text-muted); }
.cl-delete:hover { color: var(--red) !important; background: #fef2f2; }
.cl-add-row {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    padding-left: 6px;
}
.cl-add-input {
    flex: 1;
    border: 1px dashed var(--border-strong);
    border-radius: 6px;
    padding: 7px 10px;
    font-size: 13px;
    font-family: inherit;
    background: transparent;
    color: var(--text);
}
.cl-add-input:focus { outline: none; border-color: var(--pri-light); border-style: solid; background: white; }
.cl-add-btn { padding: 6px 12px; font-size: 12px; white-space: nowrap; }
.cl-add-btn:disabled { opacity: 0.45; cursor: not-allowed; }

/* ─── Filters chips ──────────────────────────────────────────────────────── */
.filters-row {
    display: flex;
    gap: 24px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.chip-group { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
    background: white;
    border: 1px solid var(--border);
    color: var(--text);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.15s;
}
.chip:hover { border-color: var(--border-strong); }
.chip.active { background: var(--pri); color: white; border-color: var(--pri); }
.chip-count {
    background: rgba(255, 255, 255, 0.2);
    color: inherit;
    font-size: 11px;
    padding: 1px 6px;
    border-radius: 8px;
    margin-left: 4px;
}
.chip:not(.active) .chip-count { background: var(--border); color: var(--text-muted); }
.chip-formation.active { background: var(--acc); border-color: var(--acc); }

/* ─── Tables ─────────────────────────────────────────────────────────────── */
.table-wrap {
    background: white;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    overflow-x: auto;
}
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.data-table thead th {
    background: var(--bg);
    text-align: left;
    padding: 10px 12px;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--border);
}
.data-table tbody td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr.row-clickable { cursor: pointer; transition: background 0.15s; }
.data-table tbody tr.row-clickable:hover { background: var(--bg); }
.data-table.compact td { padding: 6px 8px; font-size: 12px; }
.cell-mono { font-family: 'JetBrains Mono', 'Courier New', monospace; font-size: 12px; color: var(--text-muted); }
.cell-sub { font-size: 11px; }
.row-statut-absent { opacity: 0.5; }
.row-statut-annule { opacity: 0.4; text-decoration: line-through; }
.row-obsolete { opacity: 0.55; background: var(--bg); }
.row-obsolete td:first-child { font-style: italic; }

/* ─── Metric pills ───────────────────────────────────────────────────────── */
.metric-pill {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 4px;
    min-width: 42px;
    text-align: center;
}
.metric-pill.metric-good { background: #dcfce7; color: var(--green); }
.metric-pill.metric-warn { background: #fef3c7; color: var(--orange); }
.metric-pill.metric-bad { background: #fee2e2; color: var(--red); }
.metric-pill.metric-empty { background: var(--bg); color: var(--text-muted); }

/* ─── Conformité badge ───────────────────────────────────────────────────── */
.conformite-badge {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    min-width: 50px;
    text-align: center;
}
.conformite-badge.conf-good { background: #dcfce7; color: var(--green); }
.conformite-badge.conf-warn { background: #fef3c7; color: var(--orange); }
.conformite-badge.conf-bad { background: #fee2e2; color: var(--red); }

/* ─── PAIEMENTS : Finance grid ───────────────────────────────────────────── */
.finance-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}
.finance-grid.finance-grid-5 {
    grid-template-columns: repeat(5, 1fr);
}
@media (max-width: 1200px) {
    .finance-grid.finance-grid-5 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 800px) {
    .finance-grid.finance-grid-5 { grid-template-columns: repeat(2, 1fr); }
}
.finance-card.fin-financements { border-top: 3px solid var(--acc); }

/* Badge info pour "Financements en cours" */
.badge-info {
    display: inline-block;
    background: #dbeafe;
    color: #1e40af;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
    cursor: help;
}
.finance-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 20px;
    box-shadow: var(--shadow-sm);
}
.finance-label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
    margin-bottom: 8px;
}
.finance-value { font-size: 28px; font-weight: 700; color: var(--text); line-height: 1; margin-bottom: 4px; }
.finance-sub { font-size: 12px; }
.finance-card.fin-direct { border-top: 3px solid var(--pri); }
.finance-card.fin-dpc { border-top: 3px solid var(--green); }
.finance-card.fin-faf_pm { border-top: 3px solid var(--orange); }

/* ─── ESPACE FORMATEUR ───────────────────────────────────────────────────── */
.formateur-selector {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding: 14px 18px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}
.formateur-selector label { font-weight: 500; font-size: 14px; }
.formateur-selector select {
    flex: 1;
    max-width: 500px;
    padding: 8px 12px;
    border: 1px solid var(--border-strong);
    border-radius: 6px;
    font-size: 14px;
    background: white;
}
.badge-auto {
    background: var(--green);
    color: white;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
}
.formateur-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}
.formateur-after { background: #f0fdf4; border-color: var(--green); }

/* ─── CONFORMITÉ : qualiopi grid ─────────────────────────────────────────── */
.qualiopi-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}
.qualiopi-secondary-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

/* ─── ACCUEIL : KPI grid 6 cards (I1) ─────────────────────────────────────── */
.kpi-grid-6 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
@media (min-width: 1200px) {
    .kpi-grid-6 { grid-template-columns: repeat(6, 1fr); }
}
@media (max-width: 700px) {
    .kpi-grid-6 { grid-template-columns: repeat(2, 1fr); }
}
.kpi-stat {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 14px 16px;
    box-shadow: var(--shadow-sm);
}
.kpi-stat .kpi-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 6px;
    font-weight: 600;
}
.kpi-stat .kpi-value {
    font-size: 26px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.1;
}
.kpi-stat .kpi-sub {
    font-size: 11px;
    margin-top: 4px;
}

/* Alerte info bleue (drawer financements en cours) */
.hub-alert.hub-alert-blue {
    background: #dbeafe;
    border-left: 3px solid var(--pri);
    color: #1e40af;
}

/* Year tabs (Conformité — sélecteur d'année) */
.year-tabs {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    padding: 12px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    flex-wrap: wrap;
}
.year-tabs-label {
    color: var(--text-muted);
    font-size: 13px;
    margin-right: 4px;
}
.year-tab {
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 7px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
}
.year-tab:hover { border-color: var(--pri-light); }
.year-tab.active {
    background: var(--pri);
    color: white;
    border-color: var(--pri);
}

/* Page Relances */
.relances-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.relances-actions button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

/* N° stagiaire — cliquable pour copier */
.ref-stagiaire {
    cursor: pointer;
    color: var(--pri);
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(26, 79, 122, 0.07);
    transition: background 0.15s;
    display: inline-block;
}
.ref-stagiaire:hover {
    background: rgba(26, 79, 122, 0.15);
}

/* Bloc relance QCM dans Espace Formateur (Phase A) */
.qcm-relance-block {
    background: #fffbeb;
    border: 1px solid #fef3c7;
    border-left: 4px solid var(--orange);
    border-radius: 8px;
    padding: 14px 18px;
    margin-top: 20px;
}
.qcm-relance-block-apres {
    background: #eff6ff;
    border-color: #bfdbfe;
    border-left-color: var(--pri);
}
.qcm-relance-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 10px;
}
.qcm-relance-icon { font-size: 20px; }
.qcm-relance-header > div:nth-child(2) { flex: 1; }
.qcm-relance-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.qcm-relance-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 0;
    border-bottom: 1px dashed var(--border);
    font-size: 13px;
}
.qcm-relance-list li:last-child { border-bottom: none; }
.qcm-relance-list li > .ref-stagiaire { min-width: 130px; }

/* FAB Export Excel (point 7) */
.fab-export {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: var(--green);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(22, 163, 74, 0.35);
    z-index: 90;
    transition: all 0.2s;
}
.fab-export:hover {
    background: #15803d;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(22, 163, 74, 0.45);
}

/* Tab badge (count) */
.tab-badge {
    display: inline-block;
    background: var(--pri);
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 8px;
    margin-left: 4px;
    vertical-align: 1px;
}

/* Formation tag spécial pour SOMOC sans LLA (point 13b) */
.formation-tag.formation-tag-warn {
    background: var(--orange);
}

/* Avis stagiaires (point 14) */
.avis-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.avis-card {
    background: white;
    border: 1px solid var(--border);
    border-left: 3px solid var(--acc);
    border-radius: 8px;
    padding: 14px 18px;
}
.avis-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}
.avis-note {
    background: #eff6ff;
    color: var(--pri);
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 14px;
}
.avis-text {
    color: var(--text);
    font-style: italic;
    line-height: 1.5;
    margin: 0;
}

/* Total cumulé Paiements (point 10) */
.section-block.pay-global {
    background: linear-gradient(135deg, #1a4f7a 0%, #2874a6 100%);
    color: white;
    border: none;
}
.section-block.pay-global h3 { color: white; }
.pay-global-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 12px;
}
.pay-global-grid > div { text-align: center; }
.pay-global-grid > div .muted { color: rgba(255,255,255,0.7); }
.pay-global-grid > div strong {
    font-size: 24px;
    color: white;
    display: block;
    margin-top: 4px;
}

/* Filtre formation dans le bloc critères */
.critere-filter {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 13px;
}
.critere-filter select {
    padding: 6px 10px;
    border: 1px solid var(--border-strong);
    border-radius: 6px;
    font-size: 13px;
    background: white;
    min-width: 220px;
}

/* Toggle formations (inclure/exclure des stats Conformité) */
.formation-toggles {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    margin: 12px 0 16px;
    padding: 12px 14px;
    background: var(--bg);
    border-radius: 8px;
}
.formation-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 12px;
}
.formation-toggle input[type="checkbox"] { cursor: pointer; }
.formation-tag-off { opacity: 0.4; text-decoration: line-through; }

/* Affichage progression QCM dans la card Ind. 11 */
.qcm-progression {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-muted);
}
.qcm-prog-num {
    background: var(--bg);
    padding: 4px 10px;
    border-radius: 6px;
    color: var(--text);
}
.qcm-prog-arrow {
    font-size: 22px;
    color: var(--pri);
}
@media (min-width: 1100px) {
    .qualiopi-grid { grid-template-columns: repeat(4, 1fr); }
}
.qualiopi-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 20px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.qualiopi-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}
.qualiopi-title { font-weight: 600; font-size: 14px; line-height: 1.3; }
.qualiopi-num {
    font-size: 11px;
    color: var(--text-muted);
    background: var(--bg);
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 500;
    cursor: help;
}
.progress-circle {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
.progress-bar {
    width: 100%;
    height: 10px;
    border-radius: 5px;
    overflow: hidden;
}
.progress-bar.conf-bg { background: var(--border); }
.progress-bar-fill {
    height: 100%;
    transition: width 0.4s ease;
    border-radius: 5px;
}
.progress-bar-fill.conf-good { background: var(--green); }
.progress-bar-fill.conf-warn { background: var(--orange); }
.progress-bar-fill.conf-bad { background: var(--red); }
.progress-value {
    font-size: 26px;
    font-weight: 700;
    color: var(--text);
}
.progress-value small { font-size: 14px; color: var(--text-muted); font-weight: 500; }
.qualiopi-desc { font-size: 12px; line-height: 1.4; }

.weakness-tag {
    display: inline-block;
    background: #fee2e2;
    color: var(--red);
    font-size: 11px;
    font-weight: 500;
    padding: 2px 6px;
    border-radius: 4px;
    margin-right: 4px;
    margin-bottom: 2px;
}

.empty-state, .empty-state-cell {
    padding: 40px;
    text-align: center;
    color: var(--text-muted);
    font-style: italic;
}

/* ─── Financement tag ────────────────────────────────────────────────────── */
.financ-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 4px;
}
.financ-tag.financ-direct { background: #dbeafe; color: #1e40af; }
.financ-tag.financ-faf_pm { background: #fef3c7; color: #92400e; }
.financ-tag.financ-dpc { background: #dcfce7; color: var(--green); }
.financ-tag.financ-opco { background: #fce7f3; color: #9d174d; }
.financ-tag.financ-autre { background: var(--bg); color: var(--text-muted); }

/* ─── Pastilles status ───────────────────────────────────────────────────── */
.dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}
.dot-green { background: var(--green); }
.dot-grey { background: var(--border-strong); }
.dot-red { background: var(--red); }
.dot-orange { background: var(--orange); }

/* ─── TABS ───────────────────────────────────────────────────────────────── */
.tabs {
    display: flex;
    border-bottom: 1px solid var(--border);
    margin-bottom: 16px;
}
.tab {
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    transition: all 0.15s;
}
.tab:hover { color: var(--text); }
.tab.active { color: var(--pri); border-bottom-color: var(--pri); }

/* ─── DOSSIER CHECKLIST ──────────────────────────────────────────────────── */
.dossier-checklist {
    list-style: none;
    padding: 0;
    margin: 0;
}
.dossier-checklist li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
}
.dossier-checklist li:last-child { border-bottom: none; }

.export-list {
    list-style: none;
    padding: 16px 20px;
    margin: 16px 0;
    background: var(--bg);
    border-radius: 8px;
}
.export-list li {
    padding: 6px 0;
    font-size: 13px;
}

/* ─── DRAWER ─────────────────────────────────────────────────────────────── */
.drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.4);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s;
    z-index: 99;
}
.drawer-overlay.open { opacity: 1; pointer-events: auto; }
.drawer {
    position: fixed;
    top: 0;
    right: -700px;
    width: 700px;
    max-width: 95vw;
    height: 100vh;
    background: white;
    border-left: 1px solid var(--border);
    box-shadow: -8px 0 24px rgba(15, 23, 42, 0.1);
    transition: right 0.25s ease;
    z-index: 100;
    overflow-y: auto;
}
.drawer.open { right: 0; }
.drawer-header {
    padding: 20px 24px 18px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: white;
    position: sticky;
    top: 0;
    z-index: 1;
}
.drawer-head-titles { flex: 1; min-width: 0; }
.drawer-head-eyebrow {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}
.drawer-head-id { font-size: 12px; }
.drawer-head-title {
    font-size: 22px;
    font-weight: 600;
    line-height: 1.25;
    margin: 0 0 12px 0;
}
.drawer-head-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.meta-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--bg);
    padding: 5px 11px;
    border-radius: 14px;
    font-size: 12px;
    color: var(--text);
    border: 1px solid var(--border);
}
.meta-pill-icon { opacity: 0.7; }
.drawer-close-btn {
    background: white;
    border: 1px solid var(--border);
    border-radius: 8px;
    width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.15s;
    flex-shrink: 0;
}
.drawer-close-btn:hover { background: var(--bg); color: var(--text); border-color: var(--border-strong); }

.drawer-content { padding: 24px; }

/* Hero KPI : Taux Qualiopi mis en avant */
.drawer-hero-kpi {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 28px;
    align-items: center;
    padding: 20px 24px;
    border-radius: 10px;
    margin-bottom: 16px;
    border: 1px solid var(--border);
    background: white;
}
.drawer-hero-kpi.conf-good { background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%); border-color: #86efac; }
.drawer-hero-kpi.conf-warn { background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%); border-color: #fbbf24; }
.drawer-hero-kpi.conf-bad  { background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%); border-color: #fca5a5; }
.hero-kpi-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 4px;
}
.hero-kpi-value {
    font-size: 40px;
    font-weight: 700;
    line-height: 1;
    color: var(--text);
}
.hero-kpi-unit { font-size: 22px; color: var(--text-muted); margin-left: 2px; }
.hero-kpi-formula {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 6px;
}
.hero-kpi-progress { width: 100%; }
.hero-kpi-bar {
    width: 100%;
    height: 10px;
    background: rgba(255,255,255,0.6);
    border-radius: 5px;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.05);
}
.hero-kpi-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--red) 0%, var(--orange) 50%, var(--green) 100%);
    transition: width 0.6s ease;
}
.hero-kpi-thresholds {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: var(--text-muted);
    margin-top: 4px;
    padding: 0 2px;
}

/* 3 KPIs secondaires */
.drawer-kpis {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}
.drawer-kpi {
    background: white;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 14px 16px;
    text-align: left;
}
.drawer-kpi-val {
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
    line-height: 1;
    margin-bottom: 4px;
}
.drawer-kpi-sub { font-size: 13px; color: var(--text-muted); font-weight: 500; }
.drawer-kpi-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    font-weight: 600;
    margin-top: 2px;
}

@media (max-width: 600px) {
    .drawer-hero-kpi { grid-template-columns: 1fr; gap: 12px; padding: 16px; }
    .hero-kpi-value { font-size: 32px; }
    .drawer-kpis { grid-template-columns: 1fr; }
    .drawer-content { padding: 16px; }
}
.drawer-actions {
    margin-top: 20px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* ─── Buttons ────────────────────────────────────────────────────────────── */
.btn-primary, .btn-secondary, .btn-small {
    font-family: inherit;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
}
.btn-primary {
    background: var(--pri);
    color: white;
    border: 1px solid var(--pri);
    padding: 10px 18px;
    font-size: 14px;
}
.btn-primary:hover { background: var(--pri-light); border-color: var(--pri-light); }
.btn-secondary {
    background: white;
    color: var(--text);
    border: 1px solid var(--border-strong);
    padding: 10px 18px;
    font-size: 14px;
}
.btn-secondary:hover { background: var(--bg); }
.btn-small {
    background: white;
    color: var(--pri);
    border: 1px solid var(--border-strong);
    padding: 4px 10px;
    font-size: 12px;
}
.btn-small:hover { background: var(--pri); color: white; border-color: var(--pri); }

/* ─── AIDE ───────────────────────────────────────────────────────────────── */
.aide-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.aide-grid .section-block { margin-bottom: 0; }
.faq-item {
    border-bottom: 1px solid var(--border);
    padding: 4px 0;
}
.faq-item:last-of-type { border-bottom: none; }
.faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 10px 0;
    font-weight: 500;
    color: var(--text);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before {
    content: '+';
    margin-right: 10px;
    font-weight: 300;
    font-size: 18px;
    color: var(--pri);
    display: inline-block;
    transition: transform 0.2s;
}
.faq-item[open] summary::before { content: '−'; }
.faq-item p {
    padding: 4px 0 12px 24px;
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
}
.auto-status {
    list-style: none;
    padding: 0;
    font-size: 13px;
}
.auto-status li {
    padding: 6px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.aide-contact { background: #eff6ff; border-color: var(--pri); }

/* ─── TOAST ──────────────────────────────────────────────────────────────── */
.toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(60px);
    background: var(--sidebar);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 200;
    font-size: 14px;
    font-weight: 500;
}
.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* ─── Loading ────────────────────────────────────────────────────────────── */
.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    color: white;
    z-index: 1000;
}
.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ═══════════════════════════════════════════════════════════════════════════
   HUB FORMATEUR — recréation du hub-amopy-processus.netlify.app
   ═══════════════════════════════════════════════════════════════════════════ */

/* Timeline 8 étapes parcours stagiaire */
.hub-timeline {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0;
    position: relative;
    margin: 16px 0 8px;
}
.hub-timeline::before {
    content: '';
    position: absolute;
    top: 28px;
    left: 8%;
    right: 8%;
    height: 3px;
    background: var(--pri-light);
    z-index: 0;
}
.hub-tl-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 6px;
    position: relative;
    z-index: 1;
}
.hub-tl-dot {
    width: 56px; height: 56px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px;
    margin-bottom: 12px;
    border: 3px solid white;
    box-shadow: 0 2px 8px rgba(37,99,235,0.25);
    color: white;
}
.hub-tl-dot.blue   { background: #2563eb; }
.hub-tl-dot.green  { background: #16a34a; }
.hub-tl-dot.orange { background: #d97706; }
.hub-tl-dot.purple { background: #7c3aed; }
.hub-tl-dot.teal   { background: #0891b2; }
.hub-tl-dot.indigo { background: #4f46e5; border-style: dashed; opacity: 0.85; }
.hub-tl-label { font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 3px; }
.hub-tl-sub { font-size: 11px; color: var(--text-muted); line-height: 1.4; }
.hub-tl-optional {
    font-size: 10px;
    background: #eef2ff;
    color: #4f46e5;
    border-radius: 4px;
    padding: 1px 6px;
    margin-top: 4px;
    display: inline-block;
    font-weight: 600;
}

/* Alert info */
.hub-alert {
    display: flex;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 13px;
    align-items: flex-start;
}
.hub-alert-green { background: #f0fdf4; border-left: 3px solid var(--green); }
.hub-alert span { font-size: 18px; }

/* Workflow cards grid */
.hub-wf-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}
@media (min-width: 1100px) { .hub-wf-grid { grid-template-columns: repeat(3, 1fr); } }
.hub-wf-card {
    background: white;
    border-radius: 10px;
    padding: 16px;
    border: 1px solid var(--border);
    transition: box-shadow 0.2s;
}
.hub-wf-card:hover { box-shadow: var(--shadow); }
.hub-wf-header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.hub-wf-num {
    background: var(--pri);
    color: white;
    width: 32px; height: 32px;
    border-radius: 6px;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 700; flex-shrink: 0;
}
.hub-wf-title { font-size: 14px; font-weight: 700; color: var(--text); }
.hub-wf-trigger { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.hub-wf-body { font-size: 12px; color: #475569; margin-bottom: 10px; line-height: 1.5; }
.hub-wf-status { font-size: 11px; font-weight: 600; margin-bottom: 8px; }
.hub-wf-status.on { color: var(--green); }
.hub-wf-copy {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 6px;
    padding: 8px 10px;
    font-size: 11px;
    color: #1e40af;
    line-height: 1.5;
}
.hub-wf-copy strong {
    display: block; margin-bottom: 2px;
    font-size: 10px; text-transform: uppercase; letter-spacing: 0.5px;
}

/* Subsection labels */
.hub-subsection-label {
    font-weight: 700;
    font-size: 12px;
    color: var(--text);
    margin: 20px 0 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.hub-subsection-note {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 10px;
    font-style: italic;
}

/* Links grid */
.hub-links-grid    { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.hub-links-grid-3  { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 900px) {
    .hub-links-grid   { grid-template-columns: repeat(4, 1fr); }
    .hub-links-grid-3 { grid-template-columns: repeat(3, 1fr); }
}
.hub-link {
    background: white;
    border-radius: 10px;
    padding: 14px 12px;
    border: 1px solid var(--border);
    text-decoration: none;
    color: var(--text);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    transition: all 0.2s;
}
.hub-link:hover {
    background: #f0f9ff;
    border-color: var(--pri-light);
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}
.hub-link.admin { background: #f8fafc; opacity: 0.85; }
.hub-link.admin:hover { opacity: 1; }
.hub-link-icon {
    width: 44px; height: 44px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px;
}
.hub-link-label { font-size: 13px; font-weight: 700; }
.hub-link-sub { font-size: 11px; color: var(--text-muted); }

.bg-blue   { background: #eff6ff; }
.bg-green  { background: #f0fdf4; }
.bg-purple { background: #faf5ff; }
.bg-teal   { background: #f0fdfa; }
.bg-orange { background: #fff7ed; }
.bg-yellow { background: #fefce8; }
.bg-gray   { background: #f8fafc; }

/* QR Codes grid */
.qr-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}
@media (min-width: 900px) { .qr-grid { grid-template-columns: repeat(4, 1fr); } }
.qr-card {
    background: white;
    border-radius: 10px;
    padding: 16px;
    border: 1px solid var(--border);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.qr-card img {
    width: 130px;
    height: 130px;
    border-radius: 6px;
}
.qr-label { font-size: 13px; font-weight: 700; }
.qr-sub { font-size: 11px; color: var(--text-muted); }
.qr-dl-btn {
    margin-top: 6px;
    background: var(--pri);
    color: white;
    border: none;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}
.qr-dl-btn:hover { background: var(--pri-light); }

/* Checklist 2 colonnes */
.hub-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
@media (max-width: 800px) { .hub-two-col { grid-template-columns: 1fr; } }
.hub-cl-label {
    font-weight: 700;
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}
.hub-checklist {
    list-style: none;
    padding: 0;
    margin: 0;
}
.hub-checklist li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 0;
    font-size: 13px;
    border-bottom: 1px solid var(--border);
}
.hub-checklist li:last-child { border-bottom: none; }
.hub-checklist li.auto { color: var(--green); font-weight: 500; }
.hub-checklist input[type="checkbox"] {
    margin-top: 3px;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
}

/* Contacts grid */
.contacts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}
@media (max-width: 800px) { .contacts-grid { grid-template-columns: 1fr; } }
.contact-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 14px;
    display: flex;
    gap: 12px;
    align-items: center;
}
.contact-icon {
    width: 48px; height: 48px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}
.contact-name { font-weight: 700; font-size: 14px; }
.contact-role { font-size: 12px; margin-top: 1px; }
.contact-email { font-size: 12px; color: var(--pri); text-decoration: none; display: inline-block; margin-top: 2px; }
.contact-email:hover { text-decoration: underline; }

/* Finance card variations */
.finance-card.fin-total { border-top: 3px solid var(--text); }

/* ═══ DRAWER : Onglets enrichis (Profils / QCM / Évaluations) ═══════════════ */

/* Profils & attentes */
.profil-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 14px 16px;
    margin-bottom: 12px;
}
.profil-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}
.profil-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 16px;
}
.profil-grid > div { font-size: 13px; }
.profil-grid > div strong { font-size: 11px; text-transform: uppercase; color: var(--text-muted); letter-spacing: 0.05em; }
.profil-grid > div p { margin-top: 2px; }
.profil-wide { grid-column: span 2; }

/* QCM */
.qcm-summary {
    display: flex;
    align-items: center;
    gap: 24px;
    background: var(--bg);
    padding: 18px 20px;
    border-radius: 8px;
    border-left: 4px solid var(--pri);
    margin-bottom: 8px;
}
.qcm-stat-label { font-size: 12px; color: var(--text-muted); margin-bottom: 4px; }
.qcm-stat-value { font-size: 24px; font-weight: 700; color: var(--text); }
.qcm-stat-value.prog-positive { color: var(--green); }
.qcm-arrow { font-size: 28px; color: var(--text-muted); align-self: center; }
.qcm-prog { margin-left: auto; }
.prog-positive { color: var(--green); font-weight: 600; }

/* Évaluations détaillées */
.eval-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    background: var(--bg);
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 8px;
    text-align: center;
}
.eval-summary strong { font-size: 22px; color: var(--text); display: block; margin-top: 4px; }
.eval-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 14px 16px;
    margin-bottom: 12px;
}
.eval-card-froid { border-left: 3px solid var(--acc); }
.eval-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 10px;
}
.eval-note-big {
    font-size: 20px;
    font-weight: 700;
    color: var(--pri);
    background: #eff6ff;
    padding: 4px 12px;
    border-radius: 6px;
}
.eval-criteres {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px 16px;
}
.critere-row {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    border-bottom: 1px solid var(--border);
    font-size: 12px;
}
.critere-label { color: var(--text-muted); flex: 1; }
.critere-value { font-weight: 600; color: var(--text); }
.eval-commentaire {
    margin-top: 10px;
    padding: 10px 12px;
    background: #fef3c7;
    border-left: 3px solid var(--orange);
    border-radius: 6px;
    font-size: 13px;
}
.eval-commentaire p { margin-top: 4px; font-style: italic; color: #475569; }

/* ─── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
    .layout { grid-template-columns: 70px 1fr; }
    .sidebar-brand > div:last-child, .sidebar-nav a span, .sidebar-footer, .brand-sub { display: none; }
    .sidebar-brand { justify-content: center; padding: 0 10px 24px; }
    .sidebar-nav a { justify-content: center; padding: 12px; }
    .main-content { padding: 20px; }
    .qualiopi-grid, .finance-grid, .monthly-numbers { grid-template-columns: 1fr 1fr; }
    .aide-grid { grid-template-columns: 1fr; }
    .drawer { width: 100vw; }
    .session-card { grid-template-columns: 50px 1fr; }
    .session-card-status { display: none; }
}

/* ── Mon site : bandes de section par page (lisibilité) ── */
.site-config-form h4 {
    margin: 28px 0 12px; padding: 9px 13px;
    background: #f1f5f9; border-left: 3px solid #0f766e; border-radius: 6px;
    font-size: .95rem; color: #0f172a;
}
.site-config-form h4:first-of-type { margin-top: 6px; }
.site-config-form h4 .section-sub { font-weight: 400; color: #64748b; }
/* Upload d'image (logo, photos) */
.img-upload { display: flex; align-items: center; gap: 14px; margin: 4px 0 6px; }
.img-upload img { width: 64px; height: 64px; object-fit: contain; border: 1px solid #e5e7eb; border-radius: 8px; background: #fff; padding: 2px; }
.img-upload .img-ph { width: 64px; height: 64px; border: 1px dashed #cbd5e1; border-radius: 8px; display: flex; align-items: center; justify-content: center; color: #94a3b8; font-size: 1.4rem; flex: 0 0 auto; }
.img-upload input[type=file] { font-size: .85rem; }
