/* ================================================================
   PROMETHEUS — Brand CSS v2
   Aligned with Brand Strategy — Archétype "Le Sage"
   Palette : Bleu Nuit #0A192F | Gris #8892B0 | Cyan #64FFDA
   Typo : Fira Code (titres) + Inter (corps)
   Principe : Précis, factuel, data-first, minimaliste, sobre
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;500;600&family=Inter:wght@300;400;500;600&display=swap');

/* ── Variables ─────────────────────────────────────────────────── */
:root {
  --navy: #0A192F;
  --navy-light: #112240;
  --navy-card: #0d1f38;
  --slate: #8892B0;
  --slate-light: #A8B2D8;
  --cyan: #64FFDA;
  --cyan-dim: rgba(100, 255, 218, 0.12);
  --white: #CCD6F6;
  --white-bright: #E6F1FF;
  --border: rgba(100, 255, 218, 0.08);
  --border-hover: rgba(100, 255, 218, 0.25);
  --mono: 'Fira Code', 'Source Code Pro', monospace;
  --sans: 'Inter', system-ui, -apple-system, sans-serif;
  --radius: 4px;
  --max-width: 1100px;
}

/* ── Reset ─────────────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--sans);
  background: var(--navy);
  color: var(--slate-light);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ── Links ─────────────────────────────────────────────────────── */
a {
  color: var(--cyan);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--white-bright);
}

/* ── Container ─────────────────────────────────────────────────── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 28px;
}

/* ── Nav ────────────────────────────────────────────────────────── */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 25, 47, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}

.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-nav .brand {
  font-family: var(--mono);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--cyan);
  letter-spacing: -0.02em;
}

.site-nav .brand span {
  color: var(--slate);
}

/* ── HOME PAGE ─────────────────────────────────────────────────── */
.home {
  min-height: 100vh;
  padding-top: 80px;
}

/* Hero */
.hero {
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 700px;
  background: radial-gradient(ellipse, rgba(100, 255, 218, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

/* Overline label */
.hero .overline {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--cyan);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero .overline::before {
  content: '';
  display: inline-block;
  width: 32px;
  height: 1px;
  background: var(--cyan);
}

.hero h1 {
  font-family: var(--mono);
  font-size: clamp(2rem, 4.5vw, 3.6rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  color: var(--white-bright);
  line-height: 1.1;
  margin-bottom: 24px;
  max-width: 800px;
}

.hero .lead {
  font-size: 1.1rem;
  color: var(--slate);
  max-width: 560px;
  line-height: 1.8;
  margin-bottom: 48px;
}

/* CTA button */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  color: var(--cyan);
  border: 1px solid var(--cyan);
  padding: 14px 28px;
  border-radius: var(--radius);
  background: transparent;
  transition: background 0.2s, color 0.2s;
  cursor: pointer;
}

.btn-primary:hover {
  background: var(--cyan-dim);
  color: var(--cyan);
}

/* Page content (homepage body) */
.page-content {
  max-width: 700px;
  margin: 0 auto;
  padding: 48px 0;
  color: var(--slate-light);
}

.page-content h2 {
  font-family: var(--mono);
  font-size: 1rem;
  color: var(--cyan);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 40px 0 16px;
}

.page-content p {
  margin-bottom: 16px;
}

.page-content ul {
  padding-left: 20px;
}

.page-content li {
  margin-bottom: 8px;
}

.page-content strong {
  color: var(--white);
}

.page-content a {
  color: var(--cyan);
}

/* Sections grid */
.sections {
  padding: 32px 0 96px;
}

.sections .container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.section-card {
  background: var(--navy-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: border-color 0.25s, box-shadow 0.25s;
  position: relative;
}

.section-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.25s;
  border-radius: var(--radius) var(--radius) 0 0;
}

.section-card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.section-card:hover::before {
  opacity: 1;
}

.section-card h2 {
  font-family: var(--mono);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--white);
  margin-bottom: 8px;
}

.section-card h2 a {
  color: var(--white);
}

.section-card h2 a:hover {
  color: var(--cyan);
}

.section-card p {
  color: var(--slate);
  font-size: 0.9rem;
}

/* ── LIST PAGE ─────────────────────────────────────────────────── */
.list-page,
.single-page {
  min-height: 100vh;
  padding: 100px 0 80px;
}

.page-header {
  padding: 60px 0 48px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 48px;
}

.page-header h1 {
  font-family: var(--mono);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 600;
  color: var(--white-bright);
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.page-header p {
  color: var(--slate);
  font-size: 1rem;
}

.posts {
  display: grid;
  gap: 12px;
}

.post-card {
  background: var(--navy-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 28px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  transition: border-color 0.2s;
}

.post-card:hover {
  border-color: var(--border-hover);
}

.post-card h2 {
  font-family: var(--mono);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--white);
}

.post-card h2 a {
  color: var(--white);
}

.post-card h2 a:hover {
  color: var(--cyan);
}

.post-card p {
  color: var(--slate);
  font-size: 0.875rem;
  margin-top: 6px;
}

.post-card time {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--slate);
  white-space: nowrap;
  margin-left: 24px;
  flex-shrink: 0;
}

/* ── SINGLE PAGE ───────────────────────────────────────────────── */
.article-header {
  padding: 60px 0 40px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 48px;
}

.article-header h1 {
  font-family: var(--mono);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 600;
  color: var(--white-bright);
  letter-spacing: -0.03em;
}

.article-header time {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--slate);
  margin-top: 12px;
  display: block;
}

.article-content {
  max-width: 760px;
}

.article-content h2 {
  font-family: var(--mono);
  font-size: 1rem;
  color: var(--cyan);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 48px 0 20px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.article-content h3 {
  font-family: var(--mono);
  font-size: 0.9rem;
  color: var(--white);
  margin: 32px 0 12px;
}

.article-content p {
  color: var(--slate-light);
  margin-bottom: 18px;
}

.article-content ul,
.article-content ol {
  padding-left: 24px;
  color: var(--slate-light);
  margin-bottom: 18px;
}

.article-content li {
  margin-bottom: 8px;
}

.article-content strong {
  color: var(--white);
  font-weight: 500;
}

.article-content a {
  color: var(--cyan);
  border-bottom: 1px solid var(--cyan-dim);
}

.article-content a:hover {
  border-color: var(--cyan);
}

.article-content code {
  font-family: var(--mono);
  background: rgba(100, 255, 218, 0.07);
  color: var(--cyan);
  padding: 2px 7px;
  border-radius: 3px;
  font-size: 0.88em;
}

/* ── FOOTER ────────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
  text-align: center;
}

.site-footer p {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--slate);
  letter-spacing: 0.05em;
}

/* ── Responsive ────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .hero {
    padding: 80px 0 60px;
  }

  .sections .container {
    grid-template-columns: 1fr;
  }

  .post-card {
    flex-direction: column;
  }

  .post-card time {
    margin-left: 0;
    margin-top: 12px;
  }
}