:root {
  --bg: #0c0e11;
  --surface: #14181f;
  --border: #2a313c;
  --text: #c8cdd5;
  --muted: #6b7380;
  --accent: #8b9aaf;
  --error: #a67b6b;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  background: radial-gradient(ellipse 120% 80% at 50% -20%, #1a2030 0%, var(--bg) 55%);
  color: var(--text);
  line-height: 1.45;
}

/* Portail (index) */
body.page-portail main {
  width: 100%;
  max-width: 22rem;
}

body.page-portail .brand {
  text-align: center;
  margin-bottom: 2.25rem;
}

body.page-portail .brand h1 {
  margin: 0;
  font-weight: 500;
  font-size: 1.35rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
}

body.page-portail .brand .year {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--muted);
}

body.page-portail .brand .tag {
  margin: 1rem 0 0;
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 400;
}

body.page-portail form {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 1.75rem 1.5rem;
  border-radius: 2px;
}

body.page-portail label {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

body.page-portail .field {
  margin-bottom: 1.1rem;
}

body.page-portail .field:last-of-type {
  margin-bottom: 1.35rem;
}

body.page-portail input[type="text"],
body.page-portail input[type="password"] {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 2px;
  background: var(--bg);
  color: var(--text);
  font-size: 0.95rem;
}

body.page-portail input:focus {
  outline: none;
  border-color: var(--accent);
}

body.page-portail button[type="submit"] {
  width: 100%;
  padding: 0.7rem;
  border: 1px solid var(--border);
  border-radius: 2px;
  background: #1e252f;
  color: var(--text);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

body.page-portail button[type="submit"]:hover {
  border-color: var(--accent);
  background: #232b38;
}

body.page-portail .feedback {
  min-height: 1.25rem;
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--error);
  text-align: center;
}

body.page-portail .feedback:empty {
  margin-top: 0;
  min-height: 0;
}

body.page-portail footer {
  margin-top: 3rem;
  font-size: 0.72rem;
  color: var(--muted);
  text-align: center;
  max-width: 20rem;
  line-height: 1.5;
}

/* Canal (page cachée) */
body.page-canal {
  line-height: 1.55;
}

body.page-canal main {
  width: 100%;
  max-width: 26rem;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 2rem 1.75rem;
  border-radius: 2px;
}

body.page-canal h1 {
  margin: 0 0 0.35rem;
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

body.page-canal .ref {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

body.page-canal p {
  margin: 0 0 1rem;
  font-size: 0.95rem;
}

body.page-canal p:last-child {
  margin-bottom: 0;
}

body.page-canal .sign {
  margin-top: 1.75rem;
  font-size: 0.8rem;
  color: var(--muted);
}
