:root {
  --bg: #000;
  --bg-alt: #0e0b0b;
  --card: #161111;
  --ink: #fff;
  --muted: #b9b0b0;
  --line: rgba(255, 255, 255, 0.1);
  --accent: #b74b4b;
  --accent-hot: #d11919;
  --accent-ink: #fff;
  --mark: rgba(209, 25, 25, 0.5);
  --radius: 16px;
  --wrap: 1100px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}
body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", system-ui, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
}
h1,
h2,
h3,
.brand {
  font-family: "Bricolage Grotesque", "Inter", sans-serif;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.wrap {
  width: min(var(--wrap), 100% - 3rem);
  margin-inline: auto;
}

/* Top bar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem max(1.5rem, calc((100% - var(--wrap)) / 2));
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.brand {
  font-weight: 700;
  font-size: 1.15rem;
  text-decoration: none;
}
.brand span {
  color: var(--accent);
}
.menu {
  display: flex;
  gap: 1.6rem;
  margin-left: auto;
  font-size: 0.92rem;
}
.menu a {
  white-space: nowrap;
  color: var(--muted);
  text-decoration: none;
}
.menu a:hover,
.menu a[aria-current="page"] {
  color: var(--ink);
}
.menu a[aria-current="page"] {
  box-shadow: 0 2px 0 var(--accent);
}
/* Hero */
.hero {
  padding: clamp(4rem, 12vw, 9rem) 0 4rem;
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 1.6rem;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.2);
}
.hero h1 {
  font-size: clamp(2.3rem, 6vw, 4.6rem);
  max-width: 18ch;
  font-weight: 700;
}
.mark {
  background: linear-gradient(transparent 58%, var(--mark) 58%);
}
.lede {
  max-width: 56ch;
  color: var(--muted);
  font-size: 1.12rem;
  margin-top: 1.6rem;
}
.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}
.btn {
  display: inline-block;
  padding: 0.75rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  text-decoration: none;
  font-weight: 500;
  transition: border-color 0.2s, transform 0.2s;
}
.btn:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}
.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  margin-top: 3.5rem;
  padding-top: 1.8rem;
  border-top: 1px solid var(--line);
}
.stats dt {
  font-size: 0.8rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.stats dd {
  margin: 0;
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
}

/* Blocks */
.block {
  padding: 6rem 0;
}
.alt {
  background: var(--bg-alt);
}
.head {
  margin-bottom: 2.5rem;
}
.eyebrow {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.8rem;
  color: var(--accent);
  margin-bottom: 0.7rem;
}
.head h2,
.contact h2 {
  font-size: clamp(1.9rem, 4vw, 3rem);
}
.sub {
  color: var(--muted);
  margin-top: 0.6rem;
}

/* Featured projects */
.featured {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 480px), 1fr));
  gap: 1.5rem;
}
.project {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s, border-color 0.25s;
}
.project:hover,
.project.is-hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}
.shot {
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 20% 20%, color-mix(in srgb, var(--accent) 35%, transparent), transparent 60%),
    linear-gradient(135deg, var(--bg-alt), var(--card));
  border-bottom: 1px solid var(--line);
  font-family: "JetBrains Mono", monospace;
  color: var(--accent);
  font-size: 1.2rem;
  overflow: hidden;
}
.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.body {
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  flex: 1;
}
.body h3 {
  font-size: 1.5rem;
}
.body p {
  color: var(--muted);
}
.link {
  margin-top: auto;
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}
.link:hover {
  text-decoration: underline;
}
.chips {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.chips li {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.75rem;
  padding: 0.2rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
}
.chips.big li {
  font-size: 0.9rem;
  padding: 0.4rem 1rem;
  color: var(--ink);
  background: var(--card);
}

/* Repos */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.filters button {
  font: inherit;
  font-size: 0.85rem;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.filters button[aria-pressed="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}
.repos {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.8rem;
}
.repo {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.1rem 1.3rem;
}
.repo a {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.2rem 1.5rem;
  text-decoration: none;
}
.repo:hover {
  border-color: var(--accent);
}
.repo b {
  font-weight: 600;
}
.repo p {
  grid-column: 1;
  color: var(--muted);
  font-size: 0.92rem;
}
.repo .meta {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  text-align: right;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
  color: var(--muted);
}
.tagfork {
  font-size: 0.7rem;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 0.4rem;
  margin-left: 0.4rem;
}
.placeholder {
  color: var(--muted);
}

/* Skills */
.skills {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2.5rem;
}
.skills h3 {
  font-size: 1rem;
  color: var(--muted);
  margin-bottom: 1rem;
  font-weight: 500;
}

/* Contact */
.contact {
  padding: 6rem 0 3rem;
  text-align: center;
  display: grid;
  justify-items: center;
}
.contact .lede {
  margin-inline: auto;
}
.mail {
  margin-top: 1.8rem;
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 700;
  font-size: clamp(1.3rem, 4vw, 2.2rem);
  color: var(--accent);
  text-decoration: none;
  border-bottom: 2px solid currentColor;
  word-break: break-all;
}
.links {
  margin-top: 1.5rem;
  display: flex;
  gap: 1.5rem;
}
.links a {
  color: var(--muted);
}
.links a:hover {
  color: var(--ink);
}

@media (max-width: 640px) {
  .menu {
    gap: 1rem;
    font-size: 0.85rem;
  }
  .brand {
    font-size: 1rem;
  }
  .block {
    padding: 4rem 0;
  }
  .repo a {
    grid-template-columns: 1fr;
  }
  .repo .meta {
    grid-column: 1;
    grid-row: auto;
    text-align: left;
  }
}
/* ---------- Pages & mises en page ---------- */
.pagehead {
  padding: clamp(4rem, 10vw, 7rem) 0 3rem;
}
.pagehead h1 {
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  max-width: 20ch;
}
.pagehead .lede {
  margin-top: 1.2rem;
}
.role {
  margin-top: 1.4rem;
  font-family: "JetBrains Mono", monospace;
  font-size: 1.05rem;
  color: var(--accent);
  min-height: 1.7em;
}
.prompt {
  opacity: 0.6;
  margin-right: 0.4rem;
}
.typing::after {
  content: "";
  display: inline-block;
  width: 0.55em;
  height: 1.05em;
  margin-left: 3px;
  vertical-align: text-bottom;
  background: var(--accent);
  animation: blink 0.9s steps(1) infinite;
}
.lede.flush {
  margin-top: 0;
}
.more {
  margin-top: 2.5rem;
  text-align: center;
}
.more.left {
  text-align: left;
  margin-top: 1.5rem;
}
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.split h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.6rem);
}
.featured.three {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem;
  transition: transform 0.25s, border-color 0.25s;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}
.card .num {
  font-family: "JetBrains Mono", monospace;
  color: var(--accent);
  font-size: 0.85rem;
}
.card h3 {
  font-size: 1.4rem;
  margin: 0.6rem 0;
}
.card p {
  color: var(--muted);
}
.timeline {
  list-style: none;
  padding: 0 0 0 2rem;
  position: relative;
  display: grid;
  gap: 2.5rem;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5rem;
  bottom: 0;
  width: 2px;
  background: linear-gradient(var(--accent), transparent);
  transform-origin: top;
  animation: draw 1.4s ease-out both;
}
.timeline li {
  position: relative;
}
.timeline li::before {
  content: "";
  position: absolute;
  left: calc(-2rem - 5px);
  top: 0.55rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 25%, transparent);
}
.when {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.8rem;
  color: var(--accent);
}
.timeline h3 {
  font-size: 1.4rem;
  margin: 0.2rem 0 0.4rem;
}
.timeline p {
  color: var(--muted);
  max-width: 60ch;
}

