/* Pages d'accueil et tableau de bord : même charte que les maquettes de jeu (Virbac : bleu 004491, pêche FDB58C) */
:root {
  --blue: #004491; --blue-2: #2E6CB5; --peach: #FDB58C; --peach-d: #C9652E; --light: #F2F6FB; --line: #D5DFEC;
  --ink: #191F27; --dim: #5E6B7A; --white: #FFFFFF; --warn: #B4442B; --ok: #2F7D5B; --ok-bg: #DDF0E6;
  --font: "Noto Sans", "Segoe UI", Arial, Helvetica, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--white); color: var(--ink); font-family: var(--font); font-size: 15px; }
button, input, select { font-family: inherit; font-size: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible, a:focus-visible { outline: 3px solid var(--peach); outline-offset: 2px; }
header { background: var(--blue); color: var(--white); padding: 10px 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
header h1 { font-size: 18px; margin: 0; font-weight: 700; }
header .sub { font-size: 12px; color: var(--peach); }
.pills { display: flex; gap: 6px; flex-wrap: wrap; margin-left: auto; align-items: center; }
.pills button { background: transparent; color: var(--white); border: 1px solid rgba(255,255,255,.45); border-radius: 18px; padding: 5px 12px; font-size: 13px; }
.pills button[aria-pressed="true"] { background: var(--peach); color: var(--ink); border-color: var(--peach); font-weight: 700; }
main { padding: 20px; max-width: 1280px; margin: 0 auto; }
h2 { color: var(--blue); font-weight: 600; margin: 4px 0 14px; }
h3 { color: var(--blue); margin: 0 0 8px; font-size: 16px; }
.eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; color: var(--blue); }
.muted { color: var(--dim); } .small { font-size: 12px; }
.card { border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px; min-width: 0; margin-bottom: 16px; }
.card.narrow { max-width: 460px; margin: 30px auto; }
.lbl { display: block; font-weight: 700; color: var(--blue); margin: 14px 0 6px; font-size: 13px; text-transform: uppercase; letter-spacing: .4px; }
input.code { font-size: 34px; letter-spacing: 10px; text-transform: uppercase; width: 100%; padding: 8px 12px; border: 2px solid var(--line); border-radius: 8px; text-align: center; font-weight: 700; color: var(--blue); }
input.txt { width: 100%; padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; }
.teams { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.teambtn { border: 2px solid var(--line); background: var(--white); border-radius: 8px; padding: 14px 6px; font-weight: 700; color: var(--blue); font-size: 16px; }
.teambtn[aria-pressed="true"] { background: var(--blue); color: var(--white); border-color: var(--blue); }
.btn { display: inline-block; border: 1px solid var(--blue); background: var(--white); color: var(--blue); border-radius: 6px; padding: 7px 14px; font-weight: 700; font-size: 14px; text-decoration: none; }
.btn.primary { background: var(--blue); color: var(--white); }
.btn.danger { border-color: var(--warn); color: var(--warn); }
.btn.big { width: 100%; margin-top: 18px; padding: 12px; font-size: 17px; }
.btn:disabled { opacity: .45; cursor: default; }
.linkbtn { background: none; border: 0; color: var(--blue); text-decoration: underline; padding: 0; }
.notice { background: #FFF4EC; border: 1px solid #F4C9AE; border-radius: 8px; padding: 10px 12px; font-size: 14px; margin: 12px 0 0; }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.tile { border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; background: var(--light); opacity: .8; }
.tile.open { background: var(--white); border-color: var(--blue-2); opacity: 1; box-shadow: 0 2px 10px rgba(0,68,145,.08); }
.tile .row { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.tile p { min-height: 40px; }
.chip { display: inline-block; border-radius: 12px; padding: 2px 10px; font-size: 12px; font-weight: 700; background: #EEF2F7; color: var(--dim); white-space: nowrap; }
.chip.ok { background: var(--ok-bg); color: var(--ok); }
.chip.warn { background: #FBE3D6; color: var(--warn); }
table { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
th, td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
th { background: var(--light); font-size: 12px; text-transform: uppercase; letter-spacing: .4px; color: var(--blue); }
td.num, th.num { text-align: right; }
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.sessbtns { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.sessbtns button { border: 2px solid var(--line); background: var(--white); border-radius: 8px; padding: 10px 14px; font-weight: 700; color: var(--blue); }
.sessbtns button[aria-pressed="true"] { background: var(--blue); color: var(--white); border-color: var(--blue); }
.bigcode { font-size: 56px; letter-spacing: 14px; font-weight: 800; color: var(--blue); line-height: 1.1; }
.access { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; background: var(--light); border-radius: 10px; padding: 14px 18px; }
.access .url { font-size: 20px; font-weight: 700; word-break: break-all; }
.grid2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.confirm { display: none; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.confirm.on { display: flex; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #C7D2E0; margin-right: 6px; }
.dot.on { background: var(--ok); }
.toast { position: fixed; right: 18px; bottom: 18px; background: var(--ink); color: var(--white); padding: 10px 14px; border-radius: 8px; font-size: 13px; opacity: 0; transition: opacity .2s; pointer-events: none; }
.toast.on { opacity: .95; }
@media (max-width: 800px) { .tiles, .grid2 { grid-template-columns: minmax(0, 1fr); } .bigcode { font-size: 40px; } }
