/* =========================================
   iDark — Minimal, fast, punchy
   ========================================= */

:root{
  --bg0:#000;
  --bg1:#070707;
  --bg2:#151515;
  --card:#0b0b0b;
  --card2:#0f0f10;
  --txt:#fff;
  --muted:rgba(255,255,255,.72);
  --muted2:rgba(255,255,255,.55);
  --line:rgba(255,255,255,.10);
  --red:#ff243b;
  --red2:#ff3b52;
  --radius:18px;
  --shadow: 0 14px 40px rgba(0,0,0,.55);
}

*{box-sizing:border-box;margin:0;padding:0}
html,body{height:100%}
body{
  font-family: system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  color:var(--txt);
  background: radial-gradient(circle at 50% 45%, var(--bg2) 0%, var(--bg1) 55%, var(--bg0) 100%);
  overflow-x:hidden;
}

a{color:inherit;text-decoration:none}
code{font-family: ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:.95em}

/* BG canvas */
#bg{position:fixed;inset:0;width:100%;height:100%;display:block;z-index:0}

/* =========================================
   Landing
========================================= */
body.landing{overflow:hidden}
.landing__wrap{
  min-height:100svh;
  display:grid;
  place-items:center;
  padding:24px;
}
.landing__center{
  width:min(720px, 100%);
  text-align:center;
  padding:34px 22px 22px;
  border:1px solid var(--line);
  border-radius:28px;
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}
.landing__logoStack{
  width: clamp(160px, 18vw, 240px);
  aspect-ratio: 1/1;
  margin: 0 auto 10px;
  position: relative;
  display: grid;
  place-items: center;
}
.landing__logoBase,
.landing__logoRed{
  width: 100%;
  height: 100%;
  object-fit: contain;
  display:block;
}
.landing__logoBase{
  /* Ombre noire sur tout le logo (pour donner du relief aux zones non rouges) */
  filter:
    drop-shadow(0 14px 36px rgba(0,0,0,.70))
    drop-shadow(0 0 22px rgba(0,0,0,.90));
}
.landing__logoRed{
  position:absolute;
  inset:0;
  pointer-events:none;
  /* Glow uniquement sur les zones rouges (image masque) */
  filter:
    drop-shadow(0 0 18px rgba(255,36,59,.55))
    drop-shadow(0 0 52px rgba(255,36,59,.22));
  mix-blend-mode: screen;
  animation: redGlow 2.8s ease-in-out infinite;
}
@keyframes redGlow{
  0%,100%{filter: drop-shadow(0 0 16px rgba(255,36,59,.48)) drop-shadow(0 0 46px rgba(255,36,59,.18))}
  50%{filter: drop-shadow(0 0 24px rgba(255,36,59,.62)) drop-shadow(0 0 74px rgba(255,36,59,.26))}
}
  50%{filter: drop-shadow(0 0 28px rgba(255,36,59,.55)) drop-shadow(0 0 90px rgba(255,36,59,.22))}
}
@media (prefers-reduced-motion: reduce){
  .landing__logoRed{animation:none}
}

.landing__title{
  margin-top:14px;
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing:.4px;
}
.landing__subtitle{
  margin-top:6px;
  color:var(--muted);
  font-size: 15px;
}
.landing__menu{
  margin-top:22px;
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap:12px;
}
@media (max-width: 640px){
  .landing__menu{grid-template-columns:1fr}
}
.landing__fineprint{
  margin-top:18px;
  color:var(--muted2);
  font-size:12px;
  display:inline-flex;
  align-items:center;
  gap:10px;
  justify-content:center;
}
.dot{width:8px;height:8px;border-radius:999px;background:rgba(255,255,255,.22);box-shadow:none}
.badge-live .dot{background:var(--red);box-shadow:0 0 16px rgba(255,36,59,.65)}
.badge-online .dot{background:#2ecc71;box-shadow:0 0 16px rgba(46,204,113,.55)}
.badge-away .dot{background:#f1c40f;box-shadow:0 0 16px rgba(241,196,15,.45)}
.badge-offline .dot{background:rgba(255,255,255,.22);box-shadow:none}


/* =========================================
   Header / Layout
========================================= */
.topbar{
  position:sticky; top:0; z-index:10;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:14px 18px;
  border-bottom:1px solid var(--line);
  background: rgba(0,0,0,.65);
  backdrop-filter: blur(10px);
}
.brand{
  display:inline-flex;
  align-items:center;
  gap:10px;
  font-weight:700;
  letter-spacing:.2px;
}
.brand img{
  border-radius:8px;
  box-shadow: 0 0 18px rgba(255,36,59,.25);
}
.topnav{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}
.topnav a{
  padding:8px 10px;
  border:1px solid transparent;
  border-radius:999px;
  color:var(--muted);
}
.topnav a:hover{
  border-color: rgba(255,255,255,.14);
  color:var(--txt);
}
.topnav a.is-active{
  color:var(--txt);
  border-color: rgba(255,36,59,.45);
  background: rgba(255,36,59,.10);
}

.container{
  width:min(1100px, 100%);
  margin: 0 auto;
  padding: 18px 18px 70px;
  display:grid;
  gap:16px;
  align-content:start;
}

.footer{
  padding:18px;
  border-top:1px solid var(--line);
  color:var(--muted2);
  display:flex;
  justify-content:center;
  gap:10px;
  flex-wrap:wrap;
  background: rgba(0,0,0,.55);
}
.footer a{color:var(--muted)}
.footer a:hover{color:var(--txt)}
.sep{opacity:.35}

/* =========================================
   Components
========================================= */
.card{
  border:1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  box-shadow: var(--shadow);
  padding: 18px;
}
.card h1{font-size:28px;margin-bottom:8px}
.card h2{font-size:18px;margin-bottom:10px}
.muted{color:var(--muted)}
.list{margin-top:10px;display:grid;gap:8px;padding-left:18px;color:var(--muted)}

.grid2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.grid3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
@media (max-width: 900px){.grid3{grid-template-columns:repeat(2,1fr)}}
@media (max-width: 720px){.grid2,.grid3{grid-template-columns:1fr}}

.actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:12px}
.chips{display:flex;flex-wrap:wrap;gap:10px;margin-top:8px}
.chip{
  padding:10px 12px;
  border:1px solid rgba(255,255,255,.14);
  border-radius:999px;
  color:var(--muted);
  background: rgba(255,255,255,.02);
}

.mini-stats{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin:10px 0 4px;
}
.badge{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:8px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.22);
  color: var(--muted);
  font-size: 13px;
  line-height: 1;
}
.badge strong{color:var(--text)}

