/* RESET MODERNE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* FONT + BACKGROUND */
body {
    font-family: "Inter", system-ui, sans-serif;
    background: #f3f4f6;
    color: #111827;
    padding-bottom: 40px;
}

/* HEADER */
header {
    background: #1f2937;
    color: white;
    padding: 15px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    font-size: 20px;
    font-weight: 600;
}

header a {
    color: #60a5fa;
    text-decoration: none;
    margin-left: 15px;
    transition: 0.2s;
}

header a:hover {
    color: white;
}

/* PAGE CONTAINER */
main {
    padding: 25px;
    max-width: 900px;
    margin: auto;
}

/* TITRES */
h2 {
    margin-bottom: 12px;
    font-size: 22px;
    font-weight: 600;
    color: #111827;
}

h3 {
    margin-top: 25px;
    margin-bottom: 10px;
    font-size: 18px;
    color: #1f2937;
}

/* CARTES */
.card {
    background: white;
    padding: 18px;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

/* TABLEAU */
table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

th {
    background: #374151;
    color: white;
    padding: 12px;
    font-size: 14px;
    text-align: left;
}

td {
    padding: 12px;
    border-bottom: 1px solid #e5e7eb;
    font-size: 14px;
}

tr:hover {
    background: #f9fafb;
}

a.table-link {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
}

a.table-link:hover {
    text-decoration: underline;
}

/* FORMULAIRES */
form {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    margin-bottom: 25px;
}

label {
    display: block;
    margin: 10px 0 5px;
    font-weight: 500;
}

input[type="text"],
input[type="password"],
input[type="number"],
textarea,
select {
    width: 100%;
    padding: 10px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    margin-bottom: 15px;
    font-size: 15px;
}

button {
    background: #2563eb;
    border: none;
    padding: 10px 15px;
    color: white;
    font-size: 15px;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.25s;
}

button:hover {
    background: #1e40af;
}

/* LOGIN */
.login-container {
    max-width: 400px;
    margin: 80px auto;
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

.error {
    color: #dc2626;
    margin-bottom: 10px;
    font-weight: 500;
}

/* PERSON CARD */
.person-card {
    background: white;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 18px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.person-photo {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
    float: right;
    margin-left: 10px;
    border: 2px solid #ddd;
}
