/* Modal theme fallback/harmonisation */
.modal-dialog-centered { display: flex; align-items: center; min-height: calc(100% - 3.5rem); }
.modal-content { background: #0f172a; color: #e2e8f0; border: 1px solid rgba(255,255,255,.08); border-radius: .75rem; box-shadow: 0 10px 30px rgba(0,0,0,.4); }
.modal-header, .modal-footer { border-color: rgba(255,255,255,.08); }
.modal-title { font-weight: 600; color: #f8fafc; }
.btn-close { filter: invert(1); opacity: .7; }
.btn-close:hover { opacity: 1; }
.btn-close::before { content: '×'; display: inline-block; font-size: 1.25rem; line-height: 1; color: #e2e8f0; }
.modal-backdrop { cursor: pointer; }
.form-label { color: #cbd5e1; font-weight: 500; }
.form-control, .form-select, select.form-control { background: #0b1220; border-color: #1f2a44; color: #e2e8f0; }
.form-control::placeholder { color: #64748b; }
.btn.btn-primary { background: linear-gradient(90deg, #00bcd4, #3b82f6); border: 0; }
.btn.btn-secondary { background: #334155; border: 0; }
/* Variables CSS */
:root {
    --primary-color: #00bcd4;
    --primary-dark: #0097a7;
    --secondary-color: #0f172a;
    --accent-color: #00bcd4;
    --text-light: #f8fafc;
    --text-dark: #1e293b;
    --bg-dark: #0f172a;
    --bg-light: #f8fafc;
    --border-color: rgba(0, 188, 212, 0.2);
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.2);
    --gradient-primary: linear-gradient(135deg, #00bcd4, #0097a7);
    --border-radius: 8px;
    --transition: all 0.3s ease;
    
    /* Nouvelles variables pour les cartes */
    --card-bg: #1e293b;
    --card-border: rgba(255, 255, 255, 0.08);
    --card-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    --card-shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.25);
}

/* Reset et base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

.admin-container {
    min-height: 100vh;
    display: flex;
}

/* Page de connexion */
.login-page {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-dark));
    position: relative;
    overflow: hidden;
}

.login-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(0,188,212,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.login-container {
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 3rem;
    width: 100%;
    max-width: 400px;
    box-shadow: var(--shadow-hover);
    position: relative;
    z-index: 1;
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-header i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.login-header h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.login-header p {
    color: var(--text-light);
    opacity: 0.8;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    color: var(--text-light);
}

.form-group label i {
    color: var(--primary-color);
}

.form-group input {
    padding: 0.8rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-light);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 188, 212, 0.1);
}

.login-btn {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 1rem;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.error-message {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-top: 1rem;
    text-align: center;
}

/* Dashboard */
.dashboard-page {
    display: flex;
    width: 100%;
    min-height: 100vh;
}

/* Navigation latérale */
.admin-nav {
    width: 280px;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    z-index: 100;
}

.nav-header {
    padding: 2rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.nav-header i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.nav-header span {
    font-size: 1.2rem;
    font-weight: 600;
}

.nav-menu {
    flex: 1;
    padding: 1rem 0;
    list-style: none;
}

.nav-item {
    margin: 0.5rem 1rem;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1rem;
    color: var(--text-light);
    text-decoration: none;
    border-radius: var(--border-radius);
    transition: var(--transition);
    font-weight: 500;
}

.nav-link:hover {
    background: rgba(0, 188, 212, 0.1);
    color: var(--primary-color);
}

.nav-link.active {
    background: var(--gradient-primary);
    color: white;
}

.nav-link i {
    width: 20px;
    text-align: center;
}

.nav-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.logout-btn {
    width: 100%;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
    padding: 0.8rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 500;
}

.logout-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.5);
}

/* Contenu principal */
.admin-main {
    flex: 1;
    margin-left: 280px;
    padding: 2rem;
    background: var(--bg-dark);
}

.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.main-header h1 {
    font-size: 2rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
    opacity: 0.8;
}

/* Sections de contenu */
.content-section {
    animation: fadeIn 0.3s ease;
}

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

/* Statistiques */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.stat-info h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.stat-info p {
    color: var(--text-light);
    opacity: 0.8;
}

/* Actions rapides */
.quick-actions {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 2rem;
}

.quick-actions h2 {
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

.action-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.action-btn {
    background: rgba(0, 188, 212, 0.1);
    border: 1px solid var(--border-color);
    color: var(--text-light);
    padding: 0.8rem 1.5rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.action-btn:hover {
    background: var(--gradient-primary);
    color: white;
    transform: translateY(-2px);
}

/* En-têtes de section */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.section-header h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-light);
}

.add-btn {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.add-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

/* Formulaires */
.form-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.form-modal {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
}

.form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.form-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-light);
}

.close-btn {
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: var(--transition);
}

.close-btn:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #fca5a5;
}

.admin-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 500;
    color: var(--text-light);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.8rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-light);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 188, 212, 0.1);
}

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

.file-preview {
    margin-top: 1rem;
    padding: 1rem;
    border: 1px dashed var(--border-color);
    border-radius: var(--border-radius);
    text-align: center;
    color: var(--text-light);
    opacity: 0.7;
}

.file-info {
    margin-top: 0.5rem;
    color: var(--text-light);
    opacity: 0.7;
}

.file-info small {
    font-size: 0.8rem;
}

/* Options vidéo */
.video-options {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 1rem;
    background: rgba(0, 188, 212, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(0, 188, 212, 0.2);
}

.video-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.video-option input[type="radio"] {
    accent-color: var(--accent-color);
}

.video-option label {
    color: var(--text-light);
    font-size: 0.9rem;
    cursor: pointer;
}

.video-section {
    transition: all 0.3s ease;
}

.video-section input[type="url"] {
    width: 100%;
    padding: 0.8rem;
    background: var(--dark-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    color: var(--text-light);
    font-size: 0.9rem;
    transition: var(--transition);
}

.video-section input[type="url"]:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(0, 188, 212, 0.2);
}

/* Styles pour les champs de date */
.date-inputs {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.date-inputs select {
    flex: 1;
    padding: 0.8rem;
    background: var(--dark-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    color: var(--text-light);
    font-size: 0.9rem;
    transition: var(--transition);
    cursor: pointer;
}

.date-inputs select:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(0, 188, 212, 0.2);
}

.date-inputs select option {
    background: var(--dark-secondary);
    color: var(--text-light);
}

/* Message quand aucune donnée */
.no-data {
    text-align: center;
    padding: 3rem;
    color: var(--text-muted);
    font-style: italic;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    border: 1px dashed var(--border-color);
}

/* Styles pour la prévisualisation vidéo */
.file-preview video {
    max-width: 100%;
    max-height: 200px;
    border-radius: var(--border-radius);
    margin-top: 0.5rem;
}

/* Barre de progression pour l'upload */
.upload-progress {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    margin-top: 0.5rem;
    overflow: hidden;
}

.upload-progress-bar {
    height: 100%;
    background: var(--gradient-primary);
    width: 0%;
    transition: width 0.3s ease;
}

/* Message d'upload */
.upload-status {
    margin-top: 0.5rem;
    padding: 0.5rem;
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    text-align: center;
}

.upload-status.uploading {
    background: rgba(59, 130, 246, 0.1);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.upload-status.success {
    background: rgba(34, 197, 94, 0.1);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.upload-status.error {
    background: rgba(239, 68, 68, 0.1);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 1rem;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    border: 1px solid var(--border-color);
    padding: 0.8rem 1.5rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Grilles de contenu */
.projects-grid,
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.project-card,
.service-card {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
}

.project-card:hover,
.service-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
}

.project-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

/* Styles pour les projets avec vidéo */
.project-media {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 8px;
}

.project-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.video-info {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.5rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    backdrop-filter: blur(10px);
}

.video-info i {
    color: var(--accent-color);
    font-size: 1rem;
}

/* Placeholder pour projets sans média */
.project-media-placeholder {
    width: 100%;
    height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0, 188, 212, 0.05);
    border: 2px dashed rgba(0, 188, 212, 0.3);
    border-radius: 8px;
    color: var(--text-muted);
}

.project-media-placeholder i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    opacity: 0.5;
}

.project-media-placeholder span {
    font-size: 0.9rem;
    opacity: 0.7;
}

.project-content,
.service-content {
    padding: 1.5rem;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.project-header h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-light);
    margin: 0;
    flex: 1;
}

.project-date {
    font-size: 0.8rem;
    color: var(--text-muted);
    background: rgba(0, 188, 212, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    border: 1px solid rgba(0, 188, 212, 0.3);
    white-space: nowrap;
    margin-left: 0.5rem;
}

.service-content h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

.project-content p,
.service-content p {
    color: var(--text-light);
    opacity: 0.8;
    margin-bottom: 1rem;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tech-tag {
    background: rgba(0, 188, 212, 0.1);
    color: var(--primary-color);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    border: 1px solid rgba(0, 188, 212, 0.3);
}

.card-actions {
    display: flex;
    gap: 0.5rem;
}

.card-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
    font-weight: 500;
}

.edit-btn {
    background: rgba(59, 130, 246, 0.1);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.edit-btn:hover {
    background: rgba(59, 130, 246, 0.2);
}

.delete-btn {
    background: rgba(239, 68, 68, 0.1);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.delete-btn:hover {
    background: rgba(239, 68, 68, 0.2);
}

/* Paramètres */
.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.setting-card {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 2rem;
}

.setting-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

/* Responsive */
@media (max-width: 768px) {
    .admin-nav {
        transform: translateX(-100%);
        transition: var(--transition);
    }
    
    .admin-nav.active {
        transform: translateX(0);
    }
    
    .admin-main {
        margin-left: 0;
        padding: 1rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .form-modal {
        width: 95%;
        padding: 1.5rem;
    }
    
    .projects-grid,
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .settings-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== STYLES MICRO-ENTREPRISE ===== */

/* Variables spécifiques micro-entreprise */
:root {
    --me-primary-color: #4e73df;
    --me-success-color: #1cc88a;
    --me-info-color: #36b9cc;
    --me-warning-color: #f6c23e;
    --me-danger-color: #e74a3b;
    --me-light-color: #f8f9fc;
    --me-dark-color: #5a5c69;
    
    /* Nouvelles couleurs ludiques */
    --me-gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --me-gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --me-gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --me-gradient-4: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    --me-gradient-5: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    
    /* Couleurs d'accent */
    --me-accent-purple: #8b5cf6;
    --me-accent-pink: #ec4899;
    --me-accent-orange: #f97316;
    --me-accent-teal: #14b8a6;
}

/* Onglets Bootstrap pour micro-entreprise - Style ludique */
#microEntrepriseContent .nav-tabs {
    border-bottom: 3px solid transparent;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.95) 100%);
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    padding: 0.5rem 0.5rem 0 0.5rem;
    position: relative;
    overflow: hidden;
}

#microEntrepriseContent .nav-tabs::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--me-gradient-1), var(--me-gradient-2), var(--me-gradient-3), var(--me-gradient-4), var(--me-gradient-5));
    background-size: 200% 100%;
    animation: gradientShift 8s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

#microEntrepriseContent .nav-tabs .nav-link {
    color: var(--text-muted);
    background: rgba(15, 23, 42, 0.7);
    border: none;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    padding: 1rem 1.5rem;
    margin-right: 0.25rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

#microEntrepriseContent .nav-tabs .nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

#microEntrepriseContent .nav-tabs .nav-link:hover::before {
    left: 100%;
}

#microEntrepriseContent .nav-tabs .nav-link:hover {
    color: var(--text-light);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

#microEntrepriseContent .nav-tabs .nav-link.active {
    color: white;
    background: var(--me-gradient-1);
    border: none;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    position: relative;
}

#microEntrepriseContent .nav-tabs .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--me-gradient-1);
    border-radius: 0 0 var(--border-radius) var(--border-radius);
}

#microEntrepriseContent .nav-tabs .nav-link i {
    margin-right: 0.5rem;
}

