       * {
           margin: 0;
           padding: 0;
           box-sizing: border-box;
       }

       body {
           font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
           background-color: #f4f7fc;
           min-height: 100vh;
           display: flex;
           flex-direction: column;
       }

       /* Couleur unique - Bleu */
       .bg-primary {
           background-color: #2c3e50;
       }

       .text-primary {
           color: #2c3e50;
       }

       .border-primary {
           border-color: #2c3e50;
       }

       /* Header Styles */
       .header {
           background: white;
           box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
           padding: 15px 30px;
           display: flex;
           justify-content: space-between;
           align-items: center;
           border-bottom: 3px solid #2c3e50;
       }

       .header-left {
           display: flex;
           align-items: center;
           gap: 15px;
       }

       .logo-container {
           width: 100px;
           height: 100px;

           border-radius: 50%;
           display: flex;
           align-items: center;
           justify-content: center;
           color: white;
           font-size: 2em;
           font-weight: bold;
       }

       .logo {
           height: 80px;
           width: auto;
           background-color: white;
           padding: 5px;
           border-radius: 8px;
       }


       .ministere-info h1 {
           color: #2c3e50;
           font-size: 1.5em;
           margin-bottom: 5px;
       }

       .ministere-info .slogan {
           color: #2c3e50;
           font-style: italic;
           font-size: 0.9em;
           opacity: 0.8;
       }

       .header-right {
           text-align: right;
       }

       .header-right h2 {
           color: #2c3e50;
           font-size: 1.8em;
           margin-bottom: 5px;
       }

       .header-right .subtitle {
           color: #7f8c8d;
           font-size: 0.9em;
       }

       .header-right .region-badge {
           background-color: #2c3e50;
           color: white;
           padding: 5px 15px;
           border-radius: 20px;
           font-size: 0.8em;
           display: inline-block;
           margin-top: 10px;
       }

       /* Main Container */
       .container {
           flex: 1;
           max-width: 1400px;
           margin: 30px auto;
           padding: 0 30px;
           width: 100%;
       }

       /* Section Critères */
       .criteria-section {
           background: white;
           border-radius: 15px;
           padding: 25px;
           box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
           margin-bottom: 30px;
       }

       .criteria-title {
           color: #2c3e50;
           margin-bottom: 20px;
           display: flex;
           align-items: center;
           gap: 10px;
           font-size: 1.3em;
       }

       .criteria-grid {
           display: grid;
           grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
           gap: 20px;
       }

       .criteria-card {
           background: #f8f9fa;
           padding: 20px;
           border-radius: 10px;
           border-left: 4px solid #2c3e50;
       }

       .criteria-card h4 {
           color: #2c3e50;
           margin-bottom: 15px;
           font-size: 1.1em;
           display: flex;
           align-items: center;
           gap: 8px;
       }

       .criteria-card ul {
           list-style: none;
       }

       .criteria-card li {
           color: #34495e;
           margin-bottom: 10px;
           font-size: 0.9em;
           padding-left: 20px;
           position: relative;
       }

       .criteria-card li:before {
           content: "•";
           color: #2c3e50;
           font-weight: bold;
           position: absolute;
           left: 0;
       }

       .criteria-card .highlight {
           color: #2c3e50;
           font-weight: 600;
       }

       .criteria-note {
           display: inline-block;
           background-color: #2c3e50;
           color: white;
           padding: 2px 8px;
           border-radius: 12px;
           font-size: 0.8em;
           margin-left: 5px;
       }

       /* Filters Section */
       .filters-section {
           background: white;
           border-radius: 15px;
           padding: 25px;
           box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
           margin-bottom: 30px;
       }

       .filters-title {
           color: #2c3e50;
           margin-bottom: 20px;
           display: flex;
           align-items: center;
           gap: 10px;
       }

       .filter-grid {
           display: grid;
           grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
           gap: 20px;
           align-items: end;
       }

       .filter-group {
           display: flex;
           flex-direction: column;
           gap: 8px;
       }

       .filter-group label {
           font-weight: 600;
           color: #2c3e50;
           font-size: 0.95em;
       }

       .filter-group select {
           padding: 12px 15px;
           border: 2px solid #e0e0e0;
           border-radius: 10px;
           font-size: 1em;
           transition: all 0.3s ease;
           background-color: white;
           cursor: pointer;
       }

       .filter-group select:hover {
           border-color: #2c3e50;
       }

       .filter-group select:focus {
           outline: none;
           border-color: #2c3e50;
           box-shadow: 0 0 0 3px rgba(44, 62, 80, 0.1);
       }

       .btn-view {
           background-color: #2c3e50;
           color: white;
           border: none;
           padding: 12px 30px;
           border-radius: 10px;
           font-size: 1.1em;
           font-weight: 600;
           cursor: pointer;
           transition: background-color 0.3s ease;
           height: fit-content;
       }

       .btn-view:hover {
           background-color: #34495e;
       }

       .btn-view:disabled {
           opacity: 0.6;
           cursor: not-allowed;
           background-color: #95a5a6;
       }

       /* Stats Cards */
       .stats-grid {
           display: grid;
           grid-template-columns: repeat(4, 1fr);
           gap: 60px;
           margin-bottom: 30px;
       }

       .stat-card {
           background: white;
           padding: 20px;
           border-radius: 15px;
           box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
           display: flex;
           align-items: center;
           gap: 35px;
       }

       .stat-icon {
           width: 50px;
           height: 50px;
           background-color: #2c3e50;
           border-radius: 10px;
           display: flex;
           align-items: center;
           justify-content: center;
           color: white;
           font-size: 1.5em;
       }

       .stat-content h3 {
           color: #7f8c8d;
           font-size: 0.9em;
           margin-bottom: 5px;
       }

       .stat-content .value {
           color: #2c3e50;
           font-size: 1.8em;
           font-weight: bold;
       }

       .stat-content .subtitle {
           color: #95a5a6;
           font-size: 0.8em;
       }

       /* Results Section */
       .results-section {
           background: white;
           border-radius: 15px;
           padding: 25px;
           box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
           margin-bottom: 30px;
       }

       .section-header {
           display: flex;
           justify-content: space-between;
           align-items: center;
           margin-bottom: 20px;
           padding-bottom: 15px;
           border-bottom: 2px solid #ecf0f1;
       }

       .section-header h2 {
           color: #2c3e50;
           display: flex;
           align-items: center;
           gap: 10px;
       }

       .section-header .badge {
           background-color: #2c3e50;
           color: white;
           padding: 5px 15px;
           border-radius: 20px;
           font-size: 0.9em;
       }

       /* Table Styles */
       .table-container {
           overflow-x: auto;
           margin-bottom: 30px;
       }

       table {
           width: 100%;
           border-collapse: collapse;
           background: white;
       }

       th {
           background-color: #2c3e50;
           color: white;
           font-weight: 600;
           padding: 15px;
           text-align: left;
           font-size: 0.9em;
           white-space: nowrap;
       }

       td {
           padding: 12px 15px;
           border-bottom: 1px solid #ecf0f1;
           color: #2c3e50;
       }

       tr:hover {
           background-color: #f8f9fa;
       }

       .top-candidate {
           background-color: #fff3e0;
           border-left: 4px solid #f39c12;
       }

       .second-candidate {
           background-color: #f0f0f0;
           border-left: 4px solid #bdc3c7;
       }

       .selected-badge {
           background-color: #f39c12;
           color: #2c3e50;
           padding: 3px 10px;
           border-radius: 15px;
           font-size: 0.8em;
           font-weight: 600;
           white-space: nowrap;
       }

       .score-breakdown {
           display: flex;
           gap: 15px;
           flex-wrap: wrap;
       }

       .score-item {
           display: flex;
           align-items: center;
           gap: 5px;
           font-size: 0.85em;
           background: #f8f9fa;
           padding: 3px 10px;
           border-radius: 15px;
       }

       .score-item .label {
           color: #7f8c8d;
       }

       .score-item .value {
           font-weight: 600;
           color: #2c3e50;
       }

       .total-score {
           font-weight: bold;
           color: #2c3e50;
           font-size: 1.2em;
       }

       .candidate-name {
           font-weight: 600;
           color: #2c3e50;
       }

       .candidate-status {
           display: inline-block;
           padding: 3px 10px;
           border-radius: 15px;
           font-size: 0.8em;
       }

       .status-fonctionnaire {
           background-color: #2c3e50;
           color: white;
       }

       .status-vacataire {
           background-color: #95a5a6;
           color: white;
       }

       /* Other candidates section */
       .other-candidates-section {
           margin-top: 30px;
           padding-top: 20px;
           border-top: 2px dashed #ecf0f1;
       }

       .other-candidates-section h3 {
           color: #7f8c8d;
           margin-bottom: 20px;
           display: flex;
           align-items: center;
           gap: 10px;
       }

       /* Footer */
       .footer {
           background: white;
           padding: 30px 0 0 0;
           margin-top: 50px;
           border-top: 3px solid #2c3e50;
       }

       .footer-content {
           max-width: 1400px;
           margin: 0 auto;
           padding: 0 30px;
           display: grid;
           grid-template-columns: repeat(3, 1fr);
           gap: 30px;
       }

       .footer-section h4 {
           color: #2c3e50;
           margin-bottom: 15px;
           font-size: 1.1em;
       }

       .footer-section p {
           color: #7f8c8d;
           line-height: 1.6;
           font-size: 0.9em;
       }

       .footer-section ul {
           list-style: none;
       }

       .footer-section ul li {
           color: #7f8c8d;
           margin-bottom: 10px;
           font-size: 0.9em;
           display: flex;
           align-items: center;
           gap: 10px;
       }

       .footer-bottom {
           background: #f8f9fa;
           padding: 15px 30px;
           text-align: center;
           color: #7f8c8d;
           font-size: 0.9em;
           margin-top: 30px;
           border-top: 1px solid #ecf0f1;
       }

       .loading {
           text-align: center;
           padding: 40px;
       }

       .spinner {
           border: 4px solid #f3f3f3;
           border-top: 4px solid #2c3e50;
           border-radius: 50%;
           width: 50px;
           height: 50px;
           animation: spin 1s linear infinite;
           margin: 0 auto 20px;
       }

       @keyframes spin {
           0% {
               transform: rotate(0deg);
           }

           100% {
               transform: rotate(360deg);
           }
       }

       .empty-state {
           text-align: center;
           padding: 60px 20px;
           background: #f8f9fa;
           border-radius: 15px;
           color: #7f8c8d;
       }

       /* Responsive */
       @media (max-width: 1024px) {
           .stats-grid {
               grid-template-columns: repeat(2, 1fr);
           }

           .footer-content {
               grid-template-columns: repeat(2, 1fr);
           }

           .criteria-grid {
               grid-template-columns: repeat(2, 1fr);
           }
       }

       @media (max-width: 768px) {
           .header {
               flex-direction: column;
               text-align: center;
               gap: 15px;
           }

           .header-left {
               flex-direction: column;
               text-align: center;
           }

           .header-right {
               text-align: center;
           }

           .stats-grid {
               grid-template-columns: 1fr;
           }

           .footer-content {
               grid-template-columns: 1fr;
           }

           .criteria-grid {
               grid-template-columns: 1fr;
           }
       }



       .ligne1 {
           display: flex;
           gap: 20px;
       }

       .ligne1 .form-group {
           flex: 1;
       }

       .ligne2 {
           display: flex;
           gap: 20px;
       }

       .ligne2 .form-group {
           flex: 1;
       }

       .login-container {
           min-height: 100vh;
           align-items: center;
           padding: 20px;
           background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
       }

       .login-logo {
           height: 80px;
           width: auto;
       }

       .card-login {
           background-color: white;
           padding: 30px;
           border-radius: 15px;
           border: none;
           width: 30%;
           margin: 35% 0 0 50%;
           transform: translate(-50%, -70%);
           display: flex;
           flex-direction: column;
           gap: 30px;
           box-shadow: 0 0 5px black;
       }

       .card-header {
           border-radius: 15px 15px 0 0 !important;
           padding: 20px;
           color: white;
       }

       .text-center {
           text-align: center;
       }

       .passty {
           position: relative;
       }

       .passty input {
           width: 100%;
           padding-right: 40px;
           height: 40px;
           box-sizing: border-box;
       }

       .maso {
           position: absolute;
           right: 10px;
           top: 50%;
           transform: translateY(-50%);
           background: none;
           border: none;
           cursor: pointer;
       }

       .card-bodylogin {
           display: flex;
           flex-direction: column;
           gap: 30px;
       }

       .labe {
           display: flex;
           align-items: center;
           gap: 10px;
           margin-bottom: 8px;
           color: #4a4a4a;
           font-weight: 600;
       }

       .labe i {
           color: #000000;
       }

       /* Style des champs de saisie */
       .form-control {
           border-radius: 8px !important;
           padding: 12px 15px;
           border: 1px solid #ddd;
           transition: all 0.3s ease;
           width: 100%;
       }

       .form-control:focus {
           border-color: #000000;
           box-shadow: 0 0 8px rgba(13, 110, 253, 0.2);
       }

       /* Style du bouton "œil" pour le mot de passe */
       .maso {
           border-top-right-radius: 8px !important;
           border-bottom-right-radius: 8px !important;
           background-color: #f8f9fa;
       }

       .btn-primary {
           border-radius: 8px;
           padding: 12px;
           font-weight: bold;
           text-transform: uppercase;
           letter-spacing: 1px;
           transition: transform 0.2s;
       }

       .btn-primary:hover {
           transform: translateY(-2px);
           box-shadow: 0 5px 15px rgba(13, 110, 253, 0.3);
       }



       /* Liste candidats */
       .filters-container {
           background: white;
           border-radius: 15px;
           padding: 25px;
           box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
           margin-bottom: 30px;
       }

       .filters-title {
           color: #2c3e50;
           margin-bottom: 20px;
           display: flex;
           align-items: center;
           gap: 10px;
           font-size: 1.3em;
       }

       .filter-row {
           display: grid;
           grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
           gap: 20px;
           margin-bottom: 20px;
       }

       .filter-group {
           display: flex;
           flex-direction: column;
           gap: 8px;
       }

       .filter-group label {
           font-weight: 600;
           color: #2c3e50;
           font-size: 0.95em;
       }

       .filter-group input,
       .filter-group select {
           padding: 10px 12px;
           border: 2px solid #e0e0e0;
           border-radius: 8px;
           font-size: 0.95em;
           transition: border-color 0.3s;
       }

       .filter-group input:focus,
       .filter-group select:focus {
           border-color: #2c3e50;
           outline: none;
       }

       .filter-group .range-inputs {
           display: flex;
           gap: 10px;
       }

       .filter-group .range-inputs input {
           width: 100%;
       }

       .checkbox-group {
           display: flex;
           flex-wrap: wrap;
           gap: 15px;
           background: #f8f9fa;
           padding: 15px;
           border-radius: 8px;
       }

       .checkbox-item {
           display: flex;
           align-items: center;
           gap: 5px;
       }

       .checkbox-item input[type="checkbox"] {
           width: 18px;
           height: 18px;
           accent-color: #2c3e50;
       }

       .filter-actions {
           display: flex;
           gap: 15px;
           justify-content: flex-end;
           margin-top: 20px;
       }

       .btn-filter {
           background-color: #2c3e50;
           color: white;
           border: none;
           padding: 12px 30px;
           border-radius: 8px;
           font-size: 1em;
           font-weight: 600;
           cursor: pointer;
           transition: background-color 0.3s;
       }

       .btn-filter:hover {
           background-color: #34495e;
       }

       .btn-reset {
           background-color: #95a5a6;
           color: white;
           border: none;
           padding: 12px 30px;
           border-radius: 8px;
           font-size: 1em;
           font-weight: 600;
           cursor: pointer;
           transition: background-color 0.3s;
       }

       .btn-reset:hover {
           background-color: #7f8c8d;
       }

       .pagination {
           display: flex;
           justify-content: center;
           align-items: center;
           gap: 10px;
           margin-top: 20px;
           flex-wrap: wrap;
       }

       .pagination button {
           background-color: white;
           border: 2px solid #2c3e50;
           color: #2c3e50;
           padding: 8px 15px;
           border-radius: 5px;
           cursor: pointer;
           font-weight: 600;
           transition: all 0.3s;
       }

       .pagination button:hover {
           background-color: #2c3e50;
           color: white;
       }

       .pagination button.active {
           background-color: #2c3e50;
           color: white;
       }

       .pagination button:disabled {
           opacity: 0.5;
           cursor: not-allowed;
       }

       .pagination-info {
           margin: 0 15px;
           color: #2c3e50;
           font-weight: 500;
       }

       .table-container {
           overflow-x: auto;
       }

       .no-data {
           text-align: center;
           padding: 40px;
           color: #7f8c8d;
           font-size: 1.2em;
       }


       .btn {
           background-color: white;
           border: 2px solid #2c3e50;
           color: #2c3e50;
           padding: 8px 15px;
           border-radius: 5px;
           cursor: pointer;
           font-weight: 600;
           transition: all 0.3s;
           text-decoration: none;
       }

       .btn:hover {
           background-color: #2c3e50;
           color: white;
       }

       .btn:disabled {
           background-color: #ccc;
           cursor: not-allowed;
       }



       .note {
           font-size: 0.8em;
           color: #777;
           margin-top: 3px;
       }

       .total-cell {
           font-weight: bold;
           font-size: 1.1em;
           color: #28a745;
       }

       .selected-badge {
           background: #28a745;
           color: white;
           padding: 3px 8px;
           border-radius: 12px;
           font-weight: bold;
       }

       .top-candidate {
           background: #fff7cc;
       }

       .second-candidate {
           background: #f1f8ff;
       }


       .modal {
           display: none;
           position: fixed;
           z-index: 999;
           left: 0;
           top: 0;
           width: 100%;
           height: 100%;
           background: rgba(0, 0, 0, 0.6);
       }

       .modal-content {
           background: white;
           margin: 5% auto;
           padding: 25px;
           border-radius: 12px;
           width: 80%;
           /* prend 80% de l'écran */
           max-width: 1200px;
           /* jamais plus de 1200px */
           min-width: 500px;
           position: relative;
       }

       .close {
           position: absolute;
           right: 15px;
           top: 10px;
           cursor: pointer;
           font-size: 20px;
       }
