/* Header */
       /* .header {
            background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
            color: white;
            padding: 30px;
            text-align: center;
        }*/

         .header {
            background: white;
            padding: 20px;
            border-radius: 10px;
            margin-bottom: 20px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        }

        .header h1 {
            font-size: 2.5em;
            margin-bottom: 10px;
            color: #333;
            /*font-size: 24px;*/
        }

        .header p {
            font-size: 1.1em;
            opacity: 0.9;
        }

         /* Main content */
        .main-content {
            margin-left: 250px;
            padding: 20px;
        }

        /********** Section des styles section **/

        .section {
            background: #f8f9fa;
            border-radius: 15px;
            padding: 25px;
            margin-bottom: 30px;
            border-left: 5px solid #667eea;
            transition: all 0.3s ease;
        }

        .section:hover {
            box-shadow: 0 5px 20px rgba(0,0,0,0.1);
        }

        .section-title {
            font-size: 1.5em;
            color: #2c3e50;
            margin-bottom: 20px;
            padding-bottom: 10px;
            border-bottom: 2px solid #667eea;
            display: inline-block;
        }

        /********** Section des styles formulaires **/
         form {
            padding: 0px;
        }

        .form-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 20px;
            margin-top: 20px;
        }

        .form-group {
            margin-bottom: 20px;
        }

        .form-group label {
            display: block;
            margin-bottom: 8px;
            font-weight: 600;
            color: #2c3e50;
            font-size: 0.9em;
        }

        .form-group input,
        .form-group select,
        .form-group textarea {
            width: 100%;
            padding: 12px;
            border: 2px solid #e0e0e0;
            border-radius: 8px;
            font-size: 1em;
            transition: all 0.3s ease;
            font-family: inherit;
        }

        .form-group input:focus,
        .form-group select:focus,
        .form-group textarea:focus {
            outline: none;
            border-color: #667eea;
            box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
        }

        .form-group textarea {
            resize: vertical;
            min-height: 80px;
        }

        .checkbox-group {
            display: flex;
            flex-wrap: wrap;
            gap: 15px;
            margin-top: 10px;
        }

        .checkbox-item {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .checkbox-item input[type="checkbox"] {
            width: 18px;
            height: 18px;
            cursor: pointer;
        }

        .checkbox-item label {
            margin: 0;
            cursor: pointer;
            font-weight: normal;
        }
       
        .inline-group {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 15px;
        }

        .btn-submit {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            padding: 15px 40px;
            border: none;
            border-radius: 50px;
            font-size: 1.1em;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            width: 100%;
            margin-top: 20px;
        }

        .btn-submit:hover {
            transform: translateY(-2px);
            box-shadow: 0 10px 20px rgba(0,0,0,0.2);
        }

        @media (max-width: 768px) {
            form {
                padding: 20px;
            }
            
            .section {
                padding: 15px;
            }
            
            .header h1 {
                font-size: 1.8em;
            }
        }

/* Style de bouton pour les formulaires d'enregistrement de nouveau client */
.btn_save-group {
    display: flex;
    gap: 15px;  /* Espace entre les boutons */
    justify-content: center;  /* Centrer horizontalement */
    margin-top: 20px;
}

.btn_save {
    padding: 10px 20px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
}

.btn_save-primary { background-color: #007bff; color: white; }
.btn_save-success { background-color: #28a745; color: white; }
.btn_save-danger { background-color: #dc3545; color: white; }

.btn_save:hover { opacity: 0.8; } 


/********section des styles CARD *******/
.filter-card {
    background: #f8f9fa;
    border: none;
    border-radius: 10px;
}
.stat-card {
    background: white;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.stat-card h6 {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.stat-card h3 {
    margin: 0;
    font-weight: bold;
}
.credit-stat {
    border-left: 4px solid #28a745;
}
.debit-stat {
    border-left: 4px solid #dc3545;
}
.solde-stat {
    border-left: 4px solid #17a2b8;
}
.operation-row {
    transition: background-color 0.2s;
}
.operation-row:hover {
    background-color: #f8f9fa;
}
.btn-filter {
    border-radius: 20px;
    padding: 5px 15px;
    margin: 2px;
}
.btn-filter.active {
    background-color: #007bff;
    color: white;
}
.pagination {
    margin-top: 20px;
}
.export-buttons {
    margin-top: 20px;
    text-align: right;
}
@media print {
    .no-print {
        display: none;
    }
    .container {
        width: 100%;
        max-width: 100%;
    }
}


.amount-display {
    font-size: 2rem;
    font-weight: bold;
    text-align: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    margin-bottom: 20px;
}
.quick-amount {
    display: inline-block;
    padding: 8px 15px;
    margin: 5px;
    background: #e9ecef;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s;
}
.quick-amount:hover {
    background: #007bff;
    color: white;
}
.warning-box {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
}


.beneficiaire-card {
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid #e9ecef;
}
.beneficiaire-card:hover {
    background: #f8f9fa;
    border-color: #007bff;
}
.beneficiaire-card.selected {
    background: #e7f1ff;
    border-color: #007bff;
}
.info-box {
    background: #e7f3ff;
    border-left: 4px solid #007bff;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
}


.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.table-responsive {
    border-radius: 8px;
    overflow: hidden;
}

.badge {
    font-size: 0.85em;
    padding: 5px 10px;
}

.btn-group-sm .btn {
    padding: 0.25rem 0.5rem;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: bold;
}

.footer {
    margin-top: 50px;
    padding: 20px 0;
    background-color: #f8f9fa;
    text-align: center;
}

/* Animation pour les alertes */
.alert {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

   /* espacement entre les DIV */
    .inline-container {
            text-align: center; /* Centrer les divs */
            padding: 20px;
        }
        
    .inline-box {
        display: inline-block;
        width: 30%;
        margin: 0 1.66%;
        padding: 20px;
        background: #f0f0f0;
        border-radius: 10px;
        text-align: center;
        box-sizing: border-box;
        vertical-align: top; /* Aligner en haut */
    }

   .container_div {
            display: flex;
            justify-content: space-between; /* Espace égal entre les divs */
            gap: 20px; /* Espace entre les divs */
            padding: 20px;
        }
        
        .box {
            flex: 1; /* Les divs prennent la même largeur */
            background: #f0f0f0;
            padding: 20px;
            border-radius: 10px;
            text-align: center;
        }
        
        /* Variante : centrer les divs */
        .container-center {
            display: flex;
            justify-content: center;
            gap: 20px;
            padding: 20px;
        }
        
        .box-center {
            /*flex: 0 0 300px;*/ /* Largeur fixe de 200px */
            /*background: #f0f0f0;*/
            padding: 20px;
            border-radius: 10px;
            text-align: center;
        }


/******************* Style pour le formulaire de creation de nouveau compte *********************/
        .error-message {
            background-color: #f8d7da;
            color: #721c24;
            padding: 10px;
            border-radius: 5px;
            margin-bottom: 20px;
            border: 1px solid #f5c6cb;
             font-size: 14px;
        }

        .success-message {
            background-color: #d4edda;
            color: #155724;
            padding: 10px;
            border-radius: 5px;
            margin-bottom: -40px;
            border: 1px solid #c3e6cb;
        }
        
        /*
          .success-message {
            background: #d4edda;
            color: #155724;
            padding: 15px;
            border-radius: 6px;
            margin-bottom: 20px;
            border-left: 4px solid #28a745;
        }
        
        .error-message {
            background: #f8d7da;
            color: #721c24;
            padding: 15px;
            border-radius: 6px;
            margin-bottom: 20px;
            border-left: 4px solid #dc3545;
        }
            */
            
        .field-error {
            border-color: #dc3545 !important;
        }
        
        .error-text {
            color: #dc3545;
            font-size: 12px;
            margin-top: 5px;
            display: block;
        }

        /*************** STYLE POUR LE FORMULAIRE DE LOGIN******/
        .login-container {
            background: white;
            border-radius: 10px;
            box-shadow: 0 15px 35px rgba(0,0,0,0.2);
            width: 100%;
            max-width: 400px;
            padding: 10px;
        }
        
        .login-header {
            text-align: center;
            margin-bottom: -40px;
        }
        
        .login-header h1 {
            color: #333;
            font-size: 24px;
            margin-bottom: 10px;
        }
        
        .login-header p {
            color: #666;
            font-size: 14px;
        }
        
      .form-group input {
            width: 100%;
            padding: 12px;
            border: 1px solid #ddd;
            border-radius: 5px;
            font-size: 14px;
            transition: border-color 0.3s;
        }
        
        .form-group input:focus {
            outline: none;
            border-color: #667eea;
        }
        
        .btn-login {
            width: 100%;
            padding: 12px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            border: none;
            border-radius: 5px;
            font-size: 16px;
            cursor: pointer;
            transition: transform 0.3s;
        }
        
        .btn-login:hover {
            transform: translateY(-2px);
        }
        
        .register-link {
            text-align: center;
            margin-top: 20px;
            font-size: 14px;
        }
        
        .register-link a {
            color: #667eea;
            text-decoration: none;
        }
        
        .register-link a:hover {
            text-decoration: underline;
        }

        /*************** STYLE POUR LA PAGE DE CONNEXION UTILISATEUR (Dashboard et autre) ******/
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background: #f5f7fb;
        }
        
        /* Sidebar */
        .sidebar {
            position: fixed;
            left: 0;
            top: 0;
            width: 250px;
            height: 100%;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            padding: 20px;
        }
        
        .sidebar h2 {
            margin-bottom: 30px;
            font-size: 20px;
            text-align: center;
        }
        
        .sidebar nav ul {
            list-style: none;
        }
        
        .sidebar nav ul li {
            margin-bottom: 10px;
        }
        
        .sidebar nav ul li a {
            color: white;
            text-decoration: none;
            padding: 10px 15px;
            display: block;
            border-radius: 5px;
            transition: background 0.3s;
        }
        
        .sidebar nav ul li a:hover,
        .sidebar nav ul li a.active {
            background: rgba(255,255,255,0.2);
        }
        
        /* Main content */
        .main-content {
            margin-left: 250px;
            padding: 20px;
        }
                
        .user-info {
            display: flex;
            align-items: center;
            gap: 15px;
        }

        .user-info span{
            color: #000000;
            font-weight: bold;
        }
        
        .logout-btn {
            background: #dc3545;
            color: white;
            padding: 8px 15px;
            border-radius: 5px;
            text-decoration: none;
            transition: background 0.3s;
        }
        
        .logout-btn:hover {
            background: #c82333;
        }
        
        /* Stats cards */
        .stats-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 20px;
            margin-bottom: 30px;
        }
        
        .stat-card {
            background: white;
            padding: 20px;
            border-radius: 10px;
            box-shadow: 0 2px 5px rgba(0,0,0,0.1);
            transition: transform 0.3s;
        }
        
        .stat-card:hover {
            transform: translateY(-5px);
        }
        
        .stat-card h3 {
            color: #666;
            font-size: 14px;
            margin-bottom: 10px;
        }
        
        .stat-card .value {
            font-size: 32px;
            font-weight: bold;
            color: #667eea;
        }
        
        /* Sections */
        .section {
            background: white;
            padding: 20px;
            border-radius: 10px;
            margin-bottom: 20px;
            box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        }
        
        .section h2 {
            color: #333;
            margin-bottom: 20px;
            padding-bottom: 10px;
            border-bottom: 2px solid #f0f0f0;
        }
        
        /* Recent clients table */
        .clients-table {
            width: 100%;
            overflow-x: auto;
        }
        
        table {
            width: 100%;
            border-collapse: collapse;
        }
        
        th, td {
            padding: 12px;
            text-align: left;
            border-bottom: 1px solid #e0e0e0;
        }
        
        th {
            background: #f8f9fa;
            font-weight: 600;
            color: #555;
        }
        
        tr:hover {
            background: #f8f9fa;
        }
        
        .btn-view {
            background: #667eea;
            color: white;
            padding: 5px 10px;
            border-radius: 3px;
            text-decoration: none;
            font-size: 12px;
        }

        .btn-modif {
            background: #30a00b;
            color: white;
            padding: 5px 10px;
            border-radius: 3px;
            text-decoration: none;
            font-size: 12px;
        }
        
        .btn-view:hover {
            background: #5a67d8;
        }

        /************ statistique ***********************/
        .stats-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 20px;
            margin-bottom: 25px;
        }
        
        .filter-form {
            display: flex;
            gap: 15px;
            align-items: flex-end;
            flex-wrap: wrap;
            background: white;
            padding: 15px 20px;
            border-radius: 10px;
            box-shadow: 0 2px 5px rgba(0,0,0,0.05);
        }
        
        .filter-group {
            display: flex;
            flex-direction: column;
            gap: 5px;
        }
        
        .filter-group label {
            font-size: 12px;
            font-weight: 600;
            color: #666;
        }
        
        .filter-group select, .filter-group input {
            padding: 8px 12px;
            border: 1px solid #ddd;
            border-radius: 5px;
            font-size: 14px;
        }
        
        .btn-filter {
            background: #667eea;
            color: white;
            padding: 8px 20px;
            border: none;
            border-radius: 5px;
            cursor: pointer;
        }
        
        .stats-grid-large {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 20px;
            margin-bottom: 30px;
        }
        
        .stat-card-primary {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            padding: 20px;
            border-radius: 12px;
            text-align: center;
        }
        
        .stat-card-primary .number {
            font-size: 36px;
            font-weight: bold;
        }
        
        .stat-card-primary .label {
            font-size: 14px;
            margin-top: 10px;
            opacity: 0.9;
        }
        
        .trend-up {
            color: #28a745;
            font-size: 14px;
            margin-top: 5px;
        }
        
        .trend-down {
            color: #dc3545;
            font-size: 14px;
            margin-top: 5px;
        }
        
        /* Chart container */
         .chart-container {
            margin-top: 20px;
            display: flex;
            justify-content: center;
            align-items: center;
            width: 100%;
            margin: 0 auto;
            padding: 20px;
            background: #f8f9fa;
            border-radius: 10px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        }

        .chart-container {
            background: white;
            height: 500px;
            padding: 20px;
            border-radius: 12px;
            margin-bottom: 25px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.05);
        }
        
        .chart-wrapper {
            width: 100%;
            height: 400px;
            max-width: 500px;
            position: relative;
        }
        
        .chart-wrapper canvas {
            width: 100% !important;
            height: 100% !important;
        }
        
        .chart-container h3 {
            margin-bottom: 20px;
            color: #333;
            font-size: 18px;
        }
        
        .two-columns {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
            gap: 25px;
            margin-bottom: 25px;
        }
        
        .country-list {
            background: white;
            padding: 20px;
            border-radius: 12px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.05);
        }
        
        .country-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 12px;
            border-bottom: 1px solid #f0f0f0;
        }
        
        .country-item:hover {
            background: #f8f9fa;
        }
        
        .country-name {
            font-weight: 500;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        .country-flag {
            font-size: 24px;
        }
        
        .country-count {
            font-weight: bold;
            color: #667eea;
        }
        
        .country-percent {
            color: #666;
            font-size: 12px;
            margin-left: 10px;
        }
        
        .progress-bar {
            flex: 1;
            height: 8px;
            background: #e0e0e0;
            border-radius: 4px;
            margin: 0 15px;
            overflow: hidden;
        }
        
        .progress-fill {
            height: 100%;
            background: linear-gradient(90deg, #667eea, #764ba2);
            border-radius: 4px;
            transition: width 0.5s ease;
        }
        
        .period-buttons {
            display: flex;
            gap: 10px;
            margin-bottom: 20px;
        }
        
        .period-btn {
            padding: 8px 20px;
            background: #f0f0f0;
            border: none;
            border-radius: 5px;
            cursor: pointer;
            transition: all 0.3s;
        }
        
        .period-btn.active {
            background: #667eea;
            color: white;
        }
        
        .kpi-value {
            font-size: 28px;
            font-weight: bold;
        }
        
        .table-stats {
            width: 100%;
            margin-top: 15px;
        }
        
        .table-stats th, .table-stats td {
            padding: 10px;
            text-align: left;
        }
        
        @media (max-width: 768px) {
            .two-columns {
                grid-template-columns: 1fr;
            }
            
            .filter-form {
                flex-direction: column;
                align-items: stretch;
            }
            
            .stats-header {
                flex-direction: column;
            }
        }

       /* Chart container */
        @media (max-width: 768px) {
            .sidebar {
                width: 100%;
                height: auto;
                position: relative;
            }
            
            .main-content {
                margin-left: 0;
            }
            
            .stats-grid {
                grid-template-columns: 1fr;
            }
        }

    /***************** A REVOIR ET RECHERCHER POUR SUPPRIMER OU CORRIGER ********************/
    /********* Page client ********/
    /* Ajout des styles spécifiques */
        .search-bar {
            margin-bottom: 20px;
            display: flex;
            gap: 10px;
        }
        
        .search-bar input {
            flex: 1;
            padding: 10px;
            border: 1px solid #ddd;
            border-radius: 5px;
        }
        
        .search-bar button {
            padding: 10px 20px;
            background: #667eea;
            color: white;
            border: none;
            border-radius: 5px;
            cursor: pointer;
        }
        
        .pagination {
            display: flex;
            justify-content: center;
            gap: 10px;
            margin-top: 20px;
        }
        
        .pagination a, .pagination span {
            padding: 8px 12px;
            border: 1px solid #ddd;
            border-radius: 5px;
            text-decoration: none;
            color: #667eea;
        }
        
        .pagination .active {
            background: #667eea;
            color: white;
            border-color: #667eea;
        }
        
        .btn-add {
            background: #28a745;
            color: white;
            padding: 10px 20px;
            border-radius: 5px;
            text-decoration: none;
            display: inline-block;
            margin-bottom: 20px;
        }

/**********************************/
.stats-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
            gap: 15px;
            margin-bottom: 25px;
        }
        
        .stat-card-small {
            background: white;
            padding: 15px;
            border-radius: 10px;
            text-align: center;
            box-shadow: 0 2px 5px rgba(0,0,0,0.05);
            border-left: 3px solid #667eea;
        }
        
        .stat-card-small .number {
            font-size: 28px;
            font-weight: bold;
            color: #667eea;
        }
        
        .stat-card-small .label {
            font-size: 12px;
            color: #666;
            margin-top: 5px;
        }
        
        .user-avatar {
            width: 40px;
            height: 40px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-weight: bold;
            font-size: 16px;
        }
        
        .role-badge {
            display: inline-block;
            padding: 4px 12px;
            border-radius: 20px;
            font-size: 11px;
            font-weight: 600;
            text-transform: uppercase;
        }
        
        .role-admin {
            background: #dc3545;
            color: white;
        }
        
        .role-manager {
            background: #ffc107;
            color: #333;
        }
        
        .role-user {
            background: #28a745;
            color: white;
        }
        
         /********** Section des styles badges **/
        .info-badge {
            background: #e3f2fd;
            padding: 5px;
            border-radius: 8px;
            margin-top: 10px;
            font-size: 0.85em;
            color: #1976d2;
        }

        .danger-badge {
            background: #e69292;
            padding: 5px;
            border-radius: 8px;
            margin-top: 10px;
            font-size: 0.85em;
            color: #ffffff;
        }

        .status-badge {
            display: inline-block;
            padding: 4px 12px;
            border-radius: 20px;
            font-size: 12px;
            font-weight: 600;
        }
        
        .status-actif {
            background: #d4edda;
            color: #155724;
        }
        
        .status-inactif {
            background: #f8d7da;
            color: #721c24;
        }
        
        .status-bloque {
            background: #000000;
            color: #ffffff;
        }

        .status-archive {
            background: #fff3cd;
            color: #856404;
        }
        
        .btn-icon {
            padding: 6px 10px;
            margin: 0 3px;
            font-size: 12px;
        }
        
        .modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0,0,0,0.5);
            z-index: 1000;
            justify-content: center;
            align-items: center;
        }
        
        .modal-content {
            background: white;
            padding: 30px;
            border-radius: 10px;
            max-width: 500px;
            width: 90%;
            max-height: 80vh;
            overflow-y: auto;
        }
        
        .modal-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
            padding-bottom: 10px;
            border-bottom: 2px solid #f0f0f0;
        }
        
        .close-modal {
            cursor: pointer;
            font-size: 28px;
            color: #999;
            transition: color 0.3s;
        }
        
        .close-modal:hover {
            color: #333;
        }
        
        .form-actions {
            display: flex;
            gap: 10px;
            justify-content: center;
            margin-top: 20px;
        }
        
        .btn-secondary {
            background: #6c757d;
            color: white;
            padding: 10px 20px;
            border: none;
            border-radius: 5px;
            cursor: pointer;
            transition: all 0.3s;
        }
        
        .btn-secondary:hover {
            background: #5a6268;
        }
        
        .filter-bar {
            display: flex;
            gap: 10px;
            margin-bottom: 20px;
            flex-wrap: wrap;
        }
        
        .filter-btn {
            padding: 8px 16px;
            background: #f0f0f0;
            border: none;
            border-radius: 5px;
            cursor: pointer;
            transition: all 0.3s;
        }
        
        .filter-btn.active {
            background: #667eea;
            color: white;
        }
        
        .filter-btn:hover {
            background: #ddd;
        }
        
        @media (max-width: 768px) {
            .stats-grid {
                grid-template-columns: repeat(2, 1fr);
            }
            
            .user-table {
                font-size: 12px;
            }
            
            th, td {
                padding: 8px 5px;
            }
        }
        
       /* Stats cards */
        .stats-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 20px;
            margin-bottom: 30px;
        }   

        /******************** Pour la page setting / parametre ***********/
         .settings-nav {
            display: flex;
            gap: 10px;
            margin-bottom: 25px;
            border-bottom: 2px solid #e0e0e0;
            padding-bottom: 10px;
        }
        
        .settings-nav a {
            padding: 10px 20px;
            text-decoration: none;
            color: #666;
            border-radius: 5px;
            transition: all 0.3s;
        }
        
        .settings-nav a:hover {
            background: #f0f0f0;
        }
        
        .settings-nav a.active {
            background: #667eea;
            color: white;
        }
        
        .stats-cards {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 20px;
            margin-bottom: 30px;
        }
        
        .stat-box {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            padding: 20px;
            border-radius: 10px;
            text-align: center;
        }
        
        .stat-box .number {
            font-size: 32px;
            font-weight: bold;
        }
        
        .stat-box .label {
            font-size: 14px;
            margin-top: 10px;
            opacity: 0.9;
        }
        
        .user-table {
            width: 100%;
            overflow-x: auto;
        }
        
        .user-table table {
            width: 100%;
        }
        
        .btn-small {
            padding: 5px 10px;
            font-size: 12px;
            margin: 0 2px;
        }
        
        .danger-zone {
            border: 2px solid #dc3545;
            background: #fff5f5;
        }
        
        .danger-zone .info-title {
            color: #dc3545;
        }
        
        .btn-danger {
            background: #dc3545;
            color: white;
        }
        
        .btn-danger:hover {
            background: #c82333;
        }

        /****************************/
        .form-actions {
            display: flex;
            gap: 15px;
            margin-top: 30px;
            justify-content: center;
        }
        
        .current-photo {
            margin-top: 10px;
            text-align: center;
        }
        
        .current-photo img {
            max-width: 150px;
            border-radius: 8px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        }
        
        .photo-preview {
            margin-top: 10px;
            max-width: 200px;
        }
        
        .required-field::after {
            content: " *";
            color: red;
        }

        /********************/
         /* Styles spécifiques pour la page détails */
        .action-buttons {
            display: flex;
            gap: 10px;
            margin-bottom: 20px;
        }
        
        .btn-print {
            background: #17a2b8;
            color: white;
            padding: 10px 20px;
            border-radius: 6px;
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            gap: 8px;
            transition: all 0.3s;
            border: none;
            cursor: pointer;
        }
        
        .btn-print:hover {
            background: #138496;
            transform: translateY(-2px);
        }
        
        .btn-back {
            background: #6c757d;
            color: white;
            padding: 10px 20px;
            border-radius: 6px;
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            gap: 8px;
            transition: all 0.3s;
        }
        
        .btn-back:hover {
            background: #5a6268;
            transform: translateY(-2px);
        }
        
        .btn-edit-client {
            background: #28a745;
            color: white;
            padding: 10px 20px;
            border-radius: 6px;
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            gap: 8px;
            transition: all 0.3s;
        }
        
        .btn-edit-client:hover {
            background: #218838;
            transform: translateY(-2px);
        }
        
        .info-section {
            margin-bottom: 30px;
        }
        
        .info-title {
            font-size: 18px;
            font-weight: 600;
            color: #667eea;
            margin-bottom: 15px;
            padding-bottom: 10px;
            border-bottom: 2px solid #e0e0e0;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        .info-grid {
            background: #f8f9fa;
            border-radius: 10px;
            padding: 20px;
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 15px;
        }
        
        .info-item {
            display: flex;
            align-items: baseline;
            padding: 8px 0;
            border-bottom: 1px solid #e8e8e8;
        }
        
        .info-label {
            font-weight: 600;
            width: 180px;
            color: #555;
            font-size: 14px;
        }
        
        .info-value {
            flex: 1;
            color: #333;
            font-size: 14px;
        }
        
        .tag-list {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
        }
        
        .tag {
            background: #e7f3ff;
            color: #1976D2;
            padding: 5px 12px;
            border-radius: 20px;
            font-size: 13px;
        }
        
        .photo-container {
            text-align: center;
            margin-bottom: 20px;
        }
        
        .photo {
            max-width: 200px;
            max-height: 200px;
            border-radius: 10px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        }
        
        .no-photo {
            background: #f0f0f0;
            padding: 40px;
            border-radius: 10px;
            color: #999;
            text-align: center;
        }
        
        @media print {
            .action-buttons, .sidebar, .logout-btn, .header .user-info {
                display: none;
            }
            
            .main-content {
                margin: 0;
                padding: 0;
            }
            
            .info-grid {
                break-inside: avoid;
            }
        }