/* trustmybot.fr — vitrine + panneau. Tokens partagés, clair par défaut, sombre selon le système. */
/* Polices hébergées ici (licence OFL, copiées de Google Fonts) : aucun visiteur n'envoie son IP à Google. */
@font-face { font-family: "Atkinson Hyperlegible"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(/static/fonts/atkinson-400-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Atkinson Hyperlegible"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(/static/fonts/atkinson-400-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Atkinson Hyperlegible"; font-style: normal; font-weight: 700; font-display: swap;
  src: url(/static/fonts/atkinson-700-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Atkinson Hyperlegible"; font-style: normal; font-weight: 700; font-display: swap;
  src: url(/static/fonts/atkinson-700-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 500 800; font-display: swap;
  src: url(/static/fonts/bricolage-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 500 800; font-display: swap;
  src: url(/static/fonts/bricolage-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
:root {
  --bg: #eef0f7;
  --surface: #ffffff;
  --ink: #181b2e;
  --muted: #5d6280;
  --line: #d6d9e8;
  --brand: #4c3fd1;
  --on: #16a06c;
  --off: #c3c7da;
  --danger: #c2334d;
  --radius-panel: 18px;
  --radius-control: 999px;
  --display: "Bricolage Grotesque", "Segoe UI", sans-serif;
  --text: "Atkinson Hyperlegible", "Segoe UI", sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14162a;
    --surface: #1d2040;
    --ink: #eceefa;
    --muted: #a2a7c4;
    --line: #2e3260;
    --brand: #8e83ff;
    --on: #3dd68c;
    --off: #3a3e6b;
    --danger: #ff7088;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 1.0625rem/1.6 var(--text);
}
a { color: var(--brand); }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
code { font-size: .92em; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: .05em .35em; }

.top, main, .bottom { width: min(100% - 32px, 720px); margin-inline: auto; }
.top { display: flex; justify-content: space-between; align-items: center; padding: 20px 0; }
.brand { font: 800 1.25rem/1 var(--display); color: var(--ink); text-decoration: none; }
.top .link { font-weight: 700; text-decoration: none; }

h1, h2 { font-family: var(--display); line-height: 1.08; margin: 0 0 .5em; }
h1 { font-weight: 800; font-size: clamp(2.1rem, 7vw, 3.4rem); letter-spacing: -.02em; }
h2 { font-weight: 800; font-size: clamp(1.45rem, 4.5vw, 1.9rem); letter-spacing: -.01em; }
section { margin: 0 0 64px; }
p { margin: 0 0 1em; max-width: 62ch; }
.lead { color: var(--muted); font-size: 1.15rem; }

.hero { padding-top: 28px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.button {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px;
  border-radius: var(--radius-control); border: 2px solid var(--brand);
  font-weight: 700; text-decoration: none; color: var(--brand); background: transparent;
  cursor: pointer; font-family: var(--text); font-size: 1rem;
}
.button.primary { background: var(--brand); color: #fff; }
@media (prefers-color-scheme: dark) { .button.primary { color: #14162a; } }

/* La liste des modules : chaque ligne mène à sa section du guide. */
.modules {
  list-style: none; margin: 0 0 20px; padding: 6px 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-panel);
}
.module {
  display: grid; grid-template-columns: 2.2rem 1fr auto; gap: 14px; align-items: center;
  padding: 14px 18px;
}
.module + .module { border-top: 1px solid var(--line); }
.module-emoji { font-size: 1.5rem; text-align: center; }
.module-text { display: flex; flex-direction: column; }
.module-text span { color: var(--muted); font-size: .97rem; line-height: 1.45; }
.note { color: var(--muted); font-size: .97rem; }

.free p { font-size: 1.1rem; }
.steps ol { margin: 0; padding-left: 1.4em; }
.steps li { margin-bottom: .6em; padding-left: .2em; }

.bottom { border-top: 1px solid var(--line); padding: 24px 0 40px; color: var(--muted); }

@media (max-width: 420px) {
  body { font-size: 1rem; }
  .module { padding: 12px 14px; gap: 10px; grid-template-columns: 1.8rem 1fr auto; }
  .actions .button { width: 100%; justify-content: center; }
}

/* ── Panneau ─────────────────────────────────────────────────────────────── */
.account { display: flex; gap: 14px; align-items: center; color: var(--muted); font-size: .95rem; }
.link-button { background: none; border: 0; padding: 0; color: var(--brand); font: 700 1rem var(--text); cursor: pointer; }
.guilds { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.guild {
  display: flex; align-items: center; gap: 14px; width: 100%; padding: 12px 16px; min-height: 64px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-panel);
  color: var(--ink); font: 700 1.05rem var(--text); cursor: pointer; text-align: left;
}
.guild img, .guild-initial { width: 40px; height: 40px; border-radius: 50%; flex: none; }
.guild-initial { display: grid; place-items: center; background: var(--brand); color: #fff; font-family: var(--display); }
.guild-head { margin-bottom: 28px; }
.cards { display: grid; gap: 16px; margin-bottom: 64px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-panel); }
.card-head { display: grid; grid-template-columns: 2.2rem 1fr auto; gap: 12px; align-items: center; padding: 16px 18px; }
.card-head h2 { font-size: 1.2rem; margin: 0; }
.card-body { padding: 0 18px 18px; display: grid; gap: 14px; }
.card-body:empty, .card-body > :only-child.status:empty { display: none; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 700; }
.field.inline { display: flex; align-items: center; gap: 10px; }
.field.inline label { font-weight: 400; }
select, input[type="number"], textarea {
  width: 100%; min-height: 44px; padding: 8px 12px; font: 1rem var(--text); color: var(--ink);
  background: var(--bg); border: 1px solid var(--line); border-radius: 10px;
}
textarea { resize: vertical; }
input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--brand); }
.checks { display: grid; gap: 6px; max-height: 220px; overflow: auto; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; }
.check { display: flex; align-items: center; gap: 10px; }
.missing { margin: 0; padding: 10px 14px; list-style: none; border-radius: 10px; background: color-mix(in srgb, var(--danger) 10%, transparent); color: var(--ink); }
.card-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.status { margin: 0; min-height: 1.4em; color: var(--muted); }
.status.ok { color: var(--on); }
.status.error { color: var(--danger); }
.toggle {
  position: relative; width: 52px; height: 30px; border-radius: var(--radius-control); border: 0;
  background: var(--off); cursor: pointer; transition: background .2s ease;
}
.toggle::after {
  content: ""; position: absolute; top: 4px; left: 4px; width: 22px; height: 22px; border-radius: 50%;
  background: #fff; transition: transform .2s ease;
}
.toggle[aria-checked="true"] { background: var(--on); }
.toggle[aria-checked="true"]::after { transform: translateX(22px); }
.toggle:disabled { opacity: .6; }
@media (prefers-reduced-motion: reduce) { .toggle, .toggle::after { transition: none; } }

/* ── Confidentialité ─────────────────────────────────────────────────────── */
.prose section { margin-bottom: 40px; }
.prose ul { padding-left: 1.2em; margin: 0 0 1em; max-width: 62ch; }
.prose li { margin-bottom: .5em; }
.bottom p { margin-bottom: .4em; }

/* ── Assistant de la vitrine ─────────────────────────────────────────────── */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ask-form { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: start; }
.ask-form textarea { min-height: 52px; resize: vertical; background: var(--surface); }
.ask-form .button { min-height: 52px; justify-content: center; }
.ask-answer { margin-top: 16px; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-panel); }
.ask-answer p { margin: 0 0 .5em; }
.ask-answer p:last-child { margin-bottom: 0; }
.ask-answer.pending { color: var(--muted); }
.ask-answer.error { border-color: var(--danger); }
.ask-source { color: var(--muted); font-size: .92rem; }
@media (max-width: 420px) { .ask-form { grid-template-columns: 1fr; } }

/* ── Liens vers le guide + page Guide ────────────────────────────────────── */
.top-links { display: flex; gap: 18px; }
.module { grid-template-columns: 1fr; }
.module-link { display: grid; grid-template-columns: 2.2rem 1fr; gap: 14px; align-items: center; color: inherit; text-decoration: none; }
.module-link:hover strong { color: var(--brand); }
@media (max-width: 420px) { .module { grid-template-columns: 1fr; } .module-link { grid-template-columns: 1.8rem 1fr; gap: 10px; } }
.guide-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 48px; }
.guide-nav a {
  padding: 6px 12px; border: 1px solid var(--line); border-radius: var(--radius-control);
  background: var(--surface); color: var(--ink); text-decoration: none; font-size: .95rem;
}
.guide-nav a:hover { border-color: var(--brand); }
.guide-module { scroll-margin-top: 16px; padding-top: 8px; }
.guide-module h2 { display: flex; gap: 10px; align-items: baseline; }
.guide-module h3 { font: 700 1rem var(--text); margin: 0 0 .4em; }
.setup { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-panel); padding: 16px 18px; margin: 0 0 20px; }
.setup ol { margin: 0 0 1em; padding-left: 1.3em; }
.setup p { margin: 0; }
.commands { margin: 0; }
.commands dt { font-weight: 700; margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.commands dd { margin: 4px 0 0; color: var(--muted); max-width: 62ch; }
.access {
  font: 700 .78rem var(--text); padding: 2px 8px; border-radius: var(--radius-control);
  background: color-mix(in srgb, var(--brand) 14%, transparent); color: var(--brand);
}
