/* Feuille unique, sans police ni image venue d'ailleurs. Clair et sombre selon le réglage du poste. */
:root {
  --fond: #f6f5f1; --carte: #ffffff; --texte: #1d1d1b; --doux: #5f5e58; --trait: #d9d6cc;
  --accent: #1f5f8b; --accent-texte: #ffffff; --bien: #1e6b3a; --mal: #a4281f; --attente: #7a5a00;
}
@media (prefers-color-scheme: dark) {
  :root {
    --fond: #161715; --carte: #20221f; --texte: #ecebe6; --doux: #a9a79e; --trait: #3a3c37;
    --accent: #7fb8e0; --accent-texte: #10202c; --bien: #7fd19a; --mal: #f09a90; --attente: #e3c26a;
  }
}
* { box-sizing: border-box; }
html { font-size: 17px; }
body { margin: 0; background: var(--fond); color: var(--texte); line-height: 1.5;
       font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
header { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; align-items: baseline; justify-content: space-between;
         padding: 1rem 1.25rem; border-bottom: 1px solid var(--trait); background: var(--carte); }
header h1 { margin: 0; font-size: 1.25rem; }
header div { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
main { max-width: 52rem; margin: 0 auto; padding: 1.25rem; }
h2 { font-size: 1.1rem; margin: 2rem 0 0.5rem; }
h3 { font-size: 1rem; margin: 1.25rem 0 0.25rem; }
a { color: var(--accent); }
[hidden] { display: none !important; }

button, .bouton { font: inherit; cursor: pointer; padding: 0.55rem 1rem; border-radius: 0.4rem; text-decoration: none;
                  border: 1px solid var(--accent); background: var(--accent); color: var(--accent-texte); display: inline-block; }
button:disabled { opacity: 0.55; cursor: progress; }
button.discret { background: transparent; color: var(--accent); }
button.source { padding: 0.05rem 0.5rem; margin: 0 0.15rem; font-size: 0.85rem; border-radius: 1rem;
                background: transparent; color: var(--accent); }
button:focus-visible, a:focus-visible, textarea:focus-visible, input:focus-visible, select:focus-visible {
  outline: 3px solid var(--accent); outline-offset: 2px; }

form { display: grid; gap: 0.5rem; margin: 1rem 0; }
label { font-weight: 600; }
textarea, input[type="text"], select, input[type="file"] { font: inherit; width: 100%; padding: 0.55rem; color: var(--texte);
  background: var(--carte); border: 1px solid var(--trait); border-radius: 0.4rem; }
form button { justify-self: start; }

.echange { background: var(--carte); border: 1px solid var(--trait); border-radius: 0.5rem; padding: 0.9rem 1rem; margin: 0 0 1rem; }
.echange p { margin: 0.4rem 0; }
.question { font-weight: 600; white-space: pre-wrap; overflow-wrap: anywhere; }
.reponse { white-space: pre-wrap; overflow-wrap: anywhere; }
.attente { color: var(--attente); }
.attente::before { content: "⏳ "; }
.refus, .alerte { color: var(--mal); }
p.reponse[role="status"] { color: var(--bien); }
.bandeau, .note { color: var(--doux); font-size: 0.85rem; }
.sources { font-size: 0.9rem; }
.signalement { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; margin-top: 0.5rem; }
.signalement input { flex: 1 1 14rem; width: auto; }

dialog { width: min(46rem, 94vw); max-height: 86vh; border: 1px solid var(--trait); border-radius: 0.5rem;
         background: var(--carte); color: var(--texte); padding: 1.25rem; }
dialog::backdrop { background: rgba(0, 0, 0, 0.45); }
dialog h2 { margin-top: 0; }
pre { white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; max-height: 55vh; overflow: auto;
      border: 1px solid var(--trait); border-radius: 0.4rem; padding: 0.75rem; }

table { width: 100%; border-collapse: collapse; font-size: 0.85rem; display: block; overflow-x: auto; }
th, td { text-align: left; padding: 0.3rem 0.5rem; border-bottom: 1px solid var(--trait); vertical-align: top; }
progress { width: 100%; height: 0.9rem; }
ul { padding-left: 1.1rem; }
