:root {
  --brand: #0b2545;
  --brand-2: #13315c;
  --accent: #3aa0d8;
  --on-accent: #06192f;
  --gold: #f2b84b;
  --ink: #0d1b2e;
  --muted: #4b5a6e;
  --surface: #eef4fa;
  --line: #d8e3ef;
  --dark: #071a33;
  --on-dark: #eef4fb;
  --on-dark-muted: #a9bdd3;
  --header-bg: rgba(248, 251, 255, .88);
}
.hero { background: radial-gradient(900px 500px at 80% 20%, rgba(58,160,216,.25), transparent 60%), var(--dark); color: var(--on-dark); }
.hero .lead { color: var(--on-dark-muted); }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, #3aa0d8, #8fd3ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sky { width: 100%; max-width: 560px; margin-inline: auto; }
.sky .route { stroke-dasharray: 6 8; animation: flow 1.4s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -28; } }
.sky .node circle.halo { transform-box: fill-box; transform-origin: center; animation: pulse 2.4s ease-out infinite; }
.sky .node:nth-of-type(2) circle.halo { animation-delay: .6s; }
.sky .node:nth-of-type(3) circle.halo { animation-delay: 1.2s; }
.sky .node:nth-of-type(4) circle.halo { animation-delay: 1.8s; }

/* Agents */
.agent { display: flex; flex-direction: column; }
.agent .status { display: flex; align-items: center; gap: 8px; font-size: .8rem; font-weight: 700; color: #1d8f55; margin-bottom: 14px; }
.agent .meter { height: 6px; border-radius: 6px; background: var(--surface); overflow: hidden; margin-top: auto; }
.agent .meter i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--brand)); border-radius: 6px; transition: width 1.4s var(--ease); }
.agent.is-in .meter i { width: var(--w, 70%); }
.agent .meter-label { display: flex; justify-content: space-between; font-size: .8rem; color: var(--muted); margin: 16px 0 6px; }

/* Supervision humaine : boucle de décision */
.loop { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); counter-reset: s; }
.loop li {
  list-style: none; padding: 22px; border-radius: var(--radius); border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.03);
  transition: background .4s, border-color .4s, transform .4s var(--ease);
}
.loop li.on { background: rgba(58,160,216,.16); border-color: var(--accent); transform: translateY(-4px); }
.loop li b { display: block; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.loop li h3 { color: var(--on-dark); }
.loop li p { color: var(--on-dark-muted); margin: 0; font-size: .95rem; }
.decision {
  margin-top: 28px; border-radius: var(--radius); padding: 20px 22px; background: #fff; color: var(--ink);
  display: grid; gap: 14px; grid-template-columns: 1fr; align-items: center;
}
@media (min-width: 720px) { .decision { grid-template-columns: 1fr auto; } }
.decision .who { font-size: .8rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.decision p { margin: 4px 0 0; }
.decision .btn-row .btn { min-height: 42px; }
.decision .state { font-weight: 700; color: #1d8f55; }

/* Terminal développeur */
.terminal { background: #06142a; color: #d6e6f7; border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden; font-family: var(--font-mono); font-size: .88rem; }
.terminal .bar { display: flex; gap: 6px; padding: 12px 14px; background: #0b2040; }
.terminal .bar i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.terminal .bar i:nth-child(2) { background: #febc2e; } .terminal .bar i:nth-child(3) { background: #28c840; }
.terminal pre { margin: 0; padding: 20px; min-height: 280px; white-space: pre-wrap; word-break: break-word; }
.terminal .c { color: #6f8db0; } .terminal .k { color: #8fd3ff; } .terminal .s { color: #f2b84b; } .terminal .ok { color: #4fd18b; }
.cursor { display: inline-block; width: .6em; height: 1.1em; background: #8fd3ff; vertical-align: text-bottom; animation: blink 1s step-end infinite; }

.logos { display: flex; flex-wrap: wrap; gap: 10px; }
.logos span { padding: 10px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-weight: 700; font-size: .9rem; }
