/* ================================================================
   MedIAdata — Studio Papier (transposition du design hectools,
   brief profil webia 2026-08-12)
   Papier clair éditorial · hairlines · mono pour les métadonnées
   Fonts: Space Grotesk (display) + JetBrains Mono (métadonnées)
   ================================================================ */

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #ffffff;            /* fond principal blanc */
  --bg2: #fafafa;           /* gris très clair (hover, cartes) */
  --ink: #1a1814;           /* encre — titres, footer */
  --body: #57524a;          /* encre secondaire — corps */
  --soft: #8a8170;          /* métadonnées */
  --rule: #e2dcc8;          /* hairline */
  --rule2: #c9c2ac;         /* bordure forte */
  --accent: #c2410c;        /* orange brûlé */
  --accent-strong: #9a3412; /* hover */
  --accent-soft: #fde9d9;   /* tags, exergues, hover */
  --radius: 4px;

  --font-display: 'Space Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --container: 1200px;
  --gutter: 24px;
  --header-h: 72px;
}

html { font-size: 16px; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
::selection { background: var(--accent-soft); }

.container { max-width: var(--container); margin: 0 auto; padding: 0 32px; }
.mono { font-family: var(--font-mono); }

/* ── kickers + titres ── */
.kicker {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-strong); /* AA sur papier */
  margin-bottom: 18px;
}
.kicker-light { color: #f0b08a; }

h1, h2 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--ink);
}
h2 { font-size: 32px; letter-spacing: -0.01em; }

/* ── header / nav ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
}
.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  height: var(--header-h);
}
.logo {
  display: inline-flex;
  align-items: center;
  height: var(--header-h);
  line-height: 0;
}
.logo img {
  height: 56px;
  width: auto;
  display: block;
}
.spacer { flex: 1; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}
.nav-links a {
  font-family: var(--font-mono);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--body);
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--ink); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  box-sizing: border-box;
  padding: 0 20px;
  font-family: var(--font-mono);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: var(--radius);
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.btn-solid { background: var(--accent); color: #fff; border: 1px solid var(--accent); }
.btn-solid:hover { background: var(--accent-strong); border-color: var(--accent-strong); }
.btn-ink { background: var(--ink); color: var(--bg); border: 1px solid var(--ink); }
.btn-ink:hover { background: var(--accent); border-color: var(--accent); }
.btn-paper { background: var(--bg); color: var(--ink); border: 1px solid var(--bg); }
.btn-paper:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ── burger mobile ── */
.nav-burger {
  display: none;
  padding: 6px;
}
.nav-burger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  margin: 4px 0;
}
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ── hero ── */
.hero { padding: 72px 0 56px; border-bottom: 1px solid var(--rule); }
.hero h1 { font-size: 52px; margin-bottom: 22px; max-width: 22ch; line-height: 1.05; }
.hero-lead { font-size: 18px; color: var(--body); max-width: 64ch; margin-bottom: 28px; }

/* ── sections ── */
.section { padding: 56px 0; border-bottom: 1px solid var(--rule); }
.sec-head { margin-bottom: 32px; }
.sec-head h2 { margin-bottom: 12px; }
.sec-intro { color: var(--body); max-width: 60ch; }
.sec-intro a { color: var(--accent); border-bottom: 1px solid var(--accent-soft); transition: border-color 0.15s; }
.sec-intro a:hover { border-bottom-color: var(--accent); }

/* ── figure dans section ── */
.section-figure { margin: 0 0 28px; }
.section-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
  border: 1px solid var(--rule);
}
.section-figure figcaption {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--soft);
  letter-spacing: 0.01em;
}

/* ── pôles (grille 4) ── */
.poles-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gutter);
}
.pole {
  border-top: 1px solid var(--rule2);
  padding-top: 20px;
}
.pole-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent-strong); /* AA */
  margin-bottom: 14px;
}
.pole h3 { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 10px; }
.pole p { font-size: 15px; color: var(--body); line-height: 1.6; }

/* ── cas d'usage (liste éditoriale) ── */
.usage-list { list-style: none; }
.usage-row {
  display: grid;
  grid-template-columns: 220px 1fr 32px;
  gap: 32px;
  align-items: baseline;
  padding: 20px 8px;
  border-top: 1px solid var(--rule);
  transition: background 0.15s;
}
.usage-row:last-child { border-bottom: 1px solid var(--rule); }
.usage-row:hover { background: var(--accent-soft); }
.usage-name {
  font-family: var(--font-mono);
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-strong); /* AA */
}
.usage-row p { color: var(--body); font-size: 16px; }
.usage-arrow { font-family: var(--font-mono); color: var(--soft); text-align: right; }

/* ── gouvernance ── */
.gov-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gutter);
  border: 1px solid var(--rule2);
  border-radius: var(--radius);
  padding: 20px 28px;
  background: var(--bg2);
}
.gov-col { display: flex; flex-direction: column; gap: 6px; }
.gov-role {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-strong); /* AA */
}
.gov-name { font-weight: 600; font-size: 18px; }
.gov-meta { font-size: 13.5px; color: var(--body); }
.gov-note {
  margin-top: 24px;
  font-size: 18px;
  color: var(--body);
  max-width: 80ch;
  line-height: 1.5;
}
.gov-note a { color: var(--accent); border-bottom: 1px solid var(--accent-soft); transition: border-color 0.15s; }
.gov-note a:hover { border-bottom-color: var(--accent); }

/* ── footer colophon ── */
.site-footer { background: var(--ink); color: var(--bg); }
.contact-block { padding: 56px 0 40px; border-bottom: 1px solid rgba(244, 240, 228, 0.15); }
.contact-block h2 { color: var(--bg); margin-bottom: 28px; }
.footer-colophon {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 28px 0 40px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--soft);
}

/* ── responsive ── */
@media (max-width: 1024px) {
  .poles-grid { grid-template-columns: repeat(2, 1fr); }
  .gov-grid { grid-template-columns: 1fr; gap: 24px; }
  .hero h1 { font-size: 44px; }
}

@media (max-width: 720px) {
  .container { padding: 0 20px; }
  .hero, .section { padding: 64px 0; }
  .hero h1 { font-size: 36px; }
  .usage-row { grid-template-columns: 1fr; gap: 8px; padding: 20px 8px; }
  .usage-arrow { display: none; }
  .nav { gap: 16px; }
  .nav-links {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    background: var(--bg);
    border-bottom: 1px solid var(--rule);
    padding: 24px 20px;
  }
  .nav-links.open { display: flex; }
  .nav-burger { display: block; }
  .footer-colophon { flex-direction: column; align-items: flex-start; }
}

/* ── motion réduite ── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
