/* =====================================================================
   La nuit, sobre : la même page éditoriale que style.css, sur fond d'encre.
   Pas d'instruments, pas de halos, pas de relevés : du texte ivoire, des traits
   fins, une seule couleur d'accent. Chargé après style.css.
   ===================================================================== */
:root {
  --bg: #0b0d12; --paper: rgba(236, 231, 218, .035); --white: rgba(236, 231, 218, .06);
  --ink: #ece7da; --ink-2: #b3afa4; --ink-3: #7b7e8a;
  --line: rgba(236, 231, 218, .1); --line-2: rgba(236, 231, 218, .18);
  --navy: #ece7da; --navy-2: #0b0d12;
  --leaf: #6abb42; --green: #a4d98a; --green-soft: rgba(106, 187, 66, .13);
  --alert: #f0907c; --amber: #e8c877; --amber-soft: rgba(232, 200, 119, .12);
  color-scheme: dark;
}
body { background: radial-gradient(ellipse 80% 50% at 50% -10%, rgba(120, 150, 200, .09), transparent 70%), var(--bg); background-attachment: fixed; }

/* ce qui était clair en dur */
.nav.solid { background: rgba(11, 13, 18, .8); box-shadow: 0 1px 0 var(--line); }
.nav .nav-cta, .langs button[aria-pressed="true"], .personas button[aria-selected="true"], .btn, .actions button.yes, .ask button { background: var(--ink); color: #0b0d12; border-color: var(--ink); }
.nav .nav-cta:hover, .btn:hover { background: #fff; color: #0b0d12; }
.chips button { background: rgba(236, 231, 218, .07); color: var(--ink-2); }
.chips button:hover { background: var(--ink); color: #0b0d12; }
.msg.you { background: rgba(236, 231, 218, .09); }
.bar { background: rgba(236, 231, 218, .1); }
.bar i { background: var(--ink-2); } .bar i.hot { background: var(--alert); }
.pill { background: rgba(236, 231, 218, .06); }
.actions button { background: transparent; }
.tag-ready { color: var(--ink); background: rgba(236, 231, 218, .1); }
.examples li:hover { box-shadow: none; border-color: var(--line-2); }

/* le cadre : un bleu profond, à grain, autour de l'écran de Merlin */
.frame { background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .5 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.3'/%3E%3C/svg%3E"),
    radial-gradient(ellipse 60% 70% at 85% 0%, rgba(140, 190, 150, .22), transparent 60%),
    radial-gradient(ellipse 70% 80% at 10% 100%, rgba(70, 120, 190, .3), transparent 60%),
    linear-gradient(160deg, #1a3f6b, #0d2444 70%); }
.app { background: #0e1118; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .8); }
.app-side { background: #090b10; border-inline-end: 1px solid var(--line); }
.app-nav li:first-child { background: rgba(236, 231, 218, .08); }
.app-user i { background: var(--ink); color: #0b0d12; }
.ask { background: rgba(236, 231, 218, .05); border-color: var(--line-2); box-shadow: none; }

/* le récit : des pastilles sobres */
.sys { background: #12151d; border-color: var(--line); box-shadow: none; }
.sys i { width: 8px; height: 8px; margin: 0 5px; background: var(--ink-3); }
.diagram[data-step="3"] .wires line.spoke { stroke: var(--line-2); }
.hub { background: var(--ink); color: #0b0d12; box-shadow: none; }

@media (max-width: 900px) { .story-stage { background: var(--bg); } }
