:root{
  --bg:#0b1220; --card:#101827; --ink:#e5e7eb; --muted:#9ca3af;
  --accent:#3b82f6; --accent2:#22d3ee; --danger:#ef4444;
}

*{ box-sizing:border-box; }

html,body{ height:100%; }

body{
  margin:0;
  font-family:Inter,system-ui,Arial,Helvetica,sans-serif;
  background:var(--bg); /* ✅ fond stable */
  color:var(--ink);
  position:relative;
}

/* ✅ Gradient décoratif FIXE (ne dépend plus du scroll) */
body::before{
  content:"";
  position:fixed;
  inset:0;
  z-index:-1;
  background:radial-gradient(
    1200px 600px at 50% -10%,
    #0f1a33 0%,
    var(--bg) 50%
  );
}

.container{ max-width:980px; margin:40px auto; padding:24px; }

.card{
  background:linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,.00));
  border:1px solid #1f2937;
  border-radius:18px;
  padding:24px;
  box-shadow:0 10px 25px rgba(0,0,0,.25);
}

h1,h2{ margin:0 0 12px; }
h1{ font-size:28px; }
h2{ font-size:20px; color:var(--muted); }

.row{ display:flex; gap:12px; flex-wrap:wrap; align-items:center; }

input,select,button,textarea{
  padding:10px 12px;
  border-radius:12px;
  border:1px solid #2b3445;
  background:#0b1220;
  color:var(--ink);
}

button{
  cursor:pointer;
  transition:transform .06s ease, box-shadow .2s ease, opacity .2s;
}
button:hover{ transform:translateY(-1px); }

.btn{
  border:none;
  font-weight:700;
  letter-spacing:.2px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color:#061016;
  box-shadow:0 10px 18px rgba(34,211,238,.18);
}

.btn-outline{
  background:transparent;
  border:1px solid #334155;
  color:var(--ink);
}

.btn-lg{ padding:16px 22px; font-size:18px; border-radius:16px; }
.btn-pill{ border-radius:999px; }
.btn-danger{ background:linear-gradient(135deg, #ef4444, #f59e0b); color:#1a0e05; }

.badge{
  display:inline-block;
  padding:4px 8px;
  border-radius:999px;
  background:#0b1220;
  border:1px solid #334155;
  color:var(--muted);
  font-size:12px;
}

.list{ display:grid; gap:10px; margin-top:12px; }

.item{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:12px;
  border:1px solid #1f2937;
  border-radius:12px;
}

.small{ font-size:12px; color:var(--muted); }

hr{ border:none; border-top:1px solid #1f2937; margin:20px 0; }

.timer{ font-weight:800; }
.timer.warn{ color:var(--danger); animation:pulse .8s infinite alternate; }
@keyframes pulse { from{ transform:scale(1); } to{ transform:scale(1.06); } }

table{ width:100%; border-collapse:collapse; }
th,td{ padding:10px; border-bottom:1px solid #1f2937; text-align:left; }

pre{
  white-space:pre-wrap;
  word-break:break-word;
  background:#0b1220;
  padding:12px;
  border-radius:12px;
  border:1px solid #1f2937;
}

a{ color:var(--accent2); text-decoration:none; }

.header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:16px;
}

.logo{
  font-weight:900;
  letter-spacing:.5px;
  display:flex;
  align-items:center;
  gap:10px;
}
.logo img{ height:40px; }

.grid-2{ display:grid; grid-template-columns:1fr; gap:16px; }
@media(min-width:900px){
  .grid-2{ grid-template-columns:1fr 1fr; }
}

/* Landing */
.landing{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  min-height:70vh;
  text-align:center;
  gap:22px;
}

.brand img{
  height:86px;
  filter: drop-shadow(0 8px 16px rgba(0,0,0,.35));
}

.brand h1{
  font-size:34px;
  margin-top:8px;
  letter-spacing:.6px;
}

.action-row{
  display:flex;
  gap:16px;
  flex-wrap:wrap;
  align-items:center;
  justify-content:center;
}

.shadow-hover:hover{
  box-shadow:0 14px 30px rgba(34,211,238,.25);
}

/* Modal */
.modal.hidden{ display:none; }
.modal{ position:fixed; inset:0; z-index:1000; }

.modal-backdrop{
  position:absolute;
  inset:0;
  background:rgba(0,0,0,.65);
}

.modal-content{
  position:relative;
  margin:8vh auto;
  max-width:960px;
  background:#111;
  color:#f2f2f2;
  padding:24px;
  border-radius:16px;
  box-shadow:0 10px 30px rgba(0,0,0,.2);
  max-height:80vh;
  overflow:auto;
}

.table thead th{ border-bottom:1px solid rgba(255,255,255,.12); }
.table td, .table th{ border-bottom:1px solid rgba(255,255,255,.06); }
