/* Pages « analyses d'axes » — même système visuel que la page d'accueil. */
:root {
  --ink: #15120f;
  --paper: #fff7ec;
  --pink: #e6007e;
  --yellow: #ffd200;
  --orange: #ff6a00;
  --red: #e4140c;
  --teal: #00b2a3;
  --muted: #4b463f;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
}
.display { font-family: "Anton", Impact, "Haettenschweiler", "Arial Narrow Bold", sans-serif; font-weight: 400; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 1.25rem; }
.mark {
  background: var(--yellow); color: var(--ink); padding: 0.04em 0.16em;
  box-decoration-break: clone; -webkit-box-decoration-break: clone;
}
.kicker {
  display: inline-block; background: var(--yellow); color: var(--ink);
  font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em;
  font-size: 0.72rem; padding: 0.32rem 0.6rem; transform: rotate(-1.5deg);
}

/* ---------- EN-TÊTE ---------- */
header.hero {
  position: relative; background: var(--ink); color: #fff;
  border-bottom: 6px solid var(--yellow); overflow: hidden;
}
header.hero .rays {
  position: absolute; top: -45%; right: -20%; width: 95%; height: 190%;
  background: conic-gradient(from 210deg at 70% 30%, var(--orange), var(--red), var(--pink), var(--orange) 92%);
  opacity: 0.18; filter: blur(8px); pointer-events: none;
}
.hero-inner { position: relative; padding: 2rem 1.25rem 1.4rem; }
.back {
  display: inline-block; color: #efe9df; font-size: 0.85rem; font-weight: 700;
  text-decoration: none; margin-bottom: 0.9rem;
}
.back:hover { color: var(--yellow); }
header.hero h1 {
  font-size: clamp(2rem, 5.4vw, 3.4rem); line-height: 1.05; text-transform: uppercase;
  margin: 0.8rem 0 0.7rem; letter-spacing: 0.005em;
}
header.hero .lede { margin: 0; font-size: 1.02rem; max-width: 62ch; color: #efe9df; }
header.hero .lede b { color: var(--yellow); }
.cta { margin: 1.1rem 0 0; }
.btn {
  display: inline-block; background: var(--pink); color: #fff; text-decoration: none;
  font-weight: 800; font-size: 0.92rem; padding: 0.55rem 0.9rem;
  border: 3px solid #fff; box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.45);
}
.btn:hover { background: var(--yellow); color: var(--ink); }

/* ---------- NAV DES 4 AXES ---------- */
.axes-nav {
  position: relative; display: grid; gap: 0.6rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  padding-top: 1rem; padding-bottom: 1.5rem;
}
.axes-nav a {
  display: block; background: #fff; color: var(--ink); text-decoration: none;
  border: 3px solid var(--ink); box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.5);
  padding: 0.55rem 0.7rem; font-weight: 800; font-size: 0.9rem; line-height: 1.2;
  transition: transform 0.12s, box-shadow 0.12s;
}
.axes-nav a:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--pink); }
.axes-nav a[aria-current="page"] { background: var(--yellow); }
.axes-nav .nav-tag {
  display: block; font-size: 0.62rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.05em; color: var(--muted); margin-bottom: 0.15rem;
}

/* ---------- SECTIONS ---------- */
main section { padding: 2rem 0 0.4rem; }
main section:last-of-type { padding-bottom: 2rem; }
h2 {
  font-size: clamp(1.5rem, 3.6vw, 2.2rem); line-height: 1; text-transform: uppercase;
  margin: 0 0 0.35rem; letter-spacing: 0.005em;
}
.pill {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  display: inline-block; font-size: 0.62rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.05em; vertical-align: middle; margin-left: 0.5rem; padding: 0.25rem 0.5rem;
  border: 2px solid var(--ink); transform: rotate(-2deg);
}
.pill.faits { background: var(--teal); color: #06302c; }
.sub { margin: 0.2rem 0 1rem; color: var(--muted); max-width: 74ch; font-size: 0.97rem; }

/* ---------- RÉSUMÉ (notre lecture) ---------- */
.resume {
  background: var(--ink); color: #fff; border: 4px solid var(--ink);
  box-shadow: 9px 9px 0 var(--pink); padding: 1.4rem 1.5rem;
}
.resume .kicker { background: var(--pink); color: #fff; }
.resume .punch {
  font-size: clamp(1.35rem, 3.6vw, 2rem); line-height: 1.05; text-transform: uppercase;
  color: var(--yellow); margin: 0.7rem 0 0.75rem;
}
.resume p { margin: 0.55rem 0 0; font-size: 0.98rem; color: #f1ece4; }
.resume strong { color: var(--yellow); }

/* ---------- CHIFFRES CLÉS ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 0.8rem; }
.stat {
  background: #fff; border: 3px solid var(--ink); box-shadow: 5px 5px 0 var(--ink);
  padding: 0.8rem 0.95rem;
}
.stat b { display: block; font-family: "Anton", Impact, sans-serif; font-weight: 400; font-size: 1.9rem; line-height: 1.1; }
.stat span { font-size: 0.78rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }

/* ---------- LES PLUS AIMÉS ---------- */
.top-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.top-item {
  display: flex; gap: 0.8rem; align-items: flex-start;
  background: #fff; border: 3px solid var(--ink); box-shadow: 4px 4px 0 var(--ink);
  padding: 0.7rem 0.85rem; cursor: pointer; transition: transform 0.12s, box-shadow 0.12s;
}
.top-item:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--pink); }
.top-likes {
  flex: none; font-size: 0.84rem; font-weight: 800; color: var(--pink);
  white-space: nowrap; font-variant-numeric: tabular-nums; padding-top: 0.2rem;
}
.top-body { min-width: 0; }
.top-cat {
  display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.66rem;
  text-transform: uppercase; letter-spacing: 0.04em; font-weight: 800; margin-bottom: 0.25rem;
}
.top-text { margin: 0; font-size: 0.92rem; color: var(--ink); }
.swatch { width: 12px; height: 12px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35); flex: none; }