/* Contenu des onglets */
#microEntrepriseContent .tab-content {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid var(--border-color);
    border-top: none;
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    padding: 2rem;
}

#microEntrepriseContent .tab-pane {
    display: none;
}

#microEntrepriseContent .tab-pane.show.active {
    display: block;
}

/* Cartes et éléments spécifiques - Style ludique */
#microEntrepriseContent .card {
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

#microEntrepriseContent .card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--me-gradient-1);
    opacity: 0;
    transition: opacity 0.3s ease;
}

#microEntrepriseContent .card:hover::before {
    opacity: 1;
}

#microEntrepriseContent .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: var(--me-primary-color);
}

#microEntrepriseContent .card-header {
    background: rgba(15, 23, 42, 0.95);
    border-bottom: 1px solid var(--border-color);
    color: var(--text-light);
}

#microEntrepriseContent .card-body {
    background: rgba(15, 23, 42, 0.8);
    color: var(--text-light);
}

#microEntrepriseContent .card h5 {
    color: var(--text-light);
    margin: 0;
}

/* Boîtes financières - Style ludique */
#microEntrepriseContent .finance-box {
    display: flex;
    justify-content: space-between;
    padding: 16px 20px;
    margin: 8px 0;
    border-radius: var(--border-radius);
    color: var(--text-light);
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

