/* Pages de test du moteur : mise en forme minimale, lisible sur téléphone. */

:root {
  --text: #1d1d1b;
  --background: #fbfaf7;
  --muted: #5f5e5a;
  --accent: #1f5c4a;
  --error: #a3261b;
  --border: #cfccc4;
}

@media (prefers-color-scheme: dark) {
  :root {
    --text: #ecebe6;
    --background: #1b1c1a;
    --muted: #a9a8a2;
    --accent: #7cc4a8;
    --error: #f08a7e;
    --border: #4a4a46;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font: 17px/1.5 system-ui, sans-serif;
  color: var(--text);
  background: var(--background);
}

main {
  max-width: 40rem;
  margin: 0 auto;
  padding: 1rem;
}

h1 {
  font-size: 1.5rem;
}

label {
  display: block;
  margin-bottom: 0.75rem;
}

input,
select,
button,
textarea {
  display: block;
  width: 100%;
  margin-top: 0.25rem;
  padding: 0.5rem;
  font: inherit;
  color: inherit;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 6px;
}

.row {
  display: flex;
  gap: 0.75rem;
}

.row label {
  flex: 1;
}

button {
  margin: 0.5rem 0 1rem;
  font-weight: 600;
  color: var(--background);
  background: var(--accent);
  border-color: var(--accent);
}

button:disabled {
  opacity: 0.5;
}

textarea {
  height: 16rem;
  font: 13px/1.4 monospace;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 0.25rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

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

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

.result {
  padding: 0.5rem 1rem;
  border-left: 4px solid var(--accent);
}
