/* ============================================================
   Thème Burger Times — noir + rouge (pages admin : connexion, dashboard…)
   À charger APRÈS style.css : il remplace les couleurs claires d'origine.
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Anton&family=Barlow+Condensed:wght@500;600;700&family=Outfit:wght@400;500;600;700&display=swap');

:root {
  --bt-bg: #0a0a0a; --bt-panel: #111111; --bt-card: #161616; --bt-card2: #1c1c1c;
  --bt-line: #2a2a2a; --bt-line-soft: #1f1f1f;
  --bt-red: #ee2b30; --bt-red-deep: #6e1d20; --bt-red-wash: #2b1515;
  --bt-text: #f4f0e9; --bt-muted: #8e8a84; --bt-green: #3ddc84; --bt-amber: #ffb74d;
  --f-display: 'Anton', 'Bebas Neue', Impact, sans-serif;
  --f-label: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --f-body: 'Outfit', system-ui, sans-serif;

  /* variables d'origine de style.css, redéfinies */
  --primary: var(--bt-red); --primary-light: #ff4a4f; --flame: var(--bt-red); --flame-light: #ff4a4f;
  --charcoal: var(--bt-bg); --surface: var(--bt-card); --surface2: var(--bt-card2);
  --border: var(--bt-line); --text: var(--bt-text); --text-muted: var(--bt-muted);
  --success: var(--bt-green); --warning: var(--bt-amber); --danger: #ff5a5f;
  --radius: 4px; --shadow: 0 4px 20px rgba(0,0,0,.5);
  --gradient: linear-gradient(135deg, #ee2b30 0%, #c4171c 100%);
}

