/* MonEntreprise - Styles personnalisés */

:root {
    --me-primary: #0d6efd;
    --me-secondary: #6c757d;
    --me-success: #198754;
    --me-warning: #ffc107;
    --me-danger: #dc3545;
    --me-info: #0dcaf0;
    --me-sidebar-bg: #1e2a3a;
    --me-sidebar-active: #0d6efd;
}

body {
    background: #f5f7fb;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Layout */
.me-wrapper { display: flex; min-height: 100vh; }
.me-sidebar {
    width: 240px;
    background: var(--me-sidebar-bg);
    color: #fff;
    flex-shrink: 0;
    padding: 0;
    transition: width 0.2s;
}
.me-sidebar .me-logo {
    padding: 16px;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,.1);
}
.me-sidebar .me-logo img { max-height: 50px; }
.me-sidebar nav { padding: 12px 0; }
.me-sidebar nav a {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 18px;
    color: rgba(255,255,255,.7);
    text-decoration: none;
    font-size: 14px;
    transition: background 0.15s;
}
.me-sidebar nav a:hover { background: rgba(255,255,255,.05); color: #fff; }
.me-sidebar nav a.active { background: var(--me-sidebar-active); color: #fff; }
.me-sidebar nav a i { width: 18px; text-align: center; }
.me-sidebar .me-section-title {
    padding: 14px 18px 6px;
    font-size: 11px;
    text-transform: uppercase;
    color: rgba(255,255,255,.4);
    letter-spacing: 0.5px;
}

.me-main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.me-topbar {
    background: #fff;
    border-bottom: 1px solid #e9ecef;
    padding: 12px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.me-content { padding: 24px; flex: 1; }
.me-footer {
    padding: 12px 24px;
    text-align: center;
    font-size: 12px;
    color: #6c757d;
    border-top: 1px solid #e9ecef;
    background: #fff;
}

/* Cards */
.me-card { background: #fff; border-radius: 8px; box-shadow: 0 1px 3px rgba(0,0,0,.05); padding: 20px; margin-bottom: 20px; }
.me-card-header { font-weight: 600; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid #f1f3f5; }

/* Tables */
.table { background: #fff; }
.table thead th { background: #f8f9fa; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.3px; color: #495057; }
.table tbody td { vertical-align: middle; }

/* Badges statuts */
.me-badge { padding: 4px 10px; border-radius: 12px; font-size: 11px; font-weight: 600; text-transform: uppercase; }

/* Responsive */
@media (max-width: 768px) {
    .me-sidebar { position: fixed; left: -240px; height: 100%; z-index: 1000; }
    .me-sidebar.show { left: 0; }
    .me-content { padding: 16px; }
}

/* Login */
.me-login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
    padding: 20px;
}
.me-login-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,.2);
    padding: 40px;
    max-width: 420px;
    width: 100%;
}
.me-login-logo { text-align: center; margin-bottom: 24px; }
.me-login-logo img { max-height: 70px; }