/* Bandeau contact (pied de page) */
.contactband {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
}
.foot {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1.4rem 0 1.8rem;
  border-top: 1px solid var(--line);
  font-size: 0.88rem;
  color: var(--muted);
}

/* ---------- Animations ---------- */
.progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 3px;
  z-index: 20;
  background: var(--accent);
  transform: scaleX(var(--p, 0));
  transform-origin: left;
}
.topbar {
  transition: padding 0.25s, box-shadow 0.25s;
}
.topbar.scrolled {
  padding-block: 0.55rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}
body {
  animation: fadein 0.6s ease both;
}
@keyframes fadein {
  from {
    opacity: 0;
  }
}
@keyframes blink {
  50% {
    opacity: 0;
  }
}
@keyframes draw {
  from {
    transform: scaleY(0);
  }
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
}
@keyframes drift {
  50% {
    transform: translate(40px, -30px) scale(1.15);
  }
}
@keyframes scroll-x {
  to {
    transform: translateX(-50%);
  }
}
.rise {
  animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  animation-delay: var(--d, 0.5s);
}
.hero .kicker {
  --d: 0.1s;
}
.hero .role {
  --d: 0.9s;
}
.hero .lede {
  --d: 1.05s;
}
.hero .cta {
  --d: 1.2s;
}
.hero .stats {
  --d: 1.35s;
}
.pagehead .eyebrow {
  --d: 0.05s;
}
.pagehead .lede {
  --d: 0.7s;
}
[data-split] .w {
  display: inline-block;
  animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  animation-delay: calc(0.2s + var(--i) * 0.05s);
}
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: var(--sd, 0s);
}
.js .reveal.in {
  opacity: 1;
  transform: none;
}

