/* Mur d'affichage — optimisé 1920×1080 */
:root {
  --bg: #060a12;
  --panel: rgba(14, 22, 38, 0.82);
  --border: rgba(99, 140, 255, 0.18);
  --text: #e8eef8;
  --muted: #7b8ba8;
  --accent: #3b82f6;
  --accent2: #22d3ee;
  --green: #22c55e;
  --amber: #fbbf24;
  --red: #f87171;
  --glow: 0 0 40px rgba(59, 130, 246, 0.25);
  --font: 'Segoe UI', system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
}

.hidden { display: none !important; }

.launcher {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.launcher-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 20%, rgba(37, 99, 235, 0.2), transparent),
    radial-gradient(ellipse 60% 50% at 80% 80%, rgba(34, 211, 238, 0.12), transparent),
    var(--bg);
}

.launcher-inner {
  position: relative;
  width: min(1600px, 94vw);
  padding: 48px;
}

.launcher-header {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 32px;
}

.logo-ring {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 3px solid var(--accent);
  box-shadow: var(--glow), inset 0 0 20px rgba(59, 130, 246, 0.3);
  animation: spin-slow 12s linear infinite;
}

@keyframes spin-slow { to { transform: rotate(360deg); } }

.launcher-header h1 {
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #fff, var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.launcher-header p { color: var(--muted); font-size: 16px; margin-top: 4px; }

.launcher-lead {
  font-size: 18px;
  color: var(--muted);
  margin-bottom: 28px;
  max-width: 720px;
}

.screen-picker {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.pick-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px 24px;
  cursor: pointer;
  text-align: left;
  color: inherit;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
  backdrop-filter: blur(12px);
}

.pick-card:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: var(--accent);
  box-shadow: var(--glow);
}

.pick-card.active {
  border-color: var(--accent2);
  box-shadow: 0 0 0 2px rgba(34, 211, 238, 0.3), var(--glow);
}

.pick-num {
  display: block;
  font-size: 56px;
  font-weight: 900;
  line-height: 1;
  color: var(--accent2);
  margin-bottom: 12px;
}

.pick-label { display: block; font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.pick-desc { display: block; font-size: 13px; color: var(--muted); line-height: 1.4; }

.url-panel {
  margin-top: 36px;
  padding: 28px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
}

.url-panel h2 { font-size: 18px; margin-bottom: 16px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }

.url-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 10px;
  border: 1px solid var(--border);
}

.url-row strong { min-width: 90px; color: var(--accent2); }
.url-row code { flex: 1; font-size: 13px; color: #a5c4ff; word-break: break-all; }

.url-row button {
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(59, 130, 246, 0.2);
  color: #fff;
  cursor: pointer;
  font-size: 12px;
}

.url-row button:hover { background: var(--accent); }

.token-field { display: block; margin-top: 16px; font-size: 13px; color: var(--muted); }
.token-field input {
  display: block;
  width: 100%;
  max-width: 400px;
  margin-top: 6px;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
}

.launcher-actions { display: flex; gap: 12px; margin-top: 20px; flex-wrap: wrap; }

.btn-glow {
  padding: 14px 28px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), #6366f1);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  box-shadow: var(--glow);
}

.btn-ghost {
  padding: 14px 20px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  cursor: pointer;
}

.wall {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: var(--bg);
}

.particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.35;
  z-index: 0;
}

.wall-header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 28px;
  border-bottom: 1px solid var(--border);
  background: rgba(6, 10, 18, 0.75);
  flex-shrink: 0;
  height: 64px;
}

.wall-brand { display: flex; align-items: center; gap: 12px; font-size: 14px; letter-spacing: 0.2em; }

.live-pulse {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px var(--green);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.wall-zone-label { color: var(--muted); font-size: 12px; margin-left: 8px; }

.wall-clock { font-size: 28px; font-weight: 300; font-variant-numeric: tabular-nums; color: var(--accent2); }

.wall-meta { display: flex; align-items: center; gap: 12px; }

.refresh-badge { font-size: 11px; font-weight: 700; color: var(--green); letter-spacing: 0.1em; }
.refresh-badge.flash { animation: flash 0.4s; }
@keyframes flash { 0% { color: #fff; } 100% { color: var(--green); } }

.btn-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  cursor: pointer;
}

.wall-grid {
  position: relative;
  z-index: 1;
  flex: 1;
  display: grid;
  gap: 14px;
  padding: 14px;
  min-height: 0;
}

.wall-grid.layout-1 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.wall-grid.layout-2 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr; }
.wall-grid.layout-single { grid-template-columns: 1fr; grid-template-rows: 1fr; }

.wall-alerts {
  position: relative;
  z-index: 3;
  display: flex;
  gap: 10px;
  padding: 0 14px 8px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.alert-chip {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  animation: alert-pulse 2s ease-in-out infinite;
  border: 1px solid;
}

.alert-chip.critical { background: rgba(248, 113, 113, 0.15); border-color: #f87171; color: #fecaca; }
.alert-chip.warn { background: rgba(251, 191, 36, 0.12); border-color: #fbbf24; color: #fde68a; }
.alert-chip.info { background: rgba(59, 130, 246, 0.12); border-color: #60a5fa; color: #bfdbfe; }

@keyframes alert-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.75; }
}

.target-bar-wrap { margin-bottom: 14px; padding: 12px 16px; border-radius: 12px; background: rgba(0,0,0,0.35); border: 1px solid var(--border); }
.target-bar-wrap .lbl { font-size: 11px; color: var(--muted); margin-bottom: 8px; }
.target-bar { height: 14px; background: rgba(255,255,255,0.08); border-radius: 999px; overflow: hidden; }
.target-fill { height: 100%; background: linear-gradient(90deg, var(--accent), var(--green)); border-radius: 999px; transition: width 1s ease; }

.wall-grid.layout-rotate .panel { display: none; }
.wall-grid.layout-rotate .panel.active { display: flex; }

.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  animation: panel-in 0.6s ease backwards;
}

@keyframes panel-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.panel-head h2 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.panel-tag {
  font-size: 10px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.2);
  color: var(--accent2);
  border: 1px solid var(--border);
}

.panel-body { flex: 1; min-height: 0; display: flex; flex-direction: column; }

.kpi-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }

