:root {
    --df-bleu: #0e4c5e;
    --df-orange: #FF7A00;
    --df-vert: #10b981;
    --df-gris-fond: #f4f6f7;
    --df-gris-texte: #444444;
    --df-bordure: #e0e0e0;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: 'Segoe UI', Arial, sans-serif;
    background: var(--df-gris-fond);
    color: var(--df-gris-texte);
}

a { color: var(--df-bleu); }

/* ---------- Page de connexion ---------- */
.login-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-box {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    padding: 40px 36px;
    width: 100%;
    max-width: 380px;
}

.login-logo {
    text-align: center;
    font-size: 26px;
    font-weight: 700;
    color: var(--df-bleu);
    margin-bottom: 4px;
}
.login-logo span { color: var(--df-orange); }

.login-subtitle {
    text-align: center;
    font-size: 13px;
    color: #888;
    margin-bottom: 28px;
}

.field { margin-bottom: 18px; }
.field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--df-bleu);
    margin-bottom: 6px;
}
.field input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--df-bordure);
    border-radius: 6px;
    font-size: 14px;
}
.field input:focus {
    outline: none;
    border-color: var(--df-bleu);
}

.btn-primary {
    width: 100%;
    padding: 12px;
    background: var(--df-orange);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}
.btn-primary:hover { opacity: 0.92; }

.alert-error {
    background: #fdecea;
    color: #c0392b;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 13px;
    margin-bottom: 18px;
}
.alert-success {
    background: #e6f7f0;
    color: #0f7a4a;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 13px;
    margin-bottom: 18px;
}

/* ---------- Barre d'entête (pages internes) ---------- */
.app-header {
    background: var(--df-bleu);
    color: #fff;
    padding: 14px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.app-header .logo { font-size: 18px; font-weight: 700; }
.app-header .logo span { color: var(--df-orange); }
.app-header .user-info { font-size: 13px; display: flex; align-items: center; gap: 14px; }
.app-header a.logout { color: #cbd8dc; text-decoration: none; font-size: 13px; }
.app-header a.logout:hover { color: #fff; }

.app-content { padding: 30px; max-width: 1300px; margin: auto; }

/* ---------- Impression (utilisable comme export PDF via Ctrl+P du navigateur) ---------- */
@media print {
    .app-header, form, .btn-primary, a[style*="btn-primary"], button, a[href*="export.php"] { display: none !important; }
    body { background: #fff; }
    .app-content { padding: 0; max-width: 100%; }
    table { font-size: 11px; }
}
