:root {
  --bg: #08070c;
  --t: #f7f4fa;
  --m: #a8a3b3;
  --gl: rgba(255, 255, 255, 0.055);
  --gb: rgba(255, 255, 255, 0.1);
  --pn: rgba(20, 18, 27, 0.78);
  --ok: #4ade80;
  --wa: #fbbf24;
  --er: #f87171;
  --ac: #ff2e93;
  --ac2: #8b5cf6;
}
* {
  box-sizing: border-box;
  margin: 0;
}
html,
body {
  height: 100%;
  background: var(--bg);
  overflow: hidden;
}
body {
  font:
    14px/1.45 "Segoe UI",
    "DM Sans",
    system-ui,
    sans-serif;
  color: var(--t);
  -webkit-font-smoothing: antialiased;
}
h1,
h2,
h3 {
  font-family: "Bricolage Grotesque", "Segoe UI", sans-serif;
  letter-spacing: -0.02em;
}
.app {
  height: 100vh;
  position: relative;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(900px 480px at 85% -8%, color-mix(in srgb, var(--ac) 22%, transparent), transparent 60%),
    radial-gradient(700px 420px at -5% 105%, color-mix(in srgb, var(--ac2) 20%, transparent), transparent 60%), var(--bg);
  transition: background 0.4s;
}
.top {
  height: 74px;
  display: flex;
  align-items: center;
  gap: 20px;
  /* à droite : la place des boutons de Windows (réduire, agrandir, fermer) */
  padding: 0 max(36px, calc(100vw - env(titlebar-area-x, 0px) - env(titlebar-area-width, 100vw) + 12px)) 0 36px;
  -webkit-app-region: drag; /* la barre déplace la fenêtre ; double-clic = agrandir */
  flex: none;
  position: relative;
  z-index: 5;
}
.top .nv,
.top .rt,
.top .pill,
.top a,
.top button {
  -webkit-app-region: no-drag;
}
.lg {
  display: flex;
  align-items: center;
  gap: 12px;
  font:
    800 21px "Bricolage Grotesque",
    sans-serif;
  white-space: nowrap;
}
.lg img {
  width: 34px;
  height: 34px;
  border-radius: 10px;
}
.lg em {
  font: 600 11px "Segoe UI";
  font-style: normal;
  color: var(--ac);
  border: 1px solid color-mix(in srgb, var(--ac) 50%, transparent);
  border-radius: 99px;
  padding: 2px 9px;
}
.nv {
  margin: 0 auto;
  display: flex;
  gap: 4px;
  background: rgba(20, 18, 27, 0.62);
  backdrop-filter: blur(18px);
  border: 1px solid var(--gb);
  border-radius: 99px;
  padding: 5px;
  position: relative;
}
.nv a {
  position: relative;
  z-index: 1;
  padding: 9px 22px;
  border-radius: 99px;
  color: var(--m);
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.2s;
}
.nv a.on {
  color: #111;
}
.nv .ind {
  position: absolute;
  top: 5px;
  bottom: 5px;
  left: 0;
  width: 80px;
  border-radius: 99px;
  background: var(--t);
  transition:
    left 0.38s cubic-bezier(0.3, 1.2, 0.4, 1),
    width 0.38s cubic-bezier(0.3, 1.2, 0.4, 1);
}
.rt {
  display: flex;
  gap: 10px;
}
.top .gf-lang {
  -webkit-app-region: no-drag;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 16px;
  border-radius: 99px;
  background: rgba(20, 18, 27, 0.62);
  border: 1px solid var(--gb);
  font-weight: 500;
  white-space: nowrap;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 10px var(--ok);
}
.dot.wa {
  background: var(--wa);
  box-shadow: 0 0 10px var(--wa);
}
.dot.er {
  background: var(--er);
  box-shadow: 0 0 10px var(--er);
}
main {
  flex: 1;
  min-height: 0;
  position: relative;
  overflow: hidden;
}
.view {
  position: absolute;
  inset: 0;
  padding: 6px 36px 28px;
  overflow: auto;
  animation: in 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 46px;
  padding: 0 24px;
  border-radius: 99px;
  font: 700 14px "Segoe UI";
  cursor: pointer;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  white-space: nowrap;
  transition:
    transform 0.2s,
    filter 0.2s;
}
.btn:hover {
  filter: brightness(1.14);
  transform: translateY(-2px);
}
.btn:active {
  transform: scale(0.97);
}
.btn.pr {
  background: linear-gradient(110deg, var(--ac), var(--ac2));
  border: 0;
  box-shadow: 0 10px 36px color-mix(in srgb, var(--ac) 45%, transparent);
}
.btn.sm {
  height: 36px;
  padding: 0 16px;
  font-size: 13px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 12px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.1);
  font-size: 12.5px;
  font-weight: 500;
  white-space: nowrap;
}
.chip.ac {
  background: color-mix(in srgb, var(--ac) 22%, transparent);
  color: color-mix(in srgb, var(--ac) 70%, #fff);
}
.chip.ok {
  background: rgba(74, 222, 128, 0.15);
  color: var(--ok);
}
.chip.wa {
  background: rgba(251, 191, 36, 0.15);
  color: var(--wa);
}
.chip.er {
  background: rgba(248, 113, 113, 0.16);
  color: var(--er);
}
.glass {
  background: var(--pn);
  backdrop-filter: blur(26px);
  border: 1px solid var(--gb);
  border-radius: 26px;
}
.eb {
  font: 700 11.5px "Segoe UI";
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ac);
}
/* accueil */
.hero {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--gb);
  height: 250px;
  background: #0d0c12;
  margin-bottom: 20px;
  isolation: isolate;
}
/* fond : la même image, floutée et assombrie, pour remplir toute la largeur sans étirer ni découper l'image */
.hero:before {
  content: "";
  position: absolute;
  inset: -40px;
  z-index: -2;
  background: var(--art) center / cover;
  filter: blur(34px) brightness(0.5) saturate(1.3);
}
/* l'image elle-même, nette et entière (16/9), à droite, qui se fond dans le fond vers la gauche */
.hero:after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(62%, 444px);
  z-index: -1;
  background: var(--art) center / cover;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 38%);
  mask-image: linear-gradient(90deg, transparent 0, #000 38%);
}
.hero > div {
  position: relative;
  padding: 28px 34px;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.hero h1 {
  text-shadow: 0 2px 18px rgba(8, 7, 12, 0.7);
  font:
    800 44px/1 "Bricolage Grotesque",
    sans-serif;
  margin: 10px 0 8px;
  max-width: 640px;
}
.hero p {
  color: #d9d3df;
  max-width: 520px;
  margin-bottom: auto;
}
.hero .row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.fl {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.fl .chip {
  cursor: pointer;
  height: 34px;
  padding: 0 16px;
  font-size: 13px;
  transition: 0.2s;
}
.fl .chip.on {
  background: var(--t);
  color: #111;
  font-weight: 700;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}
.gc {
  border-radius: 20px;
  overflow: hidden;
  background: var(--gl);
  border: 1px solid var(--gb);
  border-top: 3px solid var(--c);
  cursor: pointer;
  transition:
    transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.25s,
    border-color 0.25s;
  animation: pop 0.5s both;
  animation-delay: calc(var(--i, 0) * 40ms);
}
@keyframes pop {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.97);
  }
}
.gc:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 44px color-mix(in srgb, var(--c) 30%, transparent);
  border-color: var(--c);
}
.gc .im {
  height: 130px;
  background: #16131c var(--art) center/cover;
  position: relative;
  transition: background-size 0.5s;
}
.gc .im .chip {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(0, 0, 0, 0.6);
}
.gc .bd {
  padding: 12px 14px 14px;
}
.gc b {
  font:
    700 15px "Bricolage Grotesque",
    sans-serif;
  display: block;
}
.gc small {
  color: var(--m);
}
.gc.soon {
  border-style: dashed;
  border-top-style: dashed;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--m);
  background: transparent;
  min-height: 210px;
  cursor: default;
  --c: rgba(255, 255, 255, 0.2);
}
.gc.soon:hover {
  transform: none;
  box-shadow: none;
}
.gc.soon .pl {
  font: 800 38px "Bricolage Grotesque";
  color: var(--t);
}
/* page jeu */
.gh {
  position: relative;
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid var(--gb);
  height: 150px;
  background: #0d0c12;
  margin-bottom: 14px;
  flex: none;
  isolation: isolate;
}
/* fond flou de la couverture (jamais étirée ni découpée) ; la couverture nette est la vignette à gauche du titre */
.gh:before {
  content: "";
  position: absolute;
  inset: -40px;
  z-index: -2;
  background: var(--art) center / cover;
  filter: blur(30px) brightness(0.5) saturate(1.3);
}
.gh > div {
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: 18px;
  padding: 20px 26px;
  height: 100%;
}
.gh .lgo {
  width: 84px;
  height: 84px;
  border-radius: 20px;
  border: 1px solid var(--gb);
  background: var(--art) center/cover;
}
.gh h1 {
  text-shadow: 0 2px 16px rgba(8, 7, 12, 0.7);
  font:
    800 32px/1 "Bricolage Grotesque",
    sans-serif;
  margin: 6px 0 6px;
}
.gp {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
.work {
  flex: 1 0 auto;
  min-height: 520px;
  display: grid;
  grid-template-columns: 1fr 360px;
  overflow: hidden;
  padding: 0;
}
/* Installation / Guide / Journal : le cadre prend la hauteur de son contenu et la page défile */
.work.flow {
  overflow: visible;
  min-height: 0;
}
.work.flow .lf {
  min-height: auto;
}
.work.flow .list {
  flex: none;
  overflow: visible;
}
/* Studio : le cadre remplit au moins la fenêtre ; le Studio défile à l'intérieur, la page défile pour y arriver */
.work.studio {
  min-height: calc(100vh - 130px);
}
.lf {
  padding: 16px 22px;
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
}
.ins {
  border-left: 1px solid var(--gb);
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: rgba(255, 255, 255, 0.025);
  overflow: auto;
}
.sub {
  display: flex;
  gap: 26px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--gb);
  flex: none;
}
.sub a {
  font:
    700 16px "Bricolage Grotesque",
    sans-serif;
  color: var(--m);
  padding: 6px 0 12px;
  position: relative;
  cursor: pointer;
}
.sub a.on {
  color: #fff;
}
.sub a.on:after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--ac), var(--ac2));
}
.sub sup {
  color: var(--ac);
  font: 700 12px "Segoe UI";
  margin-left: 4px;
}
.q {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--m);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--gb);
  border-radius: 99px;
  height: 34px;
  padding: 0 14px;
  width: 230px;
}
.q input {
  background: none;
  border: 0;
  outline: 0;
  color: var(--t);
  font: inherit;
  width: 100%;
}
.list {
  flex: 1;
  min-height: 0;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 2px 4px 24px 2px;
}
.ar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 16px;
  background: var(--gl);
  border: 1px solid var(--gb);
  cursor: pointer;
  transition:
    border-color 0.2s,
    background 0.2s;
  flex: none;
  animation: pop 0.45s both;
  animation-delay: calc(var(--i, 0) * 25ms);
}
.ar:hover {
  border-color: color-mix(in srgb, var(--ac) 60%, transparent);
}
.ar.sel {
  border-color: var(--ac);
  background: color-mix(in srgb, var(--ac) 10%, transparent);
}
.ar.off {
  opacity: 0.55;
}
.ar.soon {
  opacity: 0.6;
}
.ar.soon .mb {
  display: none;
}
.ar b {
  font-weight: 600;
  flex: 1;
}
.ar small {
  color: var(--m);
  display: block;
  font-weight: 400;
  font-size: 12px;
}
.val {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 4px 0 12px;
  border-radius: 99px;
  border: 1px solid var(--gb);
  background: rgba(0, 0, 0, 0.25);
  color: var(--m);
  font-size: 11.5px;
  white-space: nowrap;
}
.vin {
  width: 78px;
  height: 22px;
  border: 0;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--t);
  font: 700 12.5px "Segoe UI";
  text-align: center;
  outline: 0;
}
.vin:focus {
  box-shadow: 0 0 0 2px var(--ac);
}
.vin.big {
  width: 140px;
  height: 40px;
  font-size: 18px;
  border-radius: 14px;
}
.mb {
  height: 30px;
  padding: 0 12px;
  border-radius: 99px;
  border: 1px solid var(--gb);
  background: rgba(255, 255, 255, 0.06);
  font: 600 12px "Segoe UI";
  color: #fff;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}
.mb:hover {
  background: rgba(255, 255, 255, 0.16);
}
.mb.okk {
  background: rgba(74, 222, 128, 0.22);
  color: var(--ok);
}
.sw {
  width: 38px;
  height: 22px;
  border-radius: 99px;
  background: var(--ac);
  position: relative;
  flex: none;
  cursor: pointer;
  transition: background 0.25s;
}
.sw:after {
  content: "";
  position: absolute;
  right: 3px;
  top: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  transition:
    right 0.25s,
    left 0.25s;
}
.sw.off {
  background: rgba(255, 255, 255, 0.16);
}
.sw.off:after {
  right: auto;
  left: 3px;
}
.url {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--gb);
  border-radius: 14px;
  padding: 11px 14px;
  font:
    400 12.5px Consolas,
    monospace;
  color: color-mix(in srgb, var(--ac) 70%, #fff);
  word-break: break-all;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.res {
  border: 1px solid var(--gb);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 14px;
  padding: 10px 14px;
  font:
    400 12.5px Consolas,
    monospace;
  color: var(--m);
}
.res.ok {
  border-color: rgba(74, 222, 128, 0.35);
  background: rgba(74, 222, 128, 0.08);
  color: var(--ok);
}
.res.er {
  border-color: rgba(248, 113, 113, 0.35);
  color: var(--er);
}
.ins h3 {
  font:
    800 22px "Bricolage Grotesque",
    sans-serif;
}
.ins p {
  color: var(--m);
}
.ins label {
  color: var(--m);
  font-size: 12.5px;
  display: block;
  margin-bottom: 6px;
}
.sim {
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.3);
  color: var(--wa);
  border-radius: 14px;
  padding: 9px 12px;
  font-size: 12.5px;
}
.ln {
  font:
    400 12.5px Consolas,
    monospace;
  color: #cfc9d6;
  padding: 6px 2px;
  border-bottom: 1px solid var(--gb);
  display: flex;
  gap: 10px;
}
.ln u {
  text-decoration: none;
  color: var(--m);
}
.ln em {
  color: var(--ac);
  font-style: normal;
}
.ln.bad {
  color: var(--er);
}
.empty {
  color: var(--m);
  padding: 30px;
  text-align: center;
}
.box {
  padding: 18px 22px;
  border-radius: 20px;
  background: var(--pn);
  border: 1px solid var(--gb);
  margin-bottom: 12px;
}
.box h2 {
  font:
    800 19px "Bricolage Grotesque",
    sans-serif;
  margin-bottom: 6px;
}
.box .kv {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 9px 0;
  border-top: 1px solid var(--gb);
}
.box .kv span {
  color: var(--m);
}
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 8px;
}
.ib {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 8px;
}
.ib .ar b small {
  word-break: break-all;
}
.btn.dis {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

/* pas de menu (donc pas de capsule vide) avant la connexion */
.nv:empty {
  display: none;
}

/* ---- Réseaux de GameFinds (barre du haut) ---- */
.soc {
  display: flex;
  gap: 6px;
  align-items: center;
  -webkit-app-region: no-drag;
}
.soc a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--m);
  background: rgba(20, 18, 27, 0.62);
  border: 1px solid var(--gb);
  cursor: pointer;
  transition:
    color 0.15s,
    border-color 0.15s;
}
.soc a:hover,
.soc a:focus-visible {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
  outline: none;
}
.soc svg {
  width: 16px;
  height: 16px;
}
/* fenêtre étroite : la barre du haut n'a plus la place (menu + langues + boutons Windows) ; les mêmes liens sont dans les Réglages */
@media (max-width: 1300px) {
  .soc {
    display: none;
  }
}
