/* humandesign.shaman.today */

:root {
  --ink: #2c2620;
  --ink-soft: #6b6253;
  --paper: #f6f1e7;
  --card: #fffdf8;
  --line: #e3dac9;
  --accent: #8a6d3b;
  --black: #1a1a1a;
  --red: #c43a3a;
  --green-ok: #4a7c59;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Georgia, 'Times New Roman', serif;
  line-height: 1.55;
}

.wrap { max-width: 760px; margin: 0 auto; padding: 24px 16px 60px; }
.wrap.wide { max-width: 1040px; }

/* ─── En-tete ─────────────────────────────────────── */
.hero { text-align: center; padding: 28px 0 10px; }
.hero h1 {
  font-size: 2rem; letter-spacing: .06em; font-weight: normal;
  margin: 0 0 8px; text-transform: uppercase; color: var(--accent);
}
.tagline { color: var(--ink-soft); margin: 0; font-style: italic; }

/* ─── Cartes ──────────────────────────────────────── */
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  padding: 26px 30px; margin: 22px 0;
  box-shadow: 0 2px 10px rgba(80, 65, 40, .06);
}
.card h2 {
  font-weight: normal; letter-spacing: .04em; color: var(--accent);
  margin-top: 0; font-size: 1.3rem;
}
.card.success { border-color: var(--green-ok); }
.card.success h2 { color: var(--green-ok); }
.card.error { border-color: var(--red); color: var(--red); }
.intro { color: var(--ink-soft); }
.muted { color: var(--ink-soft); font-size: .88rem; }

