/* HC Studio — couleurs proches du site (fond crème, accent rouge), aucune ressource externe. */
:root {
  --bg: #faf6f0; --card: #fff; --ink: #1d1b1a; --muted: #6b6560; --accent: #c8102e; --accent-ink: #fff;
  --line: #e7e0d7; --me: #fdecee; --bot: #f2efe9; --test: #f76707;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Arial, sans-serif; }
a { color: var(--accent); }
main { max-width: 860px; margin: 0 auto; padding: 1rem; }
.top { display: flex; align-items: baseline; gap: 1rem; padding: .8rem 1rem; background: var(--ink); color: #fff; }
.top .brand { color: #fff; font-weight: 800; font-size: 1.25rem; text-decoration: none; }
.top .sub { color: #cfc8c0; font-size: .9rem; }
.logout { margin-left: auto; }
.logout button { background: none; border: 1px solid #777; color: #fff; border-radius: 6px; padding: .25rem .6rem; cursor: pointer; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 1.2rem 1.4rem; margin: 1rem 0; }
.card.narrow { max-width: 420px; margin: 3rem auto; }
.hero h1 { margin-top: 0; }
h1, h2 { line-height: 1.2; }
h2 { font-size: 1.15rem; margin-top: 0; }
label { display: block; margin: .8rem 0; }
input[type=password] { width: 100%; padding: .6rem; border: 1px solid var(--line); border-radius: 8px; font: inherit; }
button.primary, .primary-link { background: var(--accent); color: var(--accent-ink); border: 0; border-radius: 8px; padding: .6rem 1.1rem; font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; display: inline-block; }
button.primary.big { font-size: 1.1rem; padding: .8rem 1.6rem; }
button:disabled { opacity: .5; cursor: wait; }
.alert { background: #fde8e8; border: 1px solid #f5b5b5; padding: .6rem .8rem; border-radius: 8px; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.list { list-style: none; padding: 0; margin: 0; }
.list li { padding: .5rem 0; border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: .2rem 1rem; justify-content: space-between; }
table.fiches { width: 100%; border-collapse: collapse; }
.fiches th, .fiches td { text-align: left; padding: .45rem .3rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.badge { display: inline-block; font-size: .8rem; font-weight: 700; padding: .1rem .5rem; border-radius: 999px; background: #eee; white-space: nowrap; }
.badge.s-brouillon { background: #fff3bf; }
.badge.s-prête { background: #ffe8cc; color: #a34700; }
.badge.s-publiée { background: #d3f9d8; color: #1b5e20; }
.badge.s-abandonnée, .badge.s-annulée { background: #eee; color: #555; }
.crumb { margin: .5rem 0; }
.steps { display: flex; flex-wrap: wrap; gap: .4rem; padding: 0; list-style: none; counter-reset: s; font-size: .85rem; }
.steps li { counter-increment: s; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: .15rem .7rem; }
.steps li::before { content: counter(s) ". "; font-weight: 700; color: var(--accent); }
.chat { display: flex; flex-direction: column; gap: .7rem; min-height: 40vh; padding: .5rem 0 1rem; }
.msg { max-width: 88%; border-radius: 12px; padding: .6rem .9rem; }
.msg.me { align-self: flex-end; background: var(--me); }
.msg.bot { align-self: flex-start; background: var(--bot); }
.msg.wait .txt { color: var(--muted); font-style: italic; }
.msg .who { font-size: .75rem; font-weight: 700; color: var(--muted); margin-bottom: .15rem; }
.msg .txt { white-space: pre-wrap; overflow-wrap: anywhere; }
.composer { position: sticky; bottom: 0; display: flex; gap: .6rem; background: var(--bg); padding: .6rem 0; }
.composer textarea { flex: 1; padding: .6rem; border: 1px solid var(--line); border-radius: 8px; font: inherit; resize: vertical; }
pre.fiche { white-space: pre-wrap; overflow-wrap: anywhere; background: #f7f4ef; border: 1px solid var(--line); border-radius: 8px; padding: .8rem; font-size: .9rem; }
.foot { text-align: center; padding: 1.5rem; font-size: .85rem; }
