        :root {
            --primary: #667eea;
            --primary-dark: #5a67d8;
            --secondary: #764ba2;
            --success: #48bb78;
            --warning: #f6ad55;
            --danger: #fc8181;
            --light: #f7fafc;
            --dark: #2d3748;
            --gray: #718096;
            --border: #e2e8f0;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            background: #f5f7fa;
            min-height: 100vh;
            color: var(--dark);
        }

        .app-container {
            max-width: 1600px;
            margin: 0 auto;
            padding: 20px;
        }

        /* Header */
        .app-header {
            background: white;
            border-radius: 16px;
            padding: 25px 30px;
            margin-bottom: 20px;
            box-shadow: 0 10px 40px rgba(0,0,0,0.15);
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 20px;
        }

        .app-title {
            display: flex;
            align-items: center;
            gap: 15px;
        }

        .app-title h1 {
            font-size: 28px;
            background: linear-gradient(135deg, var(--primary), var(--secondary));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .app-title .version {
            background: var(--primary);
            color: white;
            padding: 4px 12px;
            border-radius: 20px;
            font-size: 12px;
            font-weight: 600;
        }

        .workflow-progress {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .workflow-step {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 8px 16px;
            border-radius: 20px;
            font-size: 13px;
            font-weight: 600;
            background: var(--light);
            color: var(--gray);
            transition: all 0.3s;
        }

        .workflow-step.active {
            background: var(--primary);
            color: white;
        }

        .workflow-step.completed {
            background: var(--success);
            color: white;
        }

        .workflow-arrow {
            color: var(--gray);
            font-size: 20px;
        }

        /* Navigation Tabs */
        .nav-tabs {
            display: flex;
            background: white;
            border-radius: 12px;
            padding: 8px;
            margin-bottom: 20px;
            box-shadow: 0 4px 15px rgba(0,0,0,0.1);
            gap: 8px;
            flex-wrap: wrap;
        }

        .nav-tab {
            flex: 1;
            min-width: 180px;
            padding: 15px 20px;
            border: none;
            border-radius: 8px;
            background: transparent;
            cursor: pointer;
            font-size: 14px;
            font-weight: 600;
            color: var(--gray);
            transition: all 0.3s;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
        }

        .nav-tab:hover {
            background: var(--light);
            color: var(--dark);
        }

        .nav-tab.active {
            background: linear-gradient(135deg, var(--primary), var(--secondary));
            color: white;
            box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
        }

        .nav-tab .badge {
            background: rgba(255,255,255,0.3);
            padding: 2px 8px;
            border-radius: 10px;
            font-size: 11px;
        }

        .nav-tab.active .badge {
            background: rgba(255,255,255,0.3);
        }

        /* Tab Content */
        .tab-content {
            display: none;
            animation: fadeIn 0.3s ease;
        }

        .tab-content.active {
            display: block;
        }

        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(10px); }
            to { opacity: 1; transform: translateY(0); }
        }

        /* Cards */
        .card {
            background: white;
            border-radius: 12px;
            padding: 25px;
            margin-bottom: 20px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.06), 0 1px 3px rgba(0,0,0,0.04);
            border: 1px solid rgba(0,0,0,0.04);
        }

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

        .card-title {
            font-size: 18px;
            font-weight: 600;
            color: var(--dark);
            display: flex;
            align-items: center;
            gap: 10px;
        }

        /* Buttons */
        .btn {
            padding: 10px 20px;
            border: none;
            border-radius: 8px;
            cursor: pointer;
            font-size: 14px;
            font-weight: 600;
            transition: all 0.3s;
            display: inline-flex;
            align-items: center;
            gap: 8px;
        }

        .btn-primary {
            background: linear-gradient(135deg, var(--primary), var(--secondary));
            color: white;
        }

        .btn-primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
        }

        .btn-secondary {
            background: var(--light);
            color: var(--dark);
            border: 2px solid var(--border);
        }

        .btn-secondary:hover {
            background: var(--border);
        }

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

        .btn-success:hover {
            background: #38a169;
        }

        .btn-warning {
            background: var(--warning);
            color: var(--dark);
        }

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

        .btn:disabled {
            opacity: 0.5;
            cursor: not-allowed;
            transform: none !important;
        }

        .btn-group {
            display: flex;
            gap: 10px;
            flex-wrap: wrap;
        }

        /* Form Elements */
        .form-group {
            margin-bottom: 20px;
        }

        .form-label {
            display: block;
            font-weight: 600;
            color: var(--dark);
            margin-bottom: 8px;
            font-size: 14px;
        }

        .form-control {
            width: 100%;
            padding: 12px 15px;
            border: 2px solid var(--border);
            border-radius: 8px;
            font-size: 14px;
            transition: border-color 0.3s;
        }

        .form-control:focus {
            outline: none;
            border-color: var(--primary);
        }

        select.form-control {
            cursor: pointer;
        }

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

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

        .grid-4 {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 20px;
        }

        /* Stats Cards */
        .stat-card {
            background: linear-gradient(135deg, var(--primary), var(--secondary));
            color: white;
            text-align: center;
            padding: 25px;
            border-radius: 12px;
        }

        .stat-card .number {
            font-size: 36px;
            font-weight: 700;
            margin-bottom: 5px;
        }

        .stat-card .label {
            font-size: 12px;
            opacity: 0.9;
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        .stat-card.success {
            background: linear-gradient(135deg, #48bb78, #38a169);
        }

        .stat-card.warning {
            background: linear-gradient(135deg, #f6ad55, #ed8936);
        }

        .stat-card.danger {
            background: linear-gradient(135deg, #fc8181, #f56565);
        }

        .stat-card.purple {
            background: linear-gradient(135deg, #a78bfa, #8b5cf6);
        }

        /* Progress Bar */
        .progress-bar {
            height: 12px;
            background: var(--border);
            border-radius: 6px;
            overflow: hidden;
        }

        .progress-fill {
            height: 100%;
            background: linear-gradient(90deg, var(--primary), var(--secondary));
            transition: width 0.5s ease;
            border-radius: 6px;
        }

        .progress-fill.complete {
            background: linear-gradient(90deg, var(--success), #38a169);
        }

        /* Tables */
        .table-container {
            overflow-x: auto;
            border-radius: 8px;
            border: 1px solid var(--border);
        }

        table {
            width: 100%;
            border-collapse: collapse;
        }

        th {
            background: var(--light);
            padding: 15px;
            text-align: left;
            font-weight: 600;
            font-size: 13px;
            color: var(--dark);
            border-bottom: 2px solid var(--border);
            position: sticky;
            top: 0;
        }

        td {
            padding: 15px;
            border-bottom: 1px solid var(--border);
            font-size: 14px;
        }

        tr:hover {
            background: var(--light);
        }

        /* Badges */
        .badge {
            display: inline-block;
            padding: 4px 12px;
            border-radius: 20px;
            font-size: 12px;
            font-weight: 600;
        }

        .badge-primary { background: #e0e7ff; color: #3730a3; }
        .badge-success { background: #d1fae5; color: #065f46; }
        .badge-warning { background: #fef3c7; color: #92400e; }
        .badge-danger { background: #fee2e2; color: #991b1b; }
        .badge-info { background: #dbeafe; color: #1e40af; }
        .badge-gray { background: #e5e7eb; color: #374151; }
        .badge-purple { background: #f5f3ff; color: #6d28d9; }

        /* Upload Zone */
        .upload-zone {
            border: 3px dashed var(--border);
            border-radius: 12px;
            padding: 40px;
            text-align: center;
            cursor: pointer;
            transition: all 0.3s;
        }

        .upload-zone:hover {
            border-color: var(--primary);
            background: rgba(102, 126, 234, 0.05);
        }

        .upload-zone .icon {
            font-size: 48px;
            margin-bottom: 15px;
        }

        .upload-zone p {
            color: var(--gray);
            margin-bottom: 15px;
        }

        input[type="file"] {
            display: none;
        }

        /* Question Cards */
        .question-card {
            border: 2px solid var(--border);
            border-radius: 10px;
            padding: 20px;
            margin-bottom: 15px;
            transition: all 0.3s;
            position: relative;
        }

        .question-card:hover {
            border-color: var(--gray);
        }

        .question-card.selected {
            border-color: var(--primary);
            background: rgba(102, 126, 234, 0.05);
        }

        .question-card .checkbox {
            width: 24px;
            height: 24px;
            border: 2px solid var(--border);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s;
            cursor: pointer;
        }

        .question-card.selected .checkbox {
            background: var(--primary);
            border-color: var(--primary);
            color: white;
        }

        /* Scrollable Lists */
        .scrollable-list {
            max-height: 700px;
            overflow-y: auto;
            padding-right: 10px;
        }

        .scrollable-list::-webkit-scrollbar {
            width: 8px;
        }

        .scrollable-list::-webkit-scrollbar-track {
            background: var(--light);
            border-radius: 4px;
        }

        .scrollable-list::-webkit-scrollbar-thumb {
            background: var(--border);
            border-radius: 4px;
        }

        .scrollable-list::-webkit-scrollbar-thumb:hover {
            background: var(--gray);
        }

        /* Charts */
        .chart-container {
            position: relative;
            height: 300px;
        }

        /* Modal */
        .modal {
            display: none;
            position: fixed;
            z-index: 1000;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background: rgba(0,0,0,0.5);
            overflow-y: auto;
        }

        .modal.active {
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .modal-content {
            background: white;
            padding: 30px;
            border-radius: 16px;
            width: 90%;
            max-width: 700px;
            max-height: 90vh;
            overflow-y: auto;
            margin: 20px;
        }

        .modal-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 25px;
            padding-bottom: 15px;
            border-bottom: 2px solid var(--border);
        }

        .modal-header h2 {
            font-size: 20px;
            color: var(--dark);
        }

        .modal-close {
            background: none;
            border: none;
            font-size: 24px;
            cursor: pointer;
            color: var(--gray);
        }

        /* Sidebar Filters */
        .sidebar {
            background: white;
            border-radius: 12px;
            padding: 25px;
        }

        .filter-group {
            margin-bottom: 20px;
        }

        .filter-label {
            display: block;
            font-weight: 600;
            color: var(--dark);
            margin-bottom: 8px;
            font-size: 13px;
        }

        /* Responsive */
        @media (max-width: 768px) {
            .app-header {
                flex-direction: column;
                text-align: center;
            }

            .workflow-progress {
                flex-wrap: wrap;
                justify-content: center;
            }

            .nav-tab {
                min-width: 100%;
            }

            .grid-2, .grid-3, .grid-4 {
                grid-template-columns: 1fr;
            }
        }

        /* Audit Response Buttons */
        .response-buttons {
            display: flex;
            gap: 10px;
            flex-wrap: wrap;
        }

        .response-btn {
            padding: 10px 20px;
            border: 2px solid var(--border);
            border-radius: 8px;
            background: white;
            cursor: pointer;
            font-weight: 600;
            transition: all 0.3s;
        }

        .response-btn:hover {
            background: var(--light);
        }

        .response-btn.selected-oui {
            background: var(--success);
            border-color: var(--success);
            color: white;
        }

        .response-btn.selected-partiel {
            background: var(--warning);
            border-color: var(--warning);
            color: var(--dark);
        }

        .response-btn.selected-non {
            background: var(--danger);
            border-color: var(--danger);
            color: white;
        }

        .response-btn.selected-exclu {
            background: var(--gray);
            border-color: var(--gray);
            color: white;
        }

        /* Empty State */
        .empty-state {
            text-align: center;
            padding: 60px 20px;
            color: var(--gray);
        }

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

        .empty-state h3 {
            font-size: 20px;
            margin-bottom: 10px;
            color: var(--dark);
        }

        /* Notification Toast */
        .toast {
            position: fixed;
            bottom: 30px;
            right: 30px;
            background: var(--dark);
            color: white;
            padding: 15px 25px;
            border-radius: 10px;
            box-shadow: 0 10px 40px rgba(0,0,0,0.3);
            z-index: 2000;
            animation: slideIn 0.3s ease;
        }

        .toast.success { background: var(--success); }
        .toast.error { background: var(--danger); }

        @keyframes slideIn {
            from { transform: translateX(100px); opacity: 0; }
            to { transform: translateX(0); opacity: 1; }
        }

        @keyframes pulse {
            0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
            50% { box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); }
        }

        /* Layout with sidebar */
        .content-with-sidebar {
            display: grid;
            grid-template-columns: 300px 1fr;
            gap: 20px;
            align-items: stretch;
        }

        .content-with-sidebar > .sidebar {
            display: flex;
            flex-direction: column;
        }

        .content-with-sidebar > div > .card {
            height: 100%;
            display: flex;
            flex-direction: column;
        }

        @media (max-width: 1024px) {
            .content-with-sidebar {
                grid-template-columns: 1fr;
                align-items: start;
            }
            .content-with-sidebar > div > .card {
                height: auto;
            }
        }

        /* Action Timeline */
        .timeline-badge {
            padding: 4px 10px;
            border-radius: 4px;
            font-size: 11px;
            font-weight: 600;
        }

        .timeline-critical { background: #fee2e2; color: #991b1b; }
        .timeline-high { background: #fef3c7; color: #92400e; }
        .timeline-medium { background: #dbeafe; color: #1e40af; }
        .timeline-low { background: #d1fae5; color: #065f46; }

        /* Standard Badges */
        .std-badge {
            padding: 3px 8px;
            border-radius: 4px;
            font-size: 11px;
            font-weight: 600;
        }

        .std-badge.NIS2 { background: #e0e7ff; color: #3730a3; }
        .std-badge.DORA { background: #fef3c7; color: #92400e; }

        /* Tooltip pour les explications de questions */
        .tooltip-container {
            position: relative;
            display: inline-block;
        }

        .tooltip-container .tooltip-text {
            visibility: hidden;
            opacity: 0;
            position: absolute;
            z-index: 1000;
            bottom: 130%;
            left: 50%;
            transform: translateX(-50%);
            background: #1e293b;
            color: #f8fafc;
            padding: 18px 24px;
            border-radius: 12px;
            font-size: 14px;
            line-height: 1.7;
            width: max-content;
            min-width: 300px;
            max-width: min(900px, 85vw);
            text-align: left;
            box-shadow: 0 10px 40px rgba(0,0,0,0.35);
            transition: opacity 0.2s ease, visibility 0.2s ease;
            white-space: normal;
            word-wrap: break-word;
        }

        .tooltip-container .tooltip-text::after {
            content: '';
            position: absolute;
            top: 100%;
            left: 50%;
            transform: translateX(-50%);
            border-width: 8px;
            border-style: solid;
            border-color: #1e293b transparent transparent transparent;
        }

        .tooltip-container:hover .tooltip-text,
        .tooltip-container:focus .tooltip-text {
            visibility: visible;
            opacity: 1;
        }

        /* Variante tooltip en bas (quand pas de place en haut) */
        .tooltip-container.tooltip-bottom .tooltip-text {
            bottom: auto;
            top: 130%;
        }

        .tooltip-container.tooltip-bottom .tooltip-text::after {
            top: auto;
            bottom: 100%;
            border-color: transparent transparent #1e293b transparent;
        }

        /* Ajustement pour petits écrans */
        @media (max-width: 768px) {
            .tooltip-container .tooltip-text {
                width: 320px;
                max-width: 90vw;
                left: auto;
                right: -10px;
                transform: none;
            }
            .tooltip-container .tooltip-text::after {
                left: auto;
                right: 15px;
                transform: none;
            }
        }
