/* Fontes embarquées (SIL OFL, voir fonts/) : l'affiche ne dépend d'aucun service. */
@font-face { font-family: "Outfit"; font-style: normal; font-weight: 200; font-display: block; src: url(fonts/outfit-latin-200-normal.woff2) format("woff2"); }
@font-face { font-family: "Outfit"; font-style: normal; font-weight: 300; font-display: block; src: url(fonts/outfit-latin-300-normal.woff2) format("woff2"); }
@font-face { font-family: "Outfit"; font-style: normal; font-weight: 400; font-display: block; src: url(fonts/outfit-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Outfit"; font-style: normal; font-weight: 500; font-display: block; src: url(fonts/outfit-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: block; src: url(fonts/ibm-plex-mono-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: block; src: url(fonts/ibm-plex-mono-latin-500-normal.woff2) format("woff2"); }

:root {
  --paper: #ffffff;
  --ink: #111111;
  --dim: #6b6b66;
  --mute: #9a9a94;
  --line: #e4e4df;
  --wall: #e8e7e2;
  --c: #00b5e2;
  --m: #e4007c;
  --y: #ffd100;
  --sans: "Outfit", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--wall); color: var(--ink); }
body { font: 15px/1.5 var(--sans); }
code { font: 0.92em var(--mono); }

/* ---- l'affiche à gauche, le panneau à droite ---- */
.app { display: grid; grid-template-columns: minmax(0, 1fr) 380px; height: 100vh; height: 100dvh; }
.stage { display: flex; align-items: center; justify-content: center; padding: 32px; min-width: 0; }
#poster {
  display: block;
  width: min(100%, calc((100vh - 64px) * 0.8));
  width: min(100%, calc((100dvh - 64px) * 0.8));
  height: auto;
  aspect-ratio: 4 / 5;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12), 0 30px 60px -24px rgba(0, 0, 0, 0.4);
}

.panel {
  background: var(--paper); border-left: 1px solid var(--line);
  padding: 36px 32px 28px; display: flex; flex-direction: column; gap: 26px;
  overflow-y: auto; min-width: 0;
}
.kicker { margin: 0; font: 500 12px var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); }
h1 { margin: 6px 0 0; font-weight: 300; font-size: 68px; line-height: 0.95; letter-spacing: -0.02em; }
.lede { margin: 12px 0 0; font-size: 17px; color: var(--dim); max-width: 30ch; }

#pick label, .opt > span { font: 500 12px var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); }
#pick label { display: block; margin-bottom: 8px; }
.row { display: flex; gap: 8px; }
.num { display: inline-flex; align-items: center; flex: 1 1 auto; min-width: 0; height: 42px; padding: 0 10px; border: 1px solid var(--ink); font: 18px var(--mono); }
.num input { width: 100%; min-width: 4ch; border: 0; outline: 0; padding-left: 4px; background: transparent; color: var(--ink); font: 18px var(--mono); }
.num:focus-within { box-shadow: 0 0 0 3px var(--y); }

button {
  height: 42px; padding: 0 16px; border: 1px solid var(--ink); background: var(--paper); color: var(--ink);
  font: 500 12px var(--mono); text-transform: uppercase; letter-spacing: 0.1em; cursor: pointer;
}
button:hover { box-shadow: 3px 3px 0 var(--m); }
button:focus-visible { outline: 3px solid var(--c); outline-offset: 2px; }
button.ink, button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
button:disabled { opacity: 0.55; cursor: progress; box-shadow: none; }

.opts { display: flex; flex-direction: column; gap: 10px; }
.opt { display: flex; align-items: center; gap: 8px; }
.opt > span { width: 5.5em; flex: none; }
.opt button { flex: 1; height: 36px; padding: 0 10px; }

.get { display: flex; flex-direction: column; gap: 8px; }
.big { width: 100%; height: 54px; font-size: 13px; }
.size { margin: 0; font: 12px var(--mono); color: var(--mute); }

.original { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 16px; align-items: center; margin: 0; padding-top: 22px; border-top: 1px solid var(--line); }
.original img { display: block; width: 96px; height: 96px; border: 1px solid var(--line); background: #fff; }
.original figcaption { font-size: 14px; color: var(--dim); }

.foot { margin-top: auto; font: 11px/1.6 var(--mono); color: var(--mute); }
.foot p { margin: 0; }
.foot a { color: var(--ink); text-decoration: none; border-bottom: 1px solid currentColor; }

@media (max-width: 860px) {
  .app { display: block; height: auto; }
  .stage { padding: 16px; }
  #poster { width: 100%; }
  .panel { border-left: 0; border-top: 1px solid var(--line); padding: 24px 16px 32px; overflow: visible; }
  h1 { font-size: 60px; }
}
@media (prefers-reduced-motion: reduce) {
  button:hover { box-shadow: none; }
}
