/* ============================================================
   site/ — les deux pages publiques (lot 2026-08-04c)
   tbosshart.dev (racine.html) et /odette/ (la page produit).

   CONTRAINTE : ces pages ne portent AUCUN <script>, ni inline ni
   externe. La CSP (home/server/static-server.mjs:104-106) autorise
   script-src 'self' — un script même-origine passerait — mais
   aucune des deux pages n'en embarque un seul : tout est fait en
   HTML + CSS. Tokens uniquement — un hex ou un px littéral ici est
   une valeur que la reconstruction du système n'atteint pas.
   ============================================================ */

a { color: var(--accent-text); }
a:hover { color: var(--em-700); }
.tb-addrbar__end a { white-space: nowrap; }
:target { scroll-margin-top: calc(var(--nav-height) + var(--space-4)); }

/* ---- la bande dédoublée : à gauche l'œil + le titre, à droite le propos.
   Les structures larges (figures, listes à filets, diptyques) restent pleine
   largeur SOUS le dédoublement — c'est ce qui tient le rythme de la page. ---- */
.st-split { display: grid; gap: var(--space-6); }
@media (min-width: 60rem) { .st-split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-12); align-items: start; } }
.st-split__head::before { content: ""; display: block; width: var(--space-8); height: var(--border-width-2); background: var(--accent); margin-bottom: var(--space-5); }
.st-split__head .st-eyebrow { margin-bottom: var(--space-3); }
.st-split__head .st-h2 { max-width: none; margin-bottom: 0; font-size: var(--text-2xl); }
.st-split__body > :last-child { margin-bottom: 0; }
.st-split + .st-rows, .st-split + .st-nots, .st-split + .st-prompts, .st-split + .st-diptych, .st-split + .st-ba, .st-split + .st-steps, .st-split + .st-duo, .st-split + .st-shot { margin-top: var(--space-10); }

/* ---- rails ---- */
.st-page { max-width: var(--doc-max); margin: 0 auto; padding: 0 var(--page-gutter); }
.st-read { max-width: var(--measure-wide); }
.st-narrow { max-width: var(--measure); }
.st-band { padding: var(--space-16) 0; border-top: var(--hairline); }
.st-band--hero { padding: var(--space-20) 0 var(--space-16); border-top: 0; }
.st-band--well { background: var(--color-surface-sunken); border-top: var(--hairline); border-bottom: var(--hairline); }
.st-band--well > .st-page { padding-top: var(--space-16); padding-bottom: var(--space-16); }

/* ---- type ---- */
.st-eyebrow { font-family: var(--font-ui); font-size: var(--text-xs); font-weight: var(--fw-semibold); letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--accent-text); margin: 0 0 var(--space-4); }
.st-eyebrow--quiet { color: var(--text-faint); }
.st-h1 { font-family: var(--font-display); font-size: var(--text-4xl); line-height: var(--leading-tight); letter-spacing: var(--tracking-tighter); font-weight: var(--fw-bold); color: var(--text-strong); margin: 0 0 var(--space-6); max-width: var(--measure-narrow); text-wrap: pretty; }
.st-h2 { font-family: var(--font-display); font-size: var(--text-3xl); line-height: var(--leading-heading); letter-spacing: var(--tracking-tight); font-weight: var(--fw-semibold); color: var(--text-strong); margin: 0 0 var(--space-4); max-width: var(--measure-narrow); text-wrap: pretty; }
.st-h3 { font-family: var(--font-ui); font-size: var(--text-lg); font-weight: var(--fw-semibold); color: var(--text-strong); margin: 0 0 var(--space-2); line-height: var(--leading-heading); }
.st-lead { font-size: var(--text-md); line-height: var(--leading-body); color: var(--text-body); margin: 0 0 var(--space-4); max-width: var(--measure); }
.st-p { line-height: var(--leading-body); color: var(--text-body); margin: 0 0 var(--space-4); max-width: var(--measure); }
.st-p:last-child { margin-bottom: 0; }
.st-small { font-size: var(--text-sm); line-height: var(--leading-snug); color: var(--text-muted); margin: var(--space-4) 0 0; max-width: var(--measure); }
.st-mono { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--text-muted); }
.st-claim { font-size: var(--text-lg); line-height: var(--leading-snug); color: var(--text-strong); font-weight: var(--fw-medium); border-left: var(--border-width-2) solid var(--accent); padding-left: var(--space-4); margin: var(--space-6) 0 0; max-width: var(--measure-narrow); }
.st-sectitle { font-family: var(--font-ui); font-size: var(--text-2xs); font-weight: var(--fw-semibold); text-transform: uppercase; letter-spacing: var(--tracking-caps); color: var(--text-faint); margin: 0 0 var(--space-5); }