html { color-scheme: dark; }
body { font-family: var(--f-body); background: var(--bt-bg); color: var(--bt-text); }
::-webkit-scrollbar-track { background: var(--bt-bg); }
::-webkit-scrollbar-thumb { background: #333; }
::selection { background: var(--bt-red); color: #fff; }

/* ── Menu latéral ── */
.sidebar { background: var(--bt-panel); border-right: 1px solid var(--bt-line); box-shadow: none; }
.sidebar-logo { background: var(--bt-bg); border-bottom: 2px solid var(--bt-red); padding: 22px 16px 16px; }
.sidebar-logo .wordmark, .m-logo .wordmark { font-family: var(--f-display); font-size: 26px; letter-spacing: 1.5px; line-height: 1; text-transform: uppercase; color: #fff; display: block; }
.wordmark span { color: var(--bt-red); }
.sidebar-logo .tagline { font: 600 10px var(--f-label); letter-spacing: 3px; color: var(--bt-muted); margin-top: 6px; text-transform: uppercase; }
.nav-label { font: 700 12px var(--f-label); letter-spacing: 3px; color: var(--bt-muted); padding: 14px 16px 6px; }
.nav-link { font: 600 16px var(--f-label); letter-spacing: 1.5px; text-transform: uppercase; color: #d9d4cc; padding: 11px 16px; border-left: 3px solid transparent; }
.nav-link:hover { background: var(--bt-card); color: #fff; border-left-color: var(--bt-red-deep); }
.nav-link.active { background: var(--bt-red-wash); color: #fff; border-left-color: var(--bt-red); font-weight: 700; }
.sidebar-footer { background: var(--bt-bg); border-top: 1px solid var(--bt-line); }
.user-avatar { background: var(--bt-red); color: #fff; border-radius: 3px; font-family: var(--f-display); }
.user-name { color: var(--bt-text); font-weight: 600; }
.user-role { color: var(--bt-muted); }
.btn-logout { background: transparent; border: 1px solid var(--bt-red); color: var(--bt-red); border-radius: 2px; font: 700 14px var(--f-label); letter-spacing: 2px; text-transform: uppercase; padding: 9px; }
.btn-logout:hover { background: var(--bt-red); color: #fff; }

/* ── En-tête de page ── */
.page-header { background: var(--bt-panel); border-bottom: 1px solid var(--bt-line); box-shadow: none; }
.page-header h2 { font-family: var(--f-display); font-weight: 400; font-size: 26px; letter-spacing: 1px; text-transform: uppercase; color: #fff; }
.page-header p { color: var(--bt-muted); font-size: 13px; }

/* ── Boutons ── */
.btn { white-space: nowrap; border-radius: 2px; font: 700 15px var(--f-label); letter-spacing: 2px; text-transform: uppercase; }
.btn-primary { background: var(--bt-red); color: #fff; box-shadow: none; }
.btn-primary:hover { background: #ff3a3f; opacity: 1; box-shadow: none; transform: none; }
.btn-secondary { background: transparent; color: var(--bt-text); border: 1px solid #3a3a3a; }
.btn-secondary:hover { background: var(--bt-card2); border-color: var(--bt-red); }
.btn-success { background: #1f8f55; }
.btn-danger { background: #b3262b; }

/* ── Cartes, formulaires, tableaux ── */
.card, .stat-card { background: var(--bt-card); border: 1px solid var(--bt-line); border-radius: 4px; box-shadow: none; }
.card-title { font: 700 18px var(--f-label); letter-spacing: 2px; text-transform: uppercase; color: #fff; }
.form-label { font: 600 13px var(--f-label); letter-spacing: 2px; color: var(--bt-muted); }
.form-control { background: var(--bt-bg); border: 1px solid #333; border-radius: 2px; color: var(--bt-text); font-family: var(--f-body); }
.form-control:focus { border-color: var(--bt-red); box-shadow: 0 0 0 2px rgba(238,43,48,.18); }
.form-control::placeholder { color: #5d5a55; }
.table-wrap { background: var(--bt-card); border: 1px solid var(--bt-line); border-radius: 4px; }
thead th { background: var(--bt-bg); color: var(--bt-muted); border-bottom: 1px solid var(--bt-red); font-family: var(--f-label); letter-spacing: 2px; }
tbody tr { border-bottom: 1px solid var(--bt-line-soft); }
tbody tr:hover { background: var(--bt-card2); }
.badge-success { background: rgba(61,220,132,.14); color: var(--bt-green); }
.badge-warning { background: rgba(255,183,77,.15); color: var(--bt-amber); }
.badge-danger { background: rgba(255,90,95,.15); color: #ff6b70; }
.badge-info { background: rgba(255,255,255,.08); color: #d9d4cc; }
.empty-state { color: var(--bt-muted); }

/* ── Fenêtres, messages ── */
.modal-overlay { background: rgba(0,0,0,.72); }
.modal { background: var(--bt-panel); border: 1px solid var(--bt-red); border-radius: 2px; box-shadow: 8px 8px 0 var(--bt-red); }
.modal-header { background: var(--bt-bg); border-bottom: 1px solid var(--bt-line); border-radius: 0; }
.modal-title { font-family: var(--f-display); font-weight: 400; letter-spacing: 1px; text-transform: uppercase; }
.modal-close { background: transparent; border: 1px solid var(--bt-line); border-radius: 2px; }
.modal-close:hover { background: var(--bt-red); }
.modal-body { background: var(--bt-panel); }
.modal-footer { background: var(--bt-bg); border-top: 1px solid var(--bt-line); border-radius: 0; }
.toast { background: var(--bt-card2); border: 1px solid var(--bt-line); border-radius: 2px; color: var(--bt-text); box-shadow: 0 6px 24px rgba(0,0,0,.6); }
.toggle-slider { background: #2a2a2a; border-color: #3a3a3a; }
.toggle-slider:before { background: #8e8a84; }
.loader { border-color: #2a2a2a; border-top-color: var(--bt-red); }

/* ── Mobile ── */
.mobile-header { background: var(--bt-bg); border-bottom: 2px solid var(--bt-red); box-shadow: none; }
.mobile-header .m-logo .wordmark { font-size: 22px; }
.hamburger { background: transparent; border: 1px solid #3a3a3a; border-radius: 2px; }
.sidebar-close-btn { background: transparent; border: 1px solid #3a3a3a; border-radius: 2px; }
.bottom-nav { background: var(--bt-panel); border-top: 1px solid var(--bt-line); box-shadow: none; }
.bn-item { color: var(--bt-muted); font-family: var(--f-label); letter-spacing: 1px; text-transform: uppercase; font-size: 12px; }
.bn-item.active, .bn-item:hover { color: var(--bt-red); }
.bn-item.active::before { background: var(--bt-red); }
@media (max-width: 1024px) { .sidebar.open { box-shadow: 4px 0 24px rgba(0,0,0,.7); } }
