/* =============================================================
   PROMETHEUS — Docs CSS
   Design: Institutional Light (aligné sur le site commercial)
   Brand: #000040 (navy) · #00A896 (teal) · #FFFFFF (white)
   Typo: JetBrains Mono (headings) + Inter (body)
   ============================================================= */

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

:root {
  --navy: #000040;
  --navy-mid: #00006a;
  --navy-light: #e8e8f4;
  --teal: #00A896;
  --teal-dim: rgba(0, 168, 150, 0.08);
  --teal-line: rgba(0, 168, 150, 0.25);
  --white: #ffffff;
  --grey-bg: #F4F6FA;
  --grey: #6B7280;
  --text: #2D2D5A;
  --text-muted: #7B8094;
  --border: #DCDDE8;
  --shadow: 0 2px 16px rgba(0, 0, 64, 0.07);
  --shadow-hover: 0 6px 28px rgba(0, 0, 64, 0.13);
  --mono: 'JetBrains Mono', 'Fira Code', monospace;
  --sans: 'Inter', system-ui, sans-serif;
  --max: 900px;
  --r: 6px;
  --r-lg: 12px;
}

/* ── 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(--white);
  color: var(--text);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%
}

/* ── Links ─────────────────────────────────────────────── */
a {
  color: var(--teal);
  text-decoration: none;
  transition: color .2s;
}

a:hover {
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 3px
}

/* ── Code ──────────────────────────────────────────────── */
code {
  font-family: var(--mono);
  font-size: .84em;
  background: var(--grey-bg);
  border: 1px solid var(--border);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--navy);
}

pre {
  background: var(--navy);
  border-radius: var(--r);
  padding: 20px 24px;
  overflow-x: auto;
  margin: 24px 0;
}

pre code {
  background: none;
  border: none;
  padding: 0;
  font-size: .84rem;
  color: rgba(255, 255, 255, .9);
}

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

/* ═══════════════════════════════════════════════════════════
   HOMEPAGE (index.html) — .home .hero .sections .section-card
   ═══════════════════════════════════════════════════════════ */

.home {
  padding-bottom: 80px;
}

/* Hero section */
.hero {
  padding: 80px 0 48px;
  text-align: center;
  background: linear-gradient(180deg, var(--grey-bg) 0%, var(--white) 100%);
  border-bottom: 1px solid var(--border);
  margin-bottom: 48px;
}

.hero h1 {
  font-family: var(--mono);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -.025em;
  line-height: 1.15;
  margin-bottom: 16px;
}

.hero .lead {
  font-size: 1.08rem;
  color: var(--grey);
  max-width: 600px;
  margin: 0 auto 32px;
  line-height: 1.85;
}

.hero .page-content {
  text-align: left;
  max-width: 700px;
  margin: 0 auto;
}

.hero .page-content p {
  margin-bottom: 16px;
  color: var(--text);
}

.hero .page-content strong {
  color: var(--navy);
  font-weight: 600;
}

/* Section cards grid */
.sections {
  padding: 0 0 48px;
}

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

.section-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px 24px;
  position: relative;
  overflow: hidden;
  transition: box-shadow .25s ease, transform .25s ease, border-color .25s ease;
}

.section-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--teal);
  opacity: 0;
  transition: opacity .25s;
}

.section-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
  border-color: var(--teal-line);
}

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

.section-card h2 {
  font-family: var(--mono);
  font-size: .95rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 8px;
}

.section-card h2 a {
  color: var(--navy);
  text-decoration: none;
}

.section-card h2 a:hover {
  color: var(--teal);
  text-decoration: none;
}

.section-card p {
  font-size: .84rem;
  color: var(--grey);
  line-height: 1.6;
}

/* ═══════════════════════════════════════════════════════════
   SINGLE PAGE — .single-page .article-header .article-content
   ═══════════════════════════════════════════════════════════ */

.single-page {
  padding: 48px 0 80px;
}

.article-header {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 2px solid var(--navy);
}

.article-header h1 {
  font-family: var(--mono);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -.025em;
  line-height: 1.2;
  margin-bottom: 8px;
}

.article-header time {
  font-family: var(--mono);
  font-size: .72rem;
  color: var(--text-muted);
  letter-spacing: .06em;
}

/* Article content */
.article-content h2 {
  font-family: var(--mono);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--navy);
  margin: 40px 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.article-content h3 {
  font-family: var(--mono);
  font-size: .94rem;
  font-weight: 600;
  color: var(--navy);
  margin: 28px 0 10px;
}

.article-content h4 {
  font-size: .9rem;
  color: var(--text);
  margin: 18px 0 8px;
  font-weight: 600;
}

.article-content p {
  margin-bottom: 16px;
  color: var(--text);
}

.article-content strong {
  color: var(--navy);
  font-weight: 600;
}

.article-content ul,
.article-content ol {
  padding-left: 22px;
  margin-bottom: 20px;
  color: var(--text);
}

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

.article-content ul li::marker {
  color: var(--teal);
}

.article-content blockquote {
  border-left: 3px solid var(--teal);
  background: var(--teal-dim);
  padding: 16px 20px;
  border-radius: 0 var(--r) var(--r) 0;
  margin: 24px 0;
  font-style: normal;
}

.article-content blockquote p {
  margin-bottom: 0;
  font-size: .88rem;
}

/* Tables */
.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: .88rem;
}

.article-content th {
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--grey-bg);
  padding: 10px 14px;
  text-align: left;
  border-bottom: 2px solid var(--border);
}

.article-content td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

.article-content tr:hover td {
  background: var(--grey-bg);
}

.article-content hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 32px 0;
}

/* ═══════════════════════════════════════════════════════════
   LIST PAGES (sections) — also uses .page-content
   ═══════════════════════════════════════════════════════════ */

.page-content h2 {
  font-family: var(--mono);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--navy);
  margin: 32px 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.page-content h3 {
  font-family: var(--mono);
  font-size: .94rem;
  font-weight: 600;
  color: var(--navy);
  margin: 24px 0 10px;
}

.page-content p {
  margin-bottom: 16px;
  color: var(--text);
}

.page-content strong {
  color: var(--navy);
  font-weight: 600;
}

.page-content ul,
.page-content ol {
  padding-left: 22px;
  margin-bottom: 20px;
  color: var(--text);
}

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

.page-content ul li::marker {
  color: var(--teal);
}

/* ═══════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════ */

footer {
  border-top: 2px solid var(--navy);
  background: var(--grey-bg);
  padding: 32px 0;
  text-align: center;
  font-size: .78rem;
  color: var(--text-muted);
}

footer a {
  color: var(--navy);
  font-weight: 500;
}

footer a:hover {
  color: var(--teal);
}

/* ── Responsive ────────────────────────────────────────── */
@media(max-width: 768px) {
  .hero {
    padding: 48px 0 32px;
  }

  .hero h1 {
    font-size: 1.6rem;
  }

  .container {
    padding: 0 20px;
  }

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

  .single-page {
    padding: 32px 0 60px;
  }
}