.identity{
  display:flex;
  align-items:center;
  gap:12px;
  margin: 10px 0 2px;
}
.identity__avatar{
  width:44px;height:44px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
}
.identity__name{font-size:14px;letter-spacing:.2px}


.chip:hover{color:var(--txt);border-color:rgba(255,36,59,.35)}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.03);
  color: var(--txt);
  cursor:pointer;
  user-select:none;
}
.btn:hover{border-color: rgba(255,36,59,.35)}
.btn--primary{
  border-color: rgba(255,36,59,.55);
  background: linear-gradient(180deg, rgba(255,36,59,.22), rgba(255,36,59,.10));
  box-shadow: 0 0 0 1px rgba(255,36,59,.12) inset, 0 18px 40px rgba(255,36,59,.10);
}
.btn--ghost{
  background: transparent;
}
.btn__icon{opacity:.9}

/* Embeds */
.embed{
  margin-top:10px;
  border-radius: 16px;
  overflow:hidden;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.35);
  min-height: 210px;
  position:relative;
}
.embed iframe{width:100%;height:100%;min-height: 300px;border:0;display:block}
.embed__placeholder{
  position:absolute;inset:0;
  display:grid;
  grid-template-columns: auto 1fr auto;
  gap:12px;
  align-items:center;
  padding:14px;
}
.embed__title{font-weight:700}
.spinner{
  width:26px;height:26px;border-radius:999px;
  border:3px solid rgba(255,255,255,.18);
  border-top-color: rgba(255,36,59,.75);
  animation: spin 1s linear infinite;
}
@keyframes spin{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion: reduce){.spinner{animation:none}}

/* Skeleton */
.skeleton{display:grid;gap:10px}
.sk-line{
  height:14px;border-radius:999px;
  background: linear-gradient(90deg, rgba(255,255,255,.05), rgba(255,255,255,.10), rgba(255,255,255,.05));
  background-size: 200% 100%;
  animation: shimmer 1.2s linear infinite;
}
@keyframes shimmer{to{background-position: -200% 0}}
@media (prefers-reduced-motion: reduce){.sk-line{animation:none}}

.projects{margin-top:14px}
.project{
  padding:16px;
  border-radius: var(--radius);
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.03);
  display:flex;
  flex-direction:column;
  gap:10px;
}
.project h3{font-size:16px}
.tags{display:flex;gap:8px;flex-wrap:wrap}
.tag{
  font-size:12px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(255,36,59,.28);
  background: rgba(255,36,59,.10);
  color: rgba(255,255,255,.90);
}

/* Noscript */
.noscript{
  position:fixed;left:14px;right:14px;bottom:14px;
  padding:12px 14px;border-radius:14px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.72);
  color:var(--muted);
}

.row{display:flex;gap:12px;align-items:center}
.stack{display:grid;gap:12px}
.game{display:flex;gap:12px;align-items:center}
.muted2{color:var(--muted2)}


/* =========================
   Topbar layout + language flags + snow toggle
========================= */
.topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.topnav{
  position:absolute;
  left:50%;
  transform:translateX(-50%);
  display:flex;
  gap:10px;
  align-items:center;
  justify-content:center;
}
.topbar__right{
  display:flex;
  align-items:center;
  gap:8px;
  pointer-events:auto;
}

.topbar__brand{
  font-weight:850;
  letter-spacing:.6px;
  opacity:.92;
}
.topbar--landing{
  position:fixed;
  top:0; left:0; right:0;
  padding:12px 18px;
  background:linear-gradient(to bottom, rgba(0,0,0,.55), rgba(0,0,0,0));
  border-bottom:0;
  backdrop-filter: blur(8px);
}
.topbar--landing .topbar__right{ margin-left:auto; }
.flag{
  width:38px;
  height:34px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.06);
  cursor:pointer;
  display:grid;
  place-items:center;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.flag img{width:22px;height:16px;display:block;object-fit:cover;border-radius:4px;}

.flag:hover{ transform: translateY(-1px); background:rgba(255,255,255,.10); border-color:rgba(255,255,255,.20); }
.flag.is-active{ border-color:rgba(255,36,59,.55); box-shadow: 0 0 0 3px rgba(255,36,59,.10); }

.iconbtn{
  width:38px;
  height:34px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.06);
  cursor:pointer;
  display:grid;
  place-items:center;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.iconbtn:hover{ transform: translateY(-1px); background:rgba(255,255,255,.10); border-color:rgba(255,255,255,.20); }
.iconbtn.is-active{ border-color:rgba(255,36,59,.55); box-shadow: 0 0 0 3px rgba(255,36,59,.10); }

/* Footer fixed + discreet */
.footer.footer--fixed{
  position:fixed;
  left:0; right:0; bottom:0;
  padding:10px 16px;
  font-size:12px;
  opacity:.86;
  background:linear-gradient(to top, rgba(0,0,0,.65), rgba(0,0,0,0));
  border-top:1px solid rgba(255,255,255,.08);
  backdrop-filter: blur(8px);
  z-index:10;
}
.container{ padding-bottom:72px; }
.landing__wrap{ padding-bottom:72px; }

