:root {
  --vert: #14532d;
  --vert-clair: #e8f5e9;
  --texte: #1a1a1a;
  --bordure: #d8dde3;
  --fond: #fafafa;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--texte);
  background: var(--fond);
}

.topbar {
  background: var(--vert);
  color: white;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1rem;
}

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

.topbar nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.9rem;
}

.topbar nav a, .topbar nav button.link {
  color: white;
  text-decoration: none;
  opacity: 0.9;
  background: none;
  border: none;
  font-size: 0.9rem;
  cursor: pointer;
  padding: 0;
}

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

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

h1 { font-size: 1.4rem; }
h2 { font-size: 1.1rem; margin-top: 2rem; }

.cartes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
}

.carte {
  background: white;
  border: 1px solid var(--bordure);
  border-radius: 10px;
  padding: 1rem;
  text-decoration: none;
  color: var(--texte);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.carte strong { font-size: 1.8rem; color: var(--vert); }

table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1rem;
  background: white;
}

table, th, td {
  border: 1px solid var(--bordure);
}

th, td {
  padding: 0.5rem 0.6rem;
  text-align: left;
  font-size: 0.92rem;
}

.bloc {
  background: white;
  border: 1px solid var(--bordure);
  border-radius: 10px;
  padding: 1rem;
  margin-bottom: 1rem;
}

.form-etroit {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  max-width: 420px;
}

.form-etroit label {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-size: 0.9rem;
}

.form-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 1rem;
}

.inline { display: inline; }

input, select, textarea, button {
  font-size: 1rem;
  padding: 0.45rem 0.6rem;
  border: 1px solid var(--bordure);
  border-radius: 6px;
  font-family: inherit;
}

button, .bouton {
  background: var(--vert);
  color: white;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}

button:hover, .bouton:hover { opacity: 0.9; }

.erreur { color: #b91c1c; }
.meta { color: #666; font-size: 0.85rem; }

@media (max-width: 600px) {
  table, thead, tbody, th, td, tr { display: block; }
  thead { display: none; }
  tr { margin-bottom: 0.75rem; border: 1px solid var(--bordure); border-radius: 8px; overflow: hidden; }
  td { border: none; border-bottom: 1px solid var(--bordure); }
  td:before {
    content: attr(data-label);
    font-weight: 600;
    display: block;
    font-size: 0.75rem;
    color: #666;
  }
}