#microEntrepriseContent .finance-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--me-gradient-1);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

#microEntrepriseContent .finance-box:hover::before {
    transform: scaleY(1);
}

#microEntrepriseContent .finance-box:hover {
    background: rgba(15, 23, 42, 0.8);
    border-color: var(--me-primary-color);
    transform: translateX(5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

#microEntrepriseContent .finance-box:last-child {
    border-bottom: none;
}

#microEntrepriseContent .finance-box.total {
    font-weight: 700;
    font-size: 1.1rem;
    background: var(--me-gradient-1);
    color: white;
    border: none;
    position: relative;
    overflow: hidden;
}

#microEntrepriseContent .finance-box.total::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

#microEntrepriseContent .finance-box .label {
    color: var(--text-muted);
    font-weight: 500;
    transition: color 0.3s ease;
}

#microEntrepriseContent .finance-box:hover .label {
    color: var(--text-light);
}

#microEntrepriseContent .finance-box .value {
    font-weight: 600;
    color: var(--me-primary-color);
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

#microEntrepriseContent .finance-box:hover .value {
    color: var(--me-accent-purple);
    transform: scale(1.05);
}

#microEntrepriseContent .finance-box.total .value {
    font-size: 1.4rem;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Formulaires et boutons - Style ludique */
#microEntrepriseContent .form-control,
#microEntrepriseContent .form-select {
    background: rgba(15, 23, 42, 0.9);
    border: 2px solid transparent;
    color: var(--text-light);
    border-radius: var(--border-radius);
    padding: 12px 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