/* Ensure bg canvas stays behind everything */
#bg{ position:fixed; inset:0; z-index:0; }
body > *{ position:relative; z-index:1; }


/* =========================
   STEAM PAGE (compact, visual)
========================= */
.grid-2{display:grid;grid-template-columns:1fr 1fr}
.grid-2.grid-2-uneven{grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr)}
.align-start{align-items:start}
.gap-xl{gap:18px}
@media (max-width: 920px){
  .grid-2{grid-template-columns:1fr}
}
.card-h{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}
.badge{display:inline-flex;align-items:center;gap:8px;padding:7px 10px;border-radius:999px;font-size:.88rem;border:1px solid rgba(255,255,255,.12);background:rgba(0,0,0,.25)}
.badge .dot{width:8px;height:8px;border-radius:50%}
.badge-live{border-color:rgba(255,60,60,.35);box-shadow:0 0 18px rgba(255,40,40,.12)}
.badge-live .dot{background:rgba(255,60,60,1);box-shadow:0 0 10px rgba(255,60,60,.85)}
.badge-off{border-color:rgba(255,255,255,.14)}
.badge-off .dot{background:rgba(255,255,255,.35)}
.steam-profile{display:flex;align-items:center;gap:14px}
.steam-avatar{width:64px;height:64px;border-radius:14px;object-fit:cover;box-shadow:0 12px 30px rgba(0,0,0,.35)}
.steam-name{font-size:1.15rem;font-weight:800;letter-spacing:.2px}
.recent-list{display:flex;flex-direction:column;gap:10px}
.recent-item{display:grid;grid-template-columns:140px 1fr auto;align-items:center;gap:12px;padding:10px;border-radius:16px;border:1px solid rgba(255,255,255,.08);background:rgba(0,0,0,.18)}
@media (max-width: 520px){
  .recent-item{grid-template-columns:72px 1fr;grid-auto-rows:auto}
  .recent-item .btn{grid-column:1 / -1;justify-self:start}
}
.recent-cover{width:96px;height:54px;border-radius:12px;object-fit:cover;filter:saturate(1.05);box-shadow:0 10px 24px rgba(0,0,0,.35)}
.recent-cover--lg{width:140px;height:78px}
.recent-cover.placeholder{background:rgba(255,255,255,.06)}
.recent-title{font-weight:800}
.now-playing .np-row{display:flex;align-items:center;gap:12px;margin-top:10px}
.np-cover{width:132px;height:74px;border-radius:14px;object-fit:cover;box-shadow:0 12px 30px rgba(0,0,0,.35)}
.now-playing-card.is-playing .np-cover{width:240px;height:135px}
@media (max-width: 720px){.now-playing-card.is-playing .np-cover{width:190px;height:107px}}
.np-title{font-size:1.05rem;font-weight:800}

/* Social layout (Réseaux) */
.social-layout{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  grid-template-areas:
    "twitch discord"
    "youtube youtube"
    "links links";
  gap:22px;
  align-items:stretch;
}
.social-layout .card{height:100%}
.social-layout .area-twitch{grid-area:twitch}
.social-layout .area-discord{grid-area:discord}
.social-layout .area-youtube{grid-area:youtube}
.social-layout .area-links{grid-area:links}

/* Make Twitch/Discord same visual height */
.social-top{min-height:240px;display:flex;flex-direction:column}
.social-top .card-h{flex:0 0 auto}
.social-top .card-body{flex:1 1 auto}

/* Twitch live title: marquee only when needed */
.twitch-title{margin-top:2px;color:rgba(255,255,255,.75);overflow:hidden;white-space:nowrap;}
.twitch-title > span{display:inline-block;will-change:transform;}
.twitch-title.is-marquee > span{padding-left:100%;animation:marquee 14s linear infinite;}
@keyframes marquee{0%{transform:translateX(0)}100%{transform:translateX(-100%)}}

/* YouTube thumbnails bigger */
.yt-item__thumb{width:168px;height:94px;border-radius:14px;object-fit:cover}
@media (max-width: 980px){
  .social-layout{grid-template-columns:1fr;grid-template-areas:"twitch" "discord" "youtube" "links"}
  .social-top{min-height:auto}
  .yt-item__thumb{width:156px;height:88px}
}


/* Ensure content stays above background canvas */
.topbar, .container, .landing, .footer { position: relative; z-index: 1; }


/* YouTube list: thumbnail left, text right (no overlap) */
.recent-item--yt{
  grid-template-columns: 220px 1fr auto;
}
.recent-item--yt .yt-item__thumb{
  width: 220px;
  height: 124px;
  object-fit: cover;
  border-radius: 14px;
  display:block;
}
@media (max-width: 900px){
  .recent-item--yt{ grid-template-columns: 140px 1fr; }
  .recent-item--yt .yt-item__thumb{ width: 140px; height: 78px; }
  .recent-item--yt .btn{ grid-column: 1 / -1; justify-self: start; }
}


.links-actions{display:flex;gap:10px;flex-wrap:wrap}
.btn-ico{display:inline-flex;align-items:center;justify-content:center;margin-right:10px}
.btn-ico img{display:block;filter:drop-shadow(0 6px 14px rgba(0,0,0,.35))}


/* Link button icons */
.btn .ico{display:inline-flex;align-items:center;justify-content:center;width:18px;height:18px;margin-right:10px}
.btn .ico img{width:18px;height:18px;display:block;filter:drop-shadow(0 1px 6px rgba(0,0,0,.55))}


/* YouTube spacing between stats and list title */
.yt-gap{ height: 10px; }

