/**
 * PGRR® Platform — Stylesheet
 * © PGRR® — Tous droits réservés.
 */

        * { margin: 0; padding: 0; box-sizing: border-box; }
        
        :root {
            --emeraude: #2AA785;
            --nuit: #0A1F3C;
            --acier: #34495E;
            --mandarine: #FE8738;
        }

        body {
            font-family: 'Lato', sans-serif;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            min-height: 100vh;
            padding: 20px;
        }

        /* Typography PGRR */
        h1, h2 { font-family: 'Montserrat', sans-serif; letter-spacing: 0.2px; }
        h3, h4, .nav-btn { font-family: 'Raleway', sans-serif; }
        body, p, li, input, textarea, select, button { font-family: 'Lato', sans-serif; }

        .container {
            max-width: 1400px;
            margin: 0 auto;
            background: white;
            border-radius: 20px;
            box-shadow: 0 20px 60px rgba(0,0,0,0.3);
            overflow: hidden;
        }

        .header {
            background: linear-gradient(135deg, var(--nuit) 0%, var(--acier) 100%);
            color: white;
            padding: 30px 40px;
        }

        .header h1 { font-size: 2em; margin-bottom: 5px; }
        .header p { opacity: 0.9; font-size: 1.1em; }

        .nav-bar {
            background: #f8f9fa;
            padding: 15px 40px;
            display: flex;
            gap: 10px;
            border-bottom: 2px solid #dee2e6;
            flex-wrap: wrap;
        }

        .nav-btn {
            padding: 10px 20px;
            border: none;
            background: white;
            border-radius: 8px;
            cursor: pointer;
            font-weight: 600;
            transition: all 0.2s ease;
        }

        .nav-btn:hover { background: var(--emeraude); color: white; }
        .nav-btn.active { background: var(--emeraude); color: white; }

        .content { padding: 40px; }
        
        .view { display: none; }
        .view.active { display: block; }

        .card {
            background: white;
            border-radius: 15px;
            padding: 30px;
            margin-bottom: 30px;
            box-shadow: 0 5px 20px rgba(0,0,0,0.1);
        }

        .card h2 {
            color: var(--nuit);
            margin-bottom: 20px;
            font-size: 1.8em;
        }

        .card h3 {
            color: var(--acier);
            margin-bottom: 15px;
            font-size: 1.4em;
            margin-top: 25px;
        }

        .card h4 {
            color: var(--nuit);
            margin: 15px 0 10px 0;
            font-size: 1.1em;
        }

        /* Forms */
        .form-group { margin-bottom: 20px; }
        
        .form-group label {
            display: block;
            margin-bottom: 8px;
            font-weight: 600;
            color: var(--nuit);
        }

        .form-group input, .form-group textarea, .form-group select {
            width: 100%;
            padding: 12px;
            border: 2px solid #dee2e6;
            border-radius: 8px;
            font-size: 1em;
            font-family: inherit;
        }

        .form-group input:focus, .form-group textarea:focus, .form-group select:focus {
            outline: none;
            border-color: var(--emeraude);
        }

        /* Buttons */
        .btn {
            padding: 12px 30px;
            border: none;
            border-radius: 8px;
            font-size: 1em;
            cursor: pointer;
            font-weight: 600;
            transition: all 0.3s ease;
        }

        .btn-primary {
            background: var(--emeraude);
            color: white;
        }

        .btn-primary:hover {
            background: #259876;
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(42, 167, 133, 0.3);
        }

        .btn-secondary {
            background: #6c757d;
            color: white;
        }

        .btn-secondary:hover {
            background: #5a6268;
        }

        /* Grid */
        .grid { display: grid; gap: 20px; }
        .grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
        .grid-3 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }

        /* Organization cards */
        .org-card {
            background: linear-gradient(135deg, #f8f9fa, #e9ecef);
            border: 3px solid var(--emeraude);
            border-radius: 15px;
            padding: 25px;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .org-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 30px rgba(0,0,0,0.15);
        }

        .org-card h3 {
            color: var(--nuit);
            margin-bottom: 10px;
        }

        .org-stats {
            display: flex;
            gap: 15px;
            margin-top: 15px;
            font-size: 0.9em;
            color: #6c757d;
        }

        /* Bilan cards */
        .bilan-card {
            background: white;
            border-left: 5px solid;
            border-radius: 10px;
            padding: 20px;
            margin-bottom: 15px;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .bilan-card:hover {
            box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        }

        .bilan-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 10px;
        }

        .bilan-date {
            font-weight: bold;
            font-size: 1.1em;
        }

        .bilan-score {
            font-size: 1.5em;
            font-weight: bold;
        }

        /* Questions */
        .dimension-section {
            background: #f8f9fa;
            border-radius: 15px;
            padding: 25px;
            margin-bottom: 25px;
            border-left: 5px solid;
        }

        .dimension-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
            padding-bottom: 15px;
            border-bottom: 2px solid #dee2e6;
        }

        .dimension-title {
            font-size: 1.4em;
            font-weight: bold;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .question-item {
            background: white;
            padding: 20px;
            border-radius: 10px;
            margin-bottom: 15px;
        }

        .question-text {
            font-size: 1.05em;
            margin-bottom: 15px;
            line-height: 1.6;
        }

        .question-options {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
            gap: 10px;
        }

        .option-btn {
            padding: 12px;
            border: 2px solid #dee2e6;
            background: white;
            border-radius: 8px;
            cursor: pointer;
            font-weight: 600;
            transition: all 0.2s ease;
            text-align: center;
        }

        .option-btn:hover {
            border-color: #adb5bd;
        }

        .option-btn.selected-yes {
            background: #2AA785;
            color: white;
            border-color: #2AA785;
        }

        .option-btn.selected-progress {
            background: #34495E;
            color: white;
            border-color: #34495E;
        }

        .option-btn.selected-no {
            background: #ef4444;
            color: white;
            border-color: #ef4444;
        }

        .option-btn.selected-na {
            background: #6c757d;
            color: white;
            border-color: #6c757d;
        }

        /* Charts */
        .chart-container {
            position: relative;
            height: 400px;
            margin: 20px 0;
        }

        .chart-container-small {
            height: 300px;
        }

        /* Stats cards */
        .stat-card {
            background: linear-gradient(135deg, var(--emeraude), #1F8E72);
            color: white;
            padding: 30px;
            border-radius: 15px;
            text-align: center;
        }

        .stat-value {
            font-size: 3em;
            font-weight: bold;
            margin: 15px 0;
        }

        .stat-label {
            font-size: 1.1em;
            opacity: 0.9;
        }

        /* Progress bar */
        .progress-bar-container {
            background: #e9ecef;
            height: 8px;
            border-radius: 4px;
            overflow: hidden;
            margin: 10px 0;
        }

        .progress-bar {
            height: 100%;
            background: var(--emeraude);
            transition: width 0.3s ease;
        }

        /* Alerts */
        .alert {
            padding: 15px 20px;
            border-radius: 10px;
            margin: 15px 0;
            border-left: 4px solid;
        }

        .alert-success {
            background: #d4edda;
            border-color: #28a745;
            color: #155724;
        }

        .alert-warning {
            background: #fff3cd;
            border-color: #ffc107;
            color: #856404;
        }

        .alert-danger {
            background: #f8d7da;
            border-color: #dc3545;
            color: #721c24;
        }

        .alert-info {
            background: #d1ecf1;
            border-color: #17a2b8;
            color: #0c5460;
        }

        /* Modal */
        .modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0,0,0,0.5);
            z-index: 1000;
            align-items: center;
            justify-content: center;
        }

        .modal.active {
            display: flex;
        }

        .modal-content {
            background: white;
            border-radius: 15px;
            padding: 30px;
            max-width: 600px;
            width: 90%;
            max-height: 80vh;
            overflow-y: auto;
        }

        .modal-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
        }

        .modal-close {
            font-size: 2em;
            cursor: pointer;
            color: #6c757d;
        }

        .modal-close:hover {
            color: var(--nuit);
        }

        /* Badge */
        .badge {
            display: inline-block;
            padding: 5px 12px;
            border-radius: 20px;
            font-size: 0.85em;
            font-weight: 600;
            margin: 2px;
        }

        .badge-success { background: #d4edda; color: #155724; }
        .badge-warning { background: #fff3cd; color: #856404; }
        .badge-danger { background: #f8d7da; color: #721c24; }
        .badge-info { background: #d1ecf1; color: #0c5460; }
        .badge-primary { background: #cfe2ff; color: #084298; }

        /* Report specific styles */
        .report-section {
            margin: 40px 0;
            padding: 30px;
            background: #f8f9fa;
            border-radius: 15px;
            border-left: 5px solid var(--emeraude);
        }

        .report-section h3 {
            margin-top: 0;
        }

        .strength-item, .weakness-item {
            background: white;
            padding: 15px;
            border-radius: 10px;
            margin-bottom: 10px;
            border-left: 4px solid;
        }

        .strength-item {
            border-color: #2AA785;
        }

        .weakness-item {
            border-color: #ef4444;
        }

        .recommendation-box {
            background: white;
            padding: 20px;
            border-radius: 10px;
            margin: 15px 0;
            border-left: 4px solid var(--mandarine);
        }

        .recommendation-box h4 {
            color: var(--mandarine);
            margin-top: 0;
        }

        .recommendation-box ul {
            margin-left: 20px;
            line-height: 1.8;
        }

        .regulatory-badge {
            display: inline-block;
            padding: 4px 10px;
            border-radius: 15px;
            font-size: 0.8em;
            font-weight: 600;
            margin: 2px;
        }

        .reg-csrd { background: #e3f2fd; color: #1565c0; }
        .reg-taxonomy { background: #f3e5f5; color: #6a1b9a; }
        .reg-dpef { background: #e8f5e9; color: #2e7d32; }

        .swot-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 20px;
            margin: 20px 0;
        }

        .swot-box {
            padding: 20px;
            border-radius: 10px;
            min-height: 200px;
        }

        .swot-forces {
            background: #d4edda;
            border: 3px solid #28a745;
        }

        .swot-weaknesses {
            background: #f8d7da;
            border: 3px solid #dc3545;
        }

        .swot-opportunities {
            background: #cfe2ff;
            border: 3px solid #0d6efd;
        }

        .swot-threats {
            background: #fff3cd;
            border: 3px solid #ffc107;
        }

        .swot-box h4 {
            margin-top: 0;
            margin-bottom: 15px;
        }

        .swot-box ul {
            margin-left: 20px;
            line-height: 1.8;
        }

        .priority-matrix {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 15px;
            margin: 20px 0;
        }

        .priority-item {
            padding: 15px;
            border-radius: 10px;
            border-left: 4px solid;
        }

        .priority-high {
            background: #fee;
            border-color: #dc3545;
        }

        .priority-medium {
            background: #fff8e1;
            border-color: #ffc107;
        }

        .priority-low {
            background: #e8f5e9;
            border-color: #28a745;
        }

        .timeline-item {
            padding: 15px;
            margin: 10px 0;
            background: white;
            border-left: 4px solid var(--emeraude);
            border-radius: 10px;
        }

        .timeline-label {
            font-weight: bold;
            color: var(--nuit);
            margin-bottom: 8px;
        }

        /* Empty state */
        .empty-state {
            text-align: center;
            padding: 60px 20px;
            color: #6c757d;
        }

        .empty-state-icon {
            font-size: 4em;
            margin-bottom: 20px;
        }

        
        /* ===== KPI Explorer / Heatmap / Quick Wins (PATCHES 11-14) ===== */
        .kpi-tools-grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
        .kpi-tools-grid-2 { display: grid; gap: 20px; grid-template-columns: 1fr 1fr; }
        @media (max-width: 992px) { .kpi-tools-grid-2 { grid-template-columns: 1fr; } }

        
        .kpi-explorer-scroll{
            max-height: 420px;
            overflow: auto;
            border: 1px solid #e9ecef;
            border-radius: 12px;
        }
.kpi-explorer-controls {
            display: flex;
            gap: 12px;
            flex-wrap: wrap;
            align-items: center;
            margin-bottom: 15px;
        }
        .kpi-explorer-controls input, .kpi-explorer-controls select {
            padding: 10px 12px;
            border: 2px solid #dee2e6;
            border-radius: 10px;
            font-size: 1em;
        }

        .kpi-table { width: 100%; border-collapse: collapse; }
        .kpi-table th, .kpi-table td { padding: 10px 12px; border-bottom: 1px solid #e9ecef; vertical-align: top; }
        .kpi-table th { background: #0A1F3C; color: white; text-align: left; position: sticky; top: 0; z-index: 2; }
        .kpi-pill-badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-weight: 700; font-size: 0.85em; color: white; }
        .kpi-row-muted { color: #6c757d; font-size: 0.9em; margin-top: 3px; }

        .heatmap-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
        @media (max-width: 768px) { .heatmap-grid { grid-template-columns: repeat(2, 1fr); } }
        .heatmap-cell {
            border-radius: 14px;
            padding: 14px;
            cursor: pointer;
            border: 2px solid rgba(0,0,0,0.06);
            transition: transform 0.15s ease, box-shadow 0.15s ease;
            min-height: 92px;
        }
        .heatmap-cell:hover { transform: translateY(-3px); box-shadow: 0 8px 22px rgba(0,0,0,0.12); }
        .heatmap-title { font-weight: 800; color: #0A1F3C; display: flex; gap: 10px; align-items: center; }
        .heatmap-sub { margin-top: 6px; color: rgba(10,31,60,0.8); font-weight: 600; font-size: 0.95em; }
        .heatmap-meta { margin-top: 10px; font-size: 0.85em; color: rgba(10,31,60,0.75); }

        .qw-controls { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; margin: 10px 0 15px 0; }
        .qw-controls label { font-weight: 700; color: var(--nuit); }
        .qw-controls input[type="range"] { width: 240px; }
        .qw-table { width: 100%; border-collapse: collapse; }
        .qw-table th, .qw-table td { padding: 10px 12px; border-bottom: 1px solid #e9ecef; }
        .qw-table th { background: #0A1F3C; color: #fff; text-align: left; }

        /* Responsive */
        @media (max-width: 768px) {
            .content { padding: 20px; }
            .nav-bar { padding: 10px 20px; }
            .grid-2, .grid-3 { grid-template-columns: 1fr; }
            .question-options { grid-template-columns: 1fr 1fr; }
            .swot-grid { grid-template-columns: 1fr; }
            .priority-matrix { grid-template-columns: 1fr; }
        }

        @page { margin: 14mm 12mm 22mm 12mm; }

        @media print {
            body { background: white; padding: 0; }
            body > .container .header, body > .container .app-footer { display: none !important; }
            body > .container { box-shadow: none; }
            .nav-bar, .btn, .modal, #kpiModal { display: none !important; }
            .page-break { page-break-before: always; }
/* Print flow: ne pas forcer des sauts de page "propres" (évite grands blancs). */
@media print{
  .page-break{ page-break-before: auto !important; break-before: auto !important; }
  .report-section, .card, .grid, .swot-grid, .stat-card, .action-item, .action-card, .bilan-card{
    break-inside: auto !important;
    page-break-inside: auto !important;
  }
}

            /* Print: make KPI annex tables fully printable */
            .kpi-explorer-scroll { max-height: none !important; overflow: visible !important; }
            .kpi-annex-table th, .kpi-annex-table td { border-bottom: 1px solid #dee2e6; padding: 8px; vertical-align: top; }
            .kpi-annex-table thead { display: table-header-group; }
            .kpi-annex-table tr { page-break-inside: avoid; }


            /* Ensure KPI tables are fully expanded in PDF */
            .kpi-explorer-scroll { max-height: none !important; overflow: visible !important; }
            .kpi-table th { position: static !important; }
            .kpi-table { page-break-inside: auto; }
            .kpi-table tr { page-break-inside: avoid; page-break-after: auto; }

            /* Avoid charts being clipped */
            canvas { max-width: 100% !important; height: auto !important; }

            /* Print: reduce ugly cuts */
            .card, .report-section { break-inside: auto; page-break-inside: auto; }
            table { break-inside: auto; }
            tr, td, th { break-inside: avoid; page-break-inside: avoid; }

        }
    
        /* Footer / Legal */
        .app-footer{
            padding: 14px 40px;
            font-size: 0.9em;
            color: #6c757d;
            border-top: 1px solid #e9ecef;
            background: #fafafa;
        }
        .app-footer strong{ color: var(--nuit); }

        /* Print: show only the requested PDF (Diagnostic / KPI / Methodology) */
        @media print {
            /* Hide the interactive app shell */
            body > .container { display: none !important; }

            /* Hide all printable roots by default */
            #diagnosticPrintRoot,
            #kpiPrintRoot,
            #methodologyPrintDiagnosticRoot,
            #methodologyPrintKPIRoot { display: none !important; }

            /* Show only the selected root */
            body[data-print-mode="diagnostic"] #diagnosticPrintRoot { display: block !important; }
            body[data-print-mode="kpi"] #kpiPrintRoot { display: block !important; }
            body[data-print-mode="methodology-diagnostic"] #methodologyPrintDiagnosticRoot { display: block !important; }
            body[data-print-mode="methodology-kpi"] #methodologyPrintKPIRoot { display: block !important; }

            /* Laisse de la place pour le pied de page légal fixe */
            #diagnosticPrintRoot, #kpiPrintRoot, #methodologyPrintDiagnosticRoot, #methodologyPrintKPIRoot { padding-bottom: 18mm; }


                        /* Never print loader overlay */
            #globalLoader { display: none !important; }

/* Never print tooltip helpers/icons */
            .th-help, .info-icon { display: none !important; }
            #globalTooltip{ display:none !important; }

            /* Avoid a blank first page if a leading page-break slips in */
            #diagnosticPrintRoot .page-break:first-child { page-break-before: auto !important; break-before: auto !important; }
        }

    
/* ===== Patch 18 : pied de page légal sur chaque page imprimée (PDF) ===== */
.print-legal-footer {
  display: none;
  font-size: 10px;
  line-height: 1.25;
  color: #4a5568;
  border-top: 1px solid #e2e8f0;
  padding: 8px 12px;
}
@media print {
  /* Chrome/Edge répètent généralement les éléments fixed sur chaque page */
  .print-legal-footer {
    display: block !important;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background: #ffffff;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
    z-index: 9999;
  }
  /* évite que le contenu passe sous le footer */
  body { padding-bottom: 70px !important; }
}


@media print {
  .print-legal-footer::after{
    content: "Page " counter(page);
    float: right;
    font-weight: 600;
  }
}


/* ---- Print: legal footer repeated + page counter ---- */
@media print {
  /* Avoid footer overlap */
  body { padding-bottom: 18mm !important; }
  .print-footer{
    position: fixed;
    left: 0; right: 0; bottom: 0;
    padding: 4mm 10mm;
    border-top: 1px solid rgba(0,0,0,.15);
    background: #fff;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 8mm;
    font-size: 8.5pt;
    line-height: 1.2;
    color: #0A1F3C;
    z-index: 9999;
  }
  .print-footer__left{ flex: 1; }
  /* Page counter CSS is not reliable in browsers (can display "Page 0"). We hide it. */
  .print-footer__right{ display: none !important; }
  .pf-legal{ display: inline; margin-left: 6px; font-size: 7.8pt; color: rgba(10,31,60,.85); }
/* Hide interactive-only blocks if they slip into print */
  .no-print{ display: none !important; }
}

/* Keep footer hidden on screen */
@media screen {
  .print-footer{ display:none; }
}


        /* ===== Helpers (tooltips) ===== */
        .th-label{ display:inline-flex; align-items:center; gap:6px; }
        .th-help{
            display:inline-flex;
            align-items:center;
            justify-content:center;
            width:18px;
            height:18px;
            border-radius:999px;
            border:1px solid rgba(10,31,60,.25);
            color:rgba(10,31,60,.85);
            font-size:12px;
            font-weight:700;
            cursor:help;
            user-select:none;
        

        }
        
        /* ===== Tooltips (plateforme uniquement) ===== */
        .has-tip{ cursor: help; }

        /* Tooltip global (JS) : évite le clipping dans les tableaux */
        #globalTooltip{
            position: fixed;
            z-index: 999999;
            max-width: 360px;
            background: rgba(10,31,60,0.95);
            color: #fff;
            padding: 10px 12px;
            border-radius: 12px;
            font-size: 12px;
            line-height: 1.35;
            box-shadow: 0 10px 24px rgba(0,0,0,.18);
            display: none;
            pointer-events: none;
        }
        #globalTooltip[data-show="1"]{ display:block; }

        @media print {
            /* Pas de tooltips ni d'icônes d'aide dans les PDF */
            #globalTooltip{ display:none !important; }
            .th-help{ display:none !important; }
        }

@media print {
            /* Diagnostic PDF must not contain KPI-only blocks */
            body[data-print-mode="diagnostic"] .kpi-only{ display:none !important; }
        }


@media print {
  /* Mise en page : limiter les coupures “moches” */
  h1, h2, h3 { break-after: avoid; page-break-after: avoid; }
  .card, .report-section { break-inside: auto; page-break-inside: auto; }
  table, tr, td, th { break-inside: auto; page-break-inside: auto; }
  .page-break { break-before: auto; page-break-before: auto; }
}


/* ===== Radar 16 — affichage écran vs impression ===== */
.radar-print-only{ display:none; }

/* ===== Fallback si Chart.js bloqué (réseau / proxy / poste verrouillé) ===== */
body.no-chartjs .radar-print-only{ display:block !important; }
body.no-chartjs .radar-screen-only{ display:none !important; }
body.no-chartjs #kpiRadarChart{ display:none !important; }
body.no-chartjs #kpiRadarSvg{ display:block !important; }
body.no-chartjs .regulatory-chart-canvas{ display:none !important; }
body.no-chartjs .regulatory-chart-fallback{ display:block !important; }
@media print{
  .radar-screen-only{ display:none !important; }
  .radar-print-only{ display:block !important; }
  #radar16Svg svg{ width:100%; height:auto; }
  .radar-legend{ font-size: 10.5pt; line-height:1.25; margin-top:8px; }
  .radar-legend-grid{ display:grid; grid-template-columns: 1fr 1fr; gap: 4px 16px; }
}


/* === PGRR UX helpers (toasts, save indicator, loader, confirm modal) === */
@keyframes pgrrFadeInOut {
  0%, 100% { opacity: 0; transform: translateY(16px); }
  12%, 88% { opacity: 1; transform: translateY(0); }
}
@keyframes pgrrSlideIn {
  from { transform: translateX(420px); opacity: 0; }
  to   { transform: translateX(0); opacity: 1; }
}
@keyframes pgrrSlideOut {
  from { transform: translateX(0); opacity: 1; }
  to   { transform: translateX(420px); opacity: 0; }
}
@keyframes pgrrSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
.pgrr-tooltip-icon { cursor: help; }



/* ===== V30 Print footer tighten (override) ===== */
@media print {
  .print-legal-footer{ display:none !important; }
  body{ padding-bottom: 12mm !important; }
  .print-footer{
    padding: 3mm 8mm !important;
    font-size: 8.5pt !important;
    line-height: 1.15 !important;
  }
  .pf-legal{ margin-top: 1mm !important; font-size: 7.5pt !important; }
  .print-footer__right{ display:none !important; }
}


/* ═══ Module 14 — Vue Systémique ═══ */
.sys-filter, .sys-type {
    padding: 4px 12px;
    border-radius: 12px;
    border: 1px solid #dee2e6;
    background: white;
    font-size: 10px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Lato', sans-serif;
    color: #34495E;
    transition: all 0.2s;
}
.sys-filter:hover, .sys-type:hover { border-color: #adb5bd; }
.sys-filter.active { background: var(--emeraude); color: white; border-color: var(--emeraude); }
.sys-type.active { font-weight: 700; border-color: #0A1F3C; }

.sys-conn-tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 8px;
    font-size: 9px;
    font-weight: 600;
    border: 1px solid;
    cursor: help;
}
.sys-tag-synpp { background: rgba(42,167,133,0.08); border-color: #2AA785; color: #2AA785; }
.sys-tag-synp { background: rgba(42,167,133,0.04); border-color: #7dcea0; color: #1e8449; }
.sys-tag-tension { background: rgba(220,53,69,0.06); border-color: #dc3545; color: #dc3545; }