#microEntrepriseContent .form-control::before,
#microEntrepriseContent .form-select::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    transition: left 0.5s ease;
}

#microEntrepriseContent .form-control:focus::before,
#microEntrepriseContent .form-select:focus::before {
    left: 100%;
}

#microEntrepriseContent .form-control:focus,
#microEntrepriseContent .form-select:focus {
    background: rgba(15, 23, 42, 0.95);
    border-color: var(--me-gradient-1);
    color: var(--text-light);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
}

#microEntrepriseContent .btn {
    border-radius: var(--border-radius);
    font-weight: 600;
    padding: 12px 24px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#microEntrepriseContent .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

#microEntrepriseContent .btn:hover::before {
    left: 100%;
}

#microEntrepriseContent .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

#microEntrepriseContent .btn-primary {
    background: var(--me-gradient-1);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

#microEntrepriseContent .btn-primary:hover {
    background: var(--me-gradient-2);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

#microEntrepriseContent .btn-success {
    background: var(--me-gradient-4);
    color: white;
    box-shadow: 0 4px 15px rgba(28, 200, 138, 0.3);
}

#microEntrepriseContent .btn-success:hover {
    background: var(--me-gradient-5);
    box-shadow: 0 8px 25px rgba(28, 200, 138, 0.4);
}

#microEntrepriseContent .btn-danger {
    background: var(--me-gradient-2);
    color: white;
    box-shadow: 0 4px 15px rgba(236, 72, 153, 0.3);
}

#microEntrepriseContent .btn-danger:hover {
    background: linear-gradient(135deg, #f5576c 0%, #f093fb 100%);
    box-shadow: 0 8px 25px rgba(236, 72, 153, 0.4);
}

