﻿/* Base reset & background */
html, body { margin:0; padding:0; background: url("../img/background.jpg") center/cover no-repeat fixed; background-color:#000; }
:root { --header-h: 120px; --footer-h: 60px; }
body { font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; line-height:1.6; color:#fff; }
a{ color:#fff; text-decoration:none; } a:hover{ text-decoration:underline; }
.container { max-width:1100px; margin:0 auto; padding:0 1rem; }

/* Header fixed */
.site-header .links{
  position:absolute;
  left:50%;
  top:50%;
  transform:translate(-50%,-50%);
  display:flex;
  gap:1rem;
  align-items:center;
  justify-content:center;
  text-align:center;
}
.site-header .links a.btn{
  display:inline-flex;
  align-items:center;
  gap:.35rem;
  padding:.55rem .9rem;
  border:1px solid rgba(255,255,255,.35);
  border-radius:12px;
  background:rgba(255,255,255,.06);
  color:#fff;
  text-decoration:none;
}
.site-header .links a.btn:hover{
  background:rgba(255,255,255,.15);
  text-decoration:none;
}
.site-header .links a.btn.primary{
  background:#16a34a;
  border-color:#16a34a;
}
.site-header .links a.btn.primary:hover{
  background:#15803d;
  border-color:#15803d;
}
.site-header .links .lrs-icon{
  width:16px;
  height:16px;
  fill:currentColor;
}
.brand{
  position:absolute;
  left:0;
  top:0;
}
.brand a{
  display:inline-block;
}
.brand img{
  height:220px;
  width:auto;
  display:inline-block;
  margin-top:0;
  margin-bottom:-48px;
}
header{ position:fixed; top:0; left:0; right:0; background:url("../img/background.jpg") center/cover no-repeat fixed; backdrop-filter:blur(4px); z-index:1000; }
.site-header{ position:relative; overflow:visible; }
.site-header .container{ max-width:none; width:100%; margin:0; padding-left:0; padding-right:0; }
.site-header .nav{ position:relative; height:var(--header-h); }
.header-alert{
  position:absolute;
  top:16px;
  right:18px;
  width:180px;
  max-width:70vw;
  height:72px;
  z-index:1100;
  transition:opacity .25s ease, transform .25s ease;
  opacity:0;
  transform:translateY(-6px);
  pointer-events:none;
}
.header-alert iframe{
  width:100%;
  height:100%;
  border:0;
  border-radius:16px;
  background:transparent;
  box-shadow:0 12px 24px rgba(15,23,42,0.55);
}
@media (max-width: 900px){
  .header-alert{ display:none !important; }
}
.header-alert.is-visible{
  opacity:1;
  transform:translateY(0);
  pointer-events:auto;
}
.header-center {
  position:absolute;
  left:50%;
  top:55%;
  transform:translate(-50%,-50%);
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:.5rem;
  text-align:center;
}
.header-center .user {
  display:flex;
  align-items:center;
  gap:.5rem;
}
.header-center .header-menu-slot{
  margin-top:.2rem;
  display:flex;
  justify-content:center;
}
.header-center .user .avatar {
  width:44px;
  height:44px;
  border-radius:50%;
  object-fit:cover;
  display:block;
}
.header-center .username {
  font-weight:600;
  font-size:1.05rem;
}
/* Footer fixed */
footer{ position:fixed; bottom:0; left:0; right:0; background:url("../img/background.jpg") center/cover no-repeat fixed; backdrop-filter:blur(4px); color:#fff; text-align:center; padding:.5rem; font-size:.9rem; z-index:900; }
footer .container{ display:flex; align-items:center; justify-content:space-between; gap:.75rem; flex-wrap:wrap; }
footer .container p{ margin:0; }
/* Footer content split: left text, right links */
.footer-row{ width:100%; display:grid; grid-template-columns:1fr auto; align-items:center; gap:8px; }
.footer-row p:first-child{ text-align:left; }
.footer-row p:last-child{ text-align:right; }

/* Main & HERO wrapper */
main{ padding-top:calc(var(--header-h) + 10px); padding-bottom:calc(var(--footer-h) + 10px); min-height:calc(100vh - var(--header-h) - var(--footer-h)); box-sizing:border-box; }
.hero{ min-height:100vh; display:flex; align-items:center; justify-content:center; text-align:center; }

/* Buttons & forms */
.btn{ display:inline-block; padding:.6rem 1rem; border-radius:.65rem; border:1px solid rgba(255,255,255,.35); color:#fff; }
.btn.primary{ background: rgba(37,99,235,.9); border-color: rgba(37,99,235,.9); }
.btn:hover{ filter:brightness(1.06); }
.card{ background: rgba(0,0,0,0.35); border:1px solid rgba(255,255,255,0.15); border-radius:.75rem; padding:1rem; backdrop-filter: blur(4px); }
.muted{ opacity:.85; }
.actions{ display:flex; gap:.5rem; justify-content:flex-end; }

/* Steam button */
.steam-login{ display:flex; align-items:center; justify-content:center; margin: 1.5rem 0 0; }
.btn.steam-btn{ font-size:1.1rem; padding:1rem 1.5rem; border-radius:.75rem; border:1px solid rgba(255,255,255,.35); background:#1b2838; }

/* Responsive */
@media (max-width:768px){
  :root{ --header-h: 104px; --footer-h: 72px; }
  .header-center{ gap:.5rem; }
  footer .container{ justify-content:center; text-align:center; }
}
/* === Connect (HWS-inspired) === */
.connect-wrap{ width:100%; display:flex; align-items:center; justify-content:center; }
.connect-card{
  width:100%; max-width:1100px;
  background: rgba(0,0,0,0.45);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 1rem;
  padding: 1rem;
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
  backdrop-filter: blur(6px);
}
.connect-grid{ display:grid; grid-template-columns: 1.1fr 1fr; gap: 1rem; align-items: center; }
.connect-media{ display:grid; gap:1rem; }
.media-slot{ position:relative; border-radius:.75rem; overflow:hidden; border:1px dashed rgba(255,255,255,.25); min-height: 140px; }
.media-slot img{ width:100%; height:100%; object-fit:cover; display:block; }
.media-slot.primary{ min-height: 220px; }
.connect-content h1{ margin-top:.25rem; margin-bottom:.5rem; }
.btn.steam-btn.xlarge{ display:inline-block; width:100%; text-align:center; font-size:1.2rem; padding:1.1rem 1.25rem; margin:.75rem 0 1rem; }
.disclaimer{ text-align:left; font-size:.95rem; background: rgba(0,0,0,0.25); border:1px solid rgba(255,255,255,0.15); border-radius:.75rem; padding:.75rem .9rem; }
.disclaimer h2{ font-size:1.05rem; margin:.25rem 0 .5rem; }

@media (max-width: 980px){
  .connect-grid{ grid-template-columns: 1fr; }
  .btn.steam-btn.xlarge{ font-size:1.1rem; }
}

/* === Hard pin header & spacing === */
.site-header, header{
  position: fixed !important;
  top: 0; left: 0; right: 0;
  z-index: 1000;
}
.site-header .nav{ height: var(--header-h); }
main{ padding-top: calc(var(--header-h) + 12px) !important; }


/* Header user profile mini *//* Header nav buttons (Option A) */
.btn.primary { background:rgba(37,99,235,.95); border-color:rgba(37,99,235,.95); }

/* User dropdown in header */

/* Connected header accent */
.site-header.is-auth{
  background: rgba(0,0,0,.58);
  border-bottom: 1px solid rgba(139,211,255,.35);
  box-shadow: 0 10px 20px rgba(0,0,0,.25), inset 0 -1px 0 rgba(139,211,255,.15);
}

/* === Tables (squelettes Inventaire & RescaShopÃƒÂ©) === */
.table-card { background: rgba(0,0,0,.55); border:1px solid rgba(255,255,255,.12); border-radius:16px; padding:16px; }
.table-filters { margin-bottom:12px; }
.table-filters .row { display:flex; gap:12px; flex-wrap:wrap; }
.table-filters .group { display:flex; flex-direction:column; min-width: 180px; }
.table-filters label { font-size:12px; opacity:.85; margin-bottom:4px; }
.table-filters input[type="text"],
.table-filters select { height: 36px; padding: 6px 10px; border-radius:10px; border:1px solid rgba(255,255,255,.2); background:rgba(255,255,255,.06); color:#fff; }

.table-wrapper { overflow:auto; border-radius: 12px; border:1px solid rgba(255,255,255,.08); }
.table { width:100%; border-collapse: collapse; }
.table thead th { text-align:left; font-size:13px; padding:10px; background:rgba(255,255,255,.08); white-space:nowrap; }
.table tbody td { padding:10px; border-top:1px solid rgba(255,255,255,.08); }
.table tbody tr:hover { background: rgba(255,255,255,.04); }

.table-footer { display:flex; align-items:center; justify-content:space-between; margin-top:12px; }
.table-footer .rows-info { opacity:.85; font-size:13px; }
.table-footer .pagination { display:flex; align-items:center; gap:6px; }
.table-footer .pagination .btn[aria-disabled="true"] { opacity:.5; pointer-events:none; }
.empty-state { text-align:center; padding:22px 0; opacity:.85; }
.empty-state .title { font-weight:700; }
.empty-state .hint { font-size:12px; }

/* Header separator when not connected */
.site-header:not(.is-auth){
  background: rgba(0,0,0,.58);
  border-bottom: 1px solid rgba(139,211,255,.35);
  box-shadow: 0 10px 20px rgba(0,0,0,.25), inset 0 -1px 0 rgba(139,211,255,.15);
}

.steam-session-alert{
  position:fixed;
  right:1.4rem;
  bottom:1.4rem;
  display:none;
  align-items:center;
  gap:.75rem;
  padding:.6rem .85rem .6rem 1rem;
  border:1px solid rgba(59,130,246,.55);
  border-radius:999px;
  background:rgba(17,24,39,.92);
  box-shadow:0 12px 32px rgba(15,23,42,.45);
  color:#fff;
  z-index:1000;
}
.steam-session-alert.is-visible{
  display:flex;
}
.steam-session-alert__text{
  font-size:.95rem;
  font-weight:600;
  letter-spacing:.01em;
}
.steam-session-alert__action{
  appearance:none;
  border:none;
  padding:.45rem .95rem;
  border-radius:999px;
  background:#2563eb;
  color:#fff;
  font-weight:600;
  cursor:pointer;
  transition:background .2s ease, transform .2s ease;
}
.steam-session-alert__action:hover{
  background:#1d4ed8;
}
.steam-session-alert__action:active{
  transform:scale(.97);
}
.steam-session-alert__action:focus-visible{
  outline:2px solid #93c5fd;
  outline-offset:2px;
}
@media (max-width:640px){
  .steam-session-alert{
    left:1rem;
    right:1rem;
    bottom:1rem;
    border-radius:16px;
    flex-wrap:wrap;
    justify-content:space-between;
    row-gap:.5rem;
  }
  .steam-session-alert__text{
    font-size:.9rem;
  }
  .steam-session-alert__action{
    width:100%;
    text-align:center;
  }
}


























