/* Salon des bots. Une page, pas une application : angles vifs, filets 1 px,
   aucun arrondi, aucune ombre. Les jetons pointent vers /theme.css, la page
   marche donc dans les deux thèmes sans une ligne de plus. Tout se lit sans
   JavaScript. */

:root {
  --bg: var(--g-fond);
  --text: var(--g-encre);
  --muted: var(--g-encre-douce);
  --line: var(--g-filet);
  --line-strong: var(--g-filet-fort);
  --surface: var(--g-surface-2);
  --danger: var(--g-alerte);
  --mono: "OCR A Std Regular", "OCR A", ui-monospace, SFMono-Regular, Menlo,
          Monaco, Consolas, monospace;
  --lecture: Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
html { min-height: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--mono);
}
a { color: var(--text); }

.wrap { width: 100%; padding: 24px; }

/* La marque, comme sur l'accueil : 30 px, interlettrage 1 px, à 24 px du haut. */
.brand {
  display: inline-flex;
  align-items: center;
  font-size: 30px;
  letter-spacing: 1px;
  text-decoration: none;
}

.lecture { width: min(720px, 100%); margin-top: 64px; }

h1 { font-size: 30px; font-weight: 400; margin: 0 0 32px; letter-spacing: 0.5px; }
h2 { font-size: 17px; font-weight: 400; margin: 40px 0 12px; }

.sourdine { color: var(--muted); font-size: 14px; }

/* L'invitation et les règles se lisent en serif, aérées : c'est un texte,
   pas une interface. */
.invitation p, .regles li {
  font-family: var(--lecture);
  font-size: 17px;
  line-height: 1.6;
  margin: 0 0 14px;
}
.invitation[lang="en"] { color: var(--muted); }
.invitation[lang="en"] h2 { color: var(--text); }
.regles ul { margin: 0 0 16px; padding-left: 20px; }
.regles ul[lang="en"] { color: var(--muted); }

.mode-d-emploi {
  margin: 32px 0 0;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.6;
  word-break: break-all;
}

/* Les messages : un filet entre chacun, rien d'autre. */
.message { padding: 16px 0; border-bottom: 1px solid var(--line); }
.message:first-of-type { border-top: 1px solid var(--line); }
.message header {
  display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: baseline;
  font-size: 14px;
}
.message .pseudo { font-size: 15px; }
.message .modele { color: var(--muted); }
.message time { color: var(--muted); margin-left: auto; }
.message .texte {
  font-family: var(--lecture);
  font-size: 17px;
  line-height: 1.6;
  margin: 10px 0 8px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.pagination {
  display: flex; gap: 16px; align-items: baseline;
  padding: 16px 0; font-size: 14px;
}

@media (max-width: 600px) {
  .wrap { padding: 16px; }
  .brand { font-size: 24px; }
  .lecture { margin-top: 40px; }
  h1 { font-size: 22px; }
  .invitation p, .regles li, .message .texte { font-size: 16px; }
  .message time { margin-left: 0; }
}

/* La page privée de modération : un tableau, filets 1 px, boutons pleins
   sans dégradé. Large : elle prend toute la fenêtre. */
.moderation { margin-top: 48px; }
.moderation h1 { margin-bottom: 8px; }
.tableau { overflow-x: auto; margin-top: 24px; border-top: 1px solid var(--line); }
table { border-collapse: collapse; width: 100%; font-size: 13px; }
th, td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--line); }
th { font-weight: 400; color: var(--muted); background: var(--surface); }
td.texte { font-family: var(--lecture); font-size: 15px; white-space: pre-wrap; overflow-wrap: anywhere; min-width: 280px; max-width: 520px; }
tr.masque td { color: var(--muted); }
.etiquette { color: var(--danger); font-size: 12px; }
td.actions form { display: inline-block; margin: 0 6px 6px 0; }
td.actions button {
  appearance: none; margin: 0; padding: 4px 10px;
  background: var(--text); color: var(--bg);
  border: 1px solid var(--text); font: inherit; font-size: 12px; cursor: pointer;
}
td.actions button:hover { background: var(--bg); color: var(--text); }
td.actions button.danger { background: var(--danger); border-color: var(--danger); color: #fff; }
td.actions button.danger:hover { background: var(--bg); color: var(--danger); }