#microEntrepriseContent .btn-warning {
    background: var(--me-gradient-5);
    color: white;
    box-shadow: 0 4px 15px rgba(246, 194, 62, 0.3);
}

#microEntrepriseContent .btn-warning:hover {
    background: linear-gradient(135deg, #fee140 0%, #fa709a 100%);
    box-shadow: 0 8px 25px rgba(246, 194, 62, 0.4);
}

#microEntrepriseContent .btn-info {
    background: var(--me-gradient-3);
    color: white;
    box-shadow: 0 4px 15px rgba(54, 185, 204, 0.3);
}

#microEntrepriseContent .btn-info:hover {
    background: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
    box-shadow: 0 8px 25px rgba(54, 185, 204, 0.4);
}

/* Tableaux - Style ludique */
#microEntrepriseContent .table {
    color: var(--text-light);
    background: transparent;
    border-radius: var(--border-radius);
    overflow: hidden;
}

#microEntrepriseContent .table th {
    background: var(--me-gradient-1);
    color: white;
    border: none;
    padding: 16px 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
}

#microEntrepriseContent .table th::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--me-gradient-2);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

#microEntrepriseContent .table th:hover::after {
    transform: scaleX(1);
}

#microEntrepriseContent .table td {
    border: none;
    background: transparent;
    padding: 16px 12px;
    transition: all 0.3s ease;
    position: relative;
}

#microEntrepriseContent .table td::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--me-gradient-1);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

#microEntrepriseContent .table-striped tbody tr:nth-of-type(odd) {
    background: rgba(15, 23, 42, 0.3);
}

#microEntrepriseContent .table-hover tbody tr {
    transition: all 0.3s ease;
    cursor: pointer;
}

#microEntrepriseContent .table-hover tbody tr:hover {
    background: rgba(15, 23, 42, 0.8);
    transform: translateX(5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

#microEntrepriseContent .table-hover tbody tr:hover td::before {
    transform: scaleY(1);
}

/* Alertes et notifications - Style ludique */
#microEntrepriseContent .alert {
    background: rgba(15, 23, 42, 0.9);
    border: 2px solid transparent;
    color: var(--text-light);
    border-radius: var(--border-radius);
    padding: 20px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

#microEntrepriseContent .alert::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--me-gradient-1);
    transform: scaleX(0);
    transition: transform 0.5s ease;
}

#microEntrepriseContent .alert:hover::before {
    transform: scaleX(1);
}

#microEntrepriseContent .alert:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

#microEntrepriseContent .alert-info {
    background: linear-gradient(135deg, rgba(54, 185, 204, 0.1) 0%, rgba(15, 23, 42, 0.9) 100%);
    border-color: var(--me-info-color);
}

#microEntrepriseContent .alert-info::before {
    background: var(--me-gradient-3);
}

#microEntrepriseContent .alert-warning {
    background: linear-gradient(135deg, rgba(246, 194, 62, 0.1) 0%, rgba(15, 23, 42, 0.9) 100%);
    border-color: var(--me-warning-color);
}

#microEntrepriseContent .alert-warning::before {
    background: var(--me-gradient-5);
}

#microEntrepriseContent .alert-success {
    background: linear-gradient(135deg, rgba(28, 200, 138, 0.1) 0%, rgba(15, 23, 42, 0.9) 100%);
    border-color: var(--me-success-color);
}

#microEntrepriseContent .alert-success::before {
    background: var(--me-gradient-4);
}

/* Animation d'entrée pour les éléments */
#microEntrepriseContent .card,
#microEntrepriseContent .finance-box,
#microEntrepriseContent .alert {
    animation: slideInUp 0.6s ease-out;
}

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

/* Animation de pulsation pour les éléments importants */
#microEntrepriseContent .finance-box.total {
    animation: slideInUp 0.6s ease-out, pulse 2s infinite;
}

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

/* Cartes de logiciels */
#microEntrepriseContent .software-card {
    background: rgba(15, 23, 42, 0.8);
    border: 2px solid transparent;
    border-radius: var(--border-radius);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

#microEntrepriseContent .software-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--me-gradient-1);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

#microEntrepriseContent .software-card:hover::before {
    transform: scaleX(1);
}

#microEntrepriseContent .software-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    border-color: var(--me-primary-color);
    background: rgba(15, 23, 42, 0.9);
}

