@font-face { font-family: Inter; font-weight: 500; font-display: swap; src: url(fonts/inter-latin-500.woff2) format("woff2"); }
@font-face { font-family: Inter; font-weight: 800; font-display: swap; src: url(fonts/inter-latin-800.woff2) format("woff2"); }

:root {
  --nuit: #0B0718; --carte: #160C2E; --texte: #EDE9FF; --second: #A89FC8; --lilas: #C4B5FB;
  --trait: rgba(196, 181, 251, .14);
}
* { box-sizing: border-box; }
html { background: var(--nuit); color: var(--texte); font: 500 16px/1.55 Inter, system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
body { margin: 0; }
main { max-width: 960px; margin: 0 auto; padding: 72px 24px 48px; display: grid; gap: 40px; }

.sur { margin: 0 0 10px; color: var(--lilas); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
h1 { margin: 0; font-weight: 800; font-size: clamp(44px, 8vw, 80px); line-height: 1; letter-spacing: -.03em; }
.chapo { margin: 16px 0 0; max-width: 560px; color: var(--second); font-size: 18px; }

.scene { display: grid; gap: 14px; }
.onglets { display: flex; gap: 6px; flex-wrap: wrap; }
.onglets button { font: inherit; font-size: 14px; color: var(--second); background: transparent; border: 1px solid var(--trait); border-radius: 999px; padding: 7px 16px; cursor: pointer; }
.onglets button[aria-selected="true"] { color: var(--nuit); background: var(--lilas); border-color: var(--lilas); }
.onglets button:hover:not([aria-selected="true"]) { color: var(--texte); border-color: var(--second); }
.onglets .rejouer { margin-left: auto; }
.ecran { aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: var(--carte); border: 1px solid var(--trait); }
.ecran > * { display: block; width: 100%; height: 100%; object-fit: contain; }
.ecran [hidden] { display: none; }
.damier { background: repeating-conic-gradient(#1d1238 0 25%, #160C2E 0 50%) 0 0 / 24px 24px; display: grid; place-items: center; }
.damier img { width: 80%; height: auto; }
.specs { margin: 0; color: var(--second); font-size: 14px; }
code { font: 500 13px ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--texte); }
.pastille { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin: 0 5px 0 2px; vertical-align: -1px; }
.vert { background: #00FF00; } .bleu { background: #6050DC; }

a { color: inherit; text-decoration: none; }
.fleche { font-size: 22px; line-height: 1; }
.tout { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 26px; border-radius: 14px; background: linear-gradient(100deg, #8B4DE8, #F0568F); color: #fff; transition: transform .2s; }
.tout:hover { transform: translateY(-2px); }
.tout strong { display: block; font-weight: 800; font-size: 20px; }
.tout small { color: rgba(255,255,255,.85); font-size: 14px; }

.fichiers { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); gap: 10px; }
.fichiers a { display: flex; align-items: center; gap: 16px; height: 100%; padding: 18px 20px; border-radius: 12px; background: var(--carte); border: 1px solid var(--trait); transition: border-color .2s; }
.fichiers a:hover { border-color: var(--lilas); }
.fichiers a:hover .fleche { color: var(--lilas); }
.type { flex: none; width: 48px; font-size: 12px; font-weight: 800; letter-spacing: .06em; color: var(--lilas); }
.nom { flex: 1; }
.nom strong { display: block; font-weight: 800; }
.nom small { color: var(--second); font-size: 14px; }
.fichiers .fleche { color: var(--second); }

h2 { margin: 0 0 12px; font-weight: 800; font-size: 22px; letter-spacing: -.01em; }
.conseils ul { margin: 0; padding-left: 20px; color: var(--second); display: grid; gap: 6px; }
.conseils strong { color: var(--texte); }

.coulisses { border-top: 1px solid var(--trait); padding-top: 24px; }
.coulisses summary { cursor: pointer; font-weight: 800; font-size: 18px; }
.coulisses figure { margin: 20px 0 0; }
.coulisses img { width: 100%; border-radius: 12px; display: block; }
.coulisses figcaption { margin-top: 8px; color: var(--second); font-size: 14px; }

footer { color: var(--second); font-size: 13px; opacity: .7; }

@media (max-width: 480px) {
  main { padding-top: 48px; }
  .fichiers { grid-template-columns: 1fr; }
  .onglets .rejouer { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) { .tout { transition: none; } }