/* ---- la bande de faits (mono, sous le hero) ---- */
.st-facts { display: grid; gap: 0; margin: var(--space-10) 0 0; border-top: var(--rule); }
@media (min-width: 48rem) { .st-facts { grid-template-columns: repeat(3, 1fr); } }
.st-fact { padding: var(--space-4) 0; border-bottom: var(--hairline); display: flex; flex-direction: column; gap: var(--space-1); }
@media (min-width: 48rem) { .st-fact { padding: var(--space-4) var(--space-6) var(--space-4) 0; } }
.st-fact__k { font-family: var(--font-mono); font-size: var(--text-2xs); text-transform: uppercase; letter-spacing: var(--tracking-caps); color: var(--text-faint); }
.st-fact__v { font-size: var(--text-sm); line-height: var(--leading-snug); color: var(--text-strong); }

/* ---- le vaisseau amiral (Odette sur la racine) ---- */
.st-flag { display: grid; gap: var(--space-8); align-items: center; border: var(--border-width) solid var(--accent-border); border-radius: var(--radius-lg); background: var(--accent-soft); padding: var(--space-6); }
@media (min-width: 60rem) { .st-flag { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); padding: var(--space-10); } }
.st-flag__body { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-4); }
.st-flag__body .st-h2, .st-flag__body .st-p { max-width: none; }

/* ---- captures ---- */
.st-shot { margin: 0; }
.st-shot__frame { border: var(--border-width) solid var(--border); border-radius: var(--radius-md); background: var(--color-surface); overflow: hidden; box-shadow: var(--shadow-md); transition: box-shadow var(--dur-base) var(--ease-standard), transform var(--dur-base) var(--ease-standard); }
.st-shot__frame:hover { box-shadow: var(--shadow-lg); transform: translateY(calc(var(--space-px) * -1)); }
.st-shot__frame img { display: block; width: 100%; height: auto; }
.st-shot__cap { margin: var(--space-3) 0 0; font-size: var(--text-xs); line-height: var(--leading-snug); color: var(--text-muted); }
.st-shot__cap b { color: var(--text-body); font-weight: var(--fw-semibold); }
.st-shot--tall .st-shot__frame img { max-height: 30rem; object-fit: cover; object-position: top left; }
.st-shot--short .st-shot__frame img { max-height: 20rem; object-fit: cover; object-position: top left; }
.st-shot--right .st-shot__frame img { object-position: top right; }
.st-diptych { display: grid; gap: var(--space-6); margin: var(--space-8) 0 0; }
@media (min-width: 60rem) { .st-diptych { grid-template-columns: 1fr 1fr; } }
.st-diptych__lab { font-family: var(--font-mono); font-size: var(--text-2xs); text-transform: uppercase; letter-spacing: var(--tracking-caps); color: var(--text-faint); margin: 0 0 var(--space-3); }
.st-diptych__lab--after { color: var(--accent-text); }

/* ---- listes à filet (ce que je fais, les limites) ---- */
.st-rows { list-style: none; margin: var(--space-8) 0 0; padding: 0; border-top: var(--rule); }
.st-rows > :last-child, .st-nots > :last-child { border-bottom: 0; }
.st-row { display: grid; grid-template-columns: auto 1fr; gap: var(--space-4); padding: var(--space-6) 0; border-bottom: var(--hairline); align-items: baseline; transition: background var(--dur-fast) var(--ease-standard); }
.st-row:hover { background: var(--color-surface-sunken); }
.st-row:hover .st-row__n { color: var(--accent-text); }
@media (min-width: 48rem) { .st-row { grid-template-columns: var(--space-12) minmax(0, 22ch) minmax(0, 1fr); gap: var(--space-6); } }
.st-row__n { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--text-faint); font-variant-numeric: tabular-nums; }
.st-row__t { font-family: var(--font-ui); font-size: var(--text-md); font-weight: var(--fw-semibold); color: var(--text-strong); line-height: var(--leading-heading); }
.st-row__p { margin: 0; font-size: var(--text-sm); line-height: var(--leading-body); color: var(--text-muted); max-width: var(--measure); grid-column: 2 / -1; }
@media (min-width: 48rem) { .st-row__p { grid-column: 3; } }

/* ---- avant / après ---- */
.st-ba { display: grid; gap: var(--space-5); margin: var(--space-8) 0 0; }
@media (min-width: 48rem) { .st-ba { grid-template-columns: 1fr 1fr; align-items: stretch; } }
.st-ba__col { padding: var(--space-6); border: var(--border-width) solid var(--border-soft); border-radius: var(--radius-md); background: var(--color-surface); }
.st-ba__col--after { border-color: var(--accent-border); background: var(--accent-soft); }
.st-ba__steps { margin: 0; padding-left: var(--space-5); color: var(--text-muted); font-size: var(--text-sm); }
.st-ba__steps li { margin-bottom: var(--space-2); line-height: var(--leading-snug); }
.st-ba__said { font-family: var(--font-mono); font-size: var(--text-sm); line-height: var(--leading-snug); color: var(--text-strong); background: var(--color-surface); border: var(--hairline); border-radius: var(--radius-sm); padding: var(--space-4); margin: 0 0 var(--space-4); }
.st-ba__then { margin: 0; color: var(--text-body); line-height: var(--leading-body); font-size: var(--text-sm); }