#microEntrepriseContent .software-card .fa-3x {
    transition: all 0.3s ease;
}

#microEntrepriseContent .software-card:hover .fa-3x {
    transform: scale(1.1);
}

/* Badges et étiquettes */
#microEntrepriseContent .badge {
    font-size: 0.75rem;
    padding: 0.5rem 0.75rem;
    border-radius: 20px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#microEntrepriseContent .bg-primary {
    background: var(--me-gradient-1) !important;
}

#microEntrepriseContent .bg-success {
    background: var(--me-gradient-4) !important;
}

#microEntrepriseContent .bg-warning {
    background: var(--me-gradient-5) !important;
}

#microEntrepriseContent .bg-danger {
    background: var(--me-gradient-2) !important;
}

#microEntrepriseContent .bg-info {
    background: var(--me-gradient-3) !important;
}

/* Boutons outline améliorés */
#microEntrepriseContent .btn-outline-primary {
    color: var(--me-primary-color);
    border-color: var(--me-primary-color);
    transition: all 0.3s ease;
}

#microEntrepriseContent .btn-outline-primary:hover {
    background: var(--me-gradient-1);
    border-color: var(--me-primary-color);
    color: white;
    transform: translateY(-2px);
}

#microEntrepriseContent .btn-outline-danger {
    color: var(--me-danger-color);
    border-color: var(--me-danger-color);
    transition: all 0.3s ease;
}

#microEntrepriseContent .btn-outline-danger:hover {
    background: var(--me-gradient-2);
    border-color: var(--me-danger-color);
    color: white;
    transform: translateY(-2px);
}

/* Icônes dans les tableaux */
#microEntrepriseContent .table td i {
    transition: all 0.3s ease;
}

#microEntrepriseContent .table tr:hover td i {
    transform: scale(1.2);
}

/* Formulaires améliorés */
#microEntrepriseContent .input-group {
    border-radius: var(--border-radius);
    overflow: hidden;
}

#microEntrepriseContent .input-group .form-control {
    border-right: none;
}

#microEntrepriseContent .input-group .btn {
    border-left: none;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

/* Switch toggles */
#microEntrepriseContent .form-check-input {
    background-color: rgba(15, 23, 42, 0.8);
    border-color: var(--border-color);
    transition: all 0.3s ease;
}

#microEntrepriseContent .form-check-input:checked {
    background-color: var(--me-gradient-1);
    border-color: var(--me-primary-color);
}

#microEntrepriseContent .form-check-input:focus {
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Correction des onglets Bootstrap */
#microEntrepriseContent .tab-pane {
    display: none;
}

#microEntrepriseContent .tab-pane.active {
    display: block;
}

#microEntrepriseContent .tab-pane.fade {
    opacity: 0;
    transition: opacity 0.15s linear;
}

#microEntrepriseContent .tab-pane.fade.show {
    opacity: 1;
}

#microEntrepriseContent .nav-tabs {
    border-bottom: 2px solid var(--border-color);
    background: rgba(15, 23, 42, 0.1);
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto;
}

#microEntrepriseContent .nav-tabs .nav-item {
    flex-shrink: 0;
    white-space: nowrap;
}

#microEntrepriseContent .nav-tabs .nav-link {
    border: none;
    color: var(--text-light);
    font-weight: 500;
    padding: 8px 16px;
    transition: all 0.3s ease;
    margin-right: 2px;
    border-radius: 8px 8px 0 0;
    white-space: nowrap;
    min-width: auto;
    max-width: 200px;
    text-align: center;
    font-size: 0.9rem;
}

#microEntrepriseContent .nav-tabs .nav-link:hover {
    color: var(--me-primary-color);
    background: rgba(102, 126, 234, 0.1);
    border: none;
}

#microEntrepriseContent .nav-tabs .nav-link.active {
    color: var(--me-primary-color);
    background: white;
    border: none;
    border-bottom: 3px solid var(--me-primary-color);
    font-weight: 600;
}

/* Responsive pour les onglets */
@media (max-width: 768px) {
    #microEntrepriseContent .nav-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    #microEntrepriseContent .nav-tabs .nav-link {
        padding: 6px 12px;
        font-size: 0.8rem;
        max-width: 150px;
    }
}

