:root {
  --brand-primary: #2f4538;
  --brand-bg: #faf9f6;
  --brand-text: #1f1f1f;
  --brand-error: #b3261e;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
  background: var(--brand-bg);
  color: var(--brand-text);
}

.page-login {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-login form {
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 320px;
}

.page-login label { display: flex; flex-direction: column; gap: 0.25rem; font-size: 0.9rem; }
.page-login input { padding: 0.5rem; border: 1px solid #ccc; border-radius: 4px; }
.page-login button {
  padding: 0.6rem;
  border: none;
  border-radius: 4px;
  background: var(--brand-primary);
  color: #fff;
  cursor: pointer;
}
.erreur { color: var(--brand-error); font-size: 0.9rem; }

.page-dashboard { max-width: 720px; margin: 3rem auto; padding: 0 1rem; }

.nav-principale {
  display: flex;
  gap: 1.5rem;
  padding: 1rem 2rem;
  background: var(--brand-primary);
}
.nav-principale a { color: #fff; text-decoration: none; font-size: 0.95rem; }
.nav-principale a:hover { text-decoration: underline; }

.page-contenu { max-width: 960px; margin: 2rem auto; padding: 0 1rem; }

table.liste { width: 100%; border-collapse: collapse; margin-top: 1rem; }
table.liste th, table.liste td { text-align: left; padding: 0.5rem 0.75rem; border-bottom: 1px solid #ddd; }
table.liste th { font-size: 0.85rem; text-transform: uppercase; color: #666; }
table.liste tr:hover { background: #f0efe9; }

.bouton, button[type="submit"] {
  display: inline-block;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 4px;
  background: var(--brand-primary);
  color: #fff;
  cursor: pointer;
  text-decoration: none;
  font-size: 0.9rem;
}

.form-champs { display: flex; flex-direction: column; gap: 1rem; max-width: 480px; }
.form-champs label { display: flex; flex-direction: column; gap: 0.25rem; font-size: 0.9rem; }
.form-champs input, .form-champs select, .form-champs textarea {
  padding: 0.5rem; border: 1px solid #ccc; border-radius: 4px; font: inherit;
}

.fil-actions { margin: 1rem 0; display: flex; gap: 0.75rem; }
.badge { display: inline-block; padding: 0.15rem 0.5rem; border-radius: 999px; font-size: 0.75rem; background: #e5e2d8; }
section.bloc { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid #ddd; }

.galerie-photos { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1rem 0; }
.galerie-photos .miniature { width: 140px; height: 140px; object-fit: cover; border-radius: 6px; }
