/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Segoe UI', Arial, sans-serif; background: #f0f2f5; color: #1a1a2e; line-height: 1.6; }
a { color: #2E75B6; text-decoration: none; }

/* ── Page login ─────────────────────────────────────────────── */
body.login-page {
    display: flex; align-items: center; justify-content: center;
    min-height: 100vh; background: #1F3864;
}

.login-box {
    background: white; border-radius: 12px;
    padding: 40px 44px; width: 100%; max-width: 400px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.35);
}

.login-header { text-align: center; margin-bottom: 28px; }
.login-header h1 { font-size: 1.6rem; color: #1F3864; }
.login-header p  { font-size: 0.88rem; color: #888; margin-top: 6px; }

.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 0.88rem; font-weight: 600; color: #333; margin-bottom: 6px; }
.form-group input {
    width: 100%; padding: 10px 14px;
    border: 1.5px solid #dde; border-radius: 6px;
    font-size: 0.95rem; transition: border 0.2s;
    outline: none;
}
.form-group input:focus { border-color: #2E75B6; }

/* ── Boutons ─────────────────────────────────────────────────── */
.btn {
    display: inline-block; padding: 9px 22px;
    border-radius: 6px; font-size: 0.9rem; font-weight: 600;
    cursor: pointer; border: none; transition: background 0.2s;
}
.btn-primary { background: #2E75B6; color: white; }
.btn-primary:hover { background: #1F3864; }
.btn-outline {
    background: transparent; color: #BDD7EE;
    border: 1.5px solid #BDD7EE;
}
.btn-outline:hover { background: rgba(255,255,255,0.1); text-decoration: none; }
.btn-sm { padding: 5px 14px; font-size: 0.82rem; }
.btn-full { width: 100%; text-align: center; padding: 12px; }

/* ── Alertes ─────────────────────────────────────────────────── */
.alert { padding: 12px 16px; border-radius: 6px; margin-bottom: 18px; font-size: 0.9rem; }
.alert-error   { background: #FFEBEE; color: #C62828; border-left: 4px solid #C62828; }
.alert-success { background: #E8F5E9; color: #1B5E20; border-left: 4px solid #2E7D32; }

/* ── Header admin ────────────────────────────────────────────── */
.admin-header {
    background: #1F3864; color: white;
    padding: 14px 32px;
    display: flex; align-items: center; justify-content: space-between;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}
.admin-header h1 { font-size: 1.25rem; font-weight: 700; }
.admin-breadcrumb { font-size: 0.82rem; color: #BDD7EE; margin-left: 16px; }
.admin-header-left { display: flex; align-items: center; gap: 0; }
.admin-header-right { display: flex; align-items: center; gap: 14px; }
.admin-user { font-size: 0.88rem; color: #BDD7EE; }

/* ── Layout admin ────────────────────────────────────────────── */
.admin-main { max-width: 1000px; margin: 32px auto; padding: 0 24px; }

.admin-section {
    background: white; border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    padding: 28px; margin-bottom: 28px;
}
.admin-section h2 { font-size: 1.1rem; color: #1F3864; margin-bottom: 18px; }

/* ── Stats ──────────────────────────────────────────────────── */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px; margin-bottom: 28px;
}
.stat-card {
    background: white; border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    padding: 24px; text-align: center;
    border-top: 4px solid #2E75B6;
}
.stat-value { font-size: 2.2rem; font-weight: 700; color: #1F3864; }
.stat-label { font-size: 0.84rem; color: #666; margin-top: 4px; }

/* ── Table ──────────────────────────────────────────────────── */
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.admin-table th { background: #1F3864; color: white; padding: 10px 14px; text-align: left; }
.admin-table td { padding: 9px 14px; border-bottom: 1px solid #eee; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:nth-child(even) td { background: #f8f9fc; }
.admin-table .low-stock { color: #C62828; font-weight: 600; }

/* ── Info section formation ──────────────────────────────────── */
.info-section { border: 2px dashed #BDD7EE; background: #f0f5ff; }
.info-section h2 { color: #2E75B6; }