@media (max-width: 576px) {
    #microEntrepriseContent .nav-tabs .nav-link {
        padding: 5px 10px;
        font-size: 0.75rem;
        max-width: 120px;
    }
}

/* Graphiques */
#microEntrepriseContent .chart-container {
    background: rgba(15, 23, 42, 0.8);
    border-radius: var(--border-radius);
    padding: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    #microEntrepriseContent .nav-tabs {
        flex-direction: column;
    }
    
    #microEntrepriseContent .nav-tabs .nav-link {
        text-align: left;
        border-bottom: none;
        border-right: 3px solid transparent;
    }
    
    #microEntrepriseContent .nav-tabs .nav-link.active {
        border-right-color: var(--primary-color);
        border-bottom-color: transparent;
    }
    
    #microEntrepriseContent .tab-content {
        padding: 1rem;
    }
}

/* Modals micro-entreprise */
#microEntrepriseContent .modal-content {
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid var(--border-color);
    color: var(--text-light);
}

#microEntrepriseContent .modal-header {
    background: rgba(15, 23, 42, 0.98);
    border-bottom: 1px solid var(--border-color);
}

#microEntrepriseContent .modal-title {
    color: var(--text-light);
}

#microEntrepriseContent .modal-body {
    background: rgba(15, 23, 42, 0.9);
}

#microEntrepriseContent .modal-footer {
    background: rgba(15, 23, 42, 0.98);
    border-top: 1px solid var(--border-color);
}

#microEntrepriseContent .form-label {
    color: var(--text-light);
    font-weight: 500;
}

#microEntrepriseContent .form-text {
    color: var(--text-muted);
}

#microEntrepriseContent .text-muted {
    color: var(--text-muted) !important;
}

/* Badges et éléments spéciaux */
#microEntrepriseContent .badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
}

#microEntrepriseContent .bg-secondary {
    background-color: var(--text-muted) !important;
}

#microEntrepriseContent .bg-light {
    background-color: rgba(15, 23, 42, 0.5) !important;
    color: var(--text-light) !important;
}

/* Boutons outline */
#microEntrepriseContent .btn-outline-secondary {
    color: var(--text-muted);
    border-color: var(--text-muted);
}

#microEntrepriseContent .btn-outline-secondary:hover {
    background-color: var(--text-muted);
    color: var(--dark-primary);
}

#microEntrepriseContent .btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

#microEntrepriseContent .btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Tableau de bord */
.dashboard-container {
    max-width: 1200px;
    margin: 0 auto;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1rem;
    background: rgba(15, 23, 42, 0.5);
    border-radius: var(--border-radius);
}

