:root {
  --bg: #0f172a;          /* fond sombre */
  --fg: #f1f5f9;          /* texte clair */
  --muted: #94a3b8;       /* texte secondaire */

  --accent: #38bdf8;      /* bleu clair */
  --accent-hover: #facc15;/* doré */

  --card-bg: rgba(255,255,255,0.04);
  --card-border: rgba(255,255,255,0.1);
  --radius: 16px;
  --shadow: 0 10px 24px rgba(0,0,0,0.4);

  --transition: all .3s ease;
}

/* RESET */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: Inter, system-ui, sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
}

/* Liens */
a { color: var(--accent); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent-hover); }

/* Layout */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.section { margin-top: 60px; }
.section h2 { font-size: clamp(26px, 2.5vw, 34px); margin-bottom: 20px; }

/* Header */
.hdr {
  position: sticky; top: 0; z-index: 50;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--card-border);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { font-weight: 700; font-size: 20px; }
.navlinks { display: flex; gap: 18px; }
.navlinks a {
  padding: .5rem .9rem;
  border-radius: var(--radius);
}
.navlinks a:hover { background: rgba(255,255,255,0.05); }
.navlinks a.active {
  background: rgba(56,189,248,0.15);
  border: 1px solid var(--accent);
}

/* Hero */
.hero {
  display: grid;
  place-items: center;
  min-height: 40vh;
  text-align: center;
  padding: 60px 0;
}
.hero h1 { font-size: clamp(32px, 5vw, 48px); margin-bottom: 10px; }
.hero .accent { color: var(--accent-hover); }
.hero p { color: var(--muted); max-width: 720px; margin: 0 auto 18px; }

/* Grille projets */
.grid { display: grid; gap: 22px; }
.grid.cols-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

/* Carte projet */
.project-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.project-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 12px 30px rgba(56,189,248,0.3);
}
.project-card h3 { margin-bottom: 8px; font-size: 20px; }
.project-card .category { font-size: .9rem; color: var(--muted); margin-bottom: 8px; }
.project-card .version { font-size: .85rem; color: var(--accent); margin-top: 6px; }
.project-card a {
  display: inline-block;
  margin-top: 10px;
  padding: .5rem .9rem;
  border-radius: 10px;
  background: var(--accent);
  color: #000;
  font-weight: 600;
}
.project-card a:hover { background: var(--accent-hover); color: #000; }

/* Footer */
.ftr {
  border-top: 1px solid var(--card-border);
  padding: 20px 0;
  margin-top: 60px;
  text-align: center;
  font-size: .9rem;
  color: var(--muted);
}

/* Reveal */
[data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .6s ease, transform .6s ease;
}
[data-reveal].is-visible { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 640px) {
  .navlinks { gap: 10px; }
  .hero h1 { font-size: 28px; }
}
