/* ------------------------------------------------------------------
   Grade Perso - FunCube
   Tokens repris du site d'origine : fond #0f1114, header #000,
   carte #222736, Raleway 18px, police pixel az-minecraft.
   ------------------------------------------------------------------ */

@font-face {
  font-family: az-minecraft;
  src: url(/assets/fonts/az-minecraft.woff2) format("woff2"),
       url(/assets/fonts/az-minecraft.woff) format("woff"),
       url(/assets/fonts/az-minecraft.ttf) format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0f1114;
  --header-bg: #000;
  --card: #222736;
  --card-soft: #2a3042;
  --text: #fff;
  --muted: #9aa3b2;
  --accent: #e8c15a;
  --danger: #720606;
  --radius: 8px;
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  font-family: Raleway, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 18px;
  font-weight: 400;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

h1, h2, h3, h4, h5, h6 { margin: 0; padding: 0; font-weight: 600; }
p { margin: 0 0 .5em; padding: 0; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
strong { font-weight: 600; }

a { cursor: pointer; text-decoration: none; color: var(--text); }
a:hover { text-decoration: underline; }

img { border-style: none; max-width: 100%; }

/* ------------------------------------------------------------ layout */

.page {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-height: 100vh;
  margin-bottom: 24px;
}
.page > * { flex-shrink: 0; flex-basis: auto; max-width: 100%; }
.page > main { flex-grow: 1; }

.container {
  max-width: 1200px;
  margin: auto;
  padding: 0 16px;
}

.site-header {
  background: var(--header-bg);
  margin-bottom: 24px;
  box-shadow: 0 2px 4px -1px rgba(0,0,0,.1),
              0 4px 5px 0 rgba(0,0,0,.07),
              0 1px 10px 0 rgba(0,0,0,.06);
}
.site-header .bar {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0 24px;
}
.site-header .logo img { max-height: 60px; }

.header-status { text-align: center; }
@media screen and (max-width: 780px) {
  .header-status { display: none; }
}

/* ------------------------------------------------- page "non connecte" */

.notice {
  font-size: 1.125em;
  text-align: center;
}

/* Bandeau d'explication : le joueur arrive avec un lien qui n'ouvre pas de
   session. Distingue visuellement du texte d'accueil, sans dramatiser. */
.notice-warn {
  margin: 0 0 1.25em;
  padding: .75em 1em;
  border-left: 3px solid hsl(38, 92%, 55%);
  border-radius: .25em;
  background: hsla(38, 92%, 55%, .1);
  font-size: .9375em;
  text-align: left;
}

.cmd {
  display: inline-block;
  background: hsla(0, 0%, 100%, .1);
  padding: .125em .375em;
  border-radius: .25em;
  font-family: Consolas, Menlo, Monaco, "Liberation Mono",
               "DejaVu Sans Mono", "Courier New", monospace;
}

/* ------------------------------------------------------------- divers */

.card {
  background: var(--card);
  padding: 16px;
  border-radius: var(--radius);
  box-shadow: 0 3px 1px -2px rgba(0,0,0,.1),
              0 2px 2px 0 rgba(0,0,0,.07),
              0 1px 5px 0 rgba(0,0,0,.06);
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