/* ---- les trois temps (prépare · approuvez · exécute) ---- */
.st-steps { list-style: none; margin: var(--space-8) 0 0; padding: 0; display: grid; gap: var(--space-5); }
@media (min-width: 60rem) { .st-steps { grid-template-columns: repeat(3, 1fr); } }
.st-step { padding: var(--space-5); border: var(--border-width) solid var(--border-soft); border-radius: var(--radius-md); background: var(--color-surface); display: flex; flex-direction: column; gap: var(--space-2); }
.st-step__n { font-family: var(--font-mono); font-size: var(--text-xs); font-weight: var(--fw-semibold); color: var(--text-on-accent); background: var(--accent); border-radius: var(--radius-full); width: var(--space-6); height: var(--space-6); display: grid; place-items: center; }
.st-step .st-p { font-size: var(--text-sm); }

/* ---- deux cellules ---- */
.st-duo { display: grid; gap: var(--space-5); margin: var(--space-8) 0 0; }
@media (min-width: 48rem) { .st-duo { grid-template-columns: 1fr 1fr; } }
.st-cell { padding: var(--space-6); border: var(--border-width) solid var(--border-soft); border-radius: var(--radius-md); background: var(--color-surface); }
.st-cell .st-p { font-size: var(--text-sm); }

/* ---- les demandes : la ligne d'invite du produit ---- */
.st-prompts { list-style: none; margin: var(--space-8) 0 0; padding: 0; display: grid; gap: var(--space-4); }
.st-prompt { border: var(--border-width) solid var(--border-soft); border-radius: var(--radius-md); background: var(--color-surface); overflow: hidden; transition: border-color var(--dur-fast) var(--ease-standard); }
.st-prompt:hover { border-color: var(--accent-border); }
.st-prompt__q { display: grid; grid-template-columns: auto 1fr; gap: var(--space-3); align-items: baseline; margin: 0; padding: var(--space-4) var(--space-5); background: var(--code-bg); color: var(--code-fg); font-family: var(--font-mono); font-size: var(--text-sm); line-height: var(--leading-snug); }
.st-prompt__mark { color: var(--em-400); }
.st-prompt__a { margin: 0; padding: var(--space-3) var(--space-5); font-size: var(--text-sm); line-height: var(--leading-snug); color: var(--text-muted); }

/* ---- les interdictions ---- */
.st-nots { list-style: none; margin: var(--space-8) 0 0; padding: 0; border-top: var(--rule); }
.st-not { padding: var(--space-6) 0; border-bottom: var(--hairline); display: grid; gap: var(--space-3); }
@media (min-width: 48rem) { .st-not { grid-template-columns: minmax(0, 26ch) minmax(0, 1fr); gap: var(--space-8); align-items: baseline; } }
.st-not__t { font-family: var(--font-display); font-size: var(--text-xl); font-weight: var(--fw-semibold); color: var(--text-strong); margin: 0; line-height: var(--leading-heading); letter-spacing: var(--tracking-tight); }
.st-not__p { margin: 0; font-size: var(--text-sm); line-height: var(--leading-body); color: var(--text-muted); max-width: var(--measure); }

/* ---- la navigation publique : deux pages, dans la fente droite du bandeau ---- */
.st-nav { display: flex; align-items: center; gap: var(--space-4); }
.st-nav a { font-family: var(--font-ui); font-size: var(--text-xs); font-weight: var(--fw-medium); color: var(--text-muted); text-decoration: none; white-space: nowrap; }
.st-nav a:hover { color: var(--accent-text); }
.st-nav a[aria-current="page"] { color: var(--text-strong); }

/* ---- la porte : « Se connecter » (une seule, l'app place chacun selon son rôle) ---- */
.st-signin { display: inline-flex; align-items: center; line-height: var(--leading-none); padding: var(--space-2) var(--space-3); border: var(--hairline); border-radius: var(--radius-md); background: var(--color-surface); font-family: var(--font-ui); font-size: var(--text-xs); font-weight: var(--fw-medium); color: var(--text-strong); text-decoration: none; white-space: nowrap; }
.st-signin:hover { color: var(--accent-text); border-color: var(--accent-border); background: var(--accent-soft); text-decoration: none; }

/* ---- appel & pied ---- */
.st-cta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4); margin: var(--space-6) 0 0; }
.st-foot { border-top: var(--hairline); padding: var(--space-6) 0 var(--space-12); display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-8); font-family: var(--font-mono); font-size: var(--text-2xs); color: var(--text-faint); }
.st-foot__sp { flex: 1 1 auto; }
.st-foot a { color: var(--text-muted); text-decoration: none; }
.st-foot a:hover { color: var(--accent-text); text-decoration: underline; }

@media (max-width: 40rem) {
  .st-page { padding: 0 var(--space-4); }
  .st-band { padding: var(--space-10) 0; }
  .st-band--hero { padding: var(--space-10) 0 var(--space-8); }
  .st-h1 { font-size: var(--text-3xl); }
  .st-h2 { font-size: var(--text-2xl); }
}
