/* NEA — Laboratoire Breakout · refonte premium & épuré */
@import url('https://fonts.googleapis.com/css2?family=Geist:wght@300;400;500;600;700&family=Geist+Mono:wght@400;500;600&display=swap');

:root {
  --bg: #0a0a0b;
  --surface: #111114;
  --surface-2: #15151a;
  --border: #1f1f25;
  --border-soft: #18181c;
  --text: #ededee;
  --text-muted: #8b8b94;
  --text-dim: #56565e;
  --accent: #d4ff3a;          /* jaune-vert NEA */
  --accent-soft: #d4ff3a1a;
  --green: #4ade80;
  --red: #f87171;
  --amber: #fbbf24;
  --blue: #60a5fa;
  --violet: #c084fc;
  --r: 10px;
  --rs: 6px;
  --rl: 16px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 15px; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Geist', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: -0.005em;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.mono { font-family: 'Geist Mono', 'JetBrains Mono', monospace; font-variant-numeric: tabular-nums; letter-spacing: 0; }
.muted { color: var(--text-muted); }
.dim { color: var(--text-dim); }
.up { color: var(--green); }
.down { color: var(--red); }
.warn { color: var(--amber); }
.info { color: var(--blue); }
.violet { color: var(--violet); }
.accent { color: var(--accent); }

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.stack { display: flex; flex-direction: column; gap: 20px; }
.row { display: flex; gap: 16px; flex-wrap: wrap; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (max-width: 760px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  html { font-size: 14px; }
}

/* HEADER */
header.nea {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10,10,11,0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-soft);
  padding: 14px 0;
}
header.nea .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: baseline; gap: 12px; }
.brand .logo {
  font-family: 'Geist', sans-serif; font-weight: 600; font-size: 1.25rem; letter-spacing: -0.02em;
  color: var(--text);
}
.brand .logo em { font-style: normal; color: var(--accent); }
.brand .tagline { font-size: 0.78rem; color: var(--text-dim); letter-spacing: 0.04em; text-transform: uppercase; }
nav.menu { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }
nav.menu a {
  padding: 8px 14px; border-radius: var(--rs);
  color: var(--text-muted); text-decoration: none;
  font-size: 0.88rem; transition: 0.15s;
}
nav.menu a:hover { color: var(--text); background: var(--surface); }
nav.menu a.active { color: var(--accent); background: var(--accent-soft); }

/* BANDEAU PEDAGO */
.lab-banner {
  background: linear-gradient(90deg, var(--accent-soft), transparent);
  border-bottom: 1px solid var(--border-soft);
  padding: 10px 0;
}
.lab-banner .container {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.78rem; color: var(--text-muted);
}
.lab-banner .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); }

/* CARDS */
.card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--rl);
  padding: 24px;
}
.card.tight { padding: 16px 18px; }
.card-title {
  font-size: 0.74rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
  font-weight: 500;
}
.kpi {
  font-family: 'Geist Mono', monospace;
  font-size: 2.6rem;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
}
.kpi.lg { font-size: 3.4rem; }
.kpi.sm { font-size: 1.4rem; }
.subkpi { font-family: 'Geist Mono', monospace; font-size: 1rem; color: var(--text-muted); }
.delta { font-family: 'Geist Mono', monospace; font-size: 0.95rem; }

/* GAUGES */
.gauge {
  width: 100%; height: 8px;
  background: var(--surface-2);
  border-radius: 999px;
  overflow: hidden; position: relative;
}
.gauge > span {
  display: block; height: 100%;
  background: var(--accent); border-radius: 999px;
  transition: width 0.6s cubic-bezier(.2,.7,.2,1);
}
.gauge.dd > span { background: var(--red); }
.gauge.warning > span { background: var(--amber); }
.gauge-labels { display: flex; justify-content: space-between; font-size: 0.74rem; color: var(--text-dim); margin-top: 6px; font-family: 'Geist Mono', monospace; }

