/* Harmonisation du bouton danger pour garantir la lisibilité */
.btn-danger {
    background: #f1f1f1 !important;
    color: #111 !important;
    border: 1.5px solid #111 !important;
    text-shadow: none !important;
    box-shadow: var(--shadow-sm);
}
.btn-danger:hover, .btn-danger:focus {
    background: #e0e0e0 !important;
    color: #111 !important;
    border: 1.5px solid #111 !important;
    text-shadow: none !important;
}
/* Harmonisation du bouton Annuler (outline-secondary) */
.btn-outline-secondary {
    background: #f1f1f1 !important;
    color: #222 !important;
    border: 1.5px solid #111 !important;
    box-shadow: var(--shadow-sm);
}
.btn-outline-secondary:hover, .btn-outline-secondary:focus {
    background: #e0e0e0 !important;
    color: #222 !important;
    border: 1.5px solid #111 !important;
}
/* Uniformisation des boutons Bootstrap natifs */
.btn.btn-primary {
    background-color: #f1f1f1 !important;
    color: #222 !important;
    border: none !important;
}
.btn.btn-primary:hover, .btn.btn-primary:focus {
    background-color: #e0e0e0 !important;
    color: #222 !important;
}
/* Dashboard Version 2.0 - CSS moderne et professionnel */

/* Variables CSS personnalisées */
:root {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --secondary-color: #8b5cf6;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --info-color: #06b6d4;
    --light-bg: #f8fafc;
    --card-bg: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --transition: all 0.2s ease;
}

/* Reset et styles de base */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--light-bg);
    color: var(--text-primary);
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

/* Layout principal */
.wrapper {
    display: flex;
    min-height: 100vh;
}

#content {
    flex: 1;
    margin-left: 250px;
    padding: 1.5rem;
    background: var(--light-bg);
    min-height: 100vh;
    transition: var(--transition);
}

.container-fluid {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0;
}

/* Header du profil */
.profile-header-v2 {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.profile-header-v2::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.profile-header-v2 > * {
    position: relative;
    z-index: 1;
}

.profile-avatar-v2 {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-md);
    flex-shrink: 0;
}

.profile-info-v2 {
    flex: 1;
    min-width: 0;
}

.profile-name-v2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 0.25rem 0;
    color: white;
    line-height: 1.2;
}

.profile-status-v2 {
    font-size: 0.95rem;
    opacity: 0.9;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.profile-details-v2 {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.875rem;
    opacity: 0.9;
}

.profile-detail-item-v2 {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

/* Grille de statistiques */
.stats-grid-v2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-card-v2 {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.stat-card-v2::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.stat-card-v2:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.stat-icon-v2 {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    color: var(--primary-color);
}

.stat-value-v2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    line-height: 1;
}

.stat-label-v2 {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Cartes de contenu */
.content-card-v2 {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: var(--transition);
    margin-bottom: 1rem;
}

.content-card-v2:hover {
    box-shadow: var(--shadow-lg);
}

.card-header-v2 {
    background: var(--light-bg);
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.card-title-v2 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-body-v2 {
    padding: 1.25rem;
}

/* Boutons */
.btn-v2 {
    border-radius: var(--radius-md);
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.875rem;
    line-height: 1;
}

.btn-primary-v2 {
    background: #f1f1f1;
    color: #222;
    border: 1.5px solid #111;
    box-shadow: var(--shadow-sm);
}

.btn-primary-v2:hover {
.btn.btn-primary {
    background-color: #f1f1f1 !important;
    color: #222 !important;
    border: 1.5px solid #111 !important;
}
.btn.btn-primary:hover, .btn.btn-primary:focus {
    background-color: #e0e0e0 !important;
    color: #222 !important;
    border: 1.5px solid #111 !important;
}
    background: #e0e0e0;
    color: #222;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
    text-decoration: none;
}

.btn-outline-v2 {
    background: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn-outline-v2:hover {
    background: var(--primary-color);
    color: white;
    text-decoration: none;
}

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.8rem;
}

/* Tableaux */
.table-v2 {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
    background: var(--card-bg);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.table-v2 th {
    background: var(--light-bg);
    padding: 0.75rem;
    text-align: left;
    font-weight: 600;
    color: var(--text-primary);
    border-bottom: 2px solid var(--border-color);
}

.table-v2 td {
    padding: 0.75rem;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

.table-v2 tbody tr:hover {
    background: var(--light-bg);
}

.table-v2 tbody tr:last-child td {
    border-bottom: none;
}

/* Badges */
.badge-v2 {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.badge-success-v2 {
    background: #dcfce7;
    color: #166534;
}

.badge-warning-v2 {
    background: #fef3c7;
    color: #92400e;
}

.badge-info-v2 {
    background: #cffafe;
    color: #155e75;
}

.badge-danger-v2 {
    background: #fee2e2;
    color: #991b1b;
}

/* Alertes */
.alert-v2 {
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background: var(--light-bg);
    color: var(--text-primary);
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
}

.alert-info-v2 {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1e40af;
}

/* Barre de progression */
.progress-v2 {
    background: var(--border-color);
    border-radius: var(--radius-sm);
    height: 0.5rem;
    overflow: hidden;
}

.progress-bar-v2 {
    height: 100%;
    background: linear-gradient(90deg, var(--success-color), var(--info-color));
    transition: width 0.3s ease;
}

/* Documents */
.document-list-v2 {
    max-height: 400px;
    overflow-y: auto;
}

.document-item-v2 {
    background: var(--card-bg);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.document-item-v2:hover {
    background: var(--light-bg);
}

/* Actions rapides */
.d-grid {
    display: grid;
}

.gap-2 {
    gap: 0.5rem;
}

/* Utilitaires */
.text-primary {
    color: var(--primary-color) !important;
}

.text-muted {
    color: var(--text-secondary) !important;
}

.text-success {
    color: var(--success-color) !important;
}

.fw-bold {
    font-weight: 700;
}

.font-weight-medium {
    font-weight: 500;
}

.font-weight-semibold {
    font-weight: 600;
}

.small {
    font-size: 0.875rem;
}

.me-1 { margin-right: 0.25rem; }
.me-2 { margin-right: 0.5rem; }
.ms-2 { margin-left: 0.5rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-3 { margin-top: 0.75rem; }
.p-2 { padding: 0.5rem; }
.gap-2 { gap: 0.5rem; }

/* Responsive */
@media (max-width: 1200px) {
    .stats-grid-v2 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    #content {
        margin-left: 0;
        padding: 1rem;
    }
    
    .stats-grid-v2 {
        grid-template-columns: 1fr;
    }
    
    .profile-header-v2 {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .profile-details-v2 {
        justify-content: center;
    }
    
    .card-header-v2 {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .table-responsive {
        font-size: 0.8rem;
    }
    
    .table-v2 th,
    .table-v2 td {
        padding: 0.5rem;
    }
}

@media (max-width: 576px) {
    .container-fluid {
        padding: 0 0.5rem;
    }
    
    .profile-header-v2 {
        padding: 1rem;
    }
    
    .card-body-v2 {
        padding: 1rem;
    }
    
    .stat-card-v2 {
        padding: 1rem;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.content-card-v2,
.stat-card-v2 {
    animation: fadeInUp 0.5s ease forwards;
}

/* Scrollbar personnalisée */
.document-list-v2::-webkit-scrollbar {
    width: 6px;
}

.document-list-v2::-webkit-scrollbar-track {
    background: var(--light-bg);
    border-radius: var(--radius-sm);
}

.document-list-v2::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: var(--radius-sm);
}

.document-list-v2::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
} 
