:root { --dot: #cbd5e1; --g1: #d1fae5; --g2: #bbf7d0; --g3: #cffafe; --g4: #10b981;
  --bg: #f8fafc; --fg: #0f172a; --muted: #64748b; --line: #e2e8f0; --card: #fff; --accent: #047857;
}
:root[data-theme="dark"] { --dot: #1e293b; --g1: #064e3b; --g2: #065f46; --g3: #0c4a6e; --g4: #34d399; --bg: #0b1120; --fg: #f1f5f9; --muted: #94a3b8; --line: #1e293b; --card: #111a2e; --accent: #34d399; }

* { 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 4px; }
.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%; margin-bottom: 20px; }
.eyebrow { color: var(--accent); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; margin: 0 0 8px; }
.hero h1 { font-size: clamp(1.9rem, 5vw, 2.8rem); line-height: 1.15; margin: 0 0 16px; }
.hero h1 span { color: var(--accent); }
.hero p { color: var(--muted); max-width: 560px; }
.hero .eyebrow { color: var(--accent); }
.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:hover { opacity: .85; }


/* Bento */
.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: 72%; 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, #featured { 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; }
.rows2 { grid-row: span 2; }
.feature { background: linear-gradient(160deg, var(--g1), var(--g2) 60%, var(--g3)); padding: 36px; }
.feature .big.xl { font-size: clamp(3rem, 7vw, 5.5rem); margin-bottom: 12px; }
.feature p { color: var(--fg); max-width: 380px; font-size: 1.05rem; }
.feature .pill { align-self: flex-start; }
#featured { margin-top: 0; }
.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.contain img { object-fit: contain; padding: 24px 24px 64px; }
.media .ph { position: absolute; inset: 0; display: grid; place-items: center; 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) { .bento { grid-template-columns: 1fr; } .span2 { grid-column: auto; } .rows2 { grid-row: auto; } #projets { padding: 24px 12px 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: 28px; 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 ul { margin: 6px 0 0; padding-left: 18px; color: var(--muted); }

/* Chips */
.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, footer small { color: var(--muted); }