.month-selector {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.month-selector label {
    font-weight: 500;
    color: var(--text-light);
}

.month-selector select {
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background: var(--dark-secondary);
    color: var(--text-light);
}

.dashboard-options {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
}

/* Résumé des finances */
.dashboard-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.summary-card {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    text-align: center;
}

.summary-card h3 {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.summary-card .amount {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* Graphiques */
.charts-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.chart-card {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
}

.chart-card h3 {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    text-align: center;
}

.chart-card canvas {
    width: 100% !important;
    height: 300px !important;
}

/* Formulaires */
.config-form,
.personal-form,
.settings-form {
    max-width: 500px;
    margin: 0 auto;
}

.form-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background: var(--dark-secondary);
    color: var(--text-light);
    margin-bottom: 1rem;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.form-select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background: var(--dark-secondary);
    color: var(--text-light);
    margin-bottom: 1rem;
}

/* Grille des logiciels */
.software-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.software-item {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.software-info h4 {
    margin: 0 0 0.5rem 0;
    color: var(--text-light);
}

.software-info p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.software-cost {
    font-weight: 700;
    color: var(--primary-color);
}

/* Responsive micro-entreprise */
@media (max-width: 768px) {
    .tab-buttons {
        flex-direction: column;
    }
    
    .tab-btn {
        text-align: left;
        border-bottom: none;
        border-right: 3px solid transparent;
    }
    
    .tab-btn.active {
        border-right-color: var(--primary-color);
        border-bottom-color: transparent;
    }
    
    .dashboard-header {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .dashboard-summary {
        grid-template-columns: 1fr;
    }
    
    .charts-container {
        grid-template-columns: 1fr;
    }
    
    .summary-card .amount {
        font-size: 1.5rem;
    }
}

/* Grille CSS Grid fixe 5x5 pour les logiciels */
#softwareSelectionGrid {
    display: grid !important;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
    margin: 0;
    padding: 0;
    max-width: 100%;
}

/* Responsive de la grille - toujours 5 colonnes sauf sur très petit écran */
@media (max-width: 768px) {
    #softwareSelectionGrid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
    }
}

@media (max-width: 576px) {
    #softwareSelectionGrid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
}

/* Styles pour les cartes de logiciels optimisées pour grille 5x5 */
.software-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    overflow: hidden;
    min-height: 320px;
    width: 100%;
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
}

.software-card:hover {
    box-shadow: var(--card-shadow-hover);
    transform: translateY(-2px);
}

.software-card .card-body {
    padding: 0.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.software-card .card-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 0.5rem;
    line-height: 1.2;
    text-align: center;
    padding: 0 0.5rem;
}

.software-card .badge {
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-weight: 500;
    align-self: center;
    margin-top: 0.25rem;
}

/* Bouton de suppression stylé et moderne */
.software-card .remove-from-month-btn {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #94a3b8 !important;
    opacity: 0.7;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.software-card .remove-from-month-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(220, 38, 38, 0.2));
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.software-card .remove-from-month-btn:hover {
    opacity: 1;
    color: #fca5a5 !important;
    background: rgba(239, 68, 68, 0.15) !important;
    border-color: rgba(239, 68, 68, 0.3) !important;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.software-card .remove-from-month-btn:hover::before {
    opacity: 1;
}

.software-card .remove-from-month-btn:active {
    transform: scale(0.95);
}

.software-card .remove-from-month-btn i {
    font-size: 0.7rem;
    font-weight: 600;
    position: relative;
    z-index: 1;
    transition: transform 0.2s ease;
}

/* Styles pour les images des logiciels */
.software-image-container {
    text-align: center;
    margin-bottom: 0.5rem;
    padding: 0.5rem;
}

.software-image {
    width: 192px;
    height: 192px;
    object-fit: contain;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.05);
    padding: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.software-card:hover .software-image {
    transform: scale(1.08);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.software-card .remove-from-month-btn:hover i {
    transform: rotate(90deg);
}

/* Animation de pulsation subtile */
@keyframes subtlePulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.software-card:hover .remove-from-month-btn {
    animation: subtlePulse 2s ease-in-out infinite;
}

/* Animation d'apparition des cartes */
.software-card {
    animation: fadeInUp 0.3s ease-out;
    opacity: 0;
    animation-fill-mode: forwards;
}

.software-card:nth-child(1) { animation-delay: 0.1s; }
.software-card:nth-child(2) { animation-delay: 0.15s; }
.software-card:nth-child(3) { animation-delay: 0.2s; }
.software-card:nth-child(4) { animation-delay: 0.25s; }
.software-card:nth-child(5) { animation-delay: 0.3s; }
.software-card:nth-child(6) { animation-delay: 0.35s; }
.software-card:nth-child(7) { animation-delay: 0.4s; }
.software-card:nth-child(8) { animation-delay: 0.45s; }

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

/* Responsive pour les cartes */
@media (max-width: 1200px) {
    .software-card .col-lg-2 {
        flex: 0 0 25%;
        max-width: 25%;
    }
}

@media (max-width: 768px) {
    .software-card .col-md-3 {
        flex: 0 0 50%;
        max-width: 50%;
        margin-bottom: 0.5rem;
    }
    
    .software-card .card-body {
        padding: 0.4rem;
    }
    
    .software-card .card-title {
        font-size: 0.8rem;
    }
    
    .software-card .badge {
        font-size: 0.65rem;
        padding: 0.15rem 0.3rem;
    }
    
    .software-card .remove-from-month-btn {
        width: 20px;
        height: 20px;
    }
    
    .software-card .remove-from-month-btn i {
        font-size: 0.55rem;
    }
}

@media (max-width: 576px) {
    .software-card .col-md-3 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .software-card {
        min-height: 100px;
    }
}
