:root{
  --bg:#0b0f19;
  --card:#0f1627;
  --card2:#0c1323;
  --text:#e8eefc;
  --muted:#b7c2e1;
  --border:rgba(255,255,255,.08);
  --primary:#3b82f6;
  --primary2:#22c55e;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
  --radius:18px;
  --max:1120px;
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  font-family: system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif;
  background:
    radial-gradient(1200px 600px at 20% 0%, rgba(59,130,246,.20), transparent 60%),
    radial-gradient(900px 500px at 90% 10%, rgba(34,197,94,.14), transparent 60%),
    var(--bg);
  color:var(--text);
  line-height:1.55;
}

a{color:inherit;text-decoration:none}
a:hover{opacity:.92}

.container{max-width:var(--max);margin:0 auto;padding:18px}

.header{
  position:sticky;top:0;z-index:50;
  background: rgba(11,15,25,.72);
  backdrop-filter: blur(10px);
  border-bottom:1px solid var(--border);
}
.nav{
  display:flex;align-items:center;justify-content:space-between;gap:14px;
  padding:12px 18px;
  max-width:var(--max);margin:0 auto;
}
.brand{display:flex;align-items:center;gap:10px;font-weight:800;letter-spacing:.2px}
.logo{
  width:36px;height:36px;border-radius:12px;
  background: linear-gradient(135deg,var(--primary),var(--primary2));
  box-shadow: var(--shadow);
}
.navlinks{display:flex;gap:10px;flex-wrap:wrap}
.navlinks a{
  font-size:14px;
  padding:10px 12px;border-radius:12px;
  border:1px solid transparent;
  color:var(--muted);
}
.navlinks a.active,
.navlinks a:hover{
  color:var(--text);
  border-color:var(--border);
  background: rgba(255,255,255,.03);
}
.actions{display:flex;gap:10px;align-items:center}
.search{
  display:flex;align-items:center;gap:8px;
  padding:10px 12px;border-radius:14px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.03);
  min-width: 220px;
}
.search input{
  width:100%;
  border:0;outline:0;background:transparent;color:var(--text);
  font-size:14px;
}
.btn{
  display:inline-flex;align-items:center;justify-content:center;
  padding:10px 14px;border-radius:14px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.03);
  color:var(--text);
  font-weight:700;
}
.btn.primary{
  border-color: rgba(59,130,246,.45);
  background: linear-gradient(135deg, rgba(59,130,246,.25), rgba(59,130,246,.08));
}
.btn:hover{transform: translateY(-1px)}
.btn:active{transform: translateY(0px)}

.hero{
  padding:28px 0 8px;
}
.heroGrid{
  display:grid;grid-template-columns: 1.3fr .7fr;gap:18px;
}
@media (max-width: 980px){
  .heroGrid{grid-template-columns: 1fr;gap:14px}
  .search{min-width: 0}
}
.card{
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.01));
  border:1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card.pad{padding:18px}
.hTitle{
  font-size:40px;line-height:1.05;margin:0 0 10px;font-weight:900;
}
@media (max-width: 640px){ .hTitle{font-size:32px} }
.hSub{margin:0;color:var(--muted);font-size:16px}
.pills{display:flex;flex-wrap:wrap;gap:10px;margin-top:14px}
.pill{
  font-size:13px;color:var(--muted);
  border:1px solid var(--border);
  background: rgba(255,255,255,.03);
  padding:9px 11px;border-radius:999px;
}
.grid{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap:14px;
  margin: 16px 0 0;
}
@media (max-width: 980px){ .grid{grid-template-columns: repeat(2,1fr)} }
@media (max-width: 520px){ .grid{grid-template-columns: 1fr} }

.gameCard{
  display:flex;flex-direction:column;gap:10px;
  padding:14px;border-radius: var(--radius);
  border:1px solid var(--border);
  background: rgba(255,255,255,.02);
  transition: transform .12s ease, background .12s ease;
  min-height: 170px;
}
.gameCard:hover{
  transform: translateY(-2px);
  background: rgba(255,255,255,.03);
}
.badge{
  display:inline-flex;align-items:center;gap:8px;
  font-size:12px;
  padding:7px 10px;border-radius:999px;
  border:1px solid var(--border);
  color:var(--muted);
  width: fit-content;
}
.gameTitle{font-weight:900;margin:0;font-size:16px}
.gameDesc{margin:0;color:var(--muted);font-size:13px}
.metaRow{display:flex;gap:10px;flex-wrap:wrap;margin-top:auto}
.kpi{
  font-size:12px;color:var(--muted);
  border:1px solid var(--border);
  background: rgba(255,255,255,.02);
  padding:7px 10px;border-radius:12px;
}

.section{margin:18px 0}
.section h2{margin:0 0 10px;font-size:20px}
.section p{margin:0;color:var(--muted)}

.footer{
  margin-top:28px;
  border-top:1px solid var(--border);
  background: rgba(255,255,255,.01);
}
.footerGrid{
  display:grid;grid-template-columns: 1.2fr .8fr;gap:16px;
  padding:18px 0;
}
@media(max-width: 980px){ .footerGrid{grid-template-columns: 1fr} }
.footLinks{display:flex;gap:10px;flex-wrap:wrap}
.footLinks a{color:var(--muted);font-size:13px;padding:8px 10px;border-radius:12px;border:1px solid transparent}
.footLinks a:hover{color:var(--text);border-color:var(--border);background: rgba(255,255,255,.03)}

.ad{
  border:1px dashed rgba(255,255,255,.18);
  border-radius: var(--radius);
  padding:14px;
  color: var(--muted);
  text-align:center;
  background: rgba(255,255,255,.02);
}
.small{font-size:12px;color:var(--muted)}
.hr{height:1px;background: var(--border);margin:14px 0}
.gameFrame{
  width:100%;
  aspect-ratio: 16/9;
  border:1px solid var(--border);
  border-radius: var(--radius);
  overflow:hidden;
  background: rgba(0,0,0,.2);
}
.gameFrame iframe{
  width:100%;
  height:100%;
  border:0;
}
/* === GAME IFRAME FIX === */
.gameFrame {
  width: 100%;
  max-width: 100%;
  margin: 16px 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  background: #0b0f19;
}

.gameFrame iframe {
  width: 100%;
  height: 520px;       /* 🔥 clé du problème */
  border: 0;
  display: block;
}

@media (max-width: 768px) {
  .gameFrame iframe {
    height: 420px;
  }
}

@media (max-width: 480px) {
  .gameFrame iframe {
    height: 360px;
  }
}
