/* GLOBAL */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background: #0a0f1c;
    color: #e0e7ff;

    /* CENTRAGE VERTICAL ET HORIZONTAL */
    display: flex;
    justify-content: center;  /* centre horizontalement */
    align-items: center;      /* centre verticalement */
    height: 100vh;            /* prend toute la hauteur de la fenêtre */
    margin: 0;
}

h1,h2,h3 { color: #facc15; }

.card {
    background: #1e293b;
    padding: 30px;
    border-radius: 12px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

input, select, button, textarea {
    width: 100%;
    padding: 10px 15px;
    margin: 10px 0;
    border-radius: 8px;
    border: 1px solid #334155;
    background: #0f172a;
    color: #e0e7ff;
    font-size: 1rem;
}

button {
    background: #facc15;
    color: #0a0f1c;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
}

button:hover {
    background: #fcd34d;
}

.error { color: #ef4444; margin: 5px 0; text-align:center; }
.success { color: #22c55e; margin: 5px 0; text-align:center; }

a {
    color: #38bdf8;
    text-decoration: none;
}

a:hover { text-decoration: underline; }

table {
    width: 100%;
    border-collapse: collapse;
}

th, td { padding: 10px; border-bottom: 1px solid #334155; }

.status-valid { color: #22c55e; }
.status-used { color: #ef4444; }
