/* KAPAW · espace admin (interface équipe) */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;700&family=Inter:wght@400;500;600&display=swap');

:root {
  --bg: #F5F4EF; --surface: #fff; --ink: #14140F; --ink-soft: #6B6A62;
  --line: #E3E0D6; --accent: #14140F; --accent-on: #D8FB45;
  --danger: #C0392B; --ok: #2E7D32; --radius: 14px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Inter', system-ui, sans-serif; background: var(--bg); color: var(--ink); line-height: 1.55; }
a { color: inherit; }

.topbar { background: var(--ink); color: #fff; }
.topbar .in { max-width: 1000px; margin: 0 auto; padding: 0 24px; height: 60px; display: flex; align-items: center; justify-content: space-between; }
.topbar .logo { font-family: 'Space Grotesk', sans-serif; font-weight: 700; letter-spacing: .06em; font-size: 18px; }
.topbar .logo span { color: var(--accent-on); }
.topbar nav { display: flex; align-items: center; gap: 6px; }
.topbar nav a { font-size: 14px; font-weight: 500; color: #cfceca; padding: 8px 14px; border-radius: 999px; }
.topbar nav a:hover { color: #fff; background: rgba(255,255,255,.08); }
.topbar nav a.active { color: var(--ink); background: var(--accent-on); }
.topbar nav a.out { color: #cfceca; }

.shell { max-width: 1000px; margin: 0 auto; padding: 36px 24px 80px; }
.pagehead { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.pagehead h1 { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 26px; letter-spacing: -.01em; }
.pagehead .sub { color: var(--ink-soft); font-size: 14px; margin-top: 2px; }

.btn { font-family: 'Inter', sans-serif; font-weight: 600; font-size: 14px; cursor: pointer; border: 1px solid var(--ink); background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 999px; display: inline-flex; align-items: center; gap: 8px; transition: opacity .15s; text-decoration: none; }
.btn:hover { opacity: .88; }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: #ECEAE2; opacity: 1; }
.btn.danger { background: #fff; color: var(--danger); border-color: #E3C4C0; }
.btn.danger:hover { background: var(--danger); color: #fff; }
.btn.sm { padding: 7px 13px; font-size: 13px; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.flash { padding: 13px 18px; border-radius: var(--radius); margin-bottom: 20px; font-size: 14px; font-weight: 500; }
.flash.ok { background: #E7F4E8; color: var(--ok); border: 1px solid #BfE0C2; }
.flash.err { background: #FBEAE8; color: var(--danger); border: 1px solid #EECfca; }

table.list { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
table.list th, table.list td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); font-size: 14px; vertical-align: middle; }
table.list th { background: #FAF9F5; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-soft); }
table.list tr:last-child td { border-bottom: 0; }
table.list td .ttl { font-weight: 600; }
.codecell { font-family: 'Space Grotesk', sans-serif; font-weight: 700; background: var(--accent-on); color: var(--ink); padding: 3px 9px; border-radius: 999px; font-size: 13px; }
.pill { font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; }
.pill.pub { background: #E7F4E8; color: var(--ok); }
.pill.draft { background: #EFEDE4; color: var(--ink-soft); }
.rowact { display: flex; gap: 8px; justify-content: flex-end; }

form.stack { display: grid; gap: 18px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 13px; font-weight: 600; }
.field .hint { font-size: 12px; color: var(--ink-soft); }
.field input[type=text], .field input[type=password], .field input[type=url], .field input[type=number], .field select, .field textarea {
  font-family: 'Inter', sans-serif; font-size: 15px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 10px; background: #fff; width: 100%; color: var(--ink);
}
.field textarea { min-height: 90px; resize: vertical; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--accent-on); border-color: var(--ink); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.row3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 18px; }
.section-title { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 18px; margin: 32px 0 6px; }
.muted { color: var(--ink-soft); font-size: 14px; }
.box { padding: 22px; }
.source-row { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; background: var(--surface); margin-bottom: 14px; }
.source-row .top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.source-row .top .lab { font-weight: 600; font-size: 14px; }
.formactions { display: flex; gap: 12px; align-items: center; margin-top: 6px; }

/* Login */
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.login-card { width: 100%; max-width: 380px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 34px 30px; }
.login-card .logo { font-family: 'Space Grotesk', sans-serif; font-weight: 700; letter-spacing: .06em; font-size: 22px; }
.login-card .logo b { color: #14140F; }
.login-card .tag { display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; background: var(--accent-on); padding: 3px 9px; border-radius: 999px; margin-left: 6px; }
.login-card h1 { font-size: 18px; margin: 22px 0 18px; }

@media (max-width: 640px) { .row2, .row3 { grid-template-columns: 1fr; } }
