/* --- Mise en page générale --- */
body {
    font-family: "Segoe UI", Roboto, sans-serif;
    background-color: #f9fafb;
    color: #111827;
    margin: 0;
    padding: 0;
}

/* Centrage fluide du contenu */
.container, main {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
}

/* --- Tableaux --- */
table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

th, td {
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid #e5e7eb;
    vertical-align: middle;
}

th {
    background-color: #f3f4f6;
    font-weight: 600;
    color: #374151;
}

tr:hover {
    background-color: #f9fafb;
}

tr:nth-child(even) {
    background-color: #fcfcfc;
}

/* --- Boutons et formulaires --- */
button, a.button {
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

select, input[type="text"], input[type="number"] {
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 4px 8px;
    font-size: 0.9rem;
}

select:focus, input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

/* --- Scroll horizontal mobile --- */
table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
}

/* --- Boutons actions --- */
.btn {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
}

.btn-blue { background-color: #3b82f6; color: white; }
.btn-blue:hover { background-color: #2563eb; }

.btn-gray { background-color: #e5e7eb; color: #111827; }
.btn-gray:hover { background-color: #d1d5db; }

.btn-green { background-color: #16a34a; color: white; }
.btn-green:hover { background-color: #15803d; }

/* --- Footer --- */
footer {
    margin-top: 3rem;
    text-align: center;
    font-size: 0.8rem;
    color: #6b7280;
}
