/* FermeDirect Gabon — Mini-site documents */
:root {
  --primary: #2d6a4f;
  --primary-light: #40916c;
  --bg: #f8faf8;
  --surface: #fff;
  --text: #1a1a1a;
  --text-muted: #5a5a5a;
  --border: #e0e6e0;
  --radius: 8px;
  --shadow: 0 2px 8px rgba(0,0,0,.06);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

.container { max-width: 720px; margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 10;
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.site-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
}
.site-title a { color: inherit; text-decoration: none; }
.site-nav {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.site-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
}
.site-nav a:hover { color: var(--primary); }

/* Main */
main { padding: 2rem 0 3rem; min-height: 60vh; }
.page-title { margin: 0 0 0.5rem; font-size: 1.75rem; color: var(--text); }
.page-meta { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 2rem; }

.card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.card h2 { margin: 0 0 1rem; font-size: 1.2rem; color: var(--primary); }
.card ul { margin: 0.5rem 0; padding-left: 1.25rem; }
.card li { margin-bottom: 0.35rem; }

.doc-content {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem;
}
.doc-content h2 { margin: 2rem 0 0.75rem; font-size: 1.35rem; color: var(--primary); border-bottom: 1px solid var(--border); padding-bottom: 0.35rem; }
.doc-content h2:first-child { margin-top: 0; }
.doc-content h3 { margin: 1.5rem 0 0.5rem; font-size: 1.1rem; }
.doc-content p { margin: 0.75rem 0; }
.doc-content ul, .doc-content ol { margin: 0.5rem 0; padding-left: 1.5rem; }
.doc-content li { margin-bottom: 0.25rem; }
.doc-content table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: 0.9rem; }
.doc-content th, .doc-content td { border: 1px solid var(--border); padding: 0.5rem 0.75rem; text-align: left; }
.doc-content th { background: var(--bg); font-weight: 600; }
.doc-content strong { color: var(--text); }
.doc-content hr { border: none; border-top: 1px solid var(--border); margin: 2rem 0; }

/* Home links */
.doc-links { display: grid; gap: 1rem; margin-top: 2rem; }
.doc-links a {
  display: block;
  padding: 1rem 1.25rem;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  color: var(--text);
  text-decoration: none;
  border-left: 4px solid var(--primary);
  transition: border-color .2s, box-shadow .2s;
}
.doc-links a:hover { border-left-color: var(--primary-light); box-shadow: 0 4px 12px rgba(0,0,0,.08); }
.doc-links a strong { display: block; margin-bottom: 0.25rem; color: var(--primary); }
.doc-links a span { font-size: 0.9rem; color: var(--text-muted); }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
  margin-top: 2rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

@media (max-width: 640px) {
  .site-header .container { flex-direction: column; align-items: flex-start; }
  .doc-content { padding: 1.25rem; }
}
