@font-face { font-family: Genoid; src: url(assets/fonts/genoid-700.woff2) format("woff2"); font-weight: 700; font-display: swap; }
:root { --dot: #d6d3d1; --g1: #f3e8ff; --g2: #e9d5ff; --g3: #ddd6fe; --g4: #a855f7;
  --bg: #fafaf9; --fg: #1c1917; --muted: #78716c; --line: #e7e5e4; --card: #fff; --accent: #2563eb;
}
:root[data-theme="dark"] { --dot: #292524; --g1: #3b2a5c; --g2: #2e2350; --g3: #1f1a3a; --g4: #a855f7; --bg: #0c0a09; --fg: #fafaf9; --muted: #a8a29e; --line: #292524; --card: #1c1917; --accent: #60a5fa; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: inherit; }
main, footer { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
section { padding: 56px 0; }
h2 { font-size: 1.5rem; margin: 0 0 24px; display: flex; align-items: center; gap: 10px; }
h3 { margin: 0 0 8px; }
.count { font-size: .8rem; background: var(--line); color: var(--muted); border-radius: 99px; padding: 2px 10px; }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 8px; top: 8px; background: var(--fg); color: var(--bg); padding: 8px; z-index: 20; }

.nav { position: sticky; top: 0; z-index: 10; display: flex; justify-content: space-between; align-items: center; padding: 14px 24px; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav nav { display: flex; align-items: center; gap: 18px; font-size: .95rem; }
.nav a { text-decoration: none; }
.brand { font-weight: 700; }
.btn-small { border: 1px solid var(--fg); border-radius: 99px; padding: 4px 14px; }
#theme { background: none; border: 0; color: inherit; font-size: 1.1rem; cursor: pointer; }

.hero { padding-top: 88px; }
.avatar { border-radius: 50%; border: 1px solid var(--line); margin-bottom: 20px; }
.hero h1 { font-size: clamp(1.9rem, 5vw, 2.8rem); line-height: 1.15; margin: 0 0 16px; }
.hero h1 span { color: var(--muted); }
.hero p { color: var(--muted); max-width: 560px; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }

.btn { display: inline-block; background: var(--fg); color: var(--bg); text-decoration: none; padding: 10px 20px; border-radius: 10px; font-weight: 600; }
.btn.ghost { background: none; color: var(--fg); border: 1px solid var(--line); }
.btn.small { padding: 6px 12px; font-size: .9rem; }
.btn:hover { opacity: .85; }

/* Bento */
.bare .pill { display: none; }
.branded .big, .branded .pill, .branded b { font-weight: 800; }
.pill i img { height: 34px; filter: drop-shadow(0 0 3px #A855FF); }
.media .ph img { height: 100%; width: auto; filter: drop-shadow(0 0 3px #A855FF) drop-shadow(0 0 12px rgb(168 85 255 / .7)); }
.deco { position: absolute; right: 56px; top: 50%; height: 78%; transform: translateY(-50%); filter: drop-shadow(0 0 3px #A855FF) drop-shadow(0 0 14px rgb(168 85 255 / .7)); }
.tile[style] .label span, .tile[style] p { color: inherit; opacity: .65; }
.tile[style] .big { color: inherit; }
#projets { background-image: radial-gradient(var(--dot) 1.3px, transparent 1.4px); background-size: 24px 24px; border-radius: 40px; padding: 40px 24px 48px; margin: 16px 0; }
.bento { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: minmax(300px, auto); gap: 16px; }
.tile { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 12px; padding: 28px; border-radius: 32px; background: var(--card); text-decoration: none; overflow: hidden; transition: transform .2s, box-shadow .2s; }
a.tile:hover { transform: translateY(-4px); box-shadow: 0 16px 40px -20px rgb(0 0 0 / .25); }
.span2 { grid-column: span 2; }
.big { overflow-wrap: anywhere; font-size: clamp(1.6rem, 2.6vw, 2.3rem); line-height: 1.05; letter-spacing: -.02em; }
.tile p { margin: 0; color: var(--muted); }
.label { display: flex; flex-direction: column; font-size: .85rem; line-height: 1.3; }
.label span { color: var(--muted); }
.stat .label { align-self: flex-start; }
.stat .desc { font-size: .9rem; }
.nums { display: flex; flex-direction: column; align-items: flex-end; font-size: clamp(3rem, 6vw, 4.8rem); line-height: .95; letter-spacing: -.03em; margin-top: auto; }
.nums .dim { color: #a3a3a3; }
.gradient { background: linear-gradient(135deg, var(--g1), var(--g2) 55%, var(--g3)); align-items: center; justify-content: center; }
.gradient::before { content: ""; position: absolute; width: 140%; height: 60%; left: -20%; top: 18%; border-radius: 50%; border-top: 3px solid var(--g4); transform: rotate(-12deg); opacity: .7; }
.pill { position: relative; display: flex; align-items: center; gap: 12px; background: #fff; color: #111; padding: 10px 22px 10px 10px; border-radius: 14px; font-size: .95rem; box-shadow: 0 10px 30px -12px rgb(0 0 0 / .2); }
.pill i { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: #111; color: #fff; font-style: normal; font-weight: 700; }
.media { padding: 0; background: linear-gradient(160deg, #e7e5e4, #d6d3d1); justify-content: flex-end; }
.media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.media .ph { position: absolute; inset: 0; display: grid; place-items: center; padding: 24px 24px 76px; font-size: 6rem; font-weight: 700; color: rgb(255 255 255 / .6); }
.media .pill { margin: 20px; padding: 8px 16px; align-self: flex-start; font-size: .85rem; }
@media (max-width: 820px) { .bare > img { object-fit: contain; } .bento { grid-template-columns: 1fr; } .span2 { grid-column: auto; } #projets { padding: 24px 12px 32px; } }

.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 32px; }
.timeline { list-style: none; margin: 0; padding: 0 0 0 16px; border-left: 2px solid var(--line); }
.timeline > li { display: flex; flex-direction: column; margin-bottom: 20px; position: relative; }
.timeline > li::before { content: ""; position: absolute; left: -22px; top: 8px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.timeline .year { font-size: .8rem; color: var(--muted); }
.timeline > li > span:last-child { color: var(--muted); }
.timeline ul { margin: 6px 0 0; padding-left: 18px; color: var(--muted); }
.sub { margin-top: 40px; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; }
.chips li { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 4px 12px; font-size: .9rem; }

footer { text-align: center; padding: 64px 16px 40px; border-top: 1px solid var(--line); }
footer h2 { justify-content: center; }
footer p { color: var(--muted); }
footer small { color: var(--muted); }