/* ---------- CARTE ---------- */
.tool { background: #fff; border: 4px solid var(--ink); box-shadow: 8px 8px 0 var(--ink); overflow: hidden; }
.toolbar {
  display: flex; flex-wrap: wrap; gap: 1.2rem; align-items: flex-start;
  padding: 0.9rem 1.1rem; border-bottom: 3px solid var(--ink);
}
.control-label {
  display: block; font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.05em;
  font-weight: 800; color: var(--muted); margin-bottom: 0.4rem;
}
.filters { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.filter {
  display: flex; align-items: center; justify-content: space-between; gap: 0.5rem;
  padding: 0.4rem 0.6rem; border: 2px solid var(--ink); cursor: pointer; user-select: none;
  font-family: inherit; font-size: 0.85rem; font-weight: 700; line-height: 1.15;
  text-align: left; color: var(--muted); background: #fff;
}
.filter[aria-pressed="true"] { background: var(--cat); color: var(--cat-ink); border-color: var(--ink); }
.filter .cnt { font-variant-numeric: tabular-nums; font-weight: 800; flex: none; }
.summary { margin-left: auto; font-size: 0.9rem; color: var(--muted); align-self: center; }
.summary b { font-family: "Anton", Impact, sans-serif; color: var(--ink); font-size: 1.3rem; }
#map { height: 62vh; min-height: 420px; width: 100%; }
.leaflet-popup-content { margin: 0.7rem 0.85rem; font-size: 0.9rem; line-height: 1.45; }
.popup-cat {
  display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.72rem; text-transform: uppercase;
  letter-spacing: 0.03em; font-weight: 800; margin-bottom: 0.35rem;
}
.popup-text { margin: 0; }
.popup-meta { font-size: 0.78rem; color: var(--muted); margin: 0.4rem 0 0; }

/* ---------- RÉSULTATS ---------- */
/* Colonnes (façon maçonnerie) : les matrices très hautes ne créent pas de vides. */
.results { columns: 2 430px; column-gap: 1rem; }
.qcard {
  background: #fff; border: 3px solid var(--ink); box-shadow: 5px 5px 0 var(--ink);
  padding: 1rem 1.1rem; break-inside: avoid; margin-bottom: 1rem;
}
.qcard .qn {
  display: block; font-size: 0.64rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.05em; color: var(--muted); margin-bottom: 0.35rem;
}
.qcard h3 { font-weight: 800; font-size: 0.98rem; margin: 0 0 0.7rem; line-height: 1.25; }
.qcard .sq {
  display: block; font-size: 0.85rem; font-weight: 800; margin: 0.9rem 0 0.3rem;
  padding-top: 0.6rem; border-top: 2px solid #efeae1;
}
.qcard .sq .moy { font-weight: 700; color: var(--muted); }
.bar { margin: 0.4rem 0; }
.bar-top { display: flex; justify-content: space-between; gap: 0.6rem; font-size: 0.82rem; margin-bottom: 0.18rem; }
.bar-top .lbl { min-width: 0; }
.bar-top .val { font-weight: 800; font-variant-numeric: tabular-nums; flex: none; }
.bar-track { height: 11px; background: #efeae1; border: 1.5px solid var(--ink); }
.bar-fill { height: 100%; background: var(--teal); }
.bar.lead .bar-fill { background: var(--pink); }
.bar.lead .bar-top .val { color: var(--pink); }

/* ---------- NOTE API ---------- */
.note {
  background: #fff; border: 3px solid var(--ink); box-shadow: 5px 5px 0 var(--ink);
  padding: 0.9rem 1.1rem; font-size: 0.9rem; color: var(--muted); max-width: 74ch;
}
.note strong { color: var(--ink); }

/* ---------- PIED ---------- */
footer { background: var(--ink); color: #b9b2a8; font-size: 0.82rem; margin-top: 2rem; }
footer .wrap { padding: 1.7rem 1.25rem 2.5rem; }
footer strong { color: #fff; }
footer a { color: var(--yellow); }
