:root { --bleu:#3B4BFF; --marine:#0E0E1F; --ink:#151528; --muted:#5B5F75; --soft:#F3F4FA; --line:#E1E3EE; }
  * { box-sizing: border-box; }
  body { margin:0; font-family: "Outfit", "Segoe UI", system-ui, sans-serif; color:var(--ink); background:#fff; line-height:1.6; }
  a { color:var(--bleu); }
  .haut { background:var(--marine); color:#fff; display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:1rem; padding:1rem 1.5rem; }
  .haut a { color:#fff; text-decoration:none; margin-left:1rem; }
  .haut .marque { font-weight:700; font-size:1.2rem; margin:0; }
  .haut .bouton { background:var(--bleu); padding:.45rem .9rem; border-radius:4px; }
  .haut form { display:inline; }
  .haut button { background:none; border:0; color:#fff; cursor:pointer; font:inherit; margin-left:1rem; text-decoration:underline; }
  main { max-width:900px; margin:0 auto; padding:2rem 1.25rem 4rem; }
  h1 { font-size:1.9rem; margin:0 0 1.25rem; }
  table { width:100%; border-collapse:collapse; }
  th, td { text-align:left; padding:.8rem .6rem; border-bottom:1px solid var(--line); }
  th { color:var(--muted); font-weight:600; font-size:.9rem; }
  .meta { color:var(--muted); font-size:.92rem; }
  .carte { background:var(--soft); border-top:3px solid var(--bleu); padding:1.25rem; margin-bottom:1rem; }
  .carte header { display:flex; justify-content:space-between; gap:1rem; color:var(--muted); font-size:.92rem; margin-bottom:.5rem; }
  form.formulaire { display:grid; gap:1rem; max-width:560px; }
  label { display:grid; gap:.35rem; font-weight:500; }
  input, textarea { font:inherit; padding:.7rem .8rem; border:1px solid var(--line); border-radius:4px; width:100%; }
  textarea { min-height:140px; resize:vertical; }
  .btn { display:inline-block; background:var(--bleu); color:#fff; border:0; padding:.75rem 1.3rem; font:inherit; font-weight:600; border-radius:4px; cursor:pointer; text-decoration:none; justify-self:start; }
  .erreur { background:#FDECEC; color:#8A1C1C; padding:.8rem 1rem; border-left:3px solid #C0392B; }
  .info { background:var(--soft); padding:.8rem 1rem; border-left:3px solid var(--bleu); }
  @media (max-width:600px) { th:nth-child(3), td:nth-child(3) { display:none; } }
.forum .btn { display:inline-block; }
.forum .carte { margin-bottom:1rem; }
.forum .userbar { display:flex; justify-content:space-between; align-items:center; gap:1rem; flex-wrap:wrap; margin-bottom:1.5rem; color:var(--muted); }
.forum .userbar form { display:inline; }
.forum .userbar button { background:none; border:0; color:var(--blue); cursor:pointer; font:inherit; text-decoration:underline; padding:0; }
.onglets a { text-decoration:none; color:var(--muted); font-weight:600; }
.onglets a.actif { color:var(--bleu); }
.inline { display:inline; }
.btn-petit { background:var(--bleu); color:#fff; border:0; padding:.35rem .7rem; font:inherit; font-size:.88rem; border-radius:4px; cursor:pointer; margin:.2rem .2rem .2rem 0; }
.btn-petit:hover { filter:brightness(1.1); }
.btn-danger { background:#B42318; }
.badge { background:var(--bleu); color:#fff; font-size:.75rem; padding:.1rem .45rem; border-radius:3px; margin-left:.3rem; }
.acces-forum { display:flex; gap:.6rem; flex-wrap:wrap; }
.acces-forum .btn-petit { margin:0; padding:.55rem 1rem; font-size:.95rem; }
.btn-secondaire { background:transparent; color:var(--bleu); box-shadow: inset 0 0 0 1px var(--bleu); }


/* Formulaires : présentation d'origine du forum */
form.formulaire { display:grid; gap:1rem; max-width:560px; }
label { display:grid; gap:.35rem; font-weight:500; }
input, textarea { font:inherit; padding:.7rem .8rem; border:1px solid var(--line); border-radius:4px; width:100%; }
textarea { min-height:140px; resize:vertical; }
.formulaire label input[type="radio"] { width:auto; margin-right:.5rem; }
.formulaire label { font-weight:400; }

/* Connexion et inscription côte à côte sur la page d'accueil du forum */
.deux-formulaires { display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:1.5rem; align-items:start; margin:1.5rem 0 2.5rem; }
.deux-formulaires h2 { font-size:1.3rem; margin:0 0 1rem; }
.deux-formulaires .carte { min-width:0; margin:0; }
@media (max-width: 700px) { .deux-formulaires { grid-template-columns:1fr; } }

/* Chat en direct */
.chat-box { height:420px; overflow-y:auto; background:#fff; border:1px solid var(--line); border-radius:6px; padding:.8rem 1rem; }
.chat-ligne { padding:.45rem 0; border-bottom:1px solid var(--line); word-break:break-word; }
.chat-form { display:flex; gap:.6rem; margin-top:1rem; align-items:stretch; }
.chat-champ { flex:1; display:block; min-width:0; }
.chat-form input { font:inherit; padding:.7rem .8rem; border:1px solid var(--line); border-radius:6px; width:100%; }
.chat-form .btn { white-space:nowrap; }
.sr-only { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); }
@media (max-width: 600px) {
  .chat-box { height:340px; }
  .chat-form { flex-direction:column; }
  .chat-form .btn { width:100%; text-align:center; }
}
