/* Site public JobsEvaluation — landing et connexion.
   Concept : une page claire et posée, avec un seul temps fort sombre (le hero) où l'on voit une pesée de poste en action. */
:root {
  --bg: #fbfafc;
  --surface: #ffffff;
  --sunken: #f2eff6;
  --line: #e4e0eb;
  --fg: #1d1727;
  --muted: #625a70;
  --brand: #602082;
  --brand-soft: #efe6f6;
  --accent: #e71963;
  --on-brand: #ffffff;
  /* Bandeau sombre (hero, appel à l'action) : identique dans les deux thèmes */
  --night: #22102f;
  --night-2: #2f1742;
  --night-fg: #f4eef9;
  --night-muted: #bfaed0;
  --night-line: #43295a;
  --ok: #1d7f55;
  --crit: #c22b3b;
  --crit-soft: #fbe6e8;
  --font-display: "Arvo", "Rockwell", Georgia, serif;
  --font-body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --font-data: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #14111a; --surface: #1d1925; --sunken: #241f2e; --line: #342d40;
    --fg: #eeeaf4; --muted: #a69eb4; --brand: #c39be6; --brand-soft: #2c2140; --accent: #ff5a92; --on-brand: #14111a;
    --night: #1a0c25; --night-2: #26133a; --night-line: #3d2652;
    --ok: #4cc28e; --crit: #ff6b78; --crit-soft: #3a1a1f;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #14111a; --surface: #1d1925; --sunken: #241f2e; --line: #342d40;
  --fg: #eeeaf4; --muted: #a69eb4; --brand: #c39be6; --brand-soft: #2c2140; --accent: #ff5a92; --on-brand: #14111a;
  --night: #1a0c25; --night-2: #26133a; --night-line: #3d2652;
  --ok: #4cc28e; --crit: #ff6b78; --crit-soft: #3a1a1f;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--font-body); font-size: 17px; line-height: 1.6; }
[hidden] { display: none !important; }
img { max-width: 100%; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.15; margin: 0; text-wrap: balance; letter-spacing: -.01em; }
p { margin: 0; }
a { color: var(--brand); }
button, input, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.eyebrow { font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.mono { font-family: var(--font-data); }

/* Logo typographique (reprend le logo : Jobs en violet, Evaluation en magenta) */
.wordmark { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; text-decoration: none; letter-spacing: -.01em; white-space: nowrap; }
.wordmark .j { color: var(--brand); }
.wordmark .e, .wordmark .c { color: var(--accent); }
.wordmark .c { font-size: .68em; }
.on-night .wordmark .j { color: #c9a3ec; }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 6px; font-weight: 700; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; white-space: nowrap; transition: transform .15s, background .15s; }
.btn:hover { transform: translateY(-1px); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: #cc1155; }
.btn-ghost { border-color: currentColor; color: inherit; background: transparent; }
.btn-brand { background: var(--brand); color: var(--on-brand); }

/* En-tête */
.site-head { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30; background: var(--night); color: var(--night-fg); border-bottom: 1px solid var(--night-line); }
.site-head .wrap { display: flex; align-items: center; gap: 28px; padding-block: 14px; }
.site-head nav { display: flex; gap: 24px; margin-left: auto; }
.site-head nav a { color: var(--night-muted); text-decoration: none; font-weight: 600; font-size: .95rem; }
.site-head nav a:hover { color: var(--night-fg); }
.site-head .btn { padding: 8px 16px; font-size: .92rem; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }

/* Pages légales */
.legal { padding-block: 56px 80px; }
.legal .wrap { max-width: 780px; }
.legal h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin-top: 12px; }
.legal .maj { color: var(--muted); margin-top: 10px; font-size: .95rem; }
.legal h2 { font-size: 1.25rem; margin-top: 44px; }
.legal p, .legal ul { margin-top: 12px; }
.legal ul { padding-left: 20px; display: grid; gap: 6px; }
.legal dl { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 8px 20px; margin: 14px 0 0; }
.legal dt { color: var(--muted); }
.legal dd { margin: 0; }
.legal .todo { background: var(--brand-soft); border-radius: 4px; padding: 1px 6px; font-size: .92em; color: var(--brand); }
.legal-foot { border-top: 1px solid var(--line); }
.legal-foot .wrap { padding-block: 28px; display: flex; gap: 20px; flex-wrap: wrap; justify-content: space-between; font-size: .92rem; color: var(--muted); }
.legal-foot a { color: var(--muted); }
@media (max-width: 560px) { .legal dl { grid-template-columns: minmax(0, 1fr); gap: 2px; } .legal dd { margin-bottom: 10px; } }
