:root {
  --bg: #000; --panel: #0b0b0d; --panel2: #111114; --line: #1f1f24; --line2: #2a2a31;
  --text: #fff; --soft: #c9c9d0; --dim: #8a8a93; --faint: #4a4a52;
  --accent: #f5c542; --live: #e5484d; --ok: #3ecf8e; --radius: 14px;
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { min-height: 100%; }
body { background: var(--bg); color: var(--text); font-family: var(--font); -webkit-font-smoothing: antialiased; line-height: 1.5; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font-family: inherit; cursor: pointer; border: none; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: #1a1a1f; color: var(--text);
  padding: 12px 18px; border-radius: 10px; font-size: 15px; font-weight: 700; border: 1px solid var(--line2); text-decoration: none !important; }
.btn:hover { background: #24242b; }
.btn.primary { background: var(--accent); color: #000; border-color: var(--accent); }
.btn.primary:hover { filter: brightness(1.08); }
.btn.big { font-size: 18px; padding: 16px 26px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

.brand { font-weight: 800; font-size: 20px; letter-spacing: .5px; color: var(--text); }
.brand span { color: var(--accent); }
.brand:hover { text-decoration: none; }

/* Pages simples (accueil, compte, connexion) */
.topnav { display: flex; align-items: center; gap: 16px; padding: 18px 24px; max-width: 1100px; margin: 0 auto; }
.topnav .spacer { flex: 1; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 440px; margin: 48px auto; padding: 0 16px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
h1 { font-size: 30px; line-height: 1.2; margin-bottom: 8px; }
h2 { font-size: 22px; margin-bottom: 12px; }
.muted { color: var(--dim); }
.small { font-size: 14px; }

form.stack { display: flex; flex-direction: column; gap: 14px; margin-top: 20px; }
label.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; color: var(--soft); }
input[type=text], input[type=email], input[type=password], input[type=search] {
  background: var(--panel2); border: 1px solid var(--line2); color: var(--text); padding: 13px 14px; border-radius: 10px; font-size: 16px; font-family: inherit; width: 100%; }
input:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
.error { color: #ff8589; font-size: 14px; min-height: 20px; }
.notice { padding: 14px 16px; border-radius: 10px; background: #17140a; border: 1px solid #3d3313; color: #f1dc9a; font-size: 15px; }
.notice.ok { background: #0b1a13; border-color: #1c4a33; color: #9be7c2; }
.notice.bad { background: #1b0b0c; border-color: #4a1c1e; color: #ffb3b5; }

.toast { position: fixed; bottom: 50px; left: 50%; transform: translateX(-50%); background: #1f1f25; border: 1px solid #333; padding: 12px 20px;
  border-radius: 10px; font-weight: 600; opacity: 0; transition: opacity .25s; pointer-events: none; z-index: 50; }
.toast.show { opacity: 1; }