/* Fond animé */
.hero,
.pagehead {
  position: relative;
  overflow: hidden;
  --mx: 50%;
  --my: 30%;
}
.hero::before,
.pagehead::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(var(--line) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(circle 320px at var(--mx) var(--my), #000, transparent);
  pointer-events: none;
}
/* Halos : dégradés doux (pas de flou CSS, qui laissait des anneaux visibles)
   et un grain très léger pour casser les paliers de couleur. */
.hero-fx {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle 55vmax at 88% 0%, rgba(209, 25, 25, 0.16), rgba(209, 25, 25, 0.05) 55%, transparent),
    radial-gradient(circle 45vmax at 10% 100%, rgba(209, 25, 25, 0.1), rgba(209, 25, 25, 0.03) 55%, transparent);
  mask-image: linear-gradient(to bottom, #000 30%, transparent 100%);
}
.hero-fx::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero-fx i {
  display: none;
}
.hero .wrap,
.pagehead .wrap {
  position: relative;
}

/* Bandeau défilant */
.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: var(--bg-alt);
  padding: 1rem 0;
}
.track {
  display: flex;
  width: max-content;
  gap: 3rem;
  padding-left: 3rem;
  animation: scroll-x 30s linear infinite;
}
.marquee:hover .track {
  animation-play-state: paused;
}
.track span {
  font-family: "JetBrains Mono", monospace;
  color: var(--muted);
  white-space: nowrap;
}
.track span::after {
  content: "✦";
  margin-left: 3rem;
  color: var(--accent);
}

/* Cartes projets : projecteur + inclinaison */
.project {
  position: relative;
  transition: transform 0.15s ease-out, border-color 0.25s, opacity 0.7s;
}
.project::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
  background: radial-gradient(
    260px circle at var(--x, 50%) var(--y, 50%),
    color-mix(in srgb, var(--accent) 22%, transparent),
    transparent 70%
  );
}
.project:hover::after,
.project.is-hover::after {
  opacity: 1;
}
.js .project.reveal.in:hover,
.js .project.reveal.in.is-hover {
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-4px);
}

@media (max-width: 760px) {
  .split {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* Carrousel de compétences */
.carousel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 2rem 1.4rem;
}
.slides {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.slides::-webkit-scrollbar {
  display: none;
}
.slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  min-height: 190px;
  display: grid;
  align-content: center;
  gap: 1rem;
}
.slide.active .chips li {
  animation: rise 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  animation-delay: calc(var(--i, 0) * 0.07s);
}
.slide h3 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--ink);
  margin: 0;
}
.slide .count {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.8rem;
  color: var(--accent);
}
.ctrl {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.4rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
}
.ctrl button {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.carousel {
  position: relative;
}
.pause {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 1;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font-size: 0.65rem;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.pause:hover {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 25%, transparent);
}
.ctrl button:hover {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 25%, transparent);
}
.dots {
  display: flex;
  gap: 0.5rem;
}
.dots button {
  width: 0.6rem;
  height: 0.6rem;
  padding: 0;
  border-radius: 999px;
  background: var(--line);
  border: 0;
  transition: width 0.3s, background 0.3s;
}
.dots button[aria-current="true"] {
  width: 2rem;
  background: var(--accent);
}

/* ---------- Navigation futuriste (menu plein écran) ---------- */
.js .topbar {
  background: none;
  backdrop-filter: none;
  border: 0;
}
.js .topbar::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.js .brand,
.js .navbtn,
.js .sys {
  position: relative;
  z-index: 2;
}
.js .brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.js .brand::before {
  content: "";
  width: 0.7rem;
  height: 0.7rem;
  background: var(--accent-hot);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  animation: blink 2s steps(1) infinite;
}
.sys {
  margin-left: auto;
  margin-right: 1.4rem;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  white-space: nowrap;
}
.sys b {
  color: var(--accent);
  font-weight: 500;
}
.navbtn {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.55rem 1.1rem;
  border: 0;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: var(--ink);
  cursor: pointer;
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  box-shadow: inset 0 0 0 1px var(--accent);
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
  transition: background 0.2s;
}
.navbtn:hover {
  background: color-mix(in srgb, var(--accent) 38%, transparent);
}
.navbtn kbd {
  font: inherit;
  font-size: 0.65rem;
  padding: 0 0.35rem;
  border: 1px solid var(--line);
  color: var(--muted);
}
.bars {
  position: relative;
  width: 18px;
  height: 10px;
}
.bars i {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: currentColor;
  transition: transform 0.3s, top 0.3s;
}
.bars i:first-child {
  top: 0;
}
.bars i:last-child {
  top: 8px;
}
.menu-open .bars i:first-child {
  top: 4px;
  transform: rotate(45deg);
}
.menu-open .bars i:last-child {
  top: 4px;
  transform: rotate(-45deg);
}