/* HERO */
.hero-card {
  background: linear-gradient(135deg, var(--surface), var(--surface-2));
  border: 1px solid var(--border);
  border-radius: var(--rl);
  padding: 36px 36px 32px;
  position: relative;
  overflow: hidden;
}
.hero-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.5;
}
.hero-card .label { font-size: 0.78rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 10px; }
.hero-card .price { font-family: 'Geist Mono', monospace; font-size: 4.2rem; font-weight: 500; letter-spacing: -0.04em; line-height: 1; }
.hero-card .delta-row { display: flex; align-items: baseline; gap: 14px; margin-top: 8px; font-family: 'Geist Mono', monospace; }
.hero-card .status { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 22px; }
.hero-card .stat { padding: 0 0 0 16px; border-left: 2px solid var(--border); }
.hero-card .stat .lbl { font-size: 0.72rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 2px; }
.hero-card .stat .val { font-family: 'Geist Mono', monospace; font-size: 1.15rem; font-weight: 500; }

/* BADGES */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px;
  font-size: 0.74rem; font-weight: 500;
  border: 1px solid;
}
.badge.select { background: rgba(74,222,128,0.08); color: var(--green); border-color: rgba(74,222,128,0.25); }
.badge.watch  { background: rgba(251,191,36,0.08); color: var(--amber); border-color: rgba(251,191,36,0.25); }
.badge.skip   { background: rgba(248,113,113,0.05); color: var(--red); border-color: rgba(248,113,113,0.18); }
.badge.archived { background: rgba(86,86,94,0.08); color: var(--text-dim); border-color: rgba(86,86,94,0.18); }
.badge.live { background: var(--accent-soft); color: var(--accent); border-color: rgba(212,255,58,0.3); }
.badge.live::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 6px var(--accent); animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: 0.5; } }

/* PIPELINE FUNNEL */
.funnel { display: flex; flex-direction: column; gap: 8px; }
.funnel-layer {
  background: var(--surface-2); border: 1px solid var(--border-soft);
  border-radius: var(--r); padding: 14px 18px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.funnel-layer .ll { display: flex; align-items: center; gap: 14px; }
.funnel-layer .layer-num {
  font-family: 'Geist Mono', monospace; font-size: 0.78rem; color: var(--accent);
  padding: 2px 8px; border: 1px solid var(--accent-soft); border-radius: 4px;
  background: var(--accent-soft);
}
.funnel-layer .layer-name { font-weight: 500; font-size: 0.95rem; }
.funnel-layer .layer-desc { color: var(--text-dim); font-size: 0.82rem; }
.funnel-layer .count { font-family: 'Geist Mono', monospace; font-size: 1.1rem; font-weight: 500; }

/* TABLE */
table.nea {
  width: 100%; border-collapse: collapse;
  font-family: 'Geist', sans-serif; font-size: 0.9rem;
}
table.nea th {
  text-align: left; padding: 12px 14px;
  font-weight: 500; font-size: 0.76rem;
  color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em;
  border-bottom: 1px solid var(--border-soft);
}
table.nea td {
  padding: 14px; border-bottom: 1px solid var(--border-soft);
  vertical-align: middle;
}
table.nea tr:hover td { background: var(--surface-2); }
table.nea .sym { font-weight: 500; }
table.nea .num { font-family: 'Geist Mono', monospace; text-align: right; font-variant-numeric: tabular-nums; }

/* CTA */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: var(--rs);
  font-size: 0.88rem; font-weight: 500;
  text-decoration: none; transition: 0.15s;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
}
.btn:hover { background: var(--surface-2); border-color: var(--text-dim); }
.btn.primary {
  background: var(--accent); color: #0a0a0b; border-color: var(--accent);
  font-weight: 600;
}
.btn.primary:hover { background: #b8e525; }

/* FOOTER */
footer.nea {
  border-top: 1px solid var(--border-soft);
  margin-top: 80px;
  padding: 40px 0 60px;
  color: var(--text-dim);
}
footer.nea .container { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; flex-wrap: wrap; }
footer.nea h4 { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 12px; color: var(--text-muted); font-weight: 500; }
footer.nea a { color: var(--text-muted); text-decoration: none; display: block; font-size: 0.88rem; padding: 4px 0; }
footer.nea a:hover { color: var(--accent); }
footer.nea .copy { font-size: 0.76rem; color: var(--text-dim); }

/* REVEAL */
.reveal { opacity: 0; transform: translateY(8px); animation: reveal 0.7s ease forwards; }
.reveal:nth-child(2) { animation-delay: 0.08s; }
.reveal:nth-child(3) { animation-delay: 0.16s; }
.reveal:nth-child(4) { animation-delay: 0.24s; }
.reveal:nth-child(5) { animation-delay: 0.32s; }
@keyframes reveal { to { opacity: 1; transform: translateY(0); } }

/* H1 PAGE */
.page-title { font-size: 2.4rem; font-weight: 500; letter-spacing: -0.025em; line-height: 1.1; margin-bottom: 8px; }
.page-sub { color: var(--text-muted); font-size: 1rem; margin-bottom: 28px; }

/* CIMETIERE */
.tomb {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--r);
  padding: 16px 18px;
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
}
.tomb .name { font-weight: 500; }
.tomb .verdict { font-family: 'Geist Mono', monospace; font-size: 0.84rem; }

