:root {
  --bg: #ffffff;
  --ink: #0a0a0a;
  --muted: #5a5a5a;
  --faint: #9a9a9a;
  --line: #e7e7e7;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--ink); color: #fff; }

a {
  color: var(--ink);
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size .22s ease;
}
a:hover { background-size: 100% 1px; }
a:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 32px;
}
.nav .brand { font-weight: 700; letter-spacing: .02em; }
.nav-home { justify-content: flex-end; }
.nav nav { display: flex; gap: 28px; }
.nav nav a { color: var(--muted); font-size: 15px; }
.nav nav a:hover { color: var(--ink); }
.nav nav a[aria-current="page"] { color: var(--ink); background-size: 100% 1px; }

.home {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: 48px;
  min-height: calc(100vh - 64px);
  padding: 0 48px 40px;
}
.present h1 { font-size: clamp(46px, 7.5vw, 76px); font-weight: 700; letter-spacing: -0.02em; margin: 0 0 8px; }
.present .tagline { font-size: 22px; color: var(--muted); margin: 0 0 20px; }
.present p { max-width: 40em; margin: 0 0 16px; }
.present .plus { font-weight: 600; }
.radar { text-align: center; }
#radar { width: min(560px, 100%); height: auto; display: inline-block; }

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
.present > * { animation: rise .6s ease both; }
.present > *:nth-child(2) { animation-delay: .08s; }
.present > *:nth-child(3) { animation-delay: .16s; }
.present > *:nth-child(4) { animation-delay: .24s; }
.present > *:nth-child(5) { animation-delay: .32s; }
.radar { animation: rise .7s ease .2s both; }

.chiffres { display: flex; gap: 44px; list-style: none; margin: 30px 0 36px; padding: 0; }
.chiffres li { font-size: 13px; color: var(--muted); }
.chiffres b { display: block; font-size: 30px; font-weight: 700; color: var(--ink); line-height: 1; margin-bottom: 4px; }

#radar-grid circle { stroke: var(--line); fill: none; }
#radar-grid line { stroke: #e0e0e0; }
#radar-poly .poly-fill { fill: rgba(10,10,10,.06); stroke: var(--ink); stroke-width: 1.6; stroke-linejoin: round; }
#radar-poly .poly-dot { fill: var(--ink); }
#radar-labels text.axe {
  font: 500 12.5px -apple-system, "Segoe UI", Roboto, sans-serif;
  letter-spacing: 2.5px;
  fill: #333333;
}
#radar-labels text.valeur {
  font: 700 16px -apple-system, "Segoe UI", Roboto, sans-serif;
  fill: var(--ink);
}

.page {
  max-width: 880px;
  margin: 0 auto;
  padding: 40px 32px 80px;
}
.page h1 { font-size: 32px; font-weight: 700; margin: 0 0 12px; }
.page h2 {
  font-size: 20px;
  font-weight: 700;
  margin: 44px 0 16px;
}
.page h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 28px 0 10px;
}
.lede { color: var(--muted); margin: 0 0 32px; max-width: 52em; }

.domaines { list-style: none; margin: 0 0 8px; padding: 0; }
.domaines li { padding: 14px 10px; margin: 0 -10px; border-bottom: 1px solid var(--line); transition: background .15s; }
.domaines li:first-child { border-top: 1px solid var(--line); }
.domaines li:hover { background: #f5f5f5; }
.d-nom { display: block; font-weight: 600; font-size: 17px; }
.d-desc { color: var(--muted); font-size: 14px; }

.traits { list-style: none; margin: 0 0 8px; padding: 0; max-width: 52em; }
.traits li { padding: 5px 0; }
.traits li b { font-weight: 600; }

.puces { list-style: disc; padding-left: 22px; max-width: 52em; margin: 0 0 8px; }
.puces li { padding: 3px 0; }

.steps { margin: 0 0 16px; padding-left: 22px; max-width: 52em; }
.steps li { margin: 6px 0; }

blockquote {
  margin: 24px 0 0;
  padding: 16px 20px;
  border-left: 3px solid var(--ink);
  font-size: 17px;
  font-weight: 600;
  max-width: 52em;
}

.note-index { color: var(--muted); font-size: 13px; max-width: 52em; margin: 0 0 16px; }

.disclaimer {
  font-size: 13px;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 12px 16px;
  margin: 0 0 40px;
  max-width: 62em;
}
.cat {
  font-size: 18px;
  font-weight: 700;
  margin: 40px 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--ink);
}
.cat-n { font-weight: 400; color: var(--faint); font-size: 14px; }
.projets { list-style: none; margin: 0 0 8px; padding: 0; }
.projets li { padding: 14px 10px; margin: 0 -10px; border-bottom: 1px solid var(--line); transition: background .15s; }
.projets li:hover { background: #fafafa; }
.p-nom { font-weight: 600; font-size: 17px; display: block; }
.p-nom a { font-weight: 600; }
.p-stack { color: var(--muted); font-size: 12.5px; display: block; margin-top: 2px; }
.p-desc { color: var(--muted); font-size: 14px; display: block; margin-top: 4px; max-width: 58em; }

.bio { max-width: 46em; margin-bottom: 40px; }
.bio p { margin: 0 0 14px; }

.stats { width: 100%; border-collapse: collapse; font-size: 15px; }
.stats th, .stats td { text-align: left; padding: 8px 10px 8px 0; border-bottom: 1px solid var(--line); }
.stats th { font-size: 12px; font-weight: 500; color: var(--faint); text-transform: uppercase; letter-spacing: .1em; }
.stats td:nth-child(2) { color: var(--muted); }
.read { width: 100%; }
.read .bar { height: 6px; background: #ececec; position: relative; overflow: hidden; }
.read .bar i { position: absolute; inset: 0 auto 0 0; background: var(--ink); width: 0; transition: width .7s cubic-bezier(.2,.7,.2,1); }

.contacts { list-style: none; margin: 0; padding: 0; }
.contacts li { padding: 16px 0; border-bottom: 1px solid var(--line); }
.contacts li:first-child { border-top: 1px solid var(--line); }
.contacts .k { display: block; font-size: 12px; color: var(--faint); text-transform: uppercase; letter-spacing: .12em; }
.contacts .v { font-size: 18px; }
.contacts .note { color: var(--muted); font-size: 13px; }

@media (max-width: 800px) {
  .home { grid-template-columns: 1fr; gap: 40px; padding: 48px 20px 56px; min-height: 0; }
  .nav { padding: 16px 20px; }
  .page { padding: 32px 20px 64px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .read .bar i { transition: none; }
  .present > *, .radar { animation: none; }
  a { transition: none; }
}
