/* ── BASE ────────────────────────────────────────── */
body {
    background: #000;
    color: #3ddc84;
    font-family: 'Courier New', monospace;
    margin: 0;
}

/* ── LAYOUT PAGES ────────────────────────────────── */
body.page-form {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
}

body.page-dashboard {
    padding: 30px;
}

/* ── COULEURS GLOBALES ───────────────────────────── */
.dim  { color: #555; }
.blue { color: #5bc8fa; }
.warn { color: #ffb347; }

/* ── DASHBOARD ───────────────────────────────────── */
.container {
    max-width: 1000px;
    margin: 0 auto;
    border: 1px solid #3ddc84;
    padding: 20px;
    background-color: #050505;
    box-shadow: 0 0 15px rgba(61, 220, 132, 0.2);
}
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px dashed #3ddc84;
    padding-bottom: 15px;
    margin-bottom: 20px;
}
.title {
    font-size: 20px;
    font-weight: bold;
}
.btn-danger {
    background-color: #000;
    color: #ff5c5c;
    padding: 8px 16px;
    text-decoration: none;
    font-weight: bold;
    border: 1px solid #ff5c5c;
    transition: .2s;
}
.btn-danger:hover {
    color: #000;
    background-color: #ff5c5c;
}
.btn-game {
    background-color: #000;
    color: #ffb347;
    padding: 8px 16px;
    text-decoration: none;
    font-weight: bold;
    border: 1px solid #ffb347;
    transition: .2s;
}
.btn-game:hover {
    color: #000;
    background-color: #ffb347;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}
.stat-box {
    border: 1px solid #3ddc84;
    padding: 15px;
    background: #0a0a0a;
}
.stat-value {
    font-size: 32px;
    color: #fff;
    margin-top: 10px;
}
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}
th, td {
    border: 1px solid #222;
    padding: 10px;
    text-align: left;
}
th {
    background-color: #111;
    color: #5bc8fa;
}
tr:hover {
    background-color: #0d0d0d;
}
.btn-edit {
    color: #3ddc84;
    background: transparent;
    border: 1px solid #3ddc84;
    padding: 4px 10px;
    cursor: pointer;
    font-family: monospace;
    transition: background 0.2s, color 0.2s;
}
.btn-edit:hover {
    background: #3ddc84;
    color: #000;
}
.btn-delete {
    color: #ff5c5c;
    background: transparent;
    border: 1px solid #ff5c5c;
    padding: 4px 10px;
    cursor: pointer;
    font-family: monospace;
    transition: background 0.2s, color 0.2s;
}
.btn-delete:hover {
    background: #ff5c5c;
    color: #000;
}

/* ── FORMULAIRES ─────────────────────────────────── */
.login-box {
    border: 1px solid #3ddc84;
    padding: 40px;
    background: #050505;
    min-width: 380px;
    box-shadow: 0 0 20px rgba(61,220,132,0.1);
}
.login-title {
    font-size: 14px;
    letter-spacing: 0.08em;
    color: #5bc8fa;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px dashed #222;
}
.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}
.field label {
    font-size: 11px;
    color: #555;
}
.field input {
    background: #080808;
    border: 0.5px solid #333;
    color: #ccc;
    font-family: monospace;
    font-size: 12px;
    padding: 8px 10px;
    outline: none;
    transition: border-color 0.2s;
}
.field input:focus { border-color: #5bc8fa; }
.field input::placeholder { color: #333; }
.remember {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: #555;
    margin-bottom: 20px;
}
.btn-submit {
    width: 100%;
    padding: 10px;
    background: transparent;
    border: 1px solid #3ddc84;
    color: #3ddc84;
    font-family: monospace;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    letter-spacing: 0.05em;
}
.btn-submit:hover { background: #3ddc84; color: #000; }
.alert {
    color: #ff5c5c;
    font-size: 11px;
    margin-bottom: 16px;
    padding: 8px;
    border: 0.5px solid #ff5c5c;
}
.hint { color: #555; font-size: 10px; margin-top: 4px; }
.separator { border: none; border-top: 1px dashed #222; margin: 20px 0; }
.back-link {
    display: block;
    text-align: center;
    margin-top: 16px;
    font-size: 11px;
    color: #555;
    text-decoration: none;
    transition: color 0.2s;
}
.back-link:hover { color: #ffb347; }
