:root {
  --bg: #14170f;
  --bg-alt: #1b2015;
  --card: #222818;
  --line: #353d27;
  --fg: #eceadf;
  --muted: #a9ad98;
  --accent: #c9a24b;
  --accent-ink: #1a1608;
  --green: #6f8a4a;
  --radius: 10px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--accent); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 12px; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.9rem, 5vw, 3.1rem); max-width: 18ch; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.1rem); }
h3 { font-size: 1.1rem; }
h4 { font-size: 1.05rem; }
ul, ol { padding-left: 1.2em; margin: 0; }
li { margin-bottom: 6px; }

/* Barre du haut */
.topbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px;
  padding: 12px 20px;
  background: rgba(20, 23, 15, 0.94);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--fg); text-decoration: none; font-weight: 700; }
.brand-mark {
  display: grid; place-items: center; width: 34px; height: 34px;
  background: var(--accent); color: var(--accent-ink);
  border-radius: 8px; font-size: .85rem; font-weight: 800;
}
nav { display: flex; flex-wrap: wrap; gap: 4px 18px; align-items: center; }
nav a { color: var(--muted); text-decoration: none; font-size: .95rem; padding: 4px 0; }
nav a:hover, nav a:focus-visible { color: var(--fg); }
nav .nav-cta { color: var(--accent); font-weight: 600; }

/* Sections */
section { padding: 64px 20px; }
section > * { max-width: 1040px; margin-left: auto; margin-right: auto; }
section.alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.section-lead { color: var(--muted); font-size: 1.1rem; max-width: 70ch; margin-top: 0; margin-bottom: 28px; margin-left: auto; margin-right: auto; }
section > .section-lead { max-width: 1040px; }
.sub { margin-top: 44px; margin-bottom: 16px; font-size: 1.3rem; }

/* Accueil */
.hero {
  padding-top: 88px; padding-bottom: 88px;
  background:
    radial-gradient(900px 400px at 85% -10%, rgba(111, 138, 74, 0.28), transparent 70%),
    linear-gradient(180deg, #1a1f13, var(--bg));
}
.eyebrow { color: var(--accent); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; font-size: .82rem; margin: 0 auto 14px; }
.lead { color: var(--muted); font-size: 1.2rem; margin-top: 0; }
.hero .lead { max-width: 1040px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.draft-note { margin-top: 28px; color: var(--muted); font-size: .85rem; }

.btn {
  display: inline-block; padding: 11px 18px; border-radius: 8px;
  border: 1px solid var(--line); color: var(--fg); text-decoration: none; font-weight: 600;
}
.btn:hover, .btn:focus-visible { border-color: var(--accent); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

/* Cartes */
.cards { display: grid; gap: 16px; }
.cards.three { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.cards.two { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card p { margin: 0; color: var(--muted); }
.card ul { color: var(--muted); }
.member .avatar {
  display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 14px;
  border-radius: 50%; background: var(--green); color: #10140a; font-weight: 800; font-size: 1.2rem;
}
.member .role { color: var(--accent); font-size: .9rem; font-weight: 600; margin-bottom: 8px; }
.values {
  list-style: none; padding: 0; margin-top: 28px;
  display: grid; gap: 10px 24px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  color: var(--muted);
}
.values strong { color: var(--fg); }

/* Terrain */
.split { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); align-items: start; }
.facts { margin: 0 0 22px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.facts div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.facts div:last-child { border-bottom: 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; text-align: right; font-weight: 600; }
.map-frame { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--card); }
.map-frame iframe { display: block; width: 100%; height: 340px; border: 0; }

/* Plan */
.plan { margin: 0 auto 20px; }
.plan svg { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.plan figcaption { color: var(--muted); font-size: .9rem; margin-top: 8px; }
.p-ground { fill: #2b3520; }
.p-road { fill: #4a4a44; }
.p-water { fill: #2f5d73; }
.p-buffer { fill: #3c4a2a; stroke: #c9a24b; stroke-width: 1.5; stroke-dasharray: 6 5; }
.p-parking { fill: #55554d; }
.p-safe { fill: #3f6b3a; }
.p-chrony { fill: #7a5a2a; }
.p-gate { fill: #c9a24b; }
.p-play { fill: none; stroke: #eceadf; stroke-width: 2; stroke-dasharray: 10 6; }
.p-zone { fill: #3a3f2c; stroke: #6b7350; }
.p-build { fill: #8a6b3e; }
.p-tree { fill: #4f7a3a; }
.p-trench { fill: none; stroke: #7a5a2a; stroke-width: 9; stroke-linejoin: round; stroke-linecap: round; }
.p-fort { fill: #5b5f4a; stroke: #a9ad98; stroke-width: 2; }
.p-tower { fill: #c9a24b; }
.p-respawn-a { fill: #b5493a; }
.p-respawn-b { fill: #3a6fb5; }
.p-label { fill: #eceadf; font-size: 14px; font-weight: 600; }
.p-label-light { fill: #ffffff; font-size: 13px; font-weight: 600; }
.p-label-water { fill: #d6ecf5; font-size: 12px; }
.p-label-small { fill: #d9d6c4; font-size: 12px; }
.p-num { fill: #ffffff; font-size: 20px; font-weight: 800; }

.legend { color: var(--muted); display: grid; gap: 6px 28px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); padding-left: 1.4em; }
.legend strong { color: var(--fg); }

.phases { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.phase { background: var(--card); border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: var(--radius); padding: 20px; }
.phase ul { color: var(--muted); }
.phase-tag { margin: 0 0 6px; color: var(--accent); font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }

.contact { margin-top: 28px; font-size: 1.1rem; }

footer { padding: 32px 20px 48px; border-top: 1px solid var(--line); text-align: center; }
footer p { margin: 4px 0; }
.muted { color: var(--muted); font-size: .9rem; }

@media (max-width: 600px) {
  section { padding: 48px 16px; }
  .topbar { padding: 10px 16px; }
  nav { gap: 2px 14px; }
  .facts div { flex-direction: column; gap: 2px; }
  .facts dd { text-align: left; }
}
