/* public/css/forum.css */

:root{
  --bg:#0b0d10;
  --panel:#12161c;
  --panel2:#0f1318;
  --border:#242b35;
  --text:#e7edf5;
  --muted:#a9b5c3;
  --link:#7cc0ff;
  --good:#2e8b57;
  --warn:#caa300;
  --bad:#cc4b4b;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
  --radius: 14px;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, "Helvetica Neue", Arial;
  background: radial-gradient(1000px 600px at 10% 0%, rgba(124,192,255,.10), transparent 50%),
              radial-gradient(900px 600px at 90% 10%, rgba(46,139,87,.10), transparent 55%),
              var(--bg);
  color:var(--text);
}

a{ color:var(--link); text-decoration:none; }
a:hover{ text-decoration:underline; }

.container{
  width:min(1100px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 40px;
}

.topbar{
  background: linear-gradient(180deg, rgba(18,22,28,.9), rgba(18,22,28,.6));
  border-bottom:1px solid var(--border);
  position: sticky;
  top:0;
  z-index:10;
  backdrop-filter: blur(10px);
}

.navline{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding: 14px 0;
}

.brand{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:800;
  letter-spacing:.2px;
}
.brand .dot{
  width:10px; height:10px;
  border-radius:50%;
  background: var(--link);
  box-shadow: 0 0 0 6px rgba(124,192,255,.12);
}
.brand small{
  font-weight:600;
  color:var(--muted);
}

.navlinks{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:6px 10px;
  border:1px solid var(--border);
  border-radius:999px;
  background: rgba(255,255,255,.03);
  color: var(--muted);
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:9px 12px;
  border-radius: 11px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.04);
  color: var(--text);
  cursor:pointer;
  text-decoration:none !important;
  transition: transform .06s ease, background .15s ease, border-color .15s ease;
}
.btn:hover{
  background: rgba(255,255,255,.07);
  border-color: rgba(124,192,255,.35);
}
.btn:active{ transform: translateY(1px); }

.btn-primary{
  border-color: rgba(124,192,255,.40);
  background: rgba(124,192,255,.12);
}
.btn-good{
  border-color: rgba(46,139,87,.45);
  background: rgba(46,139,87,.12);
}
.btn-bad{
  border-color: rgba(204,75,75,.45);
  background: rgba(204,75,75,.12);
}

h1,h2,h3{ margin: 14px 0 10px; }
h1{ font-size: 1.7rem; }
h2{ font-size: 1.25rem; }
h3{ font-size: 1.05rem; }

.muted{ color: var(--muted); }

.card{
  background: linear-gradient(180deg, rgba(18,22,28,.92), rgba(15,19,24,.92));
  border:1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card.pad{ padding: 14px 16px; }

.list{
  display:flex;
  flex-direction:column;
  gap:12px;
}

.row{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
}
.row .left{ min-width:0; }
.row .right{ white-space:nowrap; color:var(--muted); font-size:.92rem; }

.pill{
  display:inline-flex;
  align-items:center;
  padding:2px 8px;
  border-radius:999px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.04);
  font-size:.78rem;
  color: var(--muted);
  letter-spacing:.15px;
}

.pill.new{ border-color: rgba(46,139,87,.55); color:#bfffd6; background: rgba(46,139,87,.12); }
.pill.lock{ border-color: rgba(202,163,0,.55); color:#fff1b8; background: rgba(202,163,0,.10); }
.pill.admin{ border-color: rgba(124,192,255,.55); color:#cfe8ff; background: rgba(124,192,255,.10); }

.kpis{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:8px;
}
.kpi{
  display:inline-flex;
  gap:6px;
  align-items:center;
  font-size:.88rem;
  color: var(--muted);
}

hr.sep{
  border:none;
  border-top:1px solid var(--border);
  margin:14px 0;
  opacity:.9;
}

.input, textarea{
  width:100%;
  padding:10px 12px;
  border-radius: 11px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.03);
  color: var(--text);
  outline:none;
}
textarea{ min-height: 120px; resize: vertical; }
.input:focus, textarea:focus{
  border-color: rgba(124,192,255,.55);
  box-shadow: 0 0 0 4px rgba(124,192,255,.12);
}

.formrow{ display:flex; flex-direction:column; gap:8px; margin:10px 0; }

.table{
  width:100%;
  border-collapse: collapse;
  overflow:hidden;
  border-radius: var(--radius);
  border:1px solid var(--border);
}
.table th, .table td{
  padding:10px 10px;
  border-bottom:1px solid var(--border);
  vertical-align:top;
}
.table th{
  text-align:left;
  color: var(--muted);
  font-weight:700;
  background: rgba(255,255,255,.03);
}
.table tr:hover td{ background: rgba(255,255,255,.02); }

.footer{
  margin-top: 22px;
  color: var(--muted);
  font-size: .9rem;
  text-align:center;
}

/* Hover plus doux sur les cards/lignes */
.card { transition: transform .08s ease, border-color .12s ease, background .12s ease; }
.card:hover { transform: translateY(-1px); border-color: rgba(13,202,240,.35); }

/* Liens de topic plus lisibles */
.topic-title a { font-weight: 650; letter-spacing: .2px; }
.topic-title a:hover { text-decoration: underline; }

/* Meta plus discrète */
.meta, .muted { opacity: .92; }

/* Boutons / liens action */
.crumb { transition: background .12s ease, border-color .12s ease; }
.crumb:hover { border-color: rgba(13,202,240,.35); }

