/* Thème du deck INSA : fond bleu nuit, turquoise pour l'action et le « Juste ». */
@font-face { font-family: 'Inter Tight'; src: url('fonts/inter-tight-latin-wght-normal.woff2') format('woff2'); font-weight: 100 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter Tight'; src: url('fonts/inter-tight-latin-ext-wght-normal.woff2') format('woff2'); font-weight: 100 900; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2020, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter'; src: url('fonts/inter-latin-wght-normal.woff2') format('woff2'); font-weight: 100 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; src: url('fonts/inter-latin-ext-wght-normal.woff2') format('woff2'); font-weight: 100 900; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2020, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --bg: #121A38;
  --fg: #FFFFFF;
  --muted: #D4D3F1;
  --line: rgb(212 211 241 / .3);
  --action: #00D5D0;
  --on-accent: #121A38;
  --danger: #8F3237;
  --a: #FF816E;
  --b: #1DB8F2;
  --c: #FEB100;
  --d: #D4D3F1;
  --radius: 4px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'Inter', system-ui, sans-serif;
  font-variant-numeric: tabular-nums;
  -webkit-tap-highlight-color: transparent;
}
[hidden] { display: none !important; }

.title { font-family: 'Inter Tight', 'Inter', system-ui, sans-serif; font-weight: 800; letter-spacing: -.01em; line-height: 1.1; margin: 0; }
.mono { font-family: ui-monospace, 'Cascadia Mono', 'Liberation Mono', monospace; text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; color: var(--action); }
.muted { color: var(--muted); }

.go {
  display: inline-block; border: 0; border-radius: var(--radius); padding: .9rem 1.4rem;
  background: var(--action); color: var(--on-accent); font: inherit; font-weight: 800; cursor: pointer; text-align: center;
}
.go:disabled { opacity: .4; cursor: default; }
.go.secondary { background: transparent; color: var(--fg); border: 1px solid var(--muted); }
.go:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid var(--b); outline-offset: 2px; }

input.field {
  width: 100%; padding: .9rem; border-radius: var(--radius); border: 1px solid var(--muted);
  background: transparent; color: var(--fg); font: inherit; font-size: 1.2rem;
}
.error { color: #FF816E; min-height: 1.4em; }

/* Couleurs des réponses : lettre, forme et couleur, texte bleu nuit. */
.btn-a, .btn-b, .btn-c, .btn-d { color: var(--on-accent); border: 0; border-radius: var(--radius); font-weight: 800; }
.btn-a { background: var(--a); }
.btn-b { background: var(--b); }
.btn-c { background: var(--c); }
.btn-d { background: var(--d); }

/* Page élève */
.phone { min-height: 100dvh; display: flex; flex-direction: column; padding: 1rem; gap: 1rem; max-width: 560px; margin: 0 auto; }
.phone .top { display: flex; justify-content: space-between; color: var(--muted); border-bottom: 1px solid var(--line); padding-bottom: .5rem; font-size: .95rem; }
.phone .center { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; gap: .6rem; }
.answers { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.answers.two { grid-template-rows: 1fr; }
.answers button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .3rem; min-height: 30vh; cursor: pointer; }
.answers.two button { min-height: 60vh; }
.answers .shape { font-size: 2rem; }
.answers .letter { font-size: 3.5rem; font-family: 'Inter Tight', 'Inter', sans-serif; }
.verdict { position: fixed; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5rem; text-align: center; padding: 1rem; }
.verdict.ok { background: var(--action); color: var(--on-accent); }
.verdict.ko { background: var(--danger); color: #fff; }
.verdict .mark { font-size: 5rem; font-weight: 800; }
.big { font-size: 3rem; }
