/* Neoo Studio — page de présentation « lancement de produit » (/neoo-studio).
   Source de vérité : scripts/generate-neoo-studio.mjs + content/neoo-studio + docs/design-neoo-studio.md.
   Préfixe nst-, scope .neoo-studio-page. Site fusion (12 septembre 2026) : la page vit dans le
   canevas bleu nuit partagé (jetons --nf-* de neoo-fusion.css, repli identique ci-dessous) ; le
   mockup Studio, l'aperçu d'application et les cartes de démonstration restent clairs (« papier »)
   parce qu'ils représentent l'interface réelle. Le violet --nf-accent ne signale que l'interaction. */

.neoo-studio-page {
  --nst-canvas: var(--nf-bg-0, #10111b);
  --nst-canvas-1: var(--nf-bg-1, #0b0d18);
  --nst-panel: var(--nf-surface-1, #161a2b);
  --nst-panel-2: var(--nf-surface-2, #1c2136);
  --nst-panel-3: var(--nf-surface-3, #232941);
  --nst-ink: var(--nf-text, #f2f4fb);
  --nst-ink-soft: var(--nf-text-2, #b7bfd6);
  --nst-ink-mute: var(--nf-text-3, #8b94b0);
  --nst-accent: var(--nf-accent, #6a58ff);
  --nst-accent-hover: var(--nf-accent-hover, #7f70ff);
  --nst-accent-deep: var(--nf-link, #a89cff);
  --nst-accent-soft: var(--nf-accent-soft, rgba(106, 88, 255, .16));
  --nst-focus: var(--nf-focus, #b9c8ff);
  --nst-line: var(--nf-line, rgba(255, 255, 255, .1));
  --nst-line-strong: var(--nf-line-strong, rgba(255, 255, 255, .18));
  --nst-radius: var(--nf-radius-l, 22px);
  --nst-shadow: var(--nf-shadow, 0 24px 64px rgba(2, 4, 16, .55));
  --nst-ease: cubic-bezier(.23, 1, .32, 1);
  --nst-shell: var(--nf-shell, min(calc(100% - 48px), 1240px));
  --nst-display: var(--cb-display-font, "Cerebri Sans", "Segoe UI", system-ui, sans-serif);
  --nst-night: var(--nf-bg-1, #0b0d18);
  --cb-title-section: clamp(34px, 3.4vw, 52px);
  background: var(--nst-canvas);
  color: var(--nst-ink);
}

/* Papier : le mockup Studio, les aperçus d'application et les cartes de démonstration gardent
   une interface claire dans le cadre sombre. Les alias sont redéclarés, le reste cascade. */
.nst-studio,
.nst-need__field,
.nst-form__panel,
.nst-adjust__grid,
.nst-engine__card--studio {
  --nst-canvas: var(--nf-paper, #f5f7ff);
  --nst-panel: #ffffff;
  --nst-panel-2: #f5f6fb;
  --nst-panel-3: #eceff8;
  --nst-ink: var(--nf-paper-ink, #0f1430);
  --nst-ink-soft: #465072;
  --nst-ink-mute: #5b6584;
  --nst-accent-deep: #4b3fd6;
  --nst-accent-soft: #e9e6ff;
  --nst-focus: #4b3fd6;
  --nst-line: rgba(15, 20, 48, .12);
  --nst-line-strong: rgba(15, 20, 48, .22);
  --nst-shadow: 0 30px 80px rgba(2, 4, 16, .45), 0 2px 6px rgba(2, 4, 16, .2);
  color: var(--nst-ink);
}

.neoo-studio-page [hidden] { display: none !important; }

html:has(body.neoo-studio-page),
body.neoo-studio-page {
  overflow-x: hidden;
  overflow-x: clip;
}

.neoo-studio-page :where(a, button, summary, [tabindex="0"]):focus-visible {
  outline: 3px solid var(--nst-focus);
  outline-offset: 3px;
  border-radius: 8px;
}

.neoo-product-page.partners-page--overview.neoo-studio-page {
  --neoo-product-lead: clamp(18px, 1.5vw, 23px);
}

.neoo-studio-page main { position: relative; }

.nst-shell {
  width: var(--nst-shell);
  margin-inline: auto;
}

.nst-eyebrow {
  margin: 0 0 18px;
  color: var(--nst-ink-mute);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.neoo-studio-page #main .nst-eyebrow--hero {
  margin: 0 0 22px;
  color: var(--nst-ink-mute) !important;
  letter-spacing: .22em !important;
}

.nst-textlink {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--nst-accent-deep);
  font-weight: 500;
  text-decoration: none;
  text-underline-offset: 4px;
}

.nst-textlink:hover { text-decoration: underline; }

.nst-textlink svg,
.nst-btn svg,
.nst-chip svg,
.nst-studio__step svg,
.nst-hero__powered svg,
.nst-studio__rail-foot svg {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nst-textlink svg { transition: transform .25s var(--nst-ease); }
.nst-textlink:hover svg { transform: translateX(4px); }

/* ---------- Boutons ---------- */
.nst-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -.01em;
  text-decoration: none;
  cursor: pointer;
  transition: transform .25s var(--nst-ease), box-shadow .25s var(--nst-ease), background-color .25s var(--nst-ease), border-color .25s var(--nst-ease);
}

.nst-btn--primary {
  color: var(--nf-accent-ink, #fff);
  background: var(--nst-accent);
  box-shadow: none;
}

.nst-btn--primary:hover:not(:disabled) {
  transform: translateY(-1px);
  background: var(--nst-accent-hover);
}

.nst-btn--primary:disabled {
  color: var(--nst-ink-mute);
  background: var(--nst-panel-3);
  box-shadow: none;
  cursor: not-allowed;
}

.nst-btn--ghost {
  color: var(--nst-ink);
  background: var(--nst-panel);
  border-color: var(--nst-line-strong);
}

.nst-btn--ghost:hover { border-color: var(--nst-accent); color: var(--nst-accent-deep); }

.nst-btn--large {
  min-height: 58px;
  padding: 0 32px;
  border-radius: 15px;
  font-size: 17px;
}

/* ---------- Hero : le mockup est la première preuve produit ---------- */
.nst-hero {
  --cb-title-hero: clamp(40px, 4.4vw, 64px);
  position: relative;
  padding: calc(var(--partner-overview-header-h, 64px) + clamp(28px, 4.5vh, 52px)) 24px clamp(40px, 5vw, 64px);
  text-align: center;
  isolation: isolate;
}

.nst-hero__glow {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.nst-hero__glow i {
  position: absolute;
  border-radius: 50%;
  filter: blur(48px);
  opacity: .5;
}

.nst-hero__glow i:nth-child(1) {
  top: 8%;
  left: -8%;
  width: 34vw;
  height: 34vw;
  max-width: 560px;
  max-height: 560px;
  background: radial-gradient(circle, var(--nf-halo-blue, #122c56), transparent 70%);
}

.nst-hero__glow i:nth-child(2) {
  top: 34%;
  right: -10%;
  width: 40vw;
  height: 40vw;
  max-width: 640px;
  max-height: 640px;
  background: radial-gradient(circle, var(--nf-halo-violet, #2a1d64), transparent 70%);
}

.nst-hero__copy {
  max-width: 940px;
  margin-inline: auto;
}

.neoo-studio-page #main h1[data-neoo-role="display"] {
  margin: 0;
  color: var(--nst-ink);
}

.neoo-studio-page #main h1[data-neoo-role="display"] > span { display: block; }

.neoo-studio-page #main .nst-lead {
  max-width: 760px;
  margin: clamp(16px, 2.2vh, 24px) auto 0;
  color: var(--nst-ink-soft);
}

.nst-lead > span { display: block; }

.nst-hero__foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 14px 28px;
  margin: clamp(24px, 3.4vh, 36px) 0 0;
  font-size: 15px;
  color: var(--nst-ink-soft);
}

.nst-hero__powered {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}

.nst-hero__powered svg { color: var(--nst-accent); width: 20px; height: 20px; }

/* ---------- Le mockup Neoo Studio ---------- */
.nst-studio {
  width: min(100%, 1080px);
  margin: clamp(24px, 3.6vh, 40px) auto 0;
  overflow: hidden;
  border: 1px solid var(--nst-line-strong);
  border-radius: var(--nst-radius);
  background: var(--nst-panel);
  box-shadow: var(--nst-shadow);
  text-align: left;
}

.nst-studio__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 56px;
  padding: 0 20px 0 24px;
  border-bottom: 1px solid var(--nst-line);
}

.nst-studio__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 500 17px/1 var(--nst-display);
  letter-spacing: -.02em;
}

.nst-studio__brand i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4d7dff, #2b53e8);
  box-shadow: 0 0 0 4px rgba(77, 125, 255, .14);
}

.nst-studio__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  border-radius: 999px;
  color: var(--nst-accent-deep);
  background: var(--nst-accent-soft);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}

.nst-studio__badge i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--nst-accent);
}

.nst-studio__body {
  display: grid;
  grid-template-columns: 212px minmax(0, 1fr);
  min-height: 430px;
}

.nst-studio__rail {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
  padding: 18px 14px;
  list-style: none;
  border-right: 1px solid var(--nst-line);
  background: #fbfbfe;
}

.nst-studio__step {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 11px 12px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: var(--nst-ink-soft);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  text-align: left;
  cursor: pointer;
  transition: background-color .2s var(--nst-ease), color .2s var(--nst-ease);
}

.nst-studio__step:hover:not(:disabled) { background: #eef1fa; color: var(--nst-ink); }
.nst-studio__step:disabled { cursor: default; opacity: .5; }

.nst-studio__rail li[aria-current="step"] .nst-studio__step {
  background: var(--nst-accent-soft);
  color: var(--nst-accent-deep);
  opacity: 1;
}

.nst-studio__rail-foot {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: auto;
  padding: 14px 12px;
  border: 1px solid var(--nst-line);
  border-radius: 12px;
  background: #fff;
  color: var(--nst-ink-soft);
  font-size: 12px;
  line-height: 1.4;
}

.nst-studio__rail-foot svg { color: var(--nst-accent); margin-top: 1px; }
.nst-studio__rail-foot strong { color: var(--nst-ink); font-weight: 600; }

.nst-studio__stage {
  display: flex;
  flex-direction: column;
  padding: clamp(22px, 3vw, 34px) clamp(20px, 3.4vw, 44px) clamp(22px, 3vw, 30px);
}

.nst-idea {
  width: min(100%, 720px);
  margin-inline: auto;
  text-align: center;
}

.nst-idea__title {
  margin: clamp(4px, 1.4vh, 16px) 0 6px;
  color: var(--nst-ink);
  font: 400 clamp(26px, 2.5vw, 34px)/1.1 var(--nst-display);
  letter-spacing: -.035em;
}

.nst-idea__sub {
  margin: 0 0 18px;
  color: var(--nst-ink-soft);
  font-size: 16px;
}

.nst-prompt { margin: 0; }

.nst-prompt__box {
  border: 1.5px solid var(--nst-line-strong);
  border-radius: 16px;
  background: #fff;
  text-align: left;
  transition: border-color .2s var(--nst-ease), box-shadow .2s var(--nst-ease);
}

.nst-prompt__box:focus-within {
  border-color: var(--nst-accent);
  box-shadow: 0 0 0 4px rgba(43, 83, 232, .13);
}

.nst-prompt__input {
  display: block;
  width: 100%;
  min-height: 96px;
  max-height: 320px;
  padding: 16px 18px 6px;
  border: 0;
  border-radius: 16px 16px 0 0;
  background: transparent;
  color: var(--nst-ink);
  font: 400 16px/1.55 var(--nst-display);
  resize: vertical;
}

.nst-prompt__input:focus { outline: none; }
.nst-prompt__input::placeholder { color: var(--nst-ink-mute); opacity: 1; }

.nst-prompt__foot {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 10px 10px 18px;
}

.nst-prompt__count,
.nst-prompt__shortcut {
  color: var(--nst-ink-mute);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.nst-prompt__shortcut { margin-left: auto; }
.nst-prompt__submit { flex: none; }

.nst-prompt__starts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
}

.nst-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 15px;
  border: 1px solid var(--nst-line-strong);
  border-radius: 999px;
  background: #fff;
  color: var(--nst-ink);
  font: 500 14px/1.2 var(--nst-display);
  cursor: pointer;
  transition: border-color .2s var(--nst-ease), color .2s var(--nst-ease), background-color .2s var(--nst-ease);
}

.nst-chip svg { width: 16px; height: 16px; color: var(--nst-accent); }
.nst-chip:hover { border-color: var(--nst-accent); color: var(--nst-accent-deep); background: #f4f7ff; }

.nst-prompt__note {
  margin: 18px 0 0;
  color: var(--nst-ink-mute);
  font-size: 13px;
}

/* Espace de travail (états 2 et 3) */
.nst-work { display: flex; flex-direction: column; flex: 1; }

.nst-work__tabs {
  display: none;
  gap: 4px;
  margin: 0 0 14px;
  padding: 4px;
  border-radius: 999px;
  background: #eceff8;
}

.nst-work__tabs button {
  flex: 1;
  min-height: 40px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--nst-ink-soft);
  font: 500 14px/1.2 var(--nst-display);
  cursor: pointer;
}

.nst-work__tabs button[aria-pressed="true"] {
  background: #fff;
  color: var(--nst-ink);
  box-shadow: 0 2px 8px rgba(15, 23, 66, .12);
}

.nst-work__grid {
  display: grid;
  grid-template-columns: minmax(260px, 36%) minmax(0, 1fr);
  gap: 20px;
  flex: 1;
  min-height: 360px;
}

.nst-chat { display: flex; flex-direction: column; min-width: 0; }

.nst-chat__log {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nst-msg {
  position: relative;
  padding: 14px 16px;
  border-radius: 16px;
  font-size: 15px;
  line-height: 1.5;
}

.nst-msg--user {
  align-self: flex-end;
  max-width: 92%;
  border-bottom-right-radius: 6px;
  background: var(--nst-accent-soft);
  color: var(--nst-ink);
  overflow-wrap: anywhere;
}

.nst-msg--studio {
  align-self: flex-start;
  width: 100%;
  border: 1px solid var(--nst-line);
  border-bottom-left-radius: 6px;
  background: #f5f6fb;
}

.nst-msg--tools { padding: 0; }

.nst-msg__who {
  display: block;
  margin-bottom: 4px;
  color: var(--nst-ink-mute);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.nst-msg p { margin: 0; }
.nst-msg p + p { margin-top: 8px; }
.nst-msg__notice { color: var(--nst-ink-soft); font-size: 13px; }
.nst-msg__hint { color: var(--nst-ink-soft); font-size: 13px; }

.nst-msg__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.nst-msg__actions .nst-btn { min-height: 42px; padding-inline: 16px; font-size: 14px; }

.nst-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: #eef2ff;
  color: var(--nst-accent-deep);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .02em;
  white-space: nowrap;
}

.nst-msg--studio .nst-tag { margin-top: 8px; }
.nst-tag--change { background: #e3f6ec; color: #136c3a; }

.nst-msg--studio:focus { outline: none; }
.nst-msg--studio:focus-visible { outline: 3px solid var(--nst-accent-deep); outline-offset: 2px; }

.nst-canvas {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--nst-line);
  border-radius: 16px;
  background: #fafbff;
}

.nst-canvas__inner { container-type: inline-size; }

/* Structure proposée (état 2) */
.nst-structure { display: flex; flex-direction: column; gap: 14px; }

.nst-structure__name {
  margin: 10px 0 0;
  font: 400 24px/1.15 var(--nst-display);
  letter-spacing: -.03em;
}

.nst-structure__label {
  margin: 0;
  color: var(--nst-ink-mute);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.nst-structure__modules {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nst-structure__modules li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--nst-line);
  border-radius: 12px;
  background: #fff;
  font-weight: 500;
}

.nst-structure__modules li:first-child {
  border-color: rgba(43, 83, 232, .4);
  box-shadow: 0 0 0 3px rgba(43, 83, 232, .08);
}

.nst-structure__n {
  color: var(--nst-accent);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.nst-structure__notice {
  margin: 0;
  color: var(--nst-ink-soft);
  font-size: 13px;
}

/* Aperçu d'application (état 3, chapitres 2 et 3) */
.nst-app {
  overflow: hidden;
  border: 1px solid var(--nst-line);
  border-radius: 14px;
  background: #fff;
}

.nst-app__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--nst-line);
}

.nst-app__name {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
}

.nst-app__name i {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: linear-gradient(135deg, #4d7dff, #2b53e8);
}

.nst-app__tag { color: var(--nst-ink-mute); font-size: 12px; white-space: nowrap; }

.nst-app__nav {
  display: flex;
  gap: 2px;
  margin: 0;
  padding: 8px 12px 0;
  list-style: none;
  overflow-x: auto;
  border-bottom: 1px solid var(--nst-line);
  scrollbar-width: none;
}

.nst-app__nav li {
  padding: 8px 12px 10px;
  border-bottom: 2px solid transparent;
  color: var(--nst-ink-soft);
  font-size: 13px;
  white-space: nowrap;
}

.nst-app__nav li[aria-current="page"] {
  border-color: var(--nst-accent);
  color: var(--nst-accent-deep);
  font-weight: 600;
}

.nst-app__body {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(230px, .85fr);
}

.nst-app__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.nst-app__table th,
.nst-app__table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--nst-line);
  text-align: left;
  vertical-align: middle;
}

.nst-app__table thead th {
  background: #fafbff;
  color: var(--nst-ink-mute);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.nst-app__table tbody tr { transition: background-color .2s var(--nst-ease); }
.nst-app__table tbody tr.is-selected { background: #f4f7ff; }
.nst-app__table tbody tr:last-child th,
.nst-app__table tbody tr:last-child td { border-bottom: 0; }

.nst-app__rowbtn {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--nst-ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.nst-app__rowbtn--static { cursor: default; }
.nst-app__rowbtn > span { font-weight: 600; }
.nst-app__rowbtn small { color: var(--nst-ink-mute); font-size: 12px; }
.nst-app__rowbtn:hover > span { color: var(--nst-accent-deep); }

.nst-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.nst-status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.nst-status--todo { background: #fff3dc; color: #7a4d00; }
.nst-status--active { background: #e7f0ff; color: #1d3db8; }
.nst-status--done { background: #e2f5ea; color: #0f6236; }

.nst-app__detail {
  padding: 16px;
  border-left: 1px solid var(--nst-line);
  background: #fafbff;
}

.nst-app__detail-kicker {
  margin: 0;
  color: var(--nst-ink-mute);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.nst-app__detail-title {
  margin: 4px 0 12px;
  font-size: 15px;
  font-weight: 600;
}

.nst-app__fields {
  display: grid;
  gap: 4px;
  margin: 0;
}

.nst-app__fields div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 7px 0;
  border-bottom: 1px dashed var(--nst-line);
  font-size: 13px;
}

.nst-app__fields div:last-child { border-bottom: 0; }
.nst-app__fields dt { color: var(--nst-ink-soft); }
.nst-app__fields dd { margin: 0; font-weight: 500; text-align: right; }

.nst-app__change {
  display: block;
  margin-top: 4px;
  color: var(--nst-accent-deep);
  font-size: 11px;
  font-style: normal;
}

.nst-app__new {
  background: rgba(43, 83, 232, .07);
  box-shadow: inset 0 0 0 1px rgba(43, 83, 232, .3);
}

.nst-app__fields div.nst-app__new {
  padding-inline: 8px;
  border-radius: 8px;
  border-bottom: 0;
}

@media (prefers-reduced-motion: no-preference) {
  .nst-app__new { animation: nst-flash 1.8s var(--nst-ease) both; }
  .nst-js .nst-adjust__grid:not(.is-in) .nst-app__new { animation: none; }
}

@keyframes nst-flash {
  0% { background-color: rgba(43, 83, 232, .3); box-shadow: inset 0 0 0 2px rgba(43, 83, 232, .6); }
  100% { background-color: rgba(43, 83, 232, .07); box-shadow: inset 0 0 0 1px rgba(43, 83, 232, .3); }
}

/* Aperçu d'application dans un conteneur étroit : détail sous la liste, puis liste en cartes. */
.nst-canvas__inner,
.nst-form__panel,
.nst-adjust__app { container-type: inline-size; }

@container (max-width: 760px) {
  .nst-app__body { grid-template-columns: 1fr; }
  .nst-app__detail { border-left: 0; border-top: 1px solid var(--nst-line); }
}

@container (max-width: 560px) {
  .nst-app__table thead { display: none; }
  .nst-app__table tbody tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 14px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--nst-line);
  }
  .nst-app__table tbody tr th { grid-column: 1 / -1; padding: 0; border: 0; }
  .nst-app__table tbody tr td {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
    padding: 0;
    border: 0;
    font-size: 13px;
  }
  .nst-app__table tbody tr td::before {
    content: attr(data-label);
    color: var(--nst-ink-mute);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
  }
  .nst-app__table tbody td.nst-app__new { padding: 6px 8px; border-radius: 8px; }
}

/* ---------- Chapitres ---------- */
.nst-chapter {
  position: relative;
  padding-block: clamp(88px, 10vw, 150px);
}

.nst-chapter h2 {
  margin: 0;
  color: var(--nst-ink);
  font: var(--cb-display-weight, 300) var(--cb-title-section, clamp(34px, 3.4vw, 52px))/var(--cb-display-leading, 1.06) var(--nst-display);
  letter-spacing: var(--cb-display-tracking, -.052em);
}

.nst-chapter h2 > span { display: block; }

.nst-chapter__text {
  max-width: 68ch;
  margin: 20px 0 0;
  color: var(--nst-ink-soft);
  font-size: clamp(17px, 1.3vw, 20px);
  font-weight: 300;
  line-height: 1.55;
  letter-spacing: -.012em;
}

.nst-chapter__text > span { display: block; }

.nst-chapter__more {
  max-width: 560px;
  margin: 18px 0 28px;
  font-size: 16px;
  line-height: 1.6;
}

.nst-chapter__head {
  max-width: 820px;
  margin-inline: auto;
  text-align: center;
}

.nst-chapter__head .nst-chapter__text { margin-inline: auto; }

/* Chapitre 1 — le besoin */
.nst-need { background: var(--nst-canvas-1); }

.nst-need__grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(40px, 6vw, 96px);
}

.nst-need__visual { margin: 0; }

.nst-need__field {
  padding: 26px 28px 30px;
  border: 1.5px solid rgba(43, 83, 232, .45);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 0 0 6px rgba(43, 83, 232, .08), var(--nst-shadow);
}

.nst-need__label {
  display: block;
  margin-bottom: 12px;
  color: var(--nst-ink-mute);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.nst-need__text {
  margin: 0;
  font: 400 clamp(19px, 1.7vw, 24px)/1.5 var(--nst-display);
  letter-spacing: -.02em;
}

.nst-caret {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  margin-left: 3px;
  vertical-align: -.15em;
  background: var(--nst-accent);
}

@media (prefers-reduced-motion: no-preference) {
  .nst-caret { animation: nst-blink 1.1s steps(2, start) infinite; }
}

@keyframes nst-blink { to { visibility: hidden; } }

.nst-need__visual figcaption {
  margin-top: 16px;
  color: var(--nst-ink-mute);
  font-size: 14px;
}

/* Chapitre 2 — la forme */
.nst-form .nst-shell {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.nst-form__tabs {
  display: inline-flex;
  gap: 4px;
  margin-top: clamp(28px, 3.4vw, 44px);
  padding: 4px;
  border: 1px solid var(--nst-line);
  border-radius: 999px;
  background: var(--nst-panel);
}

.nst-form__tabs [role="tab"] {
  min-height: 42px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--nst-ink-soft);
  font: 500 14px/1.2 var(--nst-display);
  cursor: pointer;
  transition: background-color .2s var(--nst-ease), color .2s var(--nst-ease);
}

.nst-form__tabs [role="tab"]:hover { color: var(--nst-ink); }

.nst-form__tabs [role="tab"][aria-selected="true"] {
  background: var(--nst-accent-soft);
  color: var(--nst-ink);
  box-shadow: inset 0 0 0 1px var(--nst-accent);
}

.nst-form__stage {
  width: 100%;
  margin-top: 28px;
}

.nst-form__panel > .nst-app {
  border-radius: 20px;
  box-shadow: var(--nst-shadow);
}

.nst-data,
.nst-flow {
  width: min(100%, 860px);
  margin-inline: auto;
  padding: clamp(24px, 3vw, 36px);
  border: 1px solid var(--nst-line);
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--nst-shadow);
}

.nst-data__head,
.nst-flow__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin-bottom: 22px;
}

.nst-data__head p,
.nst-flow__head p { margin: 0; color: var(--nst-ink-soft); font-size: 15px; }

.nst-data__fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.nst-data__fields div {
  padding: 12px 14px;
  border: 1px solid var(--nst-line-strong);
  border-radius: 12px;
  background: #fbfbfe;
}

.nst-data__fields dt {
  color: var(--nst-ink-mute);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.nst-data__fields dd { margin: 4px 0 0; font-size: 15px; font-weight: 500; }

.nst-data__note,
.nst-flow__note {
  margin: 18px 0 0;
  color: var(--nst-ink-mute);
  font-size: 13px;
}

.nst-flow__steps {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}

.nst-flow__steps li {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 12px;
  border: 1px solid var(--nst-line);
  border-radius: 12px;
  background: #fbfbfe;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
}

.nst-flow__steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -8px;
  width: 8px;
  height: 1px;
  background: var(--nst-line-strong);
}

.nst-flow__steps li.is-key {
  border-color: rgba(43, 83, 232, .5);
  background: #eef2ff;
  color: var(--nst-accent-deep);
  box-shadow: 0 0 0 3px rgba(43, 83, 232, .1);
}

.nst-flow__n {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--nst-line-strong);
  color: var(--nst-ink-soft);
  font-size: 12px;
  font-weight: 600;
}

.nst-flow__steps li.is-key .nst-flow__n {
  border-color: var(--nst-accent);
  background: var(--nst-accent);
  color: #fff;
}

/* Chapitre 3 — ajuster */
.nst-adjust { background: var(--nst-canvas-1); }

.nst-adjust__grid {
  display: grid;
  grid-template-columns: minmax(280px, .78fr) minmax(0, 1.22fr);
  gap: clamp(24px, 3vw, 40px);
  align-items: start;
  margin-top: clamp(36px, 4vw, 56px);
}

.nst-chat__log--static { gap: 14px; }
.nst-chat__log--static .nst-msg--user { max-width: 100%; align-self: stretch; }

.nst-adjust__app > .nst-app {
  border-radius: 20px;
  box-shadow: var(--nst-shadow);
}

/* Chapitre 4 — le moteur (Studio → Forge → Neoo) */
.nst-engine {
  color: var(--nst-ink-soft);
  background:
    radial-gradient(60% 55% at 85% 15%, var(--nf-halo-violet, #2a1d64), transparent 62%),
    var(--nst-night);
}

.nst-engine .nst-eyebrow { color: var(--nst-ink-mute); }
.nst-engine h2 { color: var(--nst-ink); }
.nst-engine .nst-chapter__text,
.nst-engine .nst-chapter__more { color: var(--nst-ink-soft); }
.nst-textlink--light { color: var(--nst-accent-deep); }

.nst-engine__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(40px, 6vw, 96px);
}

.nst-engine__diagram {
  display: flex;
  flex-direction: column;
  width: min(100%, 440px);
  margin-left: auto;
}

.nst-engine__card {
  padding: 22px 24px;
  border: 1px solid var(--nst-line);
  border-radius: 18px;
  background: var(--nst-panel);
}

.nst-engine__card--studio {
  border-color: transparent;
  background: var(--nst-panel);
  color: var(--nst-ink);
  box-shadow: var(--nst-shadow);
}

.nst-engine__card--forge {
  border-color: var(--nf-blue, #4d7dff);
  background: var(--nf-blue-soft, rgba(77, 125, 255, .16));
}

.nst-engine__role {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  opacity: .7;
}

.nst-engine__name {
  margin: 6px 0 10px;
  font: 400 26px/1.1 var(--nst-display);
  letter-spacing: -.03em;
}

.nst-engine__card ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
  line-height: 1.4;
}

.nst-engine__card li {
  position: relative;
  padding-left: 16px;
}

.nst-engine__card li::before {
  content: "";
  position: absolute;
  top: .55em;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--nst-accent);
}

.nst-engine__card--studio li::before { background: var(--nst-accent); }
.nst-engine__note { margin: 0; font-size: 14px; line-height: 1.5; opacity: .85; }

.nst-engine__link {
  display: flex;
  justify-content: center;
  height: 40px;
}

.nst-engine__link i {
  position: relative;
  width: 2px;
  height: 100%;
  background: var(--nf-blue, #4d7dff);
  opacity: .8;
}

.nst-engine__link i::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--nf-blue, #4d7dff);
  border-bottom: 2px solid var(--nf-blue, #4d7dff);
  transform: translateX(-50%) rotate(45deg);
}

.nst-engine__link--soft i { opacity: .45; }

/* Conclusion */
.nst-final {
  padding-block: clamp(88px, 10vw, 150px);
  text-align: center;
}

.nst-final__inner { max-width: 900px; }

.nst-final h2 {
  margin: 0;
  font: var(--cb-display-weight, 300) clamp(36px, 4vw, 60px)/1.06 var(--nst-display);
  letter-spacing: var(--cb-display-tracking, -.052em);
}

.nst-final h2 > span { display: block; }

.nst-final__text {
  max-width: 560px;
  margin: 22px auto 0;
  color: var(--nst-ink-soft);
  font-size: clamp(18px, 1.4vw, 21px);
  font-weight: 300;
  line-height: 1.5;
}

.nst-final__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  margin-top: 36px;
}

/* ---------- Mouvement (sobre, explicatif, désactivable) ---------- */
.nst-js .nst-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .75s var(--nst-ease), transform .75s var(--nst-ease);
}

.nst-js .nst-reveal--late { transition-delay: .12s; }

.nst-js .nst-reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: no-preference) {
  .nst-hero__copy > * { animation: nst-rise .8s var(--nst-ease) both; }
  .nst-hero__copy > :nth-child(2) { animation-delay: .08s; }
  .nst-hero__copy > :nth-child(3) { animation-delay: .16s; }
  .nst-studio { animation: nst-rise 1s var(--nst-ease) .14s both; }
  .nst-hero__foot { animation: nst-rise .8s var(--nst-ease) .34s both; }
  .nst-studio [data-nst-panel] { animation: nst-fade .35s var(--nst-ease) both; }
}

@keyframes nst-rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

@keyframes nst-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .nst-js .nst-reveal { opacity: 1; transform: none; transition: none; }
  .neoo-studio-page *, .neoo-studio-page *::before, .neoo-studio-page *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

.nst-app__fields dd { min-width: 0; overflow-wrap: anywhere; }
.nst-app__top { flex-wrap: wrap; }
.nst-app__name i { flex: none; }
.nst-app__rowbtn { min-height: 44px; }
.nst-work { text-align: left; }
.nst-studio__stage { min-width: 0; }

@media (min-width: 1121px) {
  .nst-studio:not([data-state="idea"]) { width: min(100%, 1240px); }
  .nst-studio:not([data-state="idea"]) .nst-studio__body { grid-template-columns: 160px minmax(0, 1fr); }
  .nst-studio:not([data-state="idea"]) .nst-studio__stage { padding-inline: 22px; }
  .nst-work__grid { grid-template-columns: minmax(240px, .42fr) minmax(0, 1fr); }
}

@container (max-width: 380px) {
  .nst-status { white-space: normal; }
  .nst-app__fields div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .nst-app__fields dd { text-align: left; }
  .nst-tag { white-space: normal; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1120px) {
  .neoo-studio-page { --nst-shell: min(calc(100% - 48px), 1240px); }
  .nst-studio__body { grid-template-columns: 184px minmax(0, 1fr); }
  .nst-need__grid,
  .nst-engine__grid { grid-template-columns: 1fr; gap: 40px; }
  .nst-engine__diagram { margin-left: 0; }
  .nst-flow__steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .nst-flow__steps li:nth-child(3n)::after { display: none; }
  .nst-adjust__grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .nst-work__tabs { display: flex; }
  .nst-work__grid { grid-template-columns: 1fr; min-height: 0; }
  .nst-js .nst-work [data-nst-pane]:not(.is-active) { display: none; }
}

@media (max-width: 760px) {
  .neoo-studio-page { --nst-shell: min(calc(100% - 32px), 1240px); }
  .nst-hero { padding-inline: 16px; }
  .nst-lead > span { display: inline; }
  .nst-studio { border-radius: 18px; }
  .nst-studio__bar { height: 52px; padding: 0 14px 0 16px; }
  .nst-studio__badge { padding: 6px 10px; font-size: 12px; }
  .nst-studio__body { grid-template-columns: 1fr; min-height: 0; }
  .nst-studio__rail {
    flex-direction: row;
    gap: 6px;
    padding: 10px 12px;
    border-right: 0;
    border-bottom: 1px solid var(--nst-line);
    overflow-x: auto;
    scrollbar-width: none;
  }
  .nst-studio__rail li { flex: 1; min-width: 0; }
  .nst-studio__step { justify-content: center; padding: 9px 8px; font-size: 13px; }
  .nst-studio__rail-foot { display: none; }
  .nst-studio__stage { padding: 20px 16px 20px; }
  .nst-idea__title { font-size: 24px; }
  .nst-idea__sub { font-size: 15px; }
  .nst-prompt__shortcut { display: none; }
  .nst-prompt__foot { flex-wrap: wrap; padding: 6px 10px 10px 16px; }
  .nst-prompt__submit { flex: 1 1 100%; }
  .nst-chip { min-height: 44px; }
  .nst-hero__foot { margin-top: 22px; }
  .nst-chapter { padding-block: 72px; }
  .nst-form__tabs { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
  .nst-form__tabs [role="tab"] { padding: 0 14px; white-space: nowrap; }
  .nst-data__fields { grid-template-columns: 1fr; }
  .nst-flow__steps { grid-template-columns: 1fr; }
  .nst-flow__steps li::after { display: none; }
  .nst-need__field { padding: 20px 20px 24px; }
}

@media (max-width: 480px) {
  .nst-studio__rail { gap: 4px; }
  .nst-studio__step svg { display: none; }
  .nst-final__actions .nst-btn { width: 100%; }
}

/* Écrans desktop peu hauts : le champ et son action restent visibles sans défilement. */
@media (min-width: 761px) and (max-height: 820px) {
  .nst-hero {
    --cb-title-hero: clamp(40px, 7vh, 60px);
    padding-top: calc(var(--partner-overview-header-h, 64px) + 26px);
  }
  .neoo-studio-page #main .nst-eyebrow--hero { margin-bottom: 12px; }
  .neoo-studio-page #main .nst-lead { margin-top: 12px; }
  .nst-studio { margin-top: 20px; }
  .nst-studio__bar { height: 50px; }
  .nst-studio__stage { padding: 18px 28px 18px; }
  .nst-studio__body { min-height: 0; }
  .nst-idea__title { margin-top: 0; font-size: clamp(24px, 2.2vw, 28px); }
  .nst-idea__sub { margin-bottom: 12px; font-size: 15px; }
  .nst-prompt__input { min-height: 80px; padding-top: 12px; }
  .nst-prompt__starts { margin-top: 12px; }
  .nst-prompt__note { margin-top: 12px; }
}

@media (pointer: coarse) {
  .nst-prompt__shortcut { display: none; }
}