.js .menu {
  position: fixed;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.1rem;
  margin: 0;
  padding: 6rem max(1.5rem, calc((100% - var(--wrap)) / 2)) 5rem;
  overflow-y: auto;
  font-size: inherit;
  background:
    radial-gradient(ellipse 60% 50% at 85% 15%, rgba(209, 25, 25, 0.22), transparent 70%),
    repeating-linear-gradient(transparent 0 2px, rgba(0, 0, 0, 0.3) 3px),
    #040202;
  visibility: hidden;
  clip-path: circle(0 at calc(100% - 3.5rem) 1.8rem);
  transition: clip-path 0.7s cubic-bezier(0.7, 0, 0.2, 1), visibility 0s 0.7s;
}
.menu-open .menu {
  visibility: visible;
  clip-path: circle(150% at calc(100% - 3.5rem) 1.8rem);
  transition: clip-path 0.8s cubic-bezier(0.7, 0, 0.2, 1), visibility 0s;
}
.js .menu a {
  display: flex;
  align-items: baseline;
  gap: 1.2rem;
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 700;
  font-size: clamp(1.8rem, 6vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: var(--ink);
  box-shadow: none;
  padding: 0.12em 0;
  opacity: 0;
  transform: translateY(34px);
  transition: transform 0.5s, opacity 0.5s, color 0.2s, padding-left 0.25s;
}
.menu-open .menu a {
  opacity: 1;
  transform: none;
  transition-delay: calc(0.3s + var(--i) * 0.07s), calc(0.3s + var(--i) * 0.07s), 0s, 0s;
}
.js .menu a .n {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--accent);
}
.js .menu a:hover,
.js .menu a:focus-visible {
  color: var(--accent);
  padding-left: 1.2rem;
}
.js .menu a[aria-current="page"] {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--accent);
}
.js .menu a[aria-current="page"] .n::after {
  content: " ● ici";
  color: var(--accent-hot);
}
.menu-foot {
  width: 100%;
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.6rem 2rem;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.75rem;
  color: var(--muted);
}
.js .menu .menu-foot a {
  all: unset;
  cursor: pointer;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.75rem;
  color: var(--ink);
  text-decoration: underline;
}
.lock {
  overflow: hidden;
}
@media (max-width: 640px) {
  .sys,
  .navbtn kbd {
    display: none;
  }
  .navbtn {
    margin-left: auto;
  }
}

/* ---------- Centres d'intérêt : fond animé ---------- */
.interests {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: 640px;
  display: flex;
  align-items: center;
  background: var(--bg);
}
.interests canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}
.interests::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.05) 70%),
    repeating-linear-gradient(transparent 0 2px, rgba(0, 0, 0, 0.18) 3px);
}
.interests .wrap {
  width: min(var(--wrap), 100% - 3rem);
}
.interest-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-bottom: 1px solid var(--line);
}
.interest {
  display: grid;
  grid-template-columns: 3rem 1fr auto;
  align-items: baseline;
  gap: 1rem;
  width: 100%;
  padding: 0.9rem 0;
  text-align: left;
  font: inherit;
  color: var(--ink);
  background: none;
  border: 0;
  border-top: 1px solid var(--line);
  cursor: pointer;
  transition: padding-left 0.3s, color 0.2s;
}
.interest .num {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.8rem;
  color: var(--accent);
}
.interest .name {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 700;
  font-size: clamp(1.9rem, 5.5vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}
.interest .desc {
  font-size: 0.9rem;
  color: var(--muted);
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity 0.3s, transform 0.3s;
}
.interest:hover,
.interest.active {
  padding-left: 1rem;
  color: var(--accent);
}
.interest:hover .desc,
.interest.active .desc {
  opacity: 1;
  transform: none;
  color: var(--ink);
}
@media (max-width: 640px) {
  .interest {
    grid-template-columns: 2.2rem 1fr;
  }
  .interest .desc {
    grid-column: 2;
    opacity: 1;
    transform: none;
  }
}
