/* ===== Paname Prestige RP — Design Tokens ===== */
:root {
  --bg: #0b0b0f;
  --bg-2: #13131a;
  --panel: #16161d;
  --panel-2: #1c1c25;
  --border: #2a2a36;
  --border-2: #373746;
  --fg: #f5f5f7;
  --fg-dim: #a7a7b4;
  --muted: #6e6e7d;
  --primary: #e10613;       /* Rouge chaîne */
  --primary-2: #7d050b;
  --accent: #006fff;        /* Bleu studio */
  --accent-2: #59b0ff;
  --gold: #d9a441;
  --ok: #22c55e;
  --warn: #f59e0b;

  /* Rubrics */
  --rub-politique: #1d4ed8;
  --rub-economie: #047857;
  --rub-societe: #b45309;
  --rub-sport: #6d28d9;
  --rub-international: #0f766e;
  --rub-urgent: #e10613;

  --radius: 14px;
  --radius-sm: 8px;
}

/* ===== Reset ===== */
*,
*::before,
*::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--bg);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.font-display {
  font-family: "Oswald", "Inter", system-ui, sans-serif;
  letter-spacing: 0.02em;
}
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }

/* ===== Utility ===== */
.container { max-width: 1400px; margin: 0 auto; padding: 0 24px; }
.flex { display: flex; }
.grid { display: grid; }
.center { align-items: center; justify-content: center; }
.gap-2 { gap: 8px; } .gap-3 { gap: 12px; } .gap-4 { gap: 16px; } .gap-6 { gap: 24px; }
.hidden { display: none !important; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: var(--radius-sm);
  background: var(--panel-2); color: var(--fg);
  border: 1px solid var(--border);
  font-weight: 600; font-size: 14px;
  transition: transform .08s ease, background .15s ease, border-color .15s ease;
}
.btn:hover { background: #23232f; border-color: var(--border-2); }
.btn:active { transform: translateY(1px); }
.btn.primary {
  background: linear-gradient(120deg, var(--primary-2), var(--primary));
  border-color: transparent; color: #fff;
}
.btn.primary:hover { filter: brightness(1.1); }
.btn.accent {
  background: linear-gradient(120deg, #0a4fba, var(--accent));
  border-color: transparent; color: #fff;
}
.btn.ghost { background: transparent; border-color: transparent; color: var(--fg-dim); }
.btn.ghost:hover { color: var(--fg); background: rgba(255,255,255,.04); }
.btn.sm { padding: 6px 10px; font-size: 12px; }
.btn.danger { background: var(--primary); border-color: transparent; color: #fff; }
.btn.danger:hover { filter: brightness(1.1); }

/* ===== Cards ===== */
.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.card-body { padding: 20px; }

/* ===== Inputs ===== */
.input, .textarea, .select {
  width: 100%;
  background: var(--bg-2);
  color: var(--fg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 14px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.input:focus, .textarea:focus, .select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 111, 255, .15);
}
.textarea { resize: vertical; min-height: 90px; font-family: inherit; }
.label {
  display: block;
  font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--fg-dim); margin-bottom: 6px; font-weight: 600;
}

/* ===== Switch ===== */
.switch {
  position: relative; display: inline-block; width: 40px; height: 22px;
}
.switch input { display: none; }
.switch .slider {
  position: absolute; inset: 0;
  background: #30303d; border-radius: 999px;
  transition: background .2s ease;
}
.switch .slider::before {
  content: ""; position: absolute; top: 3px; left: 3px;
  width: 16px; height: 16px; background: #fff; border-radius: 50%;
  transition: transform .2s ease;
}
.switch input:checked + .slider { background: var(--accent); }
.switch input:checked + .slider::before { transform: translateX(18px); }

/* ===== Badges ===== */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  border: 1px solid var(--border);
}
.dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--primary);
  box-shadow: 0 0 0 0 rgba(225,6,19,.6);
  animation: pulse 1.6s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(225,6,19,.7); }
  70% { box-shadow: 0 0 0 10px rgba(225,6,19,0); }
  100% { box-shadow: 0 0 0 0 rgba(225,6,19,0); }
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #2a2a36; border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: #373746; }
::-webkit-scrollbar-track { background: transparent; }