/* YouTube playlists carousel */
.pl-carousel{
  display:flex;
  gap:12px;
  overflow-x:auto;
  padding-bottom:6px;
  scroll-snap-type:x mandatory;
}
.pl-carousel::-webkit-scrollbar{ height: 8px; }
.pl-carousel::-webkit-scrollbar-thumb{ background: rgba(255,255,255,.12); border-radius: 999px; }
.pl-card{
  flex: 0 0 220px;
  scroll-snap-align:start;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.18);
  padding:10px;
  text-decoration:none;
  color:inherit;
  display:flex;
  flex-direction:column;
  gap:10px;
}
.pl-thumb{
  width:100%;
  height:124px;
  border-radius:14px;
  object-fit:cover;
  display:block;
}
.pl-thumb--ph{ background: rgba(255,255,255,.06); }
.pl-title{
  font-weight:850;
  line-height:1.15;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.pl-count{ margin-top:-6px; }



/* ===== YouTube playlists carousel arrows ===== */
.pl-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.pl-arrows{ display:flex; gap:8px; }
.pl-arrowBtn{
  width:38px;
  height:34px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.18);
  color: rgba(255,255,255,.9);
  cursor:pointer;
}
.pl-arrowBtn:hover{ background: rgba(255,255,255,.06); }
.pl-arrowBtn:active{ transform: translateY(1px); }
.pl-arrowBtn:disabled{ opacity:.35; cursor:not-allowed; }

@media (max-width: 900px){
  .pl-arrows{ display:none; } /* scroll au doigt sur mobile */
}


/* ===== ABOUT: bio readability ===== */
.about-bio__text p{
  line-height: 1.65;
  font-size: 1.02rem;
  color: rgba(255,255,255,.88);
  max-width: 78ch;
}
.about-bio__text p + p{ margin-top: 10px; }

/* Make icon inside buttons consistent */
.btn .ico{
  display:inline-flex;
  width:18px;
  height:18px;
  align-items:center;
  justify-content:center;
  margin-right:10px;
}
.btn .ico img{
  width:18px;
  height:18px;
  object-fit:contain;
  filter: drop-shadow(0 0 8px rgba(255,0,0,.25));
}


/* ===== LINKS (About/Reseaux) buttons ===== */
.links-section .links-buttons{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
}
.links-section .link-btn{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:10px 16px;
  border-radius:14px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.12);
  color:#fff;
  text-decoration:none;
  font-weight:600;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.links-section .link-btn:hover{
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.25);
  transform: translateY(-1px);
}
.links-section .link-btn img{
  width:18px;
  height:18px;
  object-fit:contain;
  display:block;
  filter: drop-shadow(0 0 8px rgba(255,0,0,.25));
}


/* ===== PROJECTS: richer cards ===== */
.project__meta{ margin-top:6px; font-size:.95rem; opacity:.85; }
.chips{ display:flex; flex-wrap:wrap; gap:8px; margin-top:12px; }
.chip{
  display:inline-flex;
  align-items:center;
  padding:6px 10px;
  border-radius:999px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.10);
  font-size:.85rem;
  color: rgba(255,255,255,.9);
}
.badge--ongoing{ border-color: rgba(255,0,0,.35); box-shadow: 0 0 0 1px rgba(255,0,0,.15) inset; }
.badge--closed{ opacity:.85; }

/* Closed projects: less emphasis */
.project--closed{opacity:.65;filter:saturate(.65);}
.project--closed h2{opacity:.88;}
.project--closed .muted{opacity:.75;}
.project--closed .chip{opacity:.75;}
.project--closed .badge--closed{opacity:.65;box-shadow:none;border-color:rgba(255,255,255,.10);}
.project--closed .btn-disabled{cursor:not-allowed;}



/* ===== PROJECTS: aligned layout ===== */
.card.project{
  display:flex;
  flex-direction:column;
}
.project__desc{
  min-height: 92px; /* align descriptions */
}
.project__domains{
  min-height: 132px; /* align domains blocks */
  margin-top: 8px;
}
.project__cta{
  margin-top:auto;
  padding-top: 12px;
}
.btn-block{
  width: 100%;
  justify-content: center;
}
/* Ensure links section buttons render nicely on projects page too */
.links-buttons{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
}
.link-btn{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:10px 16px;
  border-radius:14px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.12);
  color:#fff;
  text-decoration:none;
  font-weight:600;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.link-btn:hover{
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.25);
  transform: translateY(-1px);
}
.link-btn img{
  width:18px;
  height:18px;
  object-fit:contain;
  display:block;
  filter: drop-shadow(0 0 8px rgba(255,0,0,.25));
}


/* ===== Error pages ===== */
.error-hero{
  text-align:center;
  padding: 34px 28px;
}
.error-code{
  font-size: 64px;
  font-weight: 900;
  letter-spacing: .06em;
  color: rgba(255,255,255,.92);
  text-shadow: 0 0 24px rgba(255,0,0,.28);
  margin-bottom: 10px;
}

/* ===== Steam extended ===== */
.steam-stats{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:10px}
.steam-stats .stat{display:flex;justify-content:space-between;gap:12px;padding:10px 12px;border:1px solid rgba(255,255,255,.08);border-radius:14px;background:rgba(0,0,0,.12)}
.steam-stats .stat .k{opacity:.8}
.steam-stats .stat .v{font-weight:600;white-space:nowrap}
.steam-stats .stat--full{grid-column:1/-1;justify-content:flex-start}
.steam-stats .stat--full .v{font-weight:500;white-space:normal;opacity:.95}

.card--np{min-height:240px;display:flex;flex-direction:column}
.card--np .empty-slot{flex:1;display:flex;align-items:center;justify-content:center;opacity:.6}
.np--big .np-row{gap:14px}
.np-cover--big{width:160px;height:74px;object-fit:cover;border-radius:12px;border:1px solid rgba(255,255,255,.10)}
.np-body{display:flex;flex-direction:column;gap:10px}