/* ─── Formulaire ──────────────────────────────────── */
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 22px; }
@media (max-width: 640px) { .grid2 { grid-template-columns: 1fr; } }
.field label { display: block; font-size: .92rem; margin-bottom: 5px; color: var(--ink-soft); }
.field input {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 6px;
  background: #fff; font: inherit; color: var(--ink);
}
.field input:focus { outline: 2px solid var(--accent); border-color: var(--accent); }
.field small { display: block; color: var(--ink-soft); font-size: .8rem; margin-top: 4px; }
.hp-field { position: absolute; left: -9999px; top: -9999px; }
.btn {
  display: block; width: 100%; margin-top: 22px; padding: 14px;
  background: var(--accent); color: #fff; border: none; border-radius: 8px;
  font: inherit; font-size: 1.05rem; letter-spacing: .05em; cursor: pointer;
}
.btn:hover { background: #74592c; }
.legal { font-size: .8rem; color: var(--ink-soft); text-align: center; margin-top: 14px; }
.cf-turnstile { margin-top: 18px; }

/* ─── Recherche de lieu + carte ───────────────────── */
.field-full { grid-column: 1 / -1; position: relative; }
.lieu-row { display: flex; gap: 8px; }
.lieu-row input { flex: 1; }
.lieu-row input.lieu-valid { border-color: var(--green-ok); outline-color: var(--green-ok); }
.btn-lieu {
  border: 1px solid var(--line); background: #fff; border-radius: 6px;
  padding: 0 14px; font-size: 1.05rem; cursor: pointer;
}
.btn-lieu:hover { border-color: var(--accent); }
.lieu-suggestions {
  display: none; position: absolute; z-index: 30; left: 0; right: 0; top: 100%;
  background: #fffdf8; border: 1px solid var(--line); border-radius: 0 0 8px 8px;
  box-shadow: 0 8px 22px rgba(60, 48, 30, .18); max-height: 240px; overflow-y: auto;
}
.lieu-suggestions.active { display: block; }
.lieu-suggestion-item {
  padding: 10px 14px; cursor: pointer; font-size: .9rem;
  border-bottom: 1px solid var(--line);
}
.lieu-suggestion-item:last-child { border-bottom: none; }
.lieu-suggestion-item:hover { background: #f3ecdd; }
.map-container { position: relative; margin-top: 16px; }
#birth-map {
  height: 260px; border-radius: 8px; border: 1px solid var(--line); z-index: 1;
}
.btn-close-map {
  position: absolute; top: 8px; right: 8px; z-index: 20;
  background: #2b2620; color: #f4efe5; border: none; border-radius: 6px;
  padding: 5px 12px; cursor: pointer; font: inherit; font-size: .8rem;
}

/* ─── Faits cles ──────────────────────────────────── */
.keyfacts {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px; margin: 22px 0;
}
.fact {
  background: var(--card); border: 1px solid var(--line); border-radius: 8px;
  padding: 12px 14px; text-align: center;
}
.fact span { display: block; font-size: .75rem; text-transform: uppercase;
  letter-spacing: .08em; color: var(--ink-soft); margin-bottom: 4px; }
.fact strong { font-weight: normal; font-size: .98rem; }

/* ─── BodyGraph ───────────────────────────────────── */
.bodygraph-zone { position: relative; margin: 10px 0; }
.graph-panel {
  background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  padding: 14px; box-shadow: 0 2px 10px rgba(80, 65, 40, .06);
}
#bodygraph { width: 100%; height: auto; display: block; max-height: 88vh; }
#bodygraph .gate { cursor: pointer; }
#bodygraph .hg { cursor: pointer; transition: stroke .2s; }
#bodygraph .center { cursor: pointer; transition: fill .3s; }

.legend {
  display: flex; flex-wrap: wrap; gap: 16px; justify-content: center;
  font-size: .82rem; color: var(--ink-soft); padding-top: 10px;
}
.sw { display: inline-block; width: 22px; height: 9px; border-radius: 4px;
  vertical-align: middle; margin-right: 5px; }
.sw-p { background: var(--black); }
.sw-d { background: var(--red); }
.sw-b { background: repeating-linear-gradient(45deg, var(--black) 0 4px, var(--red) 4px 8px); }
.sw-o { background: #ddd5c4; }

/* ─── Tooltip ─────────────────────────────────────── */
.hd-tooltip {
  position: fixed; z-index: 50; max-width: 320px;
  background: #2b2620; color: #f4efe5; border-radius: 8px;
  padding: 12px 15px; font-size: .85rem; line-height: 1.45;
  box-shadow: 0 6px 24px rgba(0, 0, 0, .35); pointer-events: none;
}
.hd-tooltip h4 { margin: 0 0 6px; font-size: .95rem; color: #e8c87a; font-weight: normal; }
.hd-tooltip p { margin: 4px 0; }
.hd-tooltip .tt-tag {
  display: inline-block; font-size: .72rem; padding: 1px 8px; border-radius: 10px;
  background: #4a4338; margin-bottom: 6px; letter-spacing: .04em;
}
.hd-tooltip .tt-exalt { color: #a8d8a8; }
.hd-tooltip .tt-detr { color: #e8a0a0; }

/* ─── Canaux / activations ────────────────────────── */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.mini-card { border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; background: #fff; }
.mini-card h3 { margin: 0 0 6px; font-size: 1rem; font-weight: normal; color: var(--accent); }
.mini-card p { margin: 4px 0; font-size: .9rem; }

.activations { display: grid; gap: 10px; }
.activation { border-left: 4px solid var(--black); background: #fff;
  border-radius: 0 8px 8px 0; padding: 10px 16px; }
.activation.act-design { border-left-color: var(--red); }
.act-head { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline; }
.act-head .planet { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); }
.act-head .gateline { font-size: .98rem; }
.act-head .marker { font-size: .76rem; background: #f0e3c0; color: #7a5c1e;
  padding: 1px 9px; border-radius: 10px; }
.activation .exalt, .activation .detr { font-size: .86rem; margin: 4px 0 0; color: var(--ink-soft); }

.cross-gates { padding-left: 18px; }
.cross-gates li { margin: 4px 0; }

.footer { text-align: center; color: var(--ink-soft); font-size: .82rem; margin-top: 34px; }
.footer a { color: var(--accent); }