.kpi {
  padding: 16px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border);
}

.kpi-val {
  font-size: 32px;
  font-weight: 800;
  line-height: 1;
  color: var(--accent2);
}

.kpi-val.small { font-size: 24px; }
.kpi-lbl { font-size: 11px; color: var(--muted); margin-top: 6px; text-transform: uppercase; }

.ring-wrap { display: flex; align-items: center; gap: 24px; flex: 1; }

.ring { width: 140px; height: 140px; position: relative; flex-shrink: 0; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 10; }
.ring .bg { stroke: rgba(255, 255, 255, 0.08); }
.ring .fg { stroke: #22d3ee; stroke-linecap: round; transition: stroke-dashoffset 1s ease; }

.ring-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.ring-center .big { font-size: 22px; font-weight: 800; }
.ring-center .sub { font-size: 10px; color: var(--muted); }

.bar-chart-h { display: flex; align-items: flex-end; gap: 8px; height: 120px; }

.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.bar-col .bar {
  width: 100%;
  max-width: 48px;
  border-radius: 6px 6px 2px 2px;
  background: linear-gradient(180deg, var(--accent2), var(--accent));
  transition: height 0.8s ease;
  min-height: 4px;
}

.bar-col .lbl { font-size: 9px; color: var(--muted); text-align: center; }
.bar-col .val { font-size: 11px; font-weight: 700; color: var(--accent2); }

.funnel-v { display: flex; flex-direction: column; gap: 8px; flex: 1; justify-content: center; }

.funnel-step {
  display: grid;
  grid-template-columns: 120px 1fr 48px;
  align-items: center;
  gap: 12px;
}

.funnel-step .name { font-size: 12px; color: var(--muted); }
.funnel-step .track { height: 10px; background: rgba(255, 255, 255, 0.06); border-radius: 999px; overflow: hidden; }
.funnel-step .fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--green));
  transition: width 1s ease;
}

.funnel-step .cnt { font-size: 14px; font-weight: 700; text-align: right; }

.lead-list { flex: 1; overflow: hidden; display: flex; flex-direction: column; gap: 8px; }

.lead-item {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.3);
}

.lead-score {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 16px;
}

.lead-score.hot { background: rgba(248, 113, 113, 0.2); color: var(--red); border: 1px solid var(--red); }
.lead-score.warm { background: rgba(251, 191, 36, 0.15); color: var(--amber); border: 1px solid var(--amber); }

.lead-domain { font-weight: 700; font-size: 15px; }
.lead-signals { font-size: 11px; color: var(--muted); margin-top: 2px; }
.lead-time { font-size: 13px; color: var(--accent2); font-weight: 600; }

.stat-pills { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.pill { padding: 10px 16px; border-radius: 999px; background: rgba(59, 130, 246, 0.12); border: 1px solid var(--border); font-size: 13px; }
.pill strong { color: var(--accent2); margin-right: 6px; }

.conv-rings { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: auto; }
.conv-ring { text-align: center; padding: 12px; border-radius: 12px; background: rgba(0, 0, 0, 0.25); }
.conv-ring .pct { font-size: 28px; font-weight: 800; color: var(--green); }
.conv-ring .lbl { font-size: 10px; color: var(--muted); margin-top: 4px; }

.wall-ticker {
  position: relative;
  z-index: 2;
  height: 40px;
  border-top: 1px solid var(--border);
  background: rgba(6, 10, 18, 0.9);
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.ticker-track { display: flex; gap: 48px; white-space: nowrap; animation: ticker 40s linear infinite; }
@keyframes ticker { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.ticker-item { font-size: 13px; color: var(--muted); }
.ticker-item strong { color: var(--accent2); margin-right: 8px; }

.sector-list { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.sector-row { display: grid; grid-template-columns: 1fr 60px 60px; gap: 8px; font-size: 12px; padding: 6px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.04); }

@media (max-width: 1200px) {
  .screen-picker { grid-template-columns: repeat(2, 1fr); }
}
