:root{
  --bg0:#060914;
  --bg1:#071a2a;
  --card:rgba(255,255,255,.06);
  --stroke:rgba(255,255,255,.10);
  --text:rgba(255,255,255,.88);
  --muted:rgba(255,255,255,.62);
  --teal:#2de2ff;
  --vio:#b12dff;
  --shadow:0 18px 50px rgba(0,0,0,.45);
  --r:18px;
  --max:1100px;

  /* ✅ Background image (change ici) */
  /* --bg-url: url("/assets/v1/backgrounds/background.webp"); */
  --bg-url: url("/assets/v1/backgrounds/bakcground.png");
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  color:var(--text);
  overflow-x:hidden;
  background: linear-gradient(180deg, var(--bg0), var(--bg1)); /* fallback */
}

/* ✅ FIX: background stable qui ne casse pas en bas */
body::before{
  content:"";
  position:fixed;
  inset:0;
  z-index:-2;
  background-image: var(--bg-url);
  background-size: cover;
  background-position: center;
  background-repeat:no-repeat;
  background-attachment: fixed;
  transform: translateZ(0);
}
body::after{
  content:"";
  position:fixed;
  inset:0;
  z-index:-1;
  background:
    radial-gradient(1200px 700px at 15% 10%, rgba(45,226,255,.22), transparent 55%),
    radial-gradient(900px 600px at 85% 20%, rgba(177,45,255,.18), transparent 60%),
    radial-gradient(900px 600px at 50% 95%, rgba(45,226,255,.10), transparent 55%),
    linear-gradient(180deg, rgba(0,0,0,.18), rgba(0,0,0,.55));
  pointer-events:none;
}

.wrap{max-width:var(--max); margin:0 auto; padding:28px 18px 40px;}
.top{
  display:flex; align-items:center; justify-content:space-between; gap:16px;
  padding:16px 18px;
  border:1px solid var(--stroke);
  background:linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.04));
  border-radius:var(--r);
  box-shadow:var(--shadow);
  backdrop-filter: blur(10px);
}

.brand{display:flex; align-items:center; gap:12px; min-width:0}
.brand-meta{min-width:0}
.logo{
  width:46px; height:46px; border-radius:14px;
  display:grid; place-items:center;
  background:
    radial-gradient(circle at 30% 20%, rgba(45,226,255,.35), transparent 45%),
    radial-gradient(circle at 70% 70%, rgba(177,45,255,.28), transparent 50%),
    rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.10);
  overflow:hidden;
}
.logo img{width:32px; height:32px; display:block}
.brand h1{font-size:16px; margin:0; letter-spacing:.2px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
.brand p{margin:2px 0 0; font-size:12px; color:var(--muted)}

.pill{
  display:inline-flex; align-items:center; gap:8px;
  padding:10px 12px;
  border-radius:999px;
  border:1px solid var(--stroke);
  background:rgba(0,0,0,.18);
  font-size:12px; color:var(--muted);
  white-space:nowrap;
}
.dot{width:8px; height:8px; border-radius:50%; background:#20e3a2; box-shadow:0 0 16px rgba(32,227,162,.55)}

.grid{
  margin-top:18px;
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap:14px;
}

.card{
  border:1px solid var(--stroke);
  background:linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  border-radius:var(--r);
  box-shadow:var(--shadow);
  backdrop-filter: blur(10px);
  overflow:hidden;
}
.card .hd{
  padding:14px 16px;
  display:flex; align-items:center; justify-content:space-between; gap:10px;
  border-bottom:1px solid rgba(255,255,255,.08);
}
.card .hd h2{margin:0; font-size:14px; letter-spacing:.2px}
.card .hd small{color:var(--muted)}
.card .bd{padding:14px 16px}

.urlbox{
  display:flex; gap:10px; align-items:center;
  padding:12px; border-radius:14px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(0,0,0,.22);
}
.urlbox code{flex:1; color:rgba(255,255,255,.85); font-size:12px; overflow:auto; padding-right:8px}

.btn{
  border:1px solid rgba(255,255,255,.14);
  background:linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.05));
  color:rgba(255,255,255,.9);
  padding:9px 12px;
  border-radius:12px;
  cursor:pointer;
  font-weight:600;
  font-size:12px;
}
.btn:hover{border-color:rgba(255,255,255,.22)}
.muted{color:var(--muted); font-size:12px; line-height:1.45}
.mt10{margin-top:10px}

.covers{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap:10px;
  margin-top:10px;
}
.cover{
  position:relative;
  border-radius:16px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(0,0,0,.18);
  min-height:120px;
}
.cover img{width:100%; height:100%; object-fit:cover; display:block; opacity:.96}
.cover .tag{
  position:absolute; left:10px; top:10px;
  padding:6px 9px;
  border-radius:999px;
  font-size:11px;
  background:rgba(0,0,0,.45);
  border:1px solid rgba(255,255,255,.14);
  color:rgba(255,255,255,.9);
  backdrop-filter: blur(8px);
}

.links{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap:10px;
}
.link{
  display:flex; gap:10px; align-items:center;
  padding:10px 12px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(0,0,0,.18);
  text-decoration:none;
  color:inherit;
}
.link:hover{border-color:rgba(255,255,255,.20)}
.ico{
  width:36px; height:36px; border-radius:12px;
  border:1px solid rgba(255,255,255,.12);
  background:
    radial-gradient(circle at 30% 20%, rgba(45,226,255,.24), transparent 45%),
    radial-gradient(circle at 70% 70%, rgba(177,45,255,.18), transparent 50%),
    rgba(255,255,255,.04);
  display:grid; place-items:center;
  flex:0 0 auto;
  overflow:hidden;
}
.ico img{width:26px; height:26px}
.link b{display:block; font-size:13px}
.link span{display:block; font-size:12px; color:var(--muted); margin-top:1px}

.mascot{
  display:flex; gap:14px; align-items:center;
  padding:12px; border-radius:16px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(0,0,0,.18);
  margin-top:12px;
}
.mascot img{width:62px; height:62px; border-radius:18px; border:1px solid rgba(255,255,255,.12)}
.mascot-title{font-weight:700; font-size:13px;}

.pre{
  white-space:pre-wrap;
  margin:8px 0 0;
  padding:10px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(0,0,0,.22);
  color:rgba(255,255,255,.82);
  font-size:12px;
}

footer{margin-top:16px; color:rgba(255,255,255,.45); font-size:12px; text-align:right}

@media (max-width: 920px){
  .grid{grid-template-columns:1fr}
  .links{grid-template-columns:1fr}
  .covers{grid-template-columns:1fr}
  .pill{display:none}
}
