/* Mêmes couleurs que le reporting SEO (seo.nalios.be). */
:root {
  --teal: #009AA2;
  --teal-strong: #007981;
  --ink: #242D36;
  --ink-2: #4A5560;
  --ink-3: #66707C;
  --line: #E2E7EC;
  --surface: #FFFFFF;
  --surface-2: #F6F8FA;
  --tint: #ECF8F9;
  --good: #1F9D62;
  --good-bg: #E8F6EE;
  --bad: #D5443B;
  --bad-bg: #FCECEB;
  --warn-bg: #FFF4D6;
  --radius: 12px;
  color-scheme: light;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--surface-2); color: var(--ink); font: 400 14px/1.55 'Poppins', system-ui, sans-serif; }
a { color: var(--teal-strong); }
h1 { font-size: 22px; font-weight: 600; letter-spacing: -0.01em; margin: 0 0 4px; }
h1 a { color: inherit; }
h2 { font-size: 16px; font-weight: 600; margin: 0 0 12px; }
h2 a { color: inherit; text-decoration: none; }
h2 a:hover { color: var(--teal-strong); }
.mt { margin-top: 20px; }
.muted { color: var(--ink-3); }
.small { font-size: 12px; }

/* en-tête */
.topbar { background: var(--surface); border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 24px;
  padding: 0 24px; height: 60px; position: sticky; top: 0; z-index: 10; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 600; white-space: nowrap; }
.brand img { height: 24px; display: block; }
.topbar nav { display: flex; gap: 4px; flex: 1; overflow-x: auto; }
.topbar nav a, .langs a { text-decoration: none; color: var(--ink-2); padding: 8px 12px; border-radius: 8px; white-space: nowrap; font-weight: 500; }
.topbar nav a:hover, .langs a:hover { background: var(--surface-2); }
.topbar nav a.active, .langs a.active { color: var(--teal-strong); background: var(--tint); }
.langs { display: flex; gap: 2px; }
.langs a { padding: 6px 8px; font-size: 12px; }
.topbar .user { color: var(--ink-3); font-size: 13px; white-space: nowrap; }

main { max-width: 1240px; margin: 0 auto; padding: 24px; }
.eyebrow { color: var(--teal); font-size: 11px; font-weight: 600; letter-spacing: 0.25em; text-transform: uppercase; }
.page-head { margin-bottom: 16px; }
.page-head p { margin: 4px 0 0; max-width: 760px; }

/* messages */
.flash { padding: 10px 14px; border-radius: 10px; margin-bottom: 14px; border: 1px solid var(--line); background: var(--surface); }
.flash.ok { background: var(--good-bg); border-color: #BFE5CF; }
.flash.error { background: var(--bad-bg); border-color: #F2C4C0; color: #8E2A23; }
.flash.learn { background: var(--tint); border-color: #BFE3E6; }

/* filtres */
.filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 12px 16px; margin-bottom: 12px; }
.filters label { display: flex; flex-direction: column; font-size: 12px; color: var(--ink-3); gap: 4px; }
.filters label.grow { flex: 1; min-width: 180px; }
select, input, textarea { font: inherit; color: var(--ink); border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px;
  background: var(--surface); min-height: 36px; }
textarea { width: 100%; resize: vertical; line-height: 1.5; }
textarea:focus, input:focus, select:focus { outline: 2px solid var(--tint); border-color: var(--teal); }

.btn { font: inherit; font-weight: 500; border: 0; border-radius: 8px; padding: 8px 16px; min-height: 36px; background: var(--teal);
  color: #fff; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.btn:hover { background: var(--teal-strong); }
.btn.ghost { background: transparent; color: var(--teal-strong); border: 1px solid var(--line); }
.btn.ghost:hover { background: var(--tint); }
.small-btn { padding: 4px 10px; min-height: 28px; font-size: 12px; }

/* cartes */
.grid { display: grid; gap: 16px; }
.two { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); margin-bottom: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 16px; min-width: 0; }
.card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 8px; }
.card-head h2 { margin: 0; }
details.card summary { cursor: pointer; font-weight: 600; }

/* textes traduits */
table.texts { width: 100%; border-collapse: collapse; font-size: 13px; }
table.texts th { text-align: left; font-weight: 500; color: var(--ink-3); font-size: 12px; padding: 6px 8px; border-bottom: 1px solid var(--line); }
table.texts td { padding: 8px; border-bottom: 1px solid var(--surface-2); vertical-align: top; }
table.texts td.src { color: var(--ink-2); width: 42%; }
table.texts tr.corrected td { background: #FAFDFB; }
.lang-col { width: 44px; }
.act-col { width: 70px; }
.badge { display: inline-block; font-size: 11px; font-weight: 600; padding: 1px 7px; border-radius: 6px; background: var(--surface-2);
  color: var(--ink-2); border: 1px solid var(--line); }
.badge.lang-nl { background: #FFF3E0; border-color: #F6D9AE; color: #8A5300; }
.badge.lang-en { background: #E9F0FC; border-color: #C8D8F5; color: #234C91; }
.badge.lang-fr { background: var(--tint); border-color: #BFE3E6; color: var(--teal-strong); }
.tag-ok { color: var(--good); }

.text-box { background: var(--surface-2); border-radius: 8px; padding: 12px 14px; white-space: pre-wrap; }
.text-box.current { background: var(--tint); }
.feedback-form label { display: block; font-size: 13px; color: var(--ink-2); margin-bottom: 12px; }
.feedback-form textarea, .feedback-form select { margin-top: 4px; }
.actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }

.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { padding: 10px 0; border-bottom: 1px solid var(--surface-2); }
.timeline form { margin-top: 6px; }
.diff { margin-top: 4px; font-size: 13px; }
.diff del { color: var(--bad); background: var(--bad-bg); text-decoration: line-through; padding: 1px 4px; border-radius: 4px; margin-right: 6px; }
.diff ins { color: var(--good); background: var(--good-bg); text-decoration: none; padding: 1px 4px; border-radius: 4px; }
.reply { color: var(--ink-2); margin-top: 4px; }

.rules { list-style: none; padding: 0; margin: 0; }
.rules li { padding: 10px 0; border-bottom: 1px solid var(--surface-2); display: grid; grid-template-columns: auto 1fr auto; gap: 4px 10px; align-items: start; }
.rules li .small { grid-column: 2; }
.rules li form { grid-column: 3; grid-row: 1; }
.guidelines { white-space: pre-wrap; font: 12px/1.5 ui-monospace, monospace; color: var(--ink-2); margin: 12px 0 0; }
.activity p { margin: 6px 0 0; }

.pager { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; margin: 20px 0; }
.pager a { padding: 6px 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; }
.pager a.active { background: var(--teal); color: #fff; border-color: var(--teal); }

/* connexion */
.login { max-width: 400px; margin: 12vh auto; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 32px; }
.login img { height: 30px; margin-bottom: 24px; }
.login .btn.ms { width: 100%; justify-content: center; margin-top: 16px; }
.login p.muted { font-size: 13px; }
.langs-login { margin-top: 16px; text-align: center; }

@media (max-width: 760px) {
  .topbar { gap: 10px; padding: 0 12px; height: auto; flex-wrap: wrap; padding-bottom: 6px; }
  .brand span, .topbar .user { display: none; }
  main { padding: 16px; }
  .two { grid-template-columns: 1fr; }
  table.texts thead { display: none; }
  table.texts tr { display: grid; grid-template-columns: 44px 1fr auto; }
  table.texts td.src { grid-column: 2 / 4; width: auto; }
}