/* REGIME PILL */
.regime-pill {
  display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 8px 14px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--border);
  font-size: 0.88rem; font-weight: 500;
}
.regime-pill .regime-dot {
  width: 9px; height: 9px; border-radius: 50%;
  box-shadow: 0 0 8px currentColor;
}
.regime-pill .regime-flag { font-weight: 600; letter-spacing: 0.04em; }
.regime-pill .regime-label { color: var(--text-muted); font-weight: 400; }
.regime-pill .regime-price { color: var(--text-muted); font-size: 0.84rem; }
.regime-pill.regime-green { background: rgba(74,222,128,0.06); border-color: rgba(74,222,128,0.22); }
.regime-pill.regime-green .regime-flag { color: var(--green); }
.regime-pill.regime-yellow { background: rgba(251,191,36,0.06); border-color: rgba(251,191,36,0.22); }
.regime-pill.regime-yellow .regime-flag { color: var(--amber); }
.regime-pill.regime-red { background: rgba(248,113,113,0.06); border-color: rgba(248,113,113,0.22); }
.regime-pill.regime-red .regime-flag { color: var(--red); }
.regime-pill.detailed { display: flex; flex-direction: column; align-items: flex-start; border-radius: var(--r); padding: 14px 16px; }

/* REGIME COMPONENTS */
.regime-comp {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px; margin-top: 14px;
}
.regime-comp .item {
  background: var(--surface-2); border: 1px solid var(--border-soft);
  border-radius: var(--rs); padding: 10px 12px;
}
.regime-comp .item .k { font-size: 0.72rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; }
.regime-comp .item .v { font-family: 'Geist Mono', monospace; font-size: 1rem; margin-top: 4px; }

/* REGIME TIMELINE */
.regime-timeline { display: flex; align-items: center; gap: 4px; padding: 8px 0; overflow-x: auto; }
.regime-timeline .seg {
  flex: 0 0 auto;
  height: 24px; min-width: 6px;
  border-radius: 3px;
}
.regime-timeline .seg.green { background: var(--green); }
.regime-timeline .seg.yellow { background: var(--amber); }
.regime-timeline .seg.red { background: var(--red); }
.regime-timeline .seg.gap { background: transparent; }

/* SECTIONS */
section { margin-bottom: 40px; }
section h2 { font-size: 1.3rem; font-weight: 500; letter-spacing: -0.015em; margin-bottom: 14px; }
section h2 small { color: var(--text-dim); font-size: 0.86rem; font-weight: 400; }
.section-bar { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px; gap: 16px; flex-wrap: wrap; }
.section-bar h2 { margin: 0; }
.section-bar a { color: var(--text-muted); font-size: 0.86rem; text-decoration: none; }
.section-bar a:hover { color: var(--accent); }
