:root {
  --ink: #1b1d20;
  --ink-soft: #4b5058;
  --muted: #6d727a;
  --paper: #ffffff;
  --paper-alt: #f5f4f1;
  --line: #e3e1dc;
  --dark: #16181b;
  --on-dark: #f1efea;
  --on-dark-muted: #a9a59c;
  --accent: #b3200f;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Noto Serif", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }

.wrap { width: min(1080px, calc(100% - 48px)); margin: 0 auto; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(22, 24, 27, 0.96);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--on-dark); flex-shrink: 0; }
.brand span { font-size: 13px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; }
.site-header nav { display: flex; gap: 28px; }
.site-header nav a { color: var(--on-dark-muted); text-decoration: none; font-size: 14px; white-space: nowrap; }
.site-header nav a:hover, .site-header nav a:focus-visible { color: var(--on-dark); }

/* Intro */
.intro {
  background: var(--dark);
  color: var(--on-dark);
  padding: 104px 0 96px;
  border-bottom: 3px solid var(--accent);
}
.intro h1 { font-size: clamp(42px, 6vw, 64px); margin-bottom: 22px; }
.intro .lede { max-width: 40em; font-size: clamp(18px, 2vw, 20px); color: var(--on-dark-muted); margin: 0; }

.eyebrow {
  font-family: var(--sans);
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 12px;
}
.intro .eyebrow { color: #d6543f; }

/* Sections */
.section { padding: 88px 0; }
.section-alt { background: var(--paper-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 680px; margin-bottom: 44px; }
.section-head h2, .founder-body h2 { font-size: clamp(30px, 3.6vw, 40px); }
.section-intro { margin: 16px 0 0; color: var(--ink-soft); }

/* Activities: 2 x 2 grid */
.activities { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.activity { padding: 30px 40px 14px 0; border-bottom: 1px solid var(--line); }
.activity:nth-child(even) { padding: 30px 0 14px 40px; border-left: 1px solid var(--line); }
.activity .num { display: block; font-size: 13px; font-weight: 600; color: var(--accent); letter-spacing: 0.08em; margin-bottom: 12px; }
.activity h3 { font-size: 22px; margin-bottom: 10px; }
.activity p { color: var(--ink-soft); }
.patents {
  margin: 4px 0 1em;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
}
.patents-label {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 8px;
}
.patents-row {
  margin: 0 0 6px;
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.55;
}
.patents-jurisdiction {
  display: inline-block;
  min-width: 3.6em;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-right: 6px;
}
.patent-nums { font-variant-numeric: tabular-nums; }

.tags { list-style: none; margin: 4px 0 1em; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { font-size: 13px; color: var(--ink-soft); border: 1px solid var(--line); border-radius: 999px; padding: 3px 12px; background: var(--paper); }
.inline-link { color: var(--accent); text-decoration: none; white-space: nowrap; font-size: 15px; margin-left: 4px; }
.inline-link::after { content: " →"; }
.inline-link:hover { text-decoration: underline; }

/* Ventures */
.ventures { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.venture { background: var(--paper); border: 1px solid var(--line); display: flex; flex-direction: column; }
.venture-media { margin: 0; height: 300px; display: flex; align-items: center; justify-content: center; border-bottom: 1px solid var(--line); overflow: hidden; }
.media-dark { background: #050505; padding: 20px; }
.media-dark img { width: 100%; height: 100%; object-fit: contain; }
.media-light { background: #ffffff; padding: 18px; }
.media-light img { height: 100%; width: auto; object-fit: contain; }
.venture-body { padding: 26px 28px 14px; }
.meta { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--muted); letter-spacing: 0.04em; margin-bottom: 10px; }
.outcome { color: var(--accent); font-weight: 600; text-transform: uppercase; letter-spacing: 0.14em; font-size: 11.5px; border: 1px solid rgba(179, 32, 15, 0.35); padding: 2px 9px; border-radius: 2px; }
.venture h3 { font-size: 26px; }
.subtitle { color: var(--muted); font-size: 15px; margin: 4px 0 14px; }
.venture-body p:last-child { color: var(--ink-soft); }

/* Course */
.course { display: grid; grid-template-columns: 1fr 300px; border: 1px solid var(--line); border-left: 3px solid var(--accent); background: var(--paper); }
.course-body { padding: 32px 36px 18px; }
.course-body .meta { text-transform: uppercase; letter-spacing: 0.14em; font-size: 11.5px; font-weight: 600; }
.course h3 { font-size: clamp(22px, 2.4vw, 26px); margin-bottom: 14px; }
.course-body > p:not(.meta) { color: var(--ink-soft); }
.course-link a {
  display: inline-block; text-decoration: none; font-size: 14px; font-weight: 500;
  color: var(--ink); border: 1px solid #cfccc5; padding: 8px 16px; border-radius: 2px;
}
.course-link a::before { content: "PDF"; font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em; color: var(--accent); margin-right: 8px; }
.course-link a:hover, .course-link a:focus-visible { border-color: var(--ink); }
.course-facts { margin: 0; padding: 32px 30px; background: var(--paper-alt); border-left: 1px solid var(--line); display: grid; gap: 16px; align-content: start; }
.course-facts dt { font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); }
.course-facts dd { margin: 2px 0 0; font-size: 15.5px; color: var(--ink); }

/* Founder */
.founder { display: grid; grid-template-columns: 300px 1fr; gap: 56px; align-items: start; }
.portrait { margin: 0; }
.portrait img {
  width: 100%; aspect-ratio: 1 / 1; object-fit: cover;
  background: linear-gradient(135deg, #e9e7e2, #d9d6cf);
  border: 1px solid var(--line);
}
.founder-body h2 { margin-bottom: 22px; }
.founder-body > p:not(.eyebrow) { color: var(--ink-soft); }
.profile-links { list-style: none; padding: 0; margin: 26px 0 0; display: flex; gap: 12px; flex-wrap: wrap; }
.profile-links a {
  display: inline-block; text-decoration: none; font-size: 14px; font-weight: 500; background: var(--paper);
  color: var(--ink); border: 1px solid #cfccc5; padding: 8px 16px; border-radius: 2px;
}
.profile-links a::after { content: " ↗"; color: var(--muted); }
.profile-links a:hover, .profile-links a:focus-visible { border-color: var(--ink); }

.contact-hint {
  margin: 18px 0 0;
  font-size: 14.5px;
  color: var(--muted);
  max-width: 36em;
}
.contact-hint a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid rgba(27, 29, 32, 0.28);
}
.contact-hint a:hover, .contact-hint a:focus-visible { border-color: var(--ink); }
.site-footer .contact-hint {
  margin: 0;
  color: var(--on-dark-muted);
  max-width: none;
}
.site-footer .contact-hint a {
  color: var(--on-dark);
  border-bottom: 1px solid rgba(255,255,255,0.25);
}
.site-footer .contact-hint a:hover { border-color: var(--on-dark); }

/* Footer */
.site-footer { background: var(--dark); color: var(--on-dark-muted); font-size: 14px; padding: 34px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; }
.footer-inner p { margin: 0; }
.footer-brand { display: flex; align-items: center; gap: 10px; color: var(--on-dark); font-weight: 600; letter-spacing: 0.06em; }
.site-footer a { color: var(--on-dark); text-decoration: none; border-bottom: 1px solid rgba(255,255,255,0.25); }
.site-footer a:hover { border-color: var(--on-dark); }
.copy { font-size: 13px; }

a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Responsive */
@media (max-width: 900px) {
  .activities { grid-template-columns: 1fr; }
  .activity, .activity:nth-child(even) { padding: 26px 0 12px; border-left: 0; }
  .ventures { grid-template-columns: 1fr; }
  .course { grid-template-columns: 1fr; }
  .course-facts { border-left: 0; border-top: 1px solid var(--line); grid-template-columns: 1fr 1fr; padding: 24px 36px; }
  .founder { grid-template-columns: 1fr; gap: 32px; }
  .portrait { max-width: 240px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { width: calc(100% - 40px); }
  .nav { height: 58px; }
  .brand span { display: none; }
  .site-header nav { gap: 16px; }
  .site-header nav a { font-size: 13.5px; }
  .intro { padding: 68px 0 64px; }
  .section { padding: 64px 0; }
  .section-head { margin-bottom: 32px; }
  .venture-media { height: 230px; }
  .venture-body { padding: 22px 20px 10px; }
  .course-body { padding: 24px 22px 12px; }
  .course-facts { grid-template-columns: 1fr; padding: 22px; gap: 12px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Mentions légales page */
.legal { max-width: 760px; }
.legal h2 { font-size: clamp(24px, 2.6vw, 30px); margin: 44px 0 12px; }
.legal h2:first-child { margin-top: 0; }
.legal p, .legal li { color: var(--ink-soft); }
.legal address { font-style: normal; color: var(--ink-soft); line-height: 1.6; }
.legal a { color: var(--accent); }
.legal .todo { background: #fff3cd; color: #6b4e00; padding: 0 4px; border-radius: 2px; font-size: 0.95em; }
.legal-en { margin-top: 64px; padding-top: 44px; border-top: 1px solid var(--line); }

.legal-link { margin-left: 10px; font-size: 10px; opacity: 0.45; color: inherit !important; text-decoration: none; }
.legal-link:hover { opacity: 0.8; }
