/* SpinASoft — jetons et composants de la charte */

:root {
  --bg: #0F0F11;
  --surface: #17171A;
  --surface-2: #1E1E22;
  --surface-3: #26262B;
  --border: #2B2B31;
  --text: #EDEDED;
  --text-2: #A1A1A8;
  --red-1: #FF4A4A;
  --red-2: #9B0F1C;
  --accent: linear-gradient(135deg, #FF4A4A, #9B0F1C);
  --accent-btn: linear-gradient(135deg, #E0272F, #9B0F1C);
  --accent-deep: linear-gradient(135deg, #E0272F, #5E0710);
  --radius: 10px;
  --radius-lg: 12px;
  --shadow: 0 6px 20px rgba(0, 0, 0, .45);
  --t: 180ms cubic-bezier(.3, .7, .3, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
  font-weight: 400;
  font-synthesis: none;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

button, .btn {
  font: inherit;
  font-weight: 600;
  border: none;
  border-radius: var(--radius);
  padding: 0.6rem 1.2rem;
  cursor: pointer;
  transition: box-shadow var(--t), border-color var(--t), color var(--t), background var(--t);
}

a.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent-btn);
  color: white;
  box-shadow: 0 0 0 0 transparent;
}
.btn-primary:hover { box-shadow: 0 0 12px color-mix(in srgb, var(--red-1) 45%, transparent); }
a.btn-primary:hover { color: white; }

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-secondary:hover { border-color: var(--red-1); color: var(--red-1); }

.btn:disabled,
button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}

:focus-visible {
  outline: 2px solid var(--red-1);
  outline-offset: 2px;
}

::selection {
  background: var(--red-2);
  color: white;
}
