/* StudioAi.nexus — identité « Le raccord », décision du 18 septembre 2026.
   Le produit porte sa propre signature : anthracite et violet, sans-serif
   système, aucune mention Aequitas sous le logo. Le bleu nuit et l'or
   appartiennent à la charte Aequitas, pas à ce produit. */

:root {
  --ink: #202329;
  --ink-strong: #111318;
  --accent: #5c42d8;
  --accent-dark: #4e35c1;
  --accent-soft: #eae5ff;
  --paper: #ffffff;
  --surface: #ffffff;
  --sunk: #f6f7f9;
  --line: #dce0e7;
  --muted: #666970;
  --ok: #1f7a4d;
  --warn: #8a5a10;
  --bad: #b3261e;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Arial, sans-serif;
  --radius: 10px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #e9eaee; --ink-strong: #ffffff; --paper: #16181d; --surface: #1d2027;
    --sunk: #212530; --line: #2f3440; --muted: #9a9ea8;
    --accent: #9b8bf0; --accent-dark: #b5a8f5; --accent-soft: #272233;
  }
}
:root[data-theme="dark"] {
  --ink: #e9eaee; --ink-strong: #ffffff; --paper: #16181d; --surface: #1d2027;
  --sunk: #212530; --line: #2f3440; --muted: #9a9ea8;
  --accent: #9b8bf0; --accent-dark: #b5a8f5; --accent-soft: #272233;
}

* { box-sizing: border-box; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font); font-size: 16px; line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }
button, input, textarea, select { font: inherit; color: inherit; }

.wrap { max-width: 860px; margin: 0 auto; padding: 22px 16px 96px; }

/* ---------------------------------------------------------- signature */

header.top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; padding-bottom: 16px; margin-bottom: 26px;
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); }
.brand img { display: block; width: 38px; height: 38px; }
.word { display: flex; align-items: baseline; gap: 1px; font-weight: 650; font-size: 26px; letter-spacing: -1.1px; line-height: 1.15; }
.word .affix { font-size: 17px; font-weight: 450; letter-spacing: -.4px; color: var(--muted); }
header.top nav { display: flex; gap: 16px; font-size: .92rem; }
header.top nav button { background: none; border: 0; padding: 0; cursor: pointer; color: var(--muted); }
header.top nav button:hover { color: var(--accent); }

/* ------------------------------------------------------------ étapes */

h2 { font-weight: 600; font-size: 1.12rem; letter-spacing: -.2px; margin: 0 0 10px; }
h2 .num {
  display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: 9px;
  border-radius: 50%; background: var(--accent); color: #fff;
  font-size: .78rem; font-weight: 600; vertical-align: 2px;
}
.step { margin: 0 0 32px; }
.hint { color: var(--muted); font-size: .92rem; margin: 0 0 12px; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.card + .card { margin-top: 10px; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

.btn {
  background: var(--accent); color: #fff; border: 1px solid var(--accent);
  border-radius: 8px; padding: 9px 18px; cursor: pointer; font-weight: 550;
}
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn.quiet { background: transparent; color: var(--ink); border-color: var(--line); font-weight: 450; }
.btn.quiet:hover { background: var(--sunk); }
.btn:disabled { opacity: .45; cursor: default; }

input[type=text], input[type=password], textarea, select {
  width: 100%; background: var(--paper); border: 1px solid var(--line);
  border-radius: 8px; padding: 9px 11px;
}
input:focus, textarea:focus, select:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: var(--accent); }
textarea { min-height: 92px; resize: vertical; }
label { display: block; font-size: .88rem; color: var(--muted); margin: 10px 0 4px; }

.drop {
  border: 1.5px dashed var(--line); border-radius: var(--radius); padding: 28px 16px;
  text-align: center; color: var(--muted); cursor: pointer; background: var(--sunk);
  transition: border-color .15s, background .15s;
}
.drop:hover, .drop.over { border-color: var(--accent); background: var(--accent-soft); color: var(--ink); }
.drop input { display: none; }

.bar { height: 6px; background: var(--line); border-radius: 3px; overflow: hidden; margin-top: 8px; }
.bar > i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .4s; }

.status { font-size: .9rem; color: var(--muted); }
.status.ok { color: var(--ok); }
.status.warn { color: var(--warn); }
.status.bad { color: var(--bad); }

.list { list-style: none; margin: 0; padding: 0; }
.list li { padding: 11px 0; border-bottom: 1px solid var(--line); }
.list li:last-child { border-bottom: 0; }
.tag {
  display: inline-block; font-size: .74rem; padding: 2px 9px; border-radius: 99px;
  background: var(--sunk); color: var(--muted); margin-left: 7px; vertical-align: 1px;
}
.tag.current { background: var(--accent); color: #fff; }

.notice { border-left: 3px solid var(--accent); background: var(--accent-soft); padding: 10px 13px; margin: 12px 0; border-radius: 0 8px 8px 0; }
.notice.bad { border-left-color: var(--bad); background: var(--sunk); }

details.tech { margin-top: 30px; color: var(--muted); font-size: .86rem; }
details.tech summary { cursor: pointer; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .85em; }
.empty { color: var(--muted); }
