

/* ===========================================
   FICHIER CSS UNIFIÉ - SNK AI Challenge 2025
   =========================================== */






/* ===========================================
   1. RESET ET BASE
   =========================================== */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #f8fafc;
    color: #1e293b;
    line-height: 1.6;
    font-size: 14px;
    min-height: 100vh;
}


.mv24 {

    margin-bottom: 24px;
    margin-top: 24px;

}

/* ===========================================
   2. CONTAINERS ET LAYOUT PRINCIPAL
   =========================================== */

.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 24px;
}

.charts-container {
    font-family: inherit;
    background: #f8fafc;
    color: #1e293b;
    line-height: 1.6;
    font-size: 14px;
    min-height: 100vh;
    padding: 0;
    margin: 0;
}

.charts-main-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 24px 40px;
}

/* ===========================================
   3. HEADERS ET TITRES
   =========================================== */

.header {
    background: white;
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    border: 1px solid #e2e8f0;
}

.header h1 {
    font-size: 32px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 8px;
    letter-spacing: -0.025em;
}

.header p {
    color: #64748b;
    font-size: 16px;
    margin-bottom: 24px;
}

.filters-title {
    font-size: 24px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.filters-title i {
    color: #3b82f6;
    font-size: 22px;
}

.table-title {
    font-size: 18px;
    font-weight: 600;
    color: #0f172a;
}

.chart-title {
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.chart-title i {
    color: #3b82f6;
    font-size: 18px;
}

.chart-subtitle {
    font-size: 14px;
    color: #6b7280;
    margin: 8px 0 0;
    font-weight: 400;
}

/* ===========================================
   4. BOUTONS
   =========================================== */

.btn, .btn-chart {
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-chart {
    border-radius: 10px;
    font-weight: 600;
    white-space: nowrap;
}

.btn:hover, .btn-chart:hover {
    transform: translateY(-1px);
}

.btn-chart:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.12);
}

.btn-primary, .btn-primary-chart {
    background: #3b82f6;
    color: white;
}

.btn-primary:hover {
    background: #2563eb;
}

.btn-primary-chart {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

.btn-primary-chart:hover {
    background: linear-gradient(135deg, #2563eb, #1e40af);
}

.btn-danger {
    background: #ef4444;
    color: white;
}

.btn-danger:hover {
    background: #dc2626;
}

.btn-success, .btn-success-chart {
    background: #10b981;
    color: white;
}

.btn-success:hover {
    background: #059669;
}

.btn-success-chart {
    background: linear-gradient(135deg, #10b981, #059669);
}

.btn-success-chart:hover {
    background: linear-gradient(135deg, #059669, #047857);
}

.btn-secondary-chart {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
}

.btn-secondary-chart:hover {
    background: #e2e8f0;
    border-color: #cbd5e1;
}

.btn i {
    margin-right: 8px;
}

/* ===========================================
   5. STATISTIQUES ET CARTES DE STATS
   =========================================== */

.stats-grid, .quick-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    margin-top: 24px;
    margin-bottom: 24px;
}

.stat-card, .stat-card-chart {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card {
    background: #f8fafc;
    border-radius: 12px;
    padding: 20px;
}

.stat-card:hover, .stat-card-chart:hover {
    transform: translateY(-1px);
}

.stat-card-chart:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.stat-card:hover {
    background: #f1f5f9;
}

.stat-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    margin-bottom: 16px;
    font-size: 20px;
    color: white;
}

.stat-icon.blue { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.stat-icon.green { background: linear-gradient(135deg, #10b981, #059669); }
.stat-icon.purple { background: linear-gradient(135deg, #8b5cf6, #7c3aed); }
.stat-icon.orange { background: linear-gradient(135deg, #f59e0b, #d97706); }
.stat-icon.red { background: linear-gradient(135deg, #ef4444, #dc2626); }

.stat-label, .stat-label-chart {
    font-size: 12px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    margin-bottom: 8px;
}

.stat-label-chart {
    font-size: 14px;
    color: #6b7280;
    font-weight: 500;
    text-transform: none;
    letter-spacing: normal;
}

.stat-value, .stat-value-chart {
    font-size: 28px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1;
    margin-bottom: 8px;
}

.stat-value-chart {
    font-size: 32px;
}

.stat-change, .stat-change-chart {
    font-size: 12px;
    color: #059669;
    margin-top: 4px;
    font-weight: 500;
}

.stat-change-chart {
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.stat-change-chart.positive {
    color: #059669;
}

.stat-change-chart.negative {
    color: #dc2626;
}

.stat-change-chart.neutral {
    color: #6b7280;
}

/* ===========================================
   6. ZONES DE FILTRES
   =========================================== */

.filters-section {
    background: white;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    border: 1px solid #e2e8f0;
}

.filters-sticky-container {
    position: sticky;
    top: 0;
    z-index: 100;
    background: white;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    margin-bottom: 24px;
}

.filters-sticky-content {
    max-width: 100%;
    margin: 0 auto;
    padding: 20px 24px;
}

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

.filters-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    align-items: end;
}

.filter-group, .filter-group-chart {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.filter-group {
    gap: 8px;
}

.filter-label, .filter-label-chart {
    font-size: 11px;
    font-weight: 600;
    color: #374151;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 4px;
}

.filter-label {
    font-size: 12px;
    gap: 6px;
}

.filter-label-chart i {
    color: #6b7280;
    font-size: 11px;
}

.filter-input, .filter-select, .filter-input-chart, .filter-select-chart {
    padding: 10px 12px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 13px;
    background: white;
    transition: all 0.2s ease;
    width: 100%;
    font-family: inherit;
}

.filter-input, .filter-select {
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 14px;
}

.filter-input:focus, .filter-select:focus, .filter-input-chart:focus, .filter-select-chart:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    transform: translateY(-1px);
}

.filter-input.filter-active, .filter-select.filter-active, .filter-input-chart.filter-active, .filter-select-chart.filter-active {
    border-color: #10b981;
    background: #f0fdf4;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

/* Recherche */
.search-container, .search-container-chart {
    position: relative;
    grid-column: 1 / -1;
}

.search-input, .search-input-chart {
    width: 100%;
    padding: 12px 16px 12px 44px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 15px;
    background: white;
    transition: all 0.2s ease;
}

.search-input {
    padding: 16px 20px 16px 52px;
    border-radius: 12px;
    font-size: 16px;
}

.search-input:focus, .search-input-chart:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    transform: translateY(-1px);
}

.search-icon, .search-icon-chart {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #6b7280;
    font-size: 16px;
}

.search-icon {
    left: 18px;
    font-size: 18px;
}

.search-icon i {
    color: #6b7280;
    font-size: 16px;
}

/* ===========================================
   7. TABLEAUX
   =========================================== */

.table-container {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    border: 1px solid #e2e8f0;
}

.table-header {
    background: #f8fafc;
    padding: 20px 24px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.table-controls {
    display: flex;
    gap: 12px;
    align-items: center;
}

.view-toggle, .chart-toggle {
    display: flex;
    background: #f1f5f9;
    border-radius: 8px;
    padding: 4px;
    border: 1px solid #e2e8f0;
}

.view-btn, .chart-toggle-btn {
    padding: 6px 12px;
    border: none;
    background: transparent;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 12px;
    font-weight: 500;
    color: #6b7280;
}

.view-btn.active, .chart-toggle-btn.active {
    background: white;
    color: #0f172a;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.chart-export-btn {
    padding: 6px 10px;
    background: transparent;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    cursor: pointer;
    color: #6b7280;
    transition: all 0.2s ease;
    font-size: 12px;
}

.chart-export-btn:hover {
    background: #f1f5f9;
    color: #374151;
}

.table-wrapper {
    overflow-x: auto;
    max-height: 65vh;
    overflow-y: auto;
}

.table-wrapper::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.table-wrapper::-webkit-scrollbar-track {
    background: #f1f5f9;
}

.table-wrapper::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.table-wrapper::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

thead {
    background: #f8fafc;
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 2px solid #e5e7eb;
}

th {
    padding: 16px 12px;
    text-align: left;
    font-weight: 600;
    font-size: 12px;
    color: #374151;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    user-select: none;
    position: relative;
    white-space: nowrap;
    transition: all 0.2s ease;
}

th:hover {
    background: #f1f5f9;
    color: #1e293b;
}

th:first-child, td:first-child {
    padding-left: 24px;
}

th:last-child, td:last-child {
    padding-right: 24px;
}

.sort-indicator {
    margin-left: 8px;
    font-size: 10px;
    opacity: 0.4;
    transition: all 0.2s ease;
}

.sort-indicator.active {
    opacity: 1;
    color: #3b82f6;
    font-weight: bold;
}

tbody tr {
    transition: all 0.2s ease;
    border-bottom: 1px solid #f1f5f9;
}

tbody tr:hover {
    background: #f8fafc;
}

tbody tr.selected {
    background: #eff6ff;
    border-color: #bfdbfe;
}

td {
    padding: 16px 12px;
    vertical-align: middle;
    border-bottom: 1px solid #f1f5f9;
}

/* Cellules spécialisées */
.name-cell {
    font-weight: 600;
    color: #0f172a;
}

.score-cell {
    font-weight: 700;
    font-family: 'SF Mono', Monaco, monospace;
}

.budget-cell {
    font-family: 'SF Mono', Monaco, monospace;
    color: #059669;
    font-weight: 600;
}

.email-cell {
    font-family: 'SF Mono', Monaco, monospace;
    font-size: 12px;
    color: #6b7280;
}

.text-truncate {
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ===========================================
   8. PAGINATION
   =========================================== */

.pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-top: 1px solid #e5e7eb;
    background: #f8fafc;
}

.pagination-info {
    font-size: 14px;
    color: #6b7280;
    font-weight: 500;
}

.pagination-controls {
    display: flex;
    gap: 8px;
    align-items: center;
}

.pagination-btn {
    padding: 8px 12px;
    border: 2px solid #e5e7eb;
    background: white;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
    min-width: 40px;
    text-align: center;
}

.pagination-btn:hover:not(:disabled) {
    background: #f3f4f6;
    border-color: #d1d5db;
    transform: translateY(-1px);
}

.pagination-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.pagination-btn.active {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

.pagination-dots {
    padding: 8px 4px;
    color: #9ca3af;
    font-weight: bold;
}

/* ===========================================
   9. TAGS ET BADGES
   =========================================== */

.tag {
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    display: inline-block;
}

.tag i {
    margin-right: 6px;
}

.city-tag {
    background: #dbeafe;
    color: #1e40af;
}

.gender-homme {
    background: #e0f2fe;
    color: #0277bd;
}

.gender-femme {
    background: #fce4ec;
    color: #c2185b;
}

.ai-yes {
    background: #e8f5e8;
    color: #2e7d32;
}

.ai-no {
    background: #fff3e0;
    color: #f57c00;
}

.sector-tag {
    background: #f3e8ff;
    color: #7c3aed;
}

.score-excellent {
    color: #059669;
    background: #ecfdf5;
    border-radius: 8px;
    padding: 6px 12px;
    display: inline-block;
    font-size: 13px;
}

.score-good {
    color: #0891b2;
    background: #f0f9ff;
    border-radius: 8px;
    padding: 6px 12px;
    display: inline-block;
    font-size: 13px;
}

.score-average {
    color: #d97706;
    background: #fffbeb;
    border-radius: 8px;
    padding: 6px 12px;
    display: inline-block;
    font-size: 13px;
}

.score-low {
    color: #dc2626;
    background: #fef2f2;
    border-radius: 8px;
    padding: 6px 12px;
    display: inline-block;
    font-size: 13px;
}

/* ===========================================
   10. GRAPHIQUES ET VISUALISATIONS
   =========================================== */

.charts-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.chart-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    border: 1px solid #e2e8f0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.chart-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

.chart-header {
    padding: 24px 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 16px;
}

.chart-controls {
    display: flex;
    gap: 8px;
    align-items: center;
}

.chart-content {
    padding: 24px;
    position: relative;
}

.chart-canvas-container {
    position: relative;
    width: 100%;
    background: #fafafa;
    border-radius: 12px;
    padding: 20px;
    min-height: 400px;
}

.chart-canvas-container.large {
    min-height: 500px;
}

.chart-canvas-container.medium {
    min-height: 400px;
}

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

.chart-canvas-container.pie-chart,
.chart-canvas-container.doughnut-chart {
    display: flex;
    align-items: center;
    justify-content: center;
}

.chart-canvas-container.doughnut-chart {
    background: radial-gradient(circle, #fafafa 0%, #f1f5f9 100%);
}

.chart-canvas-container.bar-chart {
    padding: 20px 10px;
}

.chart-canvas-container.line-chart {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

/* Légendes personnalisées */
.custom-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #f1f5f9;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #4b5563;
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 3px;
}

/* ===========================================
   11. ÉTATS DE CHARGEMENT ET VIDES
   =========================================== */

.no-results {
    text-align: center;
    padding: 60px 20px;
    color: #6b7280;
}

.no-results-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.no-results-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #374151;
}

.no-results-subtitle {
    font-size: 14px;
    color: #9ca3af;
}

.loading {
    text-align: center;
    padding: 60px 20px;
    color: #6b7280;
}

.loading-spinner {
    display: inline-block;
    font-size: 24px;
    animation: spin 1s linear infinite;
    margin-bottom: 16px;
}

.chart-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    color: #6b7280;
}

.chart-loading i {
    font-size: 32px;
    margin-bottom: 16px;
    animation: spin 1s linear infinite;
}

.chart-loading-text {
    font-size: 16px;
    font-weight: 500;
}

.chart-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    color: #9ca3af;
}

.chart-empty i {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.chart-empty-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #6b7280;
}

.chart-empty-subtitle {
    font-size: 14px;
    text-align: center;
    max-width: 300px;
}

/* ===========================================
   12. MODALES
   =========================================== */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.show {
    opacity: 1;
}

.modal-content {
    background: white;
    border-radius: 16px;
    max-width: 800px;
    max-height: 90vh;
    width: 90%;
    overflow-y: auto;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal-overlay.show .modal-content {
    transform: scale(1);
}

.modal-header {
    padding: 24px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-size: 24px;
    font-weight: 700;
    color: #0f172a;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #6b7280;
    padding: 8px;
    border-radius: 8px;
}

.modal-close:hover {
    background: #f3f4f6;
}

.modal-body {
    padding: 24px;
}

.candidate-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.detail-group {
    background: #f8fafc;
    padding: 16px;
    border-radius: 12px;
}

.detail-label {
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.detail-value {
    font-size: 14px;
    color: #0f172a;
    word-wrap: break-word;
}

.scoring-section {
    background: #f0f9ff;
    border: 1px solid #bfdbfe;
    border-radius: 12px;
    padding: 20px;
    margin-top: 24px;
}

.scoring-title {
    font-size: 18px;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 16px;
}

.scoring-content {
    white-space: pre-line;
    font-size: 14px;
    line-height: 1.6;
    color: #374151;
}

/* ===========================================
   13. ANIMATIONS
   =========================================== */

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

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

.fade-in, .fade-in-chart {
    animation: fadeIn 0.3s ease;
}

.fade-in-chart {
    animation: fadeIn 0.5s ease forwards;
}

/* Effets hover sur les cartes */
.chart-card:hover .chart-title i {
    transform: scale(1.1);
    transition: transform 0.2s ease;
}

.chart-card:hover .chart-canvas-container {
    transform: scale(1.01);
    transition: transform 0.3s ease;
}

/* ===========================================
   14. RESPONSIVE DESIGN
   =========================================== */

@media (max-width: 1200px) {
    .container, .charts-main-container {
        padding: 20px;
    }
    
    .stats-grid, .quick-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .container, .charts-main-container {
        padding: 16px;
    }
    
    .filters-sticky-content {
        padding: 16px 20px;
    }
    
    .filters-sticky-container {
        position: relative;
    }
    
    .header {
        padding: 24px;
    }
    
    .header h1 {
        font-size: 24px;
    }
    
    .filters-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .stats-grid, .quick-stats {
        grid-template-columns: 1fr;
    }
    
    .filters-header {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    
    .filters-title {
        font-size: 18px;
        text-align: center;
    }
    
    .filters-actions {
        justify-content: center;
        gap: 6px;
    }
    
    .table-header {
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
    }
    
    .pagination {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .chart-header {
        padding: 20px 20px 0;
        flex-direction: column;
        align-items: stretch;
    }
    
    .chart-content {
        padding: 20px;
    }
    
    .chart-canvas-container {
        padding: 16px;
        min-height: 300px;
    }
    
    .chart-canvas-container.large {
        min-height: 350px;
    }
    
    .chart-title {
        font-size: 18px;
        justify-content: center;
    }
    
    .chart-controls {
        justify-content: center;
        margin-top: 12px;
    }
    
    th, td {
        padding: 12px 8px;
    }
    
    th:first-child, td:first-child {
        padding-left: 16px;
    }
    
    th:last-child, td:last-child {
        padding-right: 16px;
    }
}

@media (max-width: 480px) {
    .filters-sticky-content {
        padding: 12px 16px;
    }
    
    .btn, .btn-chart {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .filter-input, .filter-select, .filter-input-chart, .filter-select-chart {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .search-input, .search-input-chart {
        padding: 14px 16px 14px 44px;
        font-size: 14px;
    }
    
    .stat-card, .stat-card-chart {
        padding: 16px;
    }
    
    .stat-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
        margin-bottom: 12px;
    }
    
    .stat-value, .stat-value-chart {
        font-size: 24px;
    }
    
    .chart-header {
        padding: 16px 16px 0;
    }
    
    .chart-content {
        padding: 16px;
    }
    
    .chart-canvas-container {
        padding: 12px;
        min-height: 250px;
    }
    
    .custom-legend {
        gap: 12px;
        margin-top: 16px;
        padding-top: 16px;
    }
    
    .legend-item {
        font-size: 12px;
    }
    
    .table-wrapper {
        font-size: 12px;
    }
    
    .tag {
        font-size: 10px;
        padding: 4px 8px;
    }
}

/* ===========================================
   15. OPTIMISATIONS POUR EXPORT PDF
   =========================================== */

@media print {
    .chart-card {
        break-inside: avoid;
        page-break-inside: avoid;
    }
    
    .chart-header {
        break-after: avoid;
    }
    
    .chart-content {
        break-before: avoid;
    }
}

/* ===========================================
   16. STYLES SPÉCIALISÉS (préservés des originaux)
   =========================================== */

#pdfExportModal * {
    box-sizing: border-box;
}


/* ===========================================
   SENTINEL - STYLES SYNTHÈSE EXÉCUTIVE
   =========================================== */

/* Dashboard principal */
.dashboard-overview {
    margin-bottom: 32px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

/* Cartes métriques */
.metric-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.metric-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.metric-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    /* background: var(--metric-color, #3b82f6); */
    border-radius: 16px 16px 0 0;
}

.metric-card.positive::before {
    /* background: linear-gradient(90deg, #10b981, #059669); */
}

.metric-card.negative::before {
    /* background: linear-gradient(90deg, #ef4444, #dc2626); */
}

.metric-card.warning::before {
    /* background: linear-gradient(90deg, #f59e0b, #d97706); */
}

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

.metric-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
    background: var(--metric-color, #3b82f6);
}

.metric-card.positive .metric-icon {
    background: linear-gradient(135deg, #10b981, #059669);
}

.metric-card.negative .metric-icon {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.metric-card.warning .metric-icon {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.metric-trend {
    font-size: 12px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.metric-trend.up {
    background: #ecfdf5;
    color: #059669;
}

.metric-trend.down {
    background: #fef2f2;
    color: #dc2626;
}

.metric-trend.stable {
    background: #f1f5f9;
    color: #64748b;
}

.metric-value {
    font-size: 32px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1;
    margin-bottom: 8px;
}

.metric-label {
    font-size: 14px;
    color: #64748b;
    font-weight: 500;
    margin-bottom: 16px;
}

.metric-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
}

.metric-detail {
    text-align: center;
}

.metric-detail-value {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 4px;
}

.metric-detail-label {
    font-size: 11px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

/* Section d'alertes */
.alerts-section {
    background: white;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 32px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    border: 1px solid #e2e8f0;
}

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

.alerts-title {
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 12px;
}

.alerts-title i {
    color: #ef4444;
    font-size: 18px;
}

.alerts-count {
    background: #fef2f2;
    color: #dc2626;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 6px;
}

.alert-item {
    background: #f8fafc;
    /* border-radius: 8px; */
    padding: 16px;
    margin-bottom: 12px;
    border-left: 4px solid;
    transition: all 0.2s ease;
}

.alert-item:hover {
    background: #f1f5f9;
    transform: translateX(4px);
}

.alert-item.high {
    border-left-color: #ef4444;
    background: #fef2f2;
}

.alert-item.medium {
    border-left-color: #f59e0b;
    background: #fffbeb;
}

.alert-item.low {
    border-left-color: #3b82f6;
    background: #eff6ff;
}

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

.alert-title {
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 8px;
}

.alert-amount {
    font-size: 14px;
    font-weight: 700;
    color: #ef4444;
}

.alert-description {
    font-size: 13px;
    color: #64748b;
    line-height: 1.5;
}

.alert-confidence {
    font-size: 11px;
    color: #64748b;
    margin-top: 8px;
    font-weight: 500;
}

/* Graphiques de synthèse */
.charts-overview {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 32px;
}

.chart-card-synthesis {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.chart-card-synthesis:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

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

.chart-title-synthesis {
    font-size: 16px;
    font-weight: 600;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 8px;
}

.chart-title-synthesis i {
    color: #3b82f6;
    font-size: 14px;
}

.chart-actions {
    display: flex;
    gap: 8px;
}

.chart-btn {
    background: transparent;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 6px 8px;
    cursor: pointer;
    color: #64748b;
    transition: all 0.2s ease;
    font-size: 12px;
}

.chart-btn:hover {
    background: #f1f5f9;
    color: #374151;
}

.chart-container-synthesis {
    position: relative;
    height: 280px;
    background: #fafafa;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chart-container-synthesis canvas {
    max-height: 100%;
    max-width: 100%;
}

/* Section recommandations */
.recommendations-section {
    background: white;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 32px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    border: 1px solid #e2e8f0;
}

.recommendations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.recommendation-card {
    background: #f8fafc;
    /* border-radius: 8px; */
    padding: 16px;
    border-left: 4px solid #10b981;
    transition: all 0.2s ease;
}

.recommendation-card:hover {
    background: #f1f5f9;
    transform: translateX(4px);
}

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

.recommendation-title {
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
}

.recommendation-savings {
    font-size: 12px;
    font-weight: 700;
    color: #10b981;
    background: #ecfdf5;
    padding: 2px 6px;
    border-radius: 4px;
}

.recommendation-description {
    font-size: 12px;
    color: #64748b;
    line-height: 1.4;
    margin-bottom: 8px;
}

.recommendation-difficulty {
    font-size: 11px;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 4px;
}

.difficulty-indicator {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #cbd5e1;
}

.difficulty-indicator.active {
    background: #f59e0b;
}

/* Section comparaison sectorielle */
.benchmark-section {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    border: 1px solid #e2e8f0;
}

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

.benchmark-item {
    text-align: center;
    padding: 16px;
    background: #f8fafc;
    border-radius: 8px;
}

.benchmark-value {
    font-size: 24px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 4px;
}

.benchmark-label {
    font-size: 12px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    margin-bottom: 8px;
}

.benchmark-comparison {
    font-size: 11px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 4px;
}

.benchmark-comparison.better {
    background: #ecfdf5;
    color: #059669;
}

.benchmark-comparison.worse {
    background: #fef2f2;
    color: #dc2626;
}

.benchmark-comparison.average {
    background: #f1f5f9;
    color: #64748b;
}

/* États de chargement */
.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
    color: #64748b;
}

.loading-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid #e2e8f0;
    border-top: 3px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 16px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 8px;
}

.loading-subtext {
    font-size: 14px;
    color: #94a3b8;
}

/* État vide */
.empty-state {
    text-align: center;
    padding: 48px 24px;
    color: #64748b;
}

.empty-icon {
    font-size: 48px;
    color: #cbd5e1;
    margin-bottom: 16px;
}

.empty-title {
    font-size: 18px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

.empty-description {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 24px;
}

/* Actions rapides */
.quick-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.quick-action-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    color: #374151;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.quick-action-btn:hover {
    border-color: #3b82f6;
    color: #3b82f6;
    transform: translateY(-1px);
}

.quick-action-btn i {
    font-size: 16px;
}

/* Responsive */
@media (max-width: 1024px) {
    .charts-overview {
        grid-template-columns: 1fr;
    }
    
    .dashboard-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .metric-card {
        padding: 20px;
    }
    
    .metric-value {
        font-size: 28px;
    }
    
    .metric-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .chart-container-synthesis {
        height: 240px;
    }
    
    .alerts-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .recommendation-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .recommendations-grid {
        grid-template-columns: 1fr;
    }
    
    .benchmark-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .quick-actions {
        flex-direction: column;
    }
}








/* ===========================================
   SENTINEL - STYLES ANALYSES DÉTAILLÉES
   =========================================== */

/* Zone de filtres avancés */
.advanced-filters {
    background: white;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    border: 1px solid #e2e8f0;
}

.filters-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    align-items: end;
}

.filter-group-advanced {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.filter-label-advanced {
    font-size: 12px;
    font-weight: 600;
    color: #374151;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.filter-select-advanced,
.filter-input-advanced {
    padding: 10px 12px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 13px;
    background: white;
    transition: all 0.2s ease;
    font-family: inherit;
}

.filter-select-advanced:focus,
.filter-input-advanced:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.date-range-group {
    display: flex;
    gap: 8px;
    align-items: center;
}

.date-separator {
    color: #64748b;
    font-weight: 500;
}

/* Grille d'analyses */
.analysis-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

/* Cartes d'analyse */
.analysis-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.analysis-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

.analysis-card.full-width {
    grid-column: 1 / -1;
}

.analysis-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f1f5f9;
}

.analysis-title {
    font-size: 18px;
    font-weight: 600;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 10px;
}

.analysis-title i {
    color: #3b82f6;
    font-size: 16px;
}

.analysis-controls {
    display: flex;
    gap: 8px;
    align-items: center;
}

.control-btn {
    background: transparent;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 6px 10px;
    cursor: pointer;
    color: #64748b;
    transition: all 0.2s ease;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.control-btn:hover {
    background: #f1f5f9;
    color: #374151;
    border-color: #cbd5e1;
}

.control-btn.active {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

/* Zone de graphique avancée */
.chart-container-advanced {
    position: relative;
    background: #fafafa;
    border-radius: 12px;
    padding: 20px;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chart-container-advanced.large {
    min-height: 500px;
}

.chart-container-advanced.medium {
    min-height: 350px;
}

.chart-container-advanced canvas {
    max-height: 100%;
    max-width: 100%;
}

/* Légende personnalisée */
.custom-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
}

.legend-item-advanced {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #4b5563;
    cursor: pointer;
    transition: all 0.2s ease;
}

.legend-item-advanced:hover {
    color: #1f2937;
}

.legend-color-advanced {
    width: 12px;
    height: 12px;
    border-radius: 3px;
    transition: transform 0.2s ease;
}

.legend-item-advanced:hover .legend-color-advanced {
    transform: scale(1.2);
}

/* Tableau d'analyse avancé */
.analysis-table-container {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    border: 1px solid #e2e8f0;
}

.table-header-advanced {
    background: #f8fafc;
    padding: 16px 20px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.table-title-advanced {
    font-size: 16px;
    font-weight: 600;
    color: #0f172a;
}

.table-actions {
    display: flex;
    gap: 8px;
}

.table-wrapper-advanced {
    overflow-x: auto;
    max-height: 400px;
    overflow-y: auto;
}

.table-wrapper-advanced::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.table-wrapper-advanced::-webkit-scrollbar-track {
    background: #f1f5f9;
}

.table-wrapper-advanced::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.analysis-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.analysis-table thead {
    background: #f8fafc;
    position: sticky;
    top: 0;
    z-index: 5;
}

.analysis-table th {
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 11px;
    color: #374151;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid #e5e7eb;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.analysis-table th:hover {
    background: #f1f5f9;
}

.analysis-table th.sortable::after {
    content: '↕';
    margin-left: 6px;
    color: #9ca3af;
    font-size: 10px;
}

.analysis-table th.sort-asc::after {
    content: '↑';
    color: #3b82f6;
}

.analysis-table th.sort-desc::after {
    content: '↓';
    color: #3b82f6;
}

.analysis-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}

.analysis-table tbody tr {
    transition: background-color 0.2s ease;
}

.analysis-table tbody tr:hover {
    background: #f8fafc;
}

/* Cellules spécialisées */
.amount-cell {
    font-family: 'SF Mono', Monaco, 'Cascadia Code', monospace;
    font-weight: 600;
    text-align: right;
}

.amount-cell.positive {
    color: #059669;
}

.amount-cell.negative {
    color: #dc2626;
}

.date-cell {
    font-family: 'SF Mono', Monaco, 'Cascadia Code', monospace;
    font-size: 12px;
    color: #64748b;
}

.category-cell {
    font-size: 12px;
}

.anomaly-indicator {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
}

.anomaly-indicator.high {
    background: #fef2f2;
    color: #dc2626;
}

.anomaly-indicator.medium {
    background: #fffbeb;
    color: #d97706;
}

.anomaly-indicator.low {
    background: #eff6ff;
    color: #2563eb;
}

.anomaly-indicator.none {
    background: #f0fdf4;
    color: #059669;
}

/* Statistiques de colonne */
.column-stats {
    background: #f8fafc;
    padding: 12px 16px;
    border-top: 2px solid #e2e8f0;
    font-size: 12px;
    color: #64748b;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stats-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.stats-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.stats-value {
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
}

/* Détails des anomalies */
.anomaly-details {
    background: #fffbeb;
    border: 1px solid #fed7aa;
    border-radius: 8px;
    padding: 16px;
    margin-top: 16px;
}

.anomaly-details-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.anomaly-title-detail {
    font-size: 14px;
    font-weight: 600;
    color: #92400e;
}

.anomaly-confidence {
    font-size: 12px;
    color: #78716c;
    background: white;
    padding: 4px 8px;
    border-radius: 4px;
}

.anomaly-description {
    font-size: 13px;
    color: #92400e;
    line-height: 1.5;
    margin-bottom: 12px;
}

.anomaly-actions {
    display: flex;
    gap: 8px;
}

.anomaly-btn {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.anomaly-btn.primary {
    background: #d97706;
    color: white;
    border: none;
}

.anomaly-btn.primary:hover {
    background: #b45309;
}

.anomaly-btn.secondary {
    background: white;
    color: #92400e;
    border: 1px solid #fed7aa;
}

.anomaly-btn.secondary:hover {
    background: #fef3c7;
}

/* Panneau latéral d'analyse */
.analysis-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    border: 1px solid #e2e8f0;
}

.sidebar-title {
    font-size: 16px;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-title i {
    color: #3b82f6;
    font-size: 14px;
}

/* Métriques rapides */
.quick-metric {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
}

.quick-metric:last-child {
    border-bottom: none;
}

.metric-label-quick {
    font-size: 13px;
    color: #64748b;
}

.metric-value-quick {
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
}

/* Graphique miniature */
.mini-chart {
    height: 120px;
    background: #f8fafc;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 12px;
}

/* Timeline d'événements */
.events-timeline {
    margin-top: 16px;
}

.timeline-item {
    display: flex;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid #f1f5f9;
}

.timeline-item:last-child {
    border-bottom: none;
}

.timeline-date {
    font-size: 11px;
    color: #64748b;
    font-weight: 500;
    min-width: 60px;
}

.timeline-content {
    flex: 1;
}

.timeline-title {
    font-size: 12px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 2px;
}

.timeline-subtitle {
    font-size: 11px;
    color: #64748b;
}

.timeline-amount {
    font-size: 12px;
    font-weight: 600;
    margin-left: auto;
}

.timeline-amount.negative {
    color: #dc2626;
}

.timeline-amount.positive {
    color: #059669;
}

/* Seuils et alertes */
.threshold-indicator {
    background: #f8fafc;
    /* border-radius: 8px; */
    padding: 12px;
    margin-top: 12px;
    border-left: 4px solid #3b82f6;
}

.threshold-warning {
    border-left-color: #f59e0b;
    background: #fffbeb;
}

.threshold-danger {
    border-left-color: #ef4444;
    background: #fef2f2;
}

.threshold-title {
    font-size: 12px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 4px;
}

.threshold-value {
    font-size: 11px;
    color: #64748b;
}

/* États responsives */
@media (max-width: 1200px) {
    .analysis-grid {
        grid-template-columns: 1fr;
    }
    
    .filters-row {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }
}

@media (max-width: 768px) {
    .advanced-filters {
        padding: 20px;
    }
    
    .filters-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .analysis-card {
        padding: 20px;
    }
    
    .analysis-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .chart-container-advanced {
        min-height: 300px;
        padding: 16px;
    }
    
    .analysis-table th,
    .analysis-table td {
        padding: 10px 12px;
    }
    
    .custom-legend {
        gap: 12px;
    }
    
    .date-range-group {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    
    .analysis-controls {
        flex-wrap: wrap;
        gap: 6px;
    }
}

@media (max-width: 480px) {
    .analysis-card {
        padding: 16px;
    }
    
    .analysis-title {
        font-size: 16px;
    }
    
    .chart-container-advanced {
        min-height: 250px;
        padding: 12px;
    }
    
    .table-wrapper-advanced {
        max-height: 300px;
    }
    
    .control-btn {
        padding: 4px 8px;
        font-size: 11px;
    }
    
    .column-stats {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }
}















































































































 

 

 



 

 
 

.filters-section, .bank-selection {
    background: white;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    border: 1px solid #e2e8f0;
}

.filters-title {
    font-size: 24px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.filters-title i {
    color: #3b82f6;
    font-size: 22px;
}

.ico {
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: black;
}

.btn, .btn-chart {
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: #3b82f6;
    color: white;
}



.btn-primary:hover {
    background: #2563eb;
    transform: translateY(-1px);
}

.btn-secondary {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
}

.btn-secondary:hover {
    background: #e2e8f0;
    border-color: #cbd5e1;
}

.nav-tabs {
    display: flex;
    list-style: none;
    padding: 0;
    margin-bottom: 24px;
    border-bottom: 1px solid #e2e8f0;
}

.nav-tabs .nav-item {
    margin-right: 8px;
}

.nav-tabs .nav-link {
    display: inline-block;
    padding: 12px 24px;
    text-decoration: none;
    color: #64748b;
    border-radius: 8px 8px 0 0;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
}

.nav-tabs .nav-link.active {
    background-color: white;
    border: 1px solid #e2e8f0;
    border-bottom-color: white;
    color: #0f172a;
    font-weight: 600;
}

.nav-tabs .nav-link:hover:not(.active) {
    background-color: #f8fafc;
    color: #374151;
}

.fade-in {
    animation: fadeIn 0.3s ease;
}

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

/* ===========================================
   NOUVEAUX STYLES SPÉCIFIQUES UPLOAD
   =========================================== */

/* Grille des banques */
.banks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 24px;
}

.bank-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    border: 2px solid #e2e8f0;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.bank-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border-color: #3b82f6;
}

.bank-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    /* background: linear-gradient(90deg, #3b82f6, #1d4ed8); */
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: left;
}

.bank-card:hover::before {
    transform: scaleX(1);
}

.bank-logo {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
    border-radius: 50%;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.bank-card:hover .bank-logo {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

.bank-logo i {
    font-size: 32px;
    color: #64748b;
    transition: all 0.3s ease;
}

.bank-card:hover .bank-logo i {
    color: white;
    transform: scale(1.1);
}

.bank-name {
    font-size: 18px;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 8px;
}

.bank-description {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 16px;
}

.bank-stats {
    display: flex;
    justify-content: space-around;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
}

.bank-stat {
    text-align: center;
}

.bank-stat-value {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
}

.bank-stat-label {
    font-size: 12px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Zone d'upload */
.upload-section {
    display: none;
}

.upload-section.active {
    display: block;
}

.upload-header {
    display: flex;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e2e8f0;
}

.back-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: none;
    color: #64748b;
    font-size: 14px;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.2s ease;
    margin-right: 16px;
}

.back-btn:hover {
    background: #f1f5f9;
    color: #374151;
}

.selected-bank-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.selected-bank-logo {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.selected-bank-logo i {
    font-size: 20px;
    color: white;
}

.selected-bank-details h3 {
    font-size: 20px;
    font-weight: 600;
    color: #0f172a;
    margin: 0;
}

.selected-bank-details p {
    font-size: 14px;
    color: #64748b;
    margin: 0;
}

/* Zone de drop */
.dropzone {
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    padding: 48px 24px;
    text-align: center;
    background: #f8fafc;
    transition: all 0.3s ease;
    cursor: pointer;
    margin-bottom: 24px;
}

.dropzone:hover,
.dropzone.dragover {
    border-color: #3b82f6;
    background: #eff6ff;
}

.dropzone.has-files {
    border-color: #10b981;
    background: #f0fdf4;
}

.dropzone-icon {
    font-size: 48px;
    color: #cbd5e1;
    margin-bottom: 16px;
    transition: all 0.3s ease;
}

.dropzone:hover .dropzone-icon,
.dropzone.dragover .dropzone-icon {
    color: #3b82f6;
    transform: scale(1.1);
}

.dropzone.has-files .dropzone-icon {
    color: #10b981;
}

.dropzone-text {
    font-size: 18px;
    color: #374151;
    margin-bottom: 8px;
    font-weight: 500;
}

.dropzone-subtext {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 24px;
}

.dropzone-requirements {
    font-size: 12px;
    color: #64748b;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
}

/* Fichiers uploadés */
.uploaded-files {
    margin-bottom: 24px;
}

.file-item {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.2s ease;
}

.file-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.file-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
}

.file-details {
    flex: 1;
}

.file-name {
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 4px;
}

.file-size {
    font-size: 12px;
    color: #64748b;
}

.file-progress {
    width: 100%;
    height: 4px;
    background: #f1f5f9;
    border-radius: 2px;
    margin-top: 8px;
    overflow: hidden;
}

.file-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #10b981, #059669);
    width: 0%;
    transition: width 0.3s ease;
}

.file-remove {
    background: transparent;
    border: none;
    color: #64748b;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.file-remove:hover {
    background: #fef2f2;
    color: #ef4444;
}

/* Options d'upload */
.upload-options {
    background: #f8fafc;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
}

.upload-options h4 {
    font-size: 16px;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.upload-options h4 i {
    color: #3b82f6;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-label {
    font-size: 12px;
    font-weight: 600;
    color: #374151;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-input,
.form-select,
.form-textarea {
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    background: white;
    transition: all 0.2s ease;
    font-family: inherit;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-textarea {
    min-height: 80px;
    resize: vertical;
}

.form-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.form-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
}

.form-checkbox label {
    font-size: 14px;
    color: #374151;
    cursor: pointer;
}

/* Actions */
.upload-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
}

/* Responsive */
@media (max-width: 768px) {
    .banks-grid {
        grid-template-columns: 1fr;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .upload-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .upload-actions {
        flex-direction: column;
    }
}























































































































































































        
        /* Ajustements pour les cartes de postes */
        .position-logo {
            width: 80px;
            height: 80px;
            background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
            border-radius: 50%;
            margin: 0 auto 16px;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease;
        }

        .position-card:hover .position-logo {
            background: linear-gradient(135deg, #3b82f6, #1d4ed8);
        }

        .position-logo i {
            font-size: 32px;
            color: #64748b;
            transition: all 0.3s ease;
        }

        .position-card:hover .position-logo i {
            color: white;
            transform: scale(1.1);
        }

        /* Tableau des candidats */
        .candidates-table {
            width: 100%;
            border-collapse: collapse;
            font-size: 14px;
        }

        .candidates-table th {
            background: #f8fafc;
            padding: 16px 12px;
            text-align: left;
            font-weight: 600;
            font-size: 12px;
            color: #374151;
            text-transform: uppercase;
            letter-spacing: 0.1em;
            cursor: pointer;
            user-select: none;
            position: relative;
            white-space: nowrap;
            transition: all 0.2s ease;
        }

        .candidates-table td {
            padding: 16px 12px;
            vertical-align: middle;
            border-bottom: 1px solid #f1f5f9;
        }

        .candidate-name {
            font-weight: 600;
            color: #0f172a;
        }

        .candidate-email {
            font-size: 12px;
            color: #64748b;
        }

        .status-badge {
            padding: 4px 8px;
            border-radius: 6px;
            font-size: 11px;
            font-weight: 600;
            display: inline-block;
        }

        .status-badge.new {
            background: #dbeafe;
            color: #1e40af;
        }

        .status-badge.reviewing {
            background: #fef3c7;
            color: #92400e;
        }

        .status-badge.shortlisted {
            background: #d1fae5;
            color: #065f46;
        }

        .status-badge.rejected {
            background: #fee2e2;
            color: #991b1b;
        }

        .score-badge {
            font-family: 'SF Mono', Monaco, monospace;
            font-weight: 700;
            font-size: 14px;
        }

        .score-excellent {
            color: #059669;
        }

        .score-good {
            color: #0891b2;
        }

        .score-average {
            color: #d97706;
        }

        .score-low {
            color: #dc2626;
        }

        /* Actions sur les candidats */
        .candidate-actions {
            display: flex;
            gap: 8px;
        }

        .action-btn {
            background: transparent;
            border: 1px solid #e2e8f0;
            border-radius: 4px;
            padding: 4px 8px;
            cursor: pointer;
            color: #64748b;
            transition: all 0.2s ease;
            font-size: 12px;
        }

        .action-btn:hover {
            background: #f1f5f9;
            color: #374151;
        }

        /* Détails du poste dans l'upload */
        .position-details-section {
            background: #f8fafc;
            border-radius: 12px;
            padding: 24px;
            margin-bottom: 24px;
        }

        .position-details-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 20px;
            margin-top: 16px;
        }

        .detail-item {
            display: flex;
            flex-direction: column;
            gap: 4px;
        }

        .detail-label {
            font-size: 11px;
            font-weight: 600;
            color: #64748b;
            text-transform: uppercase;
            letter-spacing: 0.05em;
        }

        .detail-value {
            font-size: 14px;
            color: #0f172a;
            font-weight: 500;
        }










































































    /* ===========================================
   ONGLETS INTERNES POUR LA GESTION DU POSTE
   Section: Zone de gestion du poste
   =========================================== */

/* Conteneur des onglets internes */
.internal-tabs {
    margin-top: 24px;
}

.internal-tab-nav {
    display: flex;
    gap: 8px;
    border-bottom: 2px solid #e5e7eb;
    margin-bottom: 24px;
}

.internal-tab-link {
    padding: 12px 20px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    color: #64748b;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.internal-tab-link:hover {
    color: #3b82f6;
    background: #f8fafc;
}

.internal-tab-link.active {
    color: #3b82f6;
    border-bottom-color: #3b82f6;
    background: transparent;
}

.internal-tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

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

/* ===========================================
   ACCORDION POUR L'ÉQUIPE
   Section: Onglet Informations
   =========================================== */

.accordion {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 16px;
}

.accordion-header {
    background: #f8fafc;
    padding: 16px 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
}

.accordion-header:hover {
    background: #f1f5f9;
}

.accordion-header.active {
    background: #eff6ff;
    border-bottom: 1px solid #e5e7eb;
}

.accordion-title {
    font-size: 15px;
    font-weight: 600;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 10px;
}

.accordion-icon {
    transition: transform 0.2s ease;
}

.accordion-header.active .accordion-icon {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.accordion-content.active {
    max-height: 600px;
}

.accordion-body {
    padding: 20px;
}

/* Styles pour l'équipe de recrutement (dans accordion) */
.team-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.team-member-card {
    background: #f8fafc;
    border-radius: 8px;
    padding: 16px;
    border: 1px solid #e2e8f0;
}

.team-member-header {
    display: flex;
    gap: 12px;
    margin-bottom: 8px;
}

.team-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 14px;
}

/* ===========================================
   PROFIL DU POSTE (AMÉLIORÉ)
   Section: Onglet Profil
   =========================================== */

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

.profile-actions {
    display: flex;
    gap: 8px;
}

.profile-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #64748b;
}

.profile-sections {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.profile-section-card {
    background: #f8fafc;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #e2e8f0;
}

.profile-section-title {
    font-size: 16px;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.profile-section-title::before {
    content: '';
    width: 4px;
    height: 20px;
    background: #3b82f6;
    border-radius: 2px;
}

/* ===========================================
   QUESTIONNAIRE (DESIGN CARDS)
   Section: Onglet Questionnaire
   =========================================== */

.questionnaire-header {
    margin-bottom: 24px;
}

.questionnaire-prompt-section {
    background: #f8fafc;
    border-radius: 8px;
    /* padding: 20px; */
    margin-bottom: 24px;
}

.prompt-controls {
    display: flex;
    gap: 12px;
    align-items: flex-end;
}

.questions-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Card pour chaque question */
.question-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px;
    transition: all 0.2s ease;
    cursor: move;
}

.question-card:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transform: translateY(-1px);
}

.question-card.dragging {
    opacity: 0.5;
}

.question-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.question-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: #e0e7ff;
    color: #4338ca;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 600;
}

.question-text {
    flex: 1;
    margin: 0 16px;
    font-size: 14px;
    color: #0f172a;
    font-weight: 500;
}

.question-actions {
    display: flex;
    gap: 4px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.question-card:hover .question-actions {
    opacity: 1;
}

.question-meta {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-top: 8px;
}

.question-type-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
}

.question-type-badge.text {
    background: #dbeafe;
    color: #1e40af;
}

.question-type-badge.choice {
    background: #fce7f3;
    color: #be185d;
}

.question-required {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #dc2626;
}

/* ===========================================
   MODAL SIMPLIFIÉE
   =========================================== */

.modal-prompt-section {
    margin-bottom: 20px;
}

.generated-preview {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
    max-height: 400px;
    overflow-y: auto;
}

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

.preview-title {
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
}

/* Boutons d'action simplifiés */
.btn-generate {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-generate:hover {
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

/* Badge pour contenu généré */
.generated-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    background: #f0fdf4;
    color: #15803d;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
}

.generated-badge i {
    font-size: 10px;
}

/* Responsive */
@media (max-width: 768px) {
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    .internal-tab-nav {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .prompt-controls {
        flex-direction: column;
        align-items: stretch;
    }
}










/* ===========================================
   STYLES MANQUANTS POUR LA MODALE
   =========================================== */

/* Modal overlay - assure qu'elle est cachée par défaut */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: none; /* Important: cachée par défaut */
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Quand la modale est active */
.modal-overlay.active {
    display: flex;
    opacity: 1;
}

/* Container principal de la modale */
.modal {
    background: white;
    border-radius: 16px;
    max-width: 600px;
    max-height: 90vh;
    width: 90%;
    overflow-y: auto;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-overlay.active .modal {
    transform: scale(1);
}

/* Header de la modale */
.modal-header {
    padding: 24px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-size: 20px;
    font-weight: 600;
    color: #0f172a;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #6b7280;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: #f3f4f6;
    color: #374151;
}

/* Body de la modale */
.modal-body {
    padding: 24px;
}

/* Section prompt de la modale */
.modal-prompt-section {
    margin-bottom: 20px;
}

.prompt-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

.prompt-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    transition: all 0.2s ease;
}

.prompt-textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Preview section */
.generated-preview {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
    max-height: 400px;
    overflow-y: auto;
}

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

.preview-title {
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Badge pour contenu généré */
.generated-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    background: #f0fdf4;
    color: #15803d;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
}

.generated-badge i {
    font-size: 10px;
}

/* Bouton success qui manquait */
.btn-success {
    background: #10b981;
    color: white;
}

.btn-success:hover {
    background: #059669;
}

/* S'assurer que les clics passent à travers quand la modale est fermée */
.modal-overlay:not(.active) {
    pointer-events: none;
}

/* Responsive pour la modale */
@media (max-width: 768px) {
    .modal {
        max-width: 95%;
        margin: 20px;
    }
    
    .modal-header,
    .modal-body {
        padding: 20px;
    }
    
    .modal-title {
        font-size: 18px;
    }
}



























































































        /* CSS spécifique aux paramètres - Sections de configuration */
        
        /* 1. CARTES DE PARAMÈTRES - Structure générale pour les sections de settings */
        .settings-card {
            background: white;
            border-radius: 16px;
            padding: 24px;
            margin-bottom: 24px;
            box-shadow: 0 1px 3px rgba(0,0,0,0.04);
            border: 1px solid #e2e8f0;
        }

        /* 2. EN-TÊTES DE SECTIONS - Titres avec icônes et descriptions */
        .settings-section-title {
            font-size: 18px;
            font-weight: 600;
            color: #0f172a;
            margin-bottom: 8px;
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .settings-section-title i {
            color: #3b82f6;
            font-size: 16px;
        }

        .settings-section-description {
            color: #64748b;
            font-size: 14px;
            margin-bottom: 20px;
            line-height: 1.5;
        }

        /* 3. LIGNES DE PARAMÈTRES - Structure pour chaque option individuelle */
        .settings-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 16px 0;
            border-bottom: 1px solid #f1f5f9;
        }

        .settings-row:last-child {
            border-bottom: none;
        }

        .settings-row-content {
            flex: 1;
        }

        .settings-row-title {
            font-size: 14px;
            font-weight: 600;
            color: #0f172a;
            margin-bottom: 4px;
        }

        .settings-row-description {
            font-size: 13px;
            color: #64748b;
            line-height: 1.4;
        }

        .settings-row-actions {
            margin-left: 16px;
        }

        /* 4. TOGGLES ET SWITCHES - Boutons de basculement pour activer/désactiver */
        .toggle-switch {
            position: relative;
            display: inline-block;
            width: 48px;
            height: 24px;
        }

        .toggle-switch input {
            opacity: 0;
            width: 0;
            height: 0;
        }

        .toggle-slider {
            position: absolute;
            cursor: pointer;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: #cbd5e1;
            transition: .4s;
            border-radius: 24px;
        }

        .toggle-slider:before {
            position: absolute;
            content: "";
            height: 18px;
            width: 18px;
            left: 3px;
            bottom: 3px;
            background-color: white;
            transition: .4s;
            border-radius: 50%;
        }

        input:checked + .toggle-slider {
            background-color: #3b82f6;
        }

        input:checked + .toggle-slider:before {
            transform: translateX(24px);
        }

        /* 5. BADGES DE STATUT - Indicateurs visuels pour les états */
        .status-badge-settings {
            padding: 4px 12px;
            border-radius: 6px;
            font-size: 12px;
            font-weight: 600;
            display: inline-block;
        }

        .status-badge-settings.active {
            background: #ecfdf5;
            color: #059669;
        }

        .status-badge-settings.inactive {
            background: #f1f5f9;
            color: #64748b;
        }

        .status-badge-settings.warning {
            background: #fffbeb;
            color: #d97706;
        }

        /* 6. TABLEAU DE DÉLÉGATIONS - Spécifique à la gestion des accès délégués */
        .delegation-table {
            width: 100%;
            border-collapse: collapse;
            margin-top: 16px;
        }

        .delegation-table th {
            background: #f8fafc;
            padding: 12px;
            text-align: left;
            font-weight: 600;
            font-size: 12px;
            color: #374151;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            border-bottom: 1px solid #e5e7eb;
        }

        .delegation-table td {
            padding: 12px;
            border-bottom: 1px solid #f1f5f9;
            vertical-align: middle;
        }

        .delegation-table tbody tr:hover {
            background: #f8fafc;
        }

        /* 7. CARTES DE SESSIONS - Affichage des sessions actives */
        .session-card {
            background: #f8fafc;
            border: 1px solid #e2e8f0;
            border-radius: 8px;
            padding: 16px;
            margin-bottom: 12px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .session-info {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .session-icon {
            width: 32px;
            height: 32px;
            background: #3b82f6;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 14px;
        }

        .session-details h4 {
            font-size: 14px;
            font-weight: 600;
            color: #0f172a;
            margin: 0;
        }

        .session-details p {
            font-size: 12px;
            color: #64748b;
            margin: 2px 0 0 0;
        }

        /* 8. ZONE DANGEREUSE - Section pour actions destructives */
        .danger-zone {
            background: #fef2f2;
            border: 1px solid #fecaca;
            border-radius: 12px;
            padding: 20px;
            margin-top: 24px;
        }

        .danger-zone h3 {
            color: #dc2626;
            font-size: 16px;
            font-weight: 600;
            margin-bottom: 8px;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .danger-zone p {
            color: #991b1b;
            font-size: 14px;
            margin-bottom: 16px;
        }

        .btn-danger-settings {
            background: #dc2626;
            color: white;
            padding: 10px 16px;
            border: none;
            border-radius: 8px;
            font-size: 14px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .btn-danger-settings:hover {
            background: #b91c1c;
            transform: translateY(-1px);
        }

        /* 9. RESPONSIVE - Adaptations pour mobile */
        @media (max-width: 768px) {
            .settings-row {
                flex-direction: column;
                align-items: flex-start;
                gap: 12px;
            }

            .settings-row-actions {
                margin-left: 0;
                width: 100%;
            }

            .delegation-table {
                font-size: 12px;
            }

            .session-card {
                flex-direction: column;
                align-items: flex-start;
                gap: 12px;
            }
        }









        


















/* Modes de génération */
.generation-modes {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.mode-card {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.mode-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.mode-card.active {
    background: #eff6ff;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.mode-icon {
    width: 48px;
    height: 48px;
    background: #e0e7ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    transition: all 0.3s ease;
}

.mode-card.active .mode-icon {
    background: #3b82f6;
    color: white;
}

.mode-icon i {
    font-size: 20px;
    color: #6366f1;
}

.mode-card.active .mode-icon i {
    color: white;
}

.mode-content h4 {
    font-size: 16px;
    font-weight: 600;
    color: #0f172a;
    margin: 0 0 4px 0;
}

.mode-content p {
    font-size: 12px;
    color: #64748b;
    margin: 0;
}

/* Position éditables */
.position-editor {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
}

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

.position-field {
    margin-bottom: 16px;
}

.position-field-label {
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 6px;
    display: block;
}

.position-field-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s ease;
}

.position-field-textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    resize: vertical;
    min-height: 80px;
    transition: all 0.2s ease;
}

.position-field-input:focus,
.position-field-textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.editable-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.editable-list-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.editable-list-item input {
    flex: 1;
}

.btn-add-item {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #64748b;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-add-item:hover {
    background: #e2e8f0;
    color: #374151;
}

.btn-remove-item {
    background: transparent;
    border: none;
    color: #ef4444;
    cursor: pointer;
    padding: 4px;
}

/* Responsive pour la modale */
@media (max-width: 768px) {
    .generation-modes {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .generation-modes {
        grid-template-columns: 1fr;
    }
}











/* Éditeur de profil */
.profile-section-editor {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
}

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

.section-title-input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    color: #0f172a;
    background: white;
    transition: all 0.2s ease;
}

.section-title-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.section-title-input::before {
    content: '';
    width: 4px;
    height: 20px;
    background: #3b82f6;
    border-radius: 2px;
    position: absolute;
    left: -12px;
}

/* Responsive pour l'éditeur de profil */
@media (max-width: 768px) {
    .profile-section-editor {
        padding: 16px;
    }
    
    .section-header {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }
}













/* Styles pour les questionnaires */
.question-preview {
    margin-top: 12px;
    padding: 12px;
    background: #f8fafc;
    border-radius: 8px;
    font-size: 13px;
}

.option-preview {
    padding: 6px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.option-weight {
    font-size: 11px;
    color: #64748b;
    margin-left: 4px;
}

.scale-preview {
    display: flex;
    align-items: center;
    gap: 12px;
}

.scale-preview input[type="range"] {
    flex: 1;
}

.answer-preview {
    width: 100%;
    min-height: 60px;
    padding: 8px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    resize: none;
    font-size: 12px;
}

.constraints-info {
    display: flex;
    gap: 16px;
    margin-top: 8px;
    font-size: 11px;
    color: #64748b;
}

.question-category-badge {
    background: #f3e8ff;
    color: #7c3aed;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
}

.question-weight {
    background: #fef3c7;
    color: #92400e;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
}

.question-optional {
    background: #f1f5f9;
    color: #64748b;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
}

/* Types de questions badges */
.question-type-badge.text { background: #dbeafe; color: #1e40af; }
.question-type-badge.choice { background: #fce7f3; color: #be185d; }
.question-type-badge.scale { background: #ede9fe; color: #7c3aed; }
.question-type-badge.binary { background: #cffafe; color: #0891b2; }
.question-type-badge.context { background: #fed7aa; color: #92400e; }
.question-type-badge.motivation { background: #bbf7d0; color: #15803d; }
.question-type-badge.tech { background: #e0e7ff; color: #4338ca; }
.question-type-badge.behavior { background: #fecaca; color: #b91c1c; }

/* Loading state */
.loading-state {
    text-align: center;
    padding: 40px;
    color: #64748b;
}

.loading-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid #e2e8f0;
    border-top: 3px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 16px;
}















/* ========================================== */
/* STYLES POUR LE PROFIL DE RÉFÉRENCE */
/* ========================================== */

/* En-tête de la section */
.reference-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e2e8f0;
}

.reference-actions {
    display: flex;
    gap: 12px;
}

/* Titre de sous-section */
.section-subtitle {
    font-size: 16px;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-subtitle i {
    color: #3b82f6;
    font-size: 14px;
}

/* Grille de sélection de source */
.profile-source-section {
    background: white;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    border: 1px solid #e2e8f0;
}

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

.source-card {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.source-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.source-card.active {
    background: #eff6ff;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.source-icon {
    width: 48px;
    height: 48px;
    background: #e0e7ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
}

.source-card.active .source-icon {
    background: #3b82f6;
    color: white;
}

.source-icon i {
    font-size: 20px;
    color: #6366f1;
}

.source-card.active .source-icon i {
    color: white;
}

.source-card h6 {
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
    margin: 0 0 4px 0;
}

.source-card p {
    font-size: 12px;
    color: #64748b;
    margin: 0;
}

/* Configuration du profil */
.profile-configuration {
    background: white;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    border: 1px solid #e2e8f0;
}

/* Affichage du profil */
.reference-profile-display {
    background: white;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    border: 1px solid #e2e8f0;
}

.profile-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.profile-info-card,
.profile-skills-card,
.profile-experience-card {
    background: #f8fafc;
    border-radius: 8px;
    padding: 16px;
}

.profile-info-card h6,
.profile-skills-card h6,
.profile-experience-card h6 {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin: 0 0 12px 0;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 13px;
}

.info-label {
    color: #64748b;
}

.info-value {
    color: #0f172a;
    font-weight: 500;
}

/* Liste de compétences */
.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skill-badge {
    background: #e0e7ff;
    color: #4338ca;
    padding: 4px 10px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
}

.skill-level {
    background: #4338ca;
    color: white;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 10px;
}

/* Section de comparaison */
.comparison-section {
    background: white;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    border: 1px solid #e2e8f0;
}

.comparison-filters {
    display: flex;
    gap: 24px;
    margin-bottom: 24px;
    padding: 16px;
    background: #f8fafc;
    border-radius: 8px;
}

.comparison-chart {
    max-width: 600px;
    margin: 0 auto 32px;
    background: #fafafa;
    padding: 20px;
    border-radius: 12px;
}

/* Tableau de scoring */
.scoring-table-container {
    overflow-x: auto;
    margin-bottom: 24px;
}

.scoring-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.scoring-table th {
    background: #f8fafc;
    padding: 12px;
    text-align: left;
    font-weight: 600;
    font-size: 12px;
    color: #374151;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid #e2e8f0;
}

.scoring-table td {
    padding: 12px;
    border-bottom: 1px solid #f1f5f9;
}

.score-cell {
    font-weight: 700;
    font-size: 14px;
}

.score-high { color: #059669; }
.score-medium { color: #d97706; }
.score-low { color: #dc2626; }

.match-percentage {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.match-high { background: #ecfdf5; color: #059669; }
.match-medium { background: #fffbeb; color: #d97706; }
.match-low { background: #fef2f2; color: #dc2626; }

/* Analyse des écarts */
.gap-analysis-section {
    margin-top: 32px;
}

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

.gap-card {
    background: #f8fafc;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #e2e8f0;
}

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

.gap-candidate-name {
    font-size: 16px;
    font-weight: 600;
    color: #0f172a;
}

.gap-score {
    font-size: 20px;
    font-weight: 700;
}

.gaps-list {
    margin-bottom: 16px;
}

.gap-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #e2e8f0;
    font-size: 13px;
}

.gap-item:last-child {
    border-bottom: none;
}

.gap-skill {
    color: #374151;
}

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

.gap-indicator {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

.gap-negative { background: #fef2f2; color: #dc2626; }
.gap-positive { background: #f0fdf4; color: #059669; }

/* Panneau de recommandations */
.recommendations-panel {
    background: #f0f9ff;
    border: 1px solid #bfdbfe;
    border-radius: 12px;
    padding: 24px;
}

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

.recommendation-card {
    background: white;
    border-radius: 8px;
    padding: 16px;
    border: 1px solid #dbeafe;
}

.recommendation-type {
    font-size: 11px;
    color: #2563eb;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    margin-bottom: 8px;
}

.recommendation-text {
    font-size: 13px;
    color: #374151;
    line-height: 1.5;
}

/* États de chargement */
.profile-loading {
    text-align: center;
    padding: 40px;
    color: #64748b;
}

.profile-loading i {
    font-size: 32px;
    margin-bottom: 16px;
    animation: spin 1s linear infinite;
}

/* Responsive */
@media (max-width: 768px) {
    .profile-source-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .comparison-filters {
        flex-direction: column;
        gap: 16px;
    }
    
    .gap-cards-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .profile-source-grid {
        grid-template-columns: 1fr;
    }
    
    .reference-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
}
   


















.employee-selection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.employee-card {
    display: flex;
    gap: 16px;
    padding: 16px;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.employee-card:hover {
    border-color: #3b82f6;
    background: #eff6ff;
}

.employee-avatar {
    width: 48px;
    height: 48px;
    background: #3b82f6;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.employee-info h6 {
    margin: 0 0 4px 0;
    font-size: 14px;
    color: #0f172a;
}

.employee-info p {
    margin: 0 0 8px 0;
    font-size: 12px;
    color: #64748b;
}

.employee-stats {
    display: flex;
    gap: 8px;
}

.stat-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    background: #e0e7ff;
    color: #4338ca;
    border-radius: 4px;
    font-size: 11px;
}

.form-section {
    margin-bottom: 24px;
    padding: 16px;
    background: #f8fafc;
    border-radius: 8px;
}

.form-section-title {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin: 0 0 12px 0;
}

.cv-import-zone {
    text-align: center;
}

.import-note {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 16px;
    padding: 12px;
    background: #f0f9ff;
    border-radius: 8px;
    text-align: left;
}

.import-note i {
    color: #3b82f6;
    margin-top: 2px;
}

.import-note p {
    margin: 0;
    font-size: 13px;
    color: #1e40af;
}



























/* ===========================================
   MODALES LX - STYLES EXTERNALISÉS
   =========================================== */

   @keyframes lxModalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes lxModalSlideOut {
    from {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
    to {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
}

.lx-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lx-modal-overlay.lx-active {
    opacity: 1;
    visibility: visible;
}

.lx-modal-overlay.lx-second {
    z-index: 1100;
    background-color: rgba(0, 0, 0, 0.2);
}

.lx-modal-overlay.lx-closing {
    animation: lxModalSlideOut 0.3s ease-in;
}

.lx-modal {
    width: 90%;
    max-height: 90vh;
    background: white;
    border-radius: 20px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.15);
    overflow: hidden;
    animation: lxModalSlideIn 0.3s ease-out;
    display: flex;
    flex-direction: column;
}

.lx-modal.lx-small { max-width: 400px; }
.lx-modal.lx-medium { max-width: 600px; }
.lx-modal.lx-large { max-width: 800px; }
.lx-modal.lx-extra-large { max-width: 1000px; }

.lx-modal-header {
    padding: 32px;
    color: white;
    border-bottom: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.lx-modal-header.lx-primary { background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%); }
.lx-modal-header.lx-success { background: linear-gradient(135deg, #10b981 0%, #059669 100%); }
.lx-modal-header.lx-warning { background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%); }
.lx-modal-header.lx-danger { background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%); }
.lx-modal-header.lx-purple { background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%); }

.lx-modal-title {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
}

.lx-modal-title i {
    font-size: 20px;
}

.lx-modal-close {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    padding: 8px;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lx-modal-close:hover {
    background: rgba(255,255,255,0.3);
}

.lx-modal-close i {
    font-size: 16px;
}

.lx-modal-body {
    padding: 32px;
    flex-grow: 1;
    overflow-y: auto;
}

.lx-modal-body::-webkit-scrollbar {
    width: 6px;
}

.lx-modal-body::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}

.lx-modal-body::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.lx-modal-footer {
    padding: 24px 32px;
    background: #f8fafc;
    border-top: 1px solid #f1f5f9;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    flex-shrink: 0;
}

/* Boutons */
.lx-btn {
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.lx-btn:hover {
    transform: translateY(-1px);
}

.lx-btn.lx-secondary {
    background: white;
    border: 2px solid #e5e7eb;
    color: #64748b;
}

.lx-btn.lx-secondary:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.lx-btn.lx-primary {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    font-weight: 600;
}

.lx-btn.lx-primary:hover {
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.lx-btn.lx-success {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    font-weight: 600;
}

.lx-btn.lx-success:hover {
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.lx-btn.lx-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
    font-weight: 600;
}

/* Contenu structuré */
.lx-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.lx-info-item {
    background: #f8fafc;
    padding: 16px;
    border-left: 4px solid #3b82f6;
    transition: all 0.2s ease;
}

.lx-info-item.lx-clickable {
    cursor: pointer;
}

.lx-info-item.lx-clickable:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    background: #f1f5f9;
}

.lx-info-item.lx-success { border-left-color: #10b981; }
.lx-info-item.lx-warning { border-left-color: #f59e0b; }
.lx-info-item.lx-danger { border-left-color: #ef4444; }
.lx-info-item.lx-purple { border-left-color: #8b5cf6; }

.lx-info-label {
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.lx-info-value {
    font-size: 16px;
    font-weight: 600;
    color: #0f172a;
}

.lx-info-value.lx-success { color: #059669; }
.lx-info-value.lx-warning { color: #d97706; }
.lx-info-value.lx-danger { color: #dc2626; }

.lx-section-title {
    margin: 24px 0 16px 0;
    color: #0f172a;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
}

.lx-section-title i {
    color: #3b82f6;
}

.lx-section-title.lx-purple i { color: #8b5cf6; }

.lx-competency-tag {
    background: #eff6ff;
    color: #1e40af;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    margin-right: 8px;
    margin-bottom: 8px;
    display: inline-block;
}

/* Formulaires */
.lx-form-group {
    margin-bottom: 20px;
}

.lx-form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.lx-form-label i {
    color: #3b82f6;
}

.lx-form-input,
.lx-form-select,
.lx-form-textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 14px;
    transition: all 0.2s ease;
    background: white;
    font-family: inherit;
}

.lx-form-input:focus,
.lx-form-select:focus,
.lx-form-textarea:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    outline: none;
}

.lx-form-textarea {
    resize: vertical;
}

.lx-form-grid {
    display: grid;
    gap: 16px;
}

.lx-form-grid.lx-cols-2 {
    grid-template-columns: 1fr 1fr;
}

/* Responsive */
@media (max-width: 768px) {
    .lx-modal {
        width: 95%;
        margin: 20px;
    }
    
    .lx-modal-header,
    .lx-modal-body,
    .lx-modal-footer {
        padding: 20px;
    }
    
    .lx-modal-title {
        font-size: 20px;
    }
    
    .lx-info-grid {
        grid-template-columns: 1fr;
    }
    
    .lx-form-grid.lx-cols-2 {
        grid-template-columns: 1fr;
    }
    
    .lx-modal-footer {
        flex-direction: column;
    }
}









.lx-header {
    background: white;
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    border: 1px solid #e2e8f0;
}

.lx-header h1 {
    font-size: 32px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 8px;
    letter-spacing: -0.025em;
}

.lx-header p {
    color: #64748b;
    font-size: 16px;
    margin-bottom: 24px;
}



#lxLeftPanel {
    z-index: 3;
    position: absolute;
    top: 0;
    left: 0;
    width: 500px;
    height: 100%;
    background-color: white;
    box-shadow: -3px 0 10px rgba(0, 0, 0, 0.3);
    
    /* Animation d'entrée/sortie */
    transform: translateX(-100%);
    opacity: 0;
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
    overflow-y: scroll;
}

#lxLeftPanel.active {
    transform: translateX(0);
    opacity: 1;
}

#lxRightPanel {
    z-index: 3;
    position: fixed;
    top: 300;
    right: 0;
    width: 500px;
    height: 100vh;
    background-color: white;
    box-shadow: -3px 0 10px rgba(0, 0, 0, 0.3);
    
    /* Animation d'entrée/sortie */
    transform: translateX(100%);
    opacity: 0;
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
    overflow-y: scroll;
}

#lxRightPanel.active {
    transform: translateX(0);
    opacity: 1;
}

.lx-tab-pane {
    display: none;
    animation: fadeIn 0.3s ease;
}

.lx-tab-pane.active {
    display: block;
}


.lx-nav-link {
    display: inline-block;
    padding: 12px 24px;
    text-decoration: none;
    color: #64748b;
    border-radius: 8px 8px 0 0;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
}

.lx-nav-link.active {
    background-color: white;
    border: 1px solid #e2e8f0;
    border-bottom-color: white;
    color: #0f172a;
    font-weight: 600;  
}
































li {
    position: relative;
    padding-left: 0px;
    /*padding-bottom: 15px;*/
}

a:link {
    text-decoration: none;
}


a {
    color: #00B7FF;
}

/*
input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0;
    cursor: pointer;
}
*/


.rouge { color:red }
.vert { color:green }


.no-border { border: none}


.flex-col { display: flex;flex-direction: column; }
.flex-col { display: flex;flex-direction: column; }
.flex-row { display: flex;flex-direction: row; }
.flex-row { display: flex;flex-direction: row; }

.flex-col-10 { display: flex;flex-direction: column;gap:10px }
.flex-col-20 { display: flex;flex-direction: column;gap:20px }
.flex-row-10 { display: flex;flex-direction: row;gap:10px }
.flex-row-20 { display: flex;flex-direction: row;gap:20px }

.ms500 { margin-left: 500px;}
.ms450 { margin-left: 450px;}
.ms400 { margin-left: 400px;}
.ms350 { margin-left: 350px;}
.ms300 { margin-left: 300px;}
.ms250 { margin-left: 250px;}
.ms200 { margin-left: 200px;}
.ms150 { margin-left: 150px;}
.ms100 { margin-left: 100px;}


.ms50 { margin-left: 50px;}
.ms40 { margin-left: 40px;}
.ms30 { margin-left: 30px;}
.ms20 { margin-left: 20px;}
.ms10 { margin-left: 10px;}
.ms5  { margin-left:  5px;}



.me500 { margin-right: 500px;}
.me450 { margin-right: 450px;}
.me400 { margin-right: 400px;}
.me350 { margin-right: 350px;}
.me300 { margin-right: 300px;}
.me250 { margin-right: 250px;}
.me200 { margin-right: 200px;}
.me150 { margin-right: 150px;}
.me100 { margin-right: 100px;}

.me50 { margin-right: 50px;}
.me40 { margin-right: 40px;}
.me30 { margin-right: 30px;}
.me20 { margin-right: 20px;}
.me10 { margin-right: 10px;}
.me5  { margin-right:  5px;}

.ml50 { margin-left: 50px;}
.ml40 { margin-left: 40px;}
.ml30 { margin-left: 30px;}
.ml20 { margin-left: 20px;}
.ml15 { margin-left: 15px;}
.ml10 { margin-left: 10px;}

.mt50 { margin-top: 50px;}
.mt40 { margin-top: 40px;}
.mt30 { margin-top: 30px;}
.mt20 { margin-top: 20px;}
.mt15 { margin-top: 15px;}
.mt10 { margin-top: 10px;}

.mb50 { margin-bottom: 50px;}
.mb40 { margin-bottom: 40px;}
.mb30 { margin-bottom: 30px;}
.mb20 { margin-bottom: 20px;}
.mb15 { margin-bottom: 15px;}
.mb10 { margin-bottom: 10px;}

.mv50 { margin-bottom: 50px; margin-top: 50px;}
.mv40 { margin-bottom: 40px; margin-top: 40px;}
.mv30 { margin-bottom: 30px; margin-top: 30px;}
.mv20 { margin-bottom: 20px; margin-top: 20px;}
.mv15 { margin-bottom: 15px; margin-top: 15px;}
.mv10 { margin-bottom: 10px; margin-top: 10px;}


.ps50 { padding-left: 50px;}
.ps40 { padding-left: 40px;}
.ps30 { padding-left: 30px;}
.ps20 { padding-left: 20px;}
.ps10 { padding-left: 10px;}
.ps5 { padding-left: 10px;}

.pl50 { padding-left: 50px;}
.pl40 { padding-left: 40px;}
.pl30 { padding-left: 30px;}
.pl20 { padding-left: 20px;}
.pl15 { padding-left: 15px;}
.pl10 { padding-left: 10px;}

.pt50 { padding-top: 50px;}
.pt40 { padding-top: 40px;}
.pt30 { padding-top: 30px;}
.pt20 { padding-top: 20px;}
.pt15 { padding-top: 15px;}
.pt10 { padding-top: 10px;}

.pb50 { padding-bottom: 50px;}
.pb40 { padding-bottom: 40px;}
.pb30 { padding-bottom: 30px;}
.pb20 { padding-bottom: 20px;}
.pb15 { padding-bottom: 15px;}
.pb10 { padding-bottom: 10px;}

.pv50 { padding-bottom: 50px; padding-top: 50px;}
.pv40 { padding-bottom: 40px; padding-top: 40px;}
.pv30 { padding-bottom: 30px; padding-top: 30px;}
.pv20 { padding-bottom: 20px; padding-top: 20px;}
.pv15 { padding-bottom: 15px; padding-top: 15px;}
.pv10 { padding-bottom: 10px; padding-top: 10px;}


.w50  { width:50px}
.w100 { width:100px}
.w150 { width:150px}
.w200 { width:200px}
.w250 { width:250px}
.w300 { width:300px}
.w350 { width:350px}
.w400 { width:400px}
.w450 { width:450px}

.h50  { height:50px}
.h100 { height:100px}
.h150 { height:150px}
.h200 { height:200px}
.h250 { height:250px}
.h300 { height:300px}
.h350 { height:350px}
.h400 { height:400px}
.h450 { height:450px}




@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600;700&display=swap");



/* Animations to fade the snackbar in and out */
@-webkit-keyframes fadein {
    from {
        bottom: 0;
        opacity: 0;
    }

    to {
        bottom: 30px;
        opacity: 1;
    }
}

@keyframes fadein {
    from {
        bottom: 0;
        opacity: 0;
    }

    to {
        bottom: 30px;
        opacity: 1;
    }
}

@-webkit-keyframes fadeout {
    from {
        bottom: 30px;
        opacity: 1;
    }

    to {
        bottom: 0;
        opacity: 0;
    }
}

@keyframes fadeout {
    from {
        bottom: 30px;
        opacity: 1;
    }

    to {
        bottom: 0;
        opacity: 0;
    }
}




/* The snackbar - position it at the bottom and in the middle of the screen */
#snackbar {
    visibility: hidden;
    /* Hidden by default. Visible on click */
    min-width: 250px;
    /* Set a default minimum width */
    margin-left: -125px;
    /* Divide value of min-width by 2 */
    background-color: rgb(87, 175, 99);
    /* Black background color */
    color: #fff;
    /* White text color */
    text-align: center;
    /* Centered text */
    border-radius: 2px;
    /* Rounded borders */
    padding: 16px;
    /* Padding */
    position: fixed;
    /* Sit on top of the screen */
    z-index: 1;
    /* Add a z-index if needed */
    left: 50%;
    /* Center the snackbar */
    bottom: 30px;
    /* 30px from the bottom */
}

/* Show the snackbar when clicking on a button (class added with JavaScript) */
#snackbar.show {
    visibility: visible;
    /* Show the snackbar */
    /* Add animation: Take 0.5 seconds to fade in and out the snackbar.
    However, delay the fade out process for 2.5 seconds */
    -webkit-animation: fadein 0.5s, fadeout 0.5s 2.5s;
    animation: fadein 0.5s, fadeout 0.5s 2.5s;
}





/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    z-index: 50;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

/*
width: 100%;
max-width: 32rem;
*/
.modal-content {
    background-color: white;
    border-radius: var(--radius-lg);
    padding: 2rem;
    
    
    max-height: 90vh;
    overflow-y: auto;
    transform: translateY(20px);
    transition: var(--transition);
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 4px;
}

.dimension-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 3000;
}

.dimension-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 24px;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
}

.measure-modal-content {

    max-width: 1200px;
    max-height: 80vh;
    overflow-y: auto;
}


