:root {
    --marine: #0E2A38;
    --marine-fonce: #081920;
    --marine-clair: #1A4155;
    --cuivre: #B6743B;
    --cuivre-clair: #D89A62;
    --fond: #F3F6F5;
    --texte: #14232B;
    --texte-doux: #536873;
    --bordure: #DCE4E4;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: "IBM Plex Sans", Arial, sans-serif;
    background: var(--fond);
    color: var(--texte);
}

.topbar {
    background: var(--marine);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1.5rem;
    flex-wrap: wrap;
}

.topbar .brand {
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
}

.topbar nav {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.topbar nav a, .topbar nav .user {
    color: white;
    text-decoration: none;
    opacity: 0.9;
}

.topbar nav a:hover { opacity: 1; text-decoration: underline; }

.link-button {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font: inherit;
    padding: 0;
    text-decoration: underline;
    opacity: 0.9;
}

.container {
    max-width: 720px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

h1 { color: var(--marine); }
h2 { color: var(--marine); font-size: 1.05rem; margin-top: 1.5rem; }

.form-card {
    background: white;
    border: 1px solid var(--bordure);
    border-radius: 8px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    max-width: 480px;
}

label { font-weight: 600; margin-top: 0.75rem; font-size: 0.9rem; }

input, select, textarea {
    padding: 0.5rem;
    border: 1px solid var(--bordure);
    border-radius: 6px;
    font: inherit;
    width: 100%;
}

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }

button, button[type="submit"] {
    margin-top: 1rem;
    background: var(--cuivre);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 0.6rem 1.2rem;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    width: fit-content;
}

button:hover { background: var(--cuivre-clair); }
button.danger { background: #a83232; }

.erreur { color: #a83232; font-size: 0.85rem; margin: 0.15rem 0 0; }

.flash { padding: 0.75rem 1rem; border-radius: 6px; margin-bottom: 1rem; }
.flash-success { background: #e2f3e6; color: #1f6b34; }
.flash-error { background: #fde9e9; color: #a83232; }

.liste { list-style: none; padding: 0; }
.liste li { padding: 0.5rem 0; border-bottom: 1px solid var(--bordure); }
.liste a { color: var(--marine); font-weight: 600; text-decoration: none; }
.liste a:hover { text-decoration: underline; }

.muted { color: var(--texte-doux); }