.wishlist-grid{display:grid;grid-template-columns:repeat(3, minmax(0,1fr));gap:12px}
.wish{display:flex;gap:10px;align-items:center;padding:10px;border:1px solid rgba(255,255,255,.08);border-radius:14px;background:rgba(0,0,0,.10)}
.wish:hover{border-color:rgba(255,255,255,.16)}
.wish-img{width:92px;height:35px;object-fit:cover;border-radius:10px;border:1px solid rgba(255,255,255,.10)}
.wish-name{font-weight:600;line-height:1.2;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

.search{display:flex;align-items:center;gap:10px}
.input{height:38px;padding:0 12px;border-radius:12px;border:1px solid rgba(255,255,255,.10);background:rgba(0,0,0,.16);color:#fff;min-width:260px}
.input:focus{outline:none;border-color:rgba(255,255,255,.22)}

.games-grid{display:grid;grid-template-columns:repeat(6, minmax(0,1fr));gap:12px}
.game{display:flex;flex-direction:column;gap:8px;padding:10px;border:1px solid rgba(255,255,255,.08);border-radius:14px;background:rgba(0,0,0,.10);min-width:0}
.game:hover{border-color:rgba(255,255,255,.16)}
.game-img{width:100%;height:56px;object-fit:cover;border-radius:12px;border:1px solid rgba(255,255,255,.10)}
.game-name{font-weight:650;line-height:1.1;font-size:.95rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%}
.game-time{font-size:.85rem}

@media (max-width: 1100px){
  .wishlist-grid{grid-template-columns:repeat(2, minmax(0,1fr))}
  .games-grid{grid-template-columns:repeat(4, minmax(0,1fr))}
}
@media (max-width: 720px){
  .steam-stats{grid-template-columns:1fr}
  .games-grid{grid-template-columns:repeat(2, minmax(0,1fr))}
  .input{min-width:160px;width:100%}
}

/* ===== Steam layout v25 ===== */
.span-2{grid-column:1 / -1}
.steam-avatar{border-radius:16px;border:2px solid rgba(255,255,255,.10);box-shadow:0 0 0 1px rgba(0,0,0,.35) inset}
.steam-avatar--online{border-color:rgba(46, 204, 113, .65); box-shadow:0 0 0 1px rgba(0,0,0,.35) inset, 0 0 18px rgba(46, 204, 113, .15)}
.steam-avatar--away{border-color:rgba(241, 196, 15, .60); box-shadow:0 0 0 1px rgba(0,0,0,.35) inset, 0 0 18px rgba(241, 196, 15, .14)}
.steam-avatar--offline{border-color:rgba(160,160,160,.35); box-shadow:0 0 0 1px rgba(0,0,0,.35) inset}
.steam-avatar--busy{border-color:rgba(231, 76, 60, .60); box-shadow:0 0 0 1px rgba(0,0,0,.35) inset, 0 0 18px rgba(231, 76, 60, .14)}

.recent-cards{display:grid;grid-template-columns:repeat(3, minmax(0,1fr));gap:12px;margin-top:6px}
.recent-card{display:flex;flex-direction:column;gap:10px;padding:12px;border:1px solid rgba(255,255,255,.08);border-radius:16px;background:rgba(0,0,0,.10);min-height:140px}
.recent-card:hover{border-color:rgba(255,255,255,.16)}
.recent-card__img{width:100%;height:56px;object-fit:cover;border-radius:12px;border:1px solid rgba(255,255,255,.10)}
.recent-card__title{font-weight:700;line-height:1.15;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.recent-card__body{display:flex;flex-direction:column;gap:6px}

.carousel{position:relative;display:flex;align-items:center;gap:10px}
.cartrack{display:flex;gap:12px;overflow-x:auto;scroll-snap-type:x mandatory;padding:2px 0}
.cartrack::-webkit-scrollbar{height:8px}
.wish-card{flex:0 0 220px;scroll-snap-align:start;display:flex;flex-direction:column;gap:10px;padding:12px;border:1px solid rgba(255,255,255,.08);border-radius:16px;background:rgba(0,0,0,.10)}
.wish-card:hover{border-color:rgba(255,255,255,.16)}
.wish-card__img{width:100%;height:48px;object-fit:cover;border-radius:12px;border:1px solid rgba(255,255,255,.10)}
.wish-card__name{font-weight:650;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.carbtn{width:38px;height:38px;border-radius:12px;border:1px solid rgba(255,255,255,.10);background:rgba(0,0,0,.16);color:#fff;cursor:pointer}
.carbtn:hover{border-color:rgba(255,255,255,.18)}
@media (max-width: 1100px){
  .recent-cards{grid-template-columns:repeat(2, minmax(0,1fr))}
}
@media (max-width: 720px){
  .recent-cards{grid-template-columns:1fr}
  .carousel{align-items:stretch}
  .carbtn{display:none}
}

/* ===== Steam: "Jeu en cours" as a real card filling the block ===== */
.now-playing-card{display:flex;flex-direction:column}
.now-playing-card .np-card{
  /* Keep the "now playing" content compact so it doesn't force the whole row taller */
  flex:0 0 auto;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  gap:10px;
  padding:12px;
  border:1px solid rgba(255,255,255,.08);
  border-radius:16px;
  background:rgba(0,0,0,.10);
  min-height:0;
}
.now-playing-card .np-card:hover{border-color:rgba(255,255,255,.16)}
.now-playing-card.is-playing .np-cover{width:min(260px, 90%);height:auto;aspect-ratio:16/9;max-height:140px}
.now-playing-card .np-cover{display:block;margin:0 auto;border-radius:14px;object-fit:cover;box-shadow:0 12px 30px rgba(0,0,0,.35)}
.now-playing-card .np-title{
  width:100%;
  max-width:460px;
  font-size:1.18rem;
  font-weight:800;
  line-height:1.15;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}


/* Landing menu: make the Networks button span the full row */
.landing__menu .btn--wide{grid-column:1 / -1; width:100%;}

/* ================================
   PROJECTS — CLOSED = DISABLED
================================ */

.project--closed{
  pointer-events: none;
  opacity: .55;
  filter: grayscale(1) saturate(.4);
}

.project--closed *{
  pointer-events: none;
}

.project--closed:hover{
  transform: none !important;
  box-shadow: none !important;
}

.project--closed,
.project--closed *{
  cursor: not-allowed;
}

.project--closed .badge--closed{
  opacity: .6;
  box-shadow: none;
  border-color: rgba(255,255,255,.1);
}


/* ================================
   PROJECTS — ONGOING = HIGHLIGHT
   (Overrides - keep at end)
================================ */

/* Stronger emphasis for ongoing projects */
.project--ongoing{
  position: relative;
  border-color: rgba(255,0,0,.22) !important;
  box-shadow:
    0 0 0 1px rgba(255,0,0,.14) inset,
    0 10px 26px rgba(0,0,0,.35),
    0 0 28px rgba(255,0,0,.08);
}

/* Make ongoing feel "alive" on hover (still subtle) */
.card.project.project--ongoing:hover{
  transform: translateY(-4px);
  box-shadow:
    0 0 0 1px rgba(255,0,0,.18) inset,
    0 16px 34px rgba(0,0,0,.45),
    0 0 40px rgba(255,0,0,.12);
}

/* Ongoing badge more visible + gentle pulse */
.project--ongoing .badge--ongoing{
  opacity: 1;
  border-color: rgba(255,0,0,.55) !important;
  box-shadow:
    0 0 0 1px rgba(255,0,0,.18) inset,
    0 0 14px rgba(255,0,0,.16);
  animation: ongoingPulse 1.8s ease-in-out infinite;
}

@keyframes ongoingPulse{
  0%,100%{ transform: translateZ(0) scale(1); filter: brightness(1); }
  50%{ transform: translateZ(0) scale(1.03); filter: brightness(1.1); }
}

/* Closed projects: even less emphasis + truly disabled */
.project--closed{
  opacity: .55 !important;
  filter: grayscale(1) saturate(.4) !important;
  pointer-events: none;
}

.project--closed *{
  pointer-events: none;
}

.card.project.project--closed:hover{
  transform: none !important;
  box-shadow: none !important;
}

/* Reduce title prominence for closed */
.project--closed .project__title,
.project--closed h2{
  opacity: .82 !important;
}

/* Closed badge quieter */
.project--closed .badge--closed{
  opacity: .58 !important;
  box-shadow: none !important;
  border-color: rgba(255,255,255,.10) !important;
}

/* Force "disabled" cursor if user hovers */
.project--closed, .project--closed *{ cursor: not-allowed !important; }

/* Ensure the disabled button style doesn't look like an active CTA */
.project--closed .btn, .project--closed a{
  text-decoration: none !important;
}


/* ================================
   FINAL OVERRIDES — PROJECT STATUS
================================ */

/* En cours = mis en avant */
.project--ongoing{
  border-color: rgba(255,0,0,.25) !important;
  box-shadow:
    0 0 0 1px rgba(255,0,0,.18) inset,
    0 12px 30px rgba(0,0,0,.45),
    0 0 35px rgba(255,0,0,.15);
}

.project--ongoing .badge--ongoing{
  opacity: 1;
  border-color: rgba(255,0,0,.6) !important;
  box-shadow:
    0 0 0 1px rgba(255,0,0,.2) inset,
    0 0 18px rgba(255,0,0,.25);
}

/* Clôturé = désactivé + gris */
.project--closed{
  pointer-events: none !important;
  opacity: .45 !important;
  filter: grayscale(1) brightness(.85) !important;
  box-shadow: none !important;
  border-color: rgba(255,255,255,.08) !important;
}

.project--closed *{
  pointer-events: none !important;
  color: rgba(255,255,255,.65) !important;
}

.card.project.project--closed:hover{
  transform: none !important;
  box-shadow: none !important;
}

.project--closed .badge--closed{
  opacity: .55 !important;
  border-color: rgba(255,255,255,.15) !important;
  box-shadow: none !important;
}

.project--closed img{
  filter: grayscale(1) contrast(.9) !important;
}

.project--closed, 
.project--closed *{
  cursor: not-allowed !important;
}


/* ================================
   OVERRIDES — PROJECT GRID ALIGNMENT
   (keep at end for precedence)
================================ */

/* CLOSED: force neutral/grey contour (no red glow) */
.card.project.project--closed{
  border-color: rgba(255,255,255,.10) !important;
  box-shadow: none !important;
}

/* Ensure no inner red inset gets inherited from other rules */
.card.project.project--closed::before,
.card.project.project--closed::after{
  box-shadow: none !important;
  filter: none !important;
}

/* Descriptions: clamp to a fixed number of lines for perfect alignment */
.project__desc{
  min-height: auto !important; /* we will control via fixed clamp */
}

.project__desc .muted{
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3; /* max lines */
  overflow: hidden;
  line-height: 1.35;
  max-height: calc(1.35em * 3); /* 3 lines */
  margin: 0;
}

/* Domains chips: keep a consistent block height across cards */
.project__domains{
  min-height: auto !important;
}

.project__domains .chips{
  display:flex;
  flex-wrap: wrap;
  gap: 8px;
  max-height: 92px; /* limits number of wrapped rows */
  overflow: hidden;
  align-content: flex-start;
}

/* Make sure chips don't stretch height unpredictably */
.project__domains .chip{
  white-space: nowrap;
}


/* ================================
   FIX — PROJECTS ALIGNMENT + STATUS
   (keep at end)
================================ */

/* Only clamp description so domains align */
.project__desc{
  min-height: calc(1.35em * 3); /* same height across cards */
}
.project__desc .muted{
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  line-height: 1.35;
  max-height: calc(1.35em * 3);
}

/* Domains should NOT be capped */
.project__domains .chips{
  max-height: none !important;
  overflow: visible !important;
}

/* CLOSED projects: neutral grey contour/glow */
.card.project.project--closed{
  border-color: rgba(255,255,255,.12) !important;
  box-shadow: 0 14px 40px rgba(0,0,0,.35) !important; /* neutral, no red */
}

/* Ensure no red inset glow applies */
.card.project.project--closed{
  filter: grayscale(1) saturate(.25) brightness(.9) !important;
}

/* Keep ongoing red emphasis (already styled elsewhere) */


/* Steam refresh loading state */
.btn.is-loading{opacity:.7;pointer-events:none;}

/* Steam: center refresh button inside main profile card */
.steam-refresh-center{
  display:flex;
  justify-content:center;
  align-items:center;
  padding: 10px 0 14px;
}


/* ================================
   PROJECTS — BIGGER CARDS (MORE DESC)
   (keep at end for precedence)
================================ */

/* Allow more text in project descriptions while keeping alignment */
.project__desc{
  min-height: calc(1.35em * 6) !important; /* 6 lines */
}

.project__desc .muted{
  -webkit-line-clamp: 6 !important;
  max-height: calc(1.35em * 6) !important;
}



/* ================================
   RESPONSIVE FIX — TOPBAR + RESEAUX + STEAM
   (keep at end for precedence)
================================ */

/* TOPBAR: prevent overlap on mobile */
@media (max-width: 860px){
  .topbar{
    flex-wrap: wrap;
    gap: 10px;
    padding: 12px 14px;
  }
  .topnav{
    position: static !important;
    left: auto !important;
    transform: none !important;
    order: 3;
    width: 100%;
    justify-content: center;
    padding: 2px 0 6px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .topnav::-webkit-scrollbar{display:none}
  .topnav a{
    flex: 0 0 auto;
    white-space: nowrap;
    padding: 8px 10px;
  }
  .brand{order:1}
  .topbar__right{order:2;margin-left:auto}
}

/* Slightly better on very small screens */
@media (max-width: 520px){
  .topnav{justify-content: flex-start}
  .brand span{display:none} /* keep logo, save space */
}

/* RESEAUX: stack layout on mobile */
@media (max-width: 920px){
  .social-layout{
    grid-template-columns: 1fr !important;
    grid-template-areas:
      "twitch"
      "discord"
      "youtube"
      "links" !important;
    gap: 16px !important;
  }
  .social-top{min-height: unset !important;}
}

/* STEAM: tighten blocks on phone */
@media (max-width: 720px){
  .steam-profile{
    flex-direction: column;
    align-items: flex-start;
  }
  .steam-profile .steam-meta{width:100%}
  .steam-refresh-center{
    padding: 6px 0 10px;
  }
  .recent-cards{
    grid-template-columns: 1fr !important;
  }
  .now-playing-card.is-playing .np-cover{
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16/9;
  }
}



/* ================================
   MOBILE TUNING — STEAM WIDTH + RESEAUX LAYOUT + SCROLL PERF
================================ */

/* Prevent any horizontal overflow on phones */
@media (max-width: 720px){
  html, body{ overflow-x:hidden; }
  .container{ padding-left:12px !important; padding-right:12px !important; width:100% !important; }
  body[data-page="steam"] .card,
  body[data-page="reseaux"] .card{ padding:14px !important; }
  body[data-page="steam"] .grid-2{ gap:14px !important; }
}

/* Steam: make everything fit the same width as the topbar (no extra wide blocks) */
@media (max-width: 720px){
  body[data-page="steam"] .span-2{ grid-column:auto !important; } /* safe if any grid quirks */
  body[data-page="steam"] .steam-profile{ width:100%; }
  body[data-page="steam"] .steam-avatar{ width:56px; height:56px; }
  body[data-page="steam"] .recent-cards{ grid-template-columns:1fr !important; }
  body[data-page="steam"] .games-grid{ grid-template-columns:repeat(2, minmax(0,1fr)) !important; }
}

/* Reseaux: rebuild mobile layout (stack + full width actions) */
@media (max-width: 920px){
  body[data-page="reseaux"] .social-layout{
    grid-template-columns: 1fr !important;
    grid-template-areas:
      "twitch"
      "discord"
      "youtube"
      "links" !important;
    gap: 14px !important;
  }
}
@media (max-width: 720px){
  body[data-page="reseaux"] .actions{
    display:flex !important;
    flex-direction:column !important;
    gap:10px !important;
  }
  body[data-page="reseaux"] .actions .btn,
  body[data-page="reseaux"] .actions a.btn{
    width:100% !important;
    justify-content:center !important;
  }
  body[data-page="reseaux"] .mini-stats{ gap:8px !important; }
}

/* Scroll performance: disable expensive blur on mobile */
@media (max-width: 720px){
  .topbar{ backdrop-filter:none !important; }
  .card{ backdrop-filter:none !important; }
}



/* ================================
   RESPONSIVE v1 — STEAM + RESEAUX (<=1080px)
   + disable heavy effects on Reseaux only
================================ */

@media (max-width: 1080px){
  /* make layout breathe on narrower screens */
  .container{ width:100%; padding-left:16px; padding-right:16px; }
  body[data-page="steam"] .grid-2{ grid-template-columns: 1fr !important; }
  body[data-page="steam"] .span-2{ grid-column: auto !important; }
  body[data-page="steam"] .recent-cards{ grid-template-columns: repeat(2, minmax(0,1fr)); }
  body[data-page="steam"] .games-grid{ grid-template-columns: repeat(3, minmax(0,1fr)); }
  body[data-page="steam"] .steam-stats{ grid-template-columns: 1fr; }

  body[data-page="reseaux"] .social-layout{
    grid-template-columns: 1fr !important;
    grid-template-areas:
      "twitch"
      "discord"
      "youtube"
      "links" !important;
    gap:16px !important;
  }
  body[data-page="reseaux"] .social-top{ min-height: unset !important; }
}

@media (max-width: 720px){
  /* Steam tighter on phones */
  body[data-page="steam"] .recent-cards{ grid-template-columns: 1fr !important; }
  body[data-page="steam"] .games-grid{ grid-template-columns: repeat(2, minmax(0,1fr)) !important; }
  body[data-page="steam"] .steam-profile{ flex-direction: column; align-items:flex-start; }
  body[data-page="steam"] .steam-profile .steam-meta{ width:100%; }

  /* Reseaux actions full width */
  body[data-page="reseaux"] .actions{ flex-direction: column !important; }
  body[data-page="reseaux"] .actions .btn{ width:100%; justify-content:center; }
}

/* Disable heavy visual effects on Reseaux only (keep everywhere else) */
body[data-page="reseaux"] .topbar{ backdrop-filter:none !important; }
body[data-page="reseaux"] .card{ backdrop-filter:none !important; }



/* ================================
   MOBILE HOTFIX — PREVENT RIGHT OVERFLOW (STEAM + RESEAUX)
================================ */
@media (max-width: 900px){
  body[data-page="steam"], body[data-page="reseaux"]{ overflow-x:hidden; }
  body[data-page="steam"] * , body[data-page="reseaux"] * { min-width:0; }
  body[data-page="steam"] img, body[data-page="reseaux"] img{ max-width:100%; height:auto; }
  body[data-page="steam"] .container, body[data-page="reseaux"] .container{
    width:100% !important;
    padding-left:12px !important;
    padding-right:12px !important;
  }
}

/* STEAM: inputs/toolbars should never force width */
@media (max-width: 900px){
  body[data-page="steam"] .search{ flex-wrap:wrap; gap:10px; }
  body[data-page="steam"] .input{ min-width:0 !important; width:100% !important; }
  body[data-page="steam"] select.input{ min-width:0 !important; width:100% !important; }
}

/* STEAM: grids tuned so nothing exceeds viewport */
@media (max-width: 900px){
  body[data-page="steam"] .games-grid{ grid-template-columns:repeat(2, minmax(0,1fr)) !important; }
  body[data-page="steam"] .recent-cards{ grid-template-columns:1fr !important; }
  body[data-page="steam"] .steam-profile{ flex-direction:column; align-items:flex-start; }
  body[data-page="steam"] .steam-profile .steam-meta{ width:100%; }
}

/* RESEAUX: force single column and ensure cards don't overflow */
@media (max-width: 900px){
  body[data-page="reseaux"] .social-layout{
    grid-template-columns: 1fr !important;
    grid-template-areas:
      "twitch"
      "discord"
      "youtube"
      "links" !important;
    gap:14px !important;
  }
  body[data-page="reseaux"] .social-layout .card{ width:100% !important; }
  body[data-page="reseaux"] .actions{ flex-direction:column !important; }
  body[data-page="reseaux"] .actions .btn{ width:100% !important; justify-content:center !important; }
  body[data-page="reseaux"] .twitch-title{ max-width:100%; }
  body[data-page="reseaux"] a, body[data-page="reseaux"] .muted{ overflow-wrap:anywhere; word-break:break-word; }
}



/* ================================
   TOPBAR MOBILE MENU — HAMBURGER DROPDOWN
================================ */

/* Default: hide hamburger on desktop */
.iconbtn--menu{ display:none; }

@media (max-width: 860px){
  /* Keep right controls visible, nav hidden until opened */
  .topbar{
    flex-wrap: nowrap !important;
    gap: 10px !important;
  }

  .topnav{
    display:none !important;
    position: absolute !important;
    left: 12px !important;
    right: 12px !important;
    top: calc(100% + 10px) !important;
    transform: none !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    padding: 10px !important;
    gap: 8px !important;
    border: 1px solid rgba(255,255,255,.12) !important;
    border-radius: 16px !important;
    background: rgba(0,0,0,.92) !important;
    backdrop-filter: blur(10px) !important;
    box-shadow: 0 18px 50px rgba(0,0,0,.65) !important;
    z-index: 50 !important;
  }
  .topnav.is-open{ display:flex !important; }

  .topnav a{
    padding: 12px 12px !important;
    border-radius: 14px !important;
    text-align: left !important;
    width: 100% !important;
  }

  .topbar__right{
    display:flex !important;
    align-items:center !important;
    gap: 8px !important;
  }

  /* Show hamburger on mobile, keep it at the far right */
  .iconbtn--menu{ display:inline-flex !important; }
}



/* ================================
   TOPBAR MENU BUTTON — STYLE + Z-INDEX FIX
================================ */

/* Hamburger button: centered, white, bold */
.iconbtn--menu{
  font-weight: 800 !important;
  color: #fff !important;
  justify-content: center !important;
  align-items: center !important;
  text-align: center !important;
  line-height: 1 !important;
}

/* Make sure the dropdown is always on top */
@media (max-width: 860px){
  .topnav{
    z-index: 9999 !important;
  }
  .topbar{
    z-index: 9998 !important;
    position: relative;
  }
}



/* ================================
   STEAM MOBILE — KEEP NAME NEXT TO AVATAR
================================ */

@media (max-width: 720px){
  body[data-page="steam"] .steam-profile{
    flex-direction: row !important;
    align-items: center !important;
    gap: 12px !important;
  }

  body[data-page="steam"] .steam-profile .steam-avatar{
    flex: 0 0 auto;
  }

  body[data-page="steam"] .steam-profile .steam-meta{
    width: auto !important;
    flex: 1 1 auto;
  }

  body[data-page="steam"] .steam-profile .steam-meta .actions{
    margin-top: 4px;
  }
}


/* Disable background animation on mobile for reseaux page */
@media (max-width: 768px){
  body[data-page="reseaux"] #bg{
    display:none !important;
  }
}
