:root{
  --bg: #0b0f17;
  --panel: rgba(255,255,255,.06);
  --panel2: rgba(255,255,255,.09);
  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.65);
  --line: rgba(255,255,255,.12);
  --accent: #7c5cff;
  --accent2: #2ef2c2;
  --shadow: 0 18px 50px rgba(0,0,0,.45);
  --radius: 18px;
  --max: 1100px;
  --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
}

*{box-sizing:border-box}
body{
  margin:0;
  font-family:var(--font);
  background:
    radial-gradient(900px 500px at 15% 10%, rgba(124,92,255,.22), transparent 60%),
    radial-gradient(900px 500px at 85% 20%, rgba(46,242,194,.14), transparent 60%),
    radial-gradient(900px 500px at 50% 100%, rgba(124,92,255,.08), transparent 60%),
    var(--bg);
  color:var(--text);
}

a{color:inherit; text-decoration:none}
.container{max-width:var(--max); margin:0 auto; padding:20px}

.site-header{
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(to bottom, rgba(11,15,23,.92), rgba(11,15,23,.55));
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner{
  display:flex; align-items:center; justify-content:space-between;
  gap:14px;
  padding:14px 20px;
}
.brand{display:flex; align-items:center; gap:10px}
.brand-mark{
  width:34px; height:34px; display:grid; place-items:center;
  border-radius:12px;
  background: linear-gradient(135deg, rgba(124,92,255,.9), rgba(46,242,194,.75));
  box-shadow: var(--shadow);
}
.brand-name{font-weight:800; letter-spacing:.2px}

.nav{display:flex; gap:14px; align-items:center}
.nav a{
  padding:10px 12px;
  border-radius:12px;
  color:var(--muted);
}
.nav a:hover{background:var(--panel); color:var(--text)}
.nav-toggle{display:none; border:1px solid var(--line); background:var(--panel);
  color:var(--text); border-radius:12px; padding:10px 12px; cursor:pointer}

.hero{
  padding:28px 0 18px;
}
.hero h1{font-size:44px; line-height:1.05; margin:0 0 10px}
.hero p{margin:0 0 18px; color:var(--muted); max-width:60ch}
.searchbar{display:flex; gap:10px; max-width:640px}
.searchbar input{
  flex:1; padding:12px 14px; border-radius:14px;
  border:1px solid var(--line); background:var(--panel); color:var(--text);
}
.searchbar button{
  padding:12px 14px; border-radius:14px; border:0; cursor:pointer;
  background: linear-gradient(135deg, rgba(124,92,255,.95), rgba(46,242,194,.85));
  color:#081018; font-weight:800;
}

.grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap:14px;
  padding:12px 0 32px;
}
.card{
  background: linear-gradient(180deg, var(--panel2), var(--panel));
  border:1px solid var(--line);
  border-radius: var(--radius);
  padding:16px;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
  transition: transform .12s ease, border-color .12s ease;
}
.card:hover{transform: translateY(-3px); border-color: rgba(124,92,255,.35)}
.card h2{margin:10px 0 8px; font-size:18px}
.card p{margin:0 0 12px; color:var(--muted)}
.card-meta{display:flex; gap:10px; color:var(--muted); font-size:13px}
.card-top{display:flex; gap:8px; flex-wrap:wrap}

.pill{
  font-size:12px; padding:6px 9px; border-radius:999px;
  border:1px solid rgba(124,92,255,.28);
  background: rgba(124,92,255,.12);
  color: rgba(255,255,255,.86);
}
.pill-ghost{
  border-color: rgba(46,242,194,.25);
  background: rgba(46,242,194,.08);
}

.article{padding:18px 0 40px}
.article-head .kicker{display:flex; align-items:center; gap:8px; flex-wrap:wrap}
.dot{opacity:.5}
.lead{color:var(--muted); max-width:75ch; font-size:18px}
.article-body{display:grid; grid-template-columns: 1fr 320px; gap:16px; margin-top:16px}
.article-content{
  background: var(--panel);
  border:1px solid var(--line);
  border-radius: var(--radius);
  padding:18px;
}
.article-content h2{margin-top:26px}
.article-content p{color: rgba(255,255,255,.82); line-height:1.65}
.article-content code{
  padding:2px 6px; border-radius:8px;
  background: rgba(0,0,0,.35); border:1px solid var(--line);
}
.article-aside .aside-card{
  background: var(--panel);
  border:1px solid var(--line);
  border-radius: var(--radius);
  padding:14px;

  margin-bottom:12px;
}
.taglist{display:flex; flex-wrap:wrap; gap:8px}
.tag{
  font-size:12px; padding:7px 10px; border-radius:999px;
  border:1px solid var(--line); background: rgba(0,0,0,.2); color:var(--muted);
}
.tag:hover{color:var(--text); border-color: rgba(46,242,194,.35)}

.notice{
  background: var(--panel);
  border:1px solid var(--line);
  border-radius: var(--radius);
  padding:18px;
}
.btn{
  display:inline-block; margin-top:10px;
  padding:10px 12px; border-radius:14px;
  border:1px solid var(--line); background: var(--panel);
}

.site-footer{
  border-top:1px solid var(--line);
  padding:22px 0;
  color:var(--muted);
}

.muted{color:var(--muted)}

/* Form & results */
.form-row{display:flex; gap:10px; flex-wrap:wrap}
.form-row input{
  flex:1; min-width:220px;
  padding:12px 14px; border-radius:14px;
  border:1px solid var(--line); background:var(--panel); color:var(--text);
}
.form-row button{
  padding:12px 14px; border-radius:14px; border:0; cursor:pointer;
  background: linear-gradient(135deg, rgba(124,92,255,.95), rgba(46,242,194,.85));
  color:#081018; font-weight:800;
}

/* Responsive */
@media (max-width: 980px){
  .grid{grid-template-columns: repeat(2, minmax(0,1fr))}
  .article-body{grid-template-columns: 1fr}
  .article-aside .aside-card{position:relative; top:auto}
}
@media (max-width: 640px){
  .grid{grid-template-columns: 1fr}
  .hero h1{font-size:34px}
  .nav{display:none}
  .nav.open{display:flex; flex-direction:column; align-items:stretch; gap:6px;
    position:absolute; left:20px; right:20px; top:64px;
    background: rgba(11,15,23,.92); border:1px solid var(--line);
    border-radius:16px; padding:10px;
  }
  .nav-toggle{display:inline-block}
}
.article-aside .aside-sticky{
  position: sticky;
  top: 92px; /* même valeur que ton header */
  display: flex;
  flex-direction: column;
  gap: 12px;

  /* Le container sticky prend la hauteur dispo et scroll si besoin */
  max-height: calc(100vh - 110px);
  overflow: auto;
  padding-bottom: 2px;
}

