:root {
  --brand: #00757e; --brand-dark: #003b3f; --plane: #f2f6f6; --surface: #ffffff; --ink: #1c2b2d; --ink-2: #4f6163;
  --border: rgba(0, 59, 63, 0.12); --wash: rgba(0, 117, 126, 0.07); --danger: #c93a3a; --good: #1f7a3d;
  --ombre: 0 1px 2px rgba(0, 59, 63, 0.06), 0 8px 24px rgba(0, 59, 63, 0.06);
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: var(--plane); color: var(--ink); font: 14px/1.5 "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, sans-serif; }
button, input, textarea, select { font: inherit; color: inherit; }
h1 { font-size: 22px; margin: 0 0 4px; color: var(--brand-dark); }
.sous-titre { margin: 0 0 20px; color: var(--ink-2); }
.boite { max-width: 420px; margin: 8vh auto; background: var(--surface); border-radius: 12px; box-shadow: var(--ombre); padding: 28px; border-top: 4px solid var(--brand); }
.large { max-width: 1100px; margin: 32px auto; }
.onglets { display: flex; gap: 4px; margin-bottom: 16px; border-bottom: 1px solid var(--border); }
.onglets button { background: none; border: 0; padding: 8px 12px; cursor: pointer; color: var(--ink-2); border-bottom: 2px solid transparent; }
.onglets button[aria-selected="true"] { color: var(--brand); border-bottom-color: var(--brand); font-weight: 600; }
.panneau { display: flex; flex-direction: column; gap: 12px; }
.onglets[hidden], .panneau[hidden] { display: none; }
label { display: flex; flex-direction: column; gap: 4px; font-weight: 600; font-size: 13px; color: var(--ink-2); }
input, textarea { font-weight: 400; padding: 8px 10px; border: 1px solid var(--border); border-radius: 6px; background: #fff; }
input:focus, textarea:focus { outline: 2px solid var(--brand); outline-offset: -1px; }
.btn { padding: 8px 14px; border-radius: 6px; border: 1px solid var(--border); background: #fff; cursor: pointer; }
.btn:hover { background: var(--wash); }
.btn.primaire { background: var(--brand); color: #fff; border-color: var(--brand); font-weight: 600; }
.btn.primaire:hover { background: var(--brand-dark); }
.btn.danger { color: var(--danger); }
.btn:disabled { opacity: 0.6; cursor: wait; }
.aide { margin: 0; font-size: 12px; color: var(--ink-2); }
.message { padding: 10px 12px; border-radius: 6px; margin-bottom: 14px; background: var(--wash); }
.message.erreur { background: rgba(201, 58, 58, 0.1); color: var(--danger); }
.message.succes { background: rgba(31, 122, 61, 0.1); color: var(--good); }
.entete { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.entete a { color: var(--brand); }
.entete-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { text-align: left; padding: 8px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { color: var(--ink-2); font-weight: 600; }
td .actions { display: flex; gap: 6px; flex-wrap: wrap; }
.statut { display: inline-block; padding: 1px 8px; border-radius: 10px; font-size: 12px; background: var(--wash); }
.statut.en_attente { background: rgba(255, 192, 0, 0.2); }
.statut.actif { background: rgba(31, 122, 61, 0.12); color: var(--good); }
.statut.refuse, .statut.desactive { background: rgba(201, 58, 58, 0.1); color: var(--danger); }
.petit { color: var(--ink-2); font-size: 12px; }
code { background: var(--wash); padding: 2px 6px; border-radius: 4px; font-family: Consolas, monospace; user-select: all; }
.texte h2 { font-size: 17px; margin: 24px 0 6px; color: var(--brand-dark); }
.texte h3 { font-size: 14px; margin: 16px 0 4px; }
.texte p, .texte li { max-width: 88ch; }
.texte li { margin-bottom: 4px; }
mark { background: rgba(255, 192, 0, 0.35); color: inherit; padding: 0 4px; border-radius: 3px; }
.pied { margin-top: 20px; text-align: center; }
.pied a { color: var(--ink-2); }
.aide a { color: var(--brand); }
.lien { background: none; border: 0; padding: 0; color: var(--brand); cursor: pointer; text-decoration: underline; font-size: inherit; }
.barre[hidden], .vue[hidden] { display: none; }
.barre { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; margin-bottom: 14px; }
.barre label { min-width: 180px; }
select { font-weight: 400; padding: 8px 10px; border: 1px solid var(--border); border-radius: 6px; background: #fff; }
.cartes { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.stat { flex: 1 1 140px; padding: 10px 14px; background: var(--wash); border-radius: 8px; }
.stat strong { display: block; font-size: 20px; color: var(--brand-dark); }
.type { display: inline-block; padding: 1px 8px; border-radius: 10px; font-size: 12px; background: var(--wash); white-space: nowrap; }
.type.echec_connexion { background: rgba(201, 58, 58, 0.1); color: var(--danger); }
.type.question { background: rgba(0, 117, 126, 0.15); color: var(--brand-dark); }
.type.etude { background: rgba(255, 192, 0, 0.2); }
.question { white-space: pre-wrap; word-break: break-word; max-width: 60ch; }
