/* Hand-written, dependency-free stylesheet. Light/dark aware. */

:root {
  --bg: #fbfaf8;
  --surface: #ffffff;
  --text: #1f2328;
  --muted: #5b636b;
  --border: #e6e2db;
  --accent: #2f6f4f;        /* calm green */
  --accent-ink: #ffffff;
  --badge-bg: #eef3ef;
  --badge-ink: #2f6f4f;
  --radius: 12px;
  --maxw: 980px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15181b;
    --surface: #1d2125;
    --text: #e7e9ea;
    --muted: #9aa3ab;
    --border: #2c3137;
    --accent: #5fae84;
    --accent-ink: #0d100f;
    --badge-bg: #20302a;
    --badge-ink: #8fd1ad;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 1.1rem;
}

a { color: var(--accent); }

/* ---------- Header ---------- */
.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  position: sticky;
  top: 0;
  z-index: 10;
}
.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 1.2rem;
  padding-block: 0.7rem;
}
.brand {
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  color: var(--text);
  margin-right: auto;
}
.nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; }
.nav a {
  text-decoration: none;
  color: var(--muted);
  padding: 0.25rem 0;
  font-weight: 500;
}
.nav a:hover { color: var(--accent); }
.nav a.nav-cta {
  color: var(--accent);
  font-weight: 600;
  border: 1px solid var(--accent);
  border-radius: 999px;
  padding: 0.1rem 0.7rem;
}
.nav a.nav-cta:hover { background: var(--accent); color: var(--accent-ink); }

.lang-switch { display: flex; gap: 0.4rem; align-items: center; font-size: 0.85rem; }
.lang {
  text-decoration: none;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.15rem 0.6rem;
}
.lang--current {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
  font-weight: 600;
}

/* ---------- Hero / page head ---------- */
.hero, .page-head { padding-block: 2rem 1rem; }
.hero h1, .page-head h1 { margin: 0 0 0.4rem; font-size: 1.9rem; line-height: 1.15; }
.tagline { color: var(--muted); font-size: 1.1rem; margin-top: 0; }
.intro { color: var(--muted); }

.block { padding-block: 1.5rem; }
.block h2 { font-size: 1.3rem; margin-bottom: 0.9rem; }

/* ---------- Cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
  padding-bottom: 2rem;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.card--evenement { border-left: 4px solid var(--accent); }
.badge {
  align-self: flex-start;
  background: var(--badge-bg);
  color: var(--badge-ink);
  border-radius: 999px;
  padding: 0.1rem 0.6rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.card__title { margin: 0; font-size: 1.08rem; line-height: 1.3; }
.card__title a { text-decoration: none; }
.card__title a:hover { text-decoration: underline; }
.card__desc { margin: 0; color: var(--muted); font-size: 0.95rem; }
.card__meta { margin: 0; font-size: 0.9rem; display: flex; flex-wrap: wrap; gap: 0.2rem 0.9rem; }
.card__place { color: var(--muted); }
.card__action { margin-top: auto; font-weight: 600; text-decoration: none; }
.card__action:hover { text-decoration: underline; }
.card__added { margin: 0; font-size: 0.78rem; color: var(--muted); }

.empty { color: var(--muted); padding-block: 2rem; }

/* ---------- Suggestion CTA ---------- */
.suggest { max-width: 640px; }
.btn-cta {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-ink);
  text-decoration: none;
  font-weight: 600;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius);
}
.btn-cta:hover { filter: brightness(1.08); }
.suggest-note { color: var(--muted); font-size: 0.9rem; margin-top: 1rem; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  margin-top: 2rem;
  padding-block: 1.5rem;
  font-size: 0.9rem;
  color: var(--muted);
}
.admin-link { font-weight: 600; text-decoration: none; }
.footer-note { margin: 0.5rem 0 0.2rem; }
.footer-built { margin: 0; font-size: 0.8rem; }
