:root {
    --primary: #0284c7;
    --primary-hover: #0369a1;
    --dark-bg: #0f172a;
    --sidebar-bg: #1e293b;
    --light-bg: #f8fafc;
    --border-color: #e2e8f0;
    --text-main: #334155;
    --success: #10b981;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', system-ui, sans-serif; }
body { background: var(--light-bg); color: var(--text-main); display: flex; min-height: 100vh; }

/* Menu Latéral */
.sidebar { width: 280px; background: var(--sidebar-bg); color: white; padding: 20px; display: flex; flex-direction: column; }
.logo-container { text-align: center; margin-bottom: 25px; padding-bottom: 15px; border-bottom: 1px solid #334155; }
.logo-container img { max-width: 85%; height: auto; object-fit: contain; }
.logo-container p { font-size: 11px; color: #94a3b8; margin-top: 5px; text-transform: uppercase; letter-spacing: 1px; }

.sidebar a { display: flex; align-items: center; color: #cbd5e1; padding: 12px 15px; text-decoration: none; border-radius: 8px; margin-bottom: 8px; font-weight: 500; transition: all 0.3s; }
.sidebar a:hover, .sidebar a.active { background: var(--primary); color: white; }

/* Contenu Principal */
.main-content { flex: 1; padding: 35px; overflow-y: auto; }
.header-title { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; }
.header-title h1 { color: var(--dark-bg); font-size: 26px; }

/* Cartes et Formulaires */
.card { background: white; padding: 25px; border-radius: 12px; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -1px rgba(0,0,0,0.03); margin-bottom: 25px; border: 1px solid var(--border-color); }
.card h2 { font-size: 18px; color: var(--dark-bg); margin-bottom: 20px; display: flex; align-items: center; gap: 10px; }

.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.form-group { display: flex; flex-direction: column; }
.form-group label { font-weight: 600; margin-bottom: 6px; font-size: 13px; color: #475569; }

input, select, textarea { padding: 10px 14px; border: 1px solid #cbd5e1; border-radius: 8px; font-size: 14px; transition: border 0.2s; background: #fff; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15); }
input[readonly] { background: #f1f5f9; color: #64748b; cursor: not-allowed; }

button { background: var(--primary); color: white; border: none; padding: 12px 24px; border-radius: 8px; cursor: pointer; font-weight: 600; transition: background 0.2s; }
button:hover { background: var(--primary-hover); }

/* Tableaux */
table { width: 100%; border-collapse: collapse; margin-top: 10px; text-align: left; }
th { background: #f1f5f9; color: #475569; padding: 14px; font-size: 13px; font-weight: 600; text-transform: uppercase; border-bottom: 2px solid var(--border-color); }
td { padding: 14px; border-bottom: 1px solid var(--border-color); font-size: 14px; vertical-align: middle; }
tr:hover td { background: #f8fafc; }

/* Badges */
.badge { padding: 4px 10px; border-radius: 9999px; font-size: 12px; font-weight: 600; display: inline-block; }
.badge-active { background: #dcfce7; color: #15803d; }
.badge-inactive { background: #fee2e2; color: #b91c1c; }
.badge-info { background: #e0f2fe; color: #0369a1; }