:root {
  --bleu: #1d4ed8;
  --bleu-fonce: #1e3a8a;
  --fond: #f1f5f9;
  --texte: #0f172a;
  --gris: #64748b;
  --rouge: #dc2626;
  --carte: #ffffff;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: "Segoe UI", system-ui, sans-serif;
  background: var(--fond);
  color: var(--texte);
  line-height: 1.6;
}

header {
  background: var(--bleu-fonce);
  color: #fff;
  padding: 0 24px;
}

nav {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
  height: 60px;
}

nav .marque { font-weight: 700; font-size: 18px; margin-right: auto; }
nav a { color: #cbd5e1; text-decoration: none; font-size: 14px; }
nav a:hover { color: #fff; }

main {
  max-width: 960px;
  margin: 32px auto;
  padding: 0 24px;
}

h1 { font-size: 26px; margin-bottom: 8px; }
h2 { font-size: 20px; margin: 24px 0 12px; }
p.sous-titre { color: var(--gris); margin-bottom: 24px; }

.carte {
  background: var(--carte);
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 24px;
  margin-bottom: 20px;
}

label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }

input[type="text"], input[type="password"], textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 16px;
  font-family: inherit;
}

textarea { min-height: 90px; resize: vertical; }

button {
  background: var(--bleu);
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
}

button:hover { background: var(--bleu-fonce); }

.alerte {
  background: #fef2f2;
  color: var(--rouge);
  border: 1px solid #fecaca;
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: 14px;
}

.message {
  border-bottom: 1px solid #e2e8f0;
  padding: 12px 0;
}
.message:last-child { border-bottom: none; }
.message .auteur { font-weight: 600; font-size: 14px; }
.message .date { color: var(--gris); font-size: 12px; }

pre {
  background: #0f172a;
  color: #e2e8f0;
  padding: 16px;
  border-radius: 8px;
  overflow-x: auto;
  font-size: 13px;
}

.grille {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.vuln-tag {
  display: inline-block;
  background: #fef9c3;
  color: #854d0e;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 6px;
  margin-left: 8px;
}

footer {
  text-align: center;
  color: var(--gris);
  font-size: 13px;
  padding: 24px;
}
