/* Site XDK Mod Menus : même style que l'appli de la PS5 (vert néon XDK), pensé d'abord pour le téléphone. */
:root {
  --fond: #040906; --surface: rgba(9, 17, 12, .88); --surface2: rgba(20, 33, 25, .94); --bord: rgba(61, 220, 120, .22);
  --texte: #e8f5ec; --gris: #9fb5a7; --vert: #16a34a; --vert-clair: #4ade80; --vert-fond: rgba(15, 48, 26, .94);
  --rouge: #f87171; --jaune: #fbbf24;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; color: var(--texte); font: 17px/1.5 "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  background: var(--fond) url(/fond.jpg) center / cover no-repeat fixed;
}
.cache { display: none !important; }
.invisible { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.entete {
  display: flex; align-items: center; gap: 14px; max-width: 980px; margin: 16px auto 0; padding: 14px 18px;
  background: var(--surface); border: 1px solid var(--bord); border-radius: 18px;
}
.entete .petit { margin-left: auto; }
.logo { width: 60px; height: 60px; border-radius: 16px; box-shadow: 0 0 0 2px rgba(46, 232, 111, .55), 0 0 22px rgba(46, 232, 111, .35); }
h1 { margin: 0; font-size: 26px; letter-spacing: .3px; }
h2 { margin: 0 0 12px; font-size: 21px; }
h3 { margin: 22px 0 10px; font-size: 18px; color: var(--vert-clair); }
.sous-titre { color: var(--gris); font-size: 15px; }
.sous-titre b { color: var(--vert-clair); }
main { max-width: 980px; margin: 0 auto; padding: 16px 12px 40px; }
main.etroit { max-width: 560px; }
.carte { background: var(--surface); border: 1px solid var(--bord); border-radius: 18px; padding: 18px; margin-top: 16px; }
.carte.discret { color: var(--gris); font-size: 15px; }
.carte.discret h2 { color: var(--texte); font-size: 18px; }
.carte.etroit { max-width: 520px; margin-left: auto; margin-right: auto; }
.etapes { padding-left: 22px; margin: 0 0 16px; }
.etapes li { margin-bottom: 6px; }
.formulaire { display: flex; flex-direction: column; gap: 10px; }
.formulaire label { font-weight: 600; }
input, button { font: inherit; color: inherit; }
input {
  width: 100%; padding: 13px 14px; border-radius: 12px; border: 2px solid var(--bord); background: rgba(0, 0, 0, .45);
}
#code { font-size: 26px; letter-spacing: 4px; text-transform: uppercase; text-align: center; font-weight: 700; }
input:focus { outline: none; border-color: var(--vert-clair); box-shadow: 0 0 0 4px rgba(74, 222, 128, .2); }
button, .bouton-fichiers {
  cursor: pointer; border-radius: 12px; border: 2px solid var(--bord); background: var(--surface2); padding: 12px 16px; font-weight: 600; text-align: center;
}
button:hover, button:focus, .bouton-fichiers:hover { outline: none; border-color: var(--vert-clair); }
button:disabled { opacity: .5; cursor: default; }
.principal { background: var(--vert); border-color: var(--vert); color: #fff; font-size: 18px; padding: 14px 18px; }
.petit { padding: 8px 12px; font-size: 14px; }
.danger { color: var(--rouge); border-color: #6b2020; }
.message { display: none; padding: 12px 14px; border-radius: 12px; margin-top: 12px; }
.message.ok { display: block; background: var(--vert-fond); color: var(--vert-clair); border: 1px solid #1d5c33; }
.message.erreur { display: block; background: rgba(59, 20, 20, .95); color: var(--rouge); border: 1px solid #6b2020; }
.puces { display: flex; flex-wrap: wrap; gap: 10px; }
.puce {
  text-align: left; padding: 10px 14px; border-radius: 14px; max-width: 100%;
}
.puce small { display: block; color: var(--gris); font-weight: 400; font-size: 13px; }
.puce.choisie { border-color: var(--vert-clair); background: var(--vert-fond); box-shadow: 0 0 0 3px rgba(74, 222, 128, .2); }
.liste { display: flex; flex-direction: column; gap: 10px; }
.menu { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--surface2); border: 1px solid var(--bord); }
.menu .infos { flex: 1; min-width: 0; }
.menu .nom { font-weight: 700; font-size: 18px; }
.menu .fichiers { color: var(--gris); font-size: 14px; word-break: break-all; }
.badge { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 9px; border-radius: 999px; margin-left: 6px; vertical-align: middle; }
.badge.ok { background: var(--vert); color: #fff; }
.badge.attente { background: #2b2109; color: var(--jaune); border: 1px solid #6b4f0f; }
.badge.xdk { background: #0b2a3b; color: #7dd3fc; border: 1px solid #1e4f6b; }
.badge.genre { background: #2a1240; color: #d8b4fe; border: 1px solid #5b2a86; }
.vide, .aide, .place { color: var(--gris); font-size: 15px; }
.types { display: flex; flex-wrap: wrap; gap: 10px; }
.type { flex: 1 1 160px; display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; border: 2px solid var(--bord); background: var(--surface2); cursor: pointer; }
.type input { width: auto; margin: 0; accent-color: var(--vert-clair); }
.type:has(input:checked) { border-color: var(--vert-clair); background: var(--vert-fond); }
.badge.source { background: #2b1d09; color: #fcd34d; border: 1px solid #6b4f0f; }
.menu .description { color: var(--gris); font-size: 14px; margin-top: 2px; }
.menu .description a { color: var(--vert-clair); }
.aide code { background: rgba(0, 0, 0, .4); padding: 1px 6px; border-radius: 6px; color: var(--texte); }
.choisis { list-style: none; padding: 0; margin: 0; font-size: 15px; }
.choisis li { padding: 6px 10px; border-radius: 8px; background: rgba(0, 0, 0, .3); margin-bottom: 4px; word-break: break-all; }
.progression { height: 12px; border-radius: 999px; background: rgba(0, 0, 0, .5); overflow: hidden; border: 1px solid var(--bord); }
.progression div { height: 100%; width: 0; background: linear-gradient(90deg, #22c55e, #2ee86f, #0fb9a0); transition: width .2s; }
.ligne { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.ligne input { flex: 1 1 160px; width: auto; }
.pied { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; padding: 10px 12px 30px; }
.lien { color: #fff; text-decoration: none; font-weight: 700; padding: 9px 16px; border-radius: 999px; border: 2px solid; background: rgba(0, 0, 0, .45); font-size: 15px; }
.lien.insta { border-color: #e1306c; }
.lien.github { border-color: #9aa4ae; }
@media (max-width: 520px) {
  .entete { margin: 10px 10px 0; padding: 12px; }
  .logo { width: 48px; height: 48px; }
  h1 { font-size: 21px; }
  .menu { flex-wrap: wrap; }
}
