:root {
  --ink: #0f1b26;
  --ink-2: #1b2b3a;
  --paper: #f5f2ec;
  --card: #ffffff;
  --line: #e2ddd3;
  --muted: #6b7682;
  --text: #1c2630;
  --accent: #e8833a;
  --accent-2: #f4b26b;
  --blue: #3f6f95;
  --c1: #e8833a; --c2: #3f8f7a; --c3: #3f6f95; --c4: #b0543d; --c5: #7a5fa8;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(15,27,38,.05), 0 8px 30px rgba(15,27,38,.06);
  --max: 1180px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: "Inter", system-ui, sans-serif; background: var(--paper); color: var(--text); line-height: 1.6; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, .display { font-family: "Space Grotesk", "Inter", sans-serif; letter-spacing: -.02em; line-height: 1.1; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.eyebrow { font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.section { padding: 96px 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 40px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(2rem, 4vw, 2.9rem); margin-top: 10px; }
.section-head p { color: var(--muted); max-width: 520px; }

/* ---------------- navigation */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .3s, box-shadow .3s; }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.nav.solid, .nav.light { background: rgba(245,242,236,.88); backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
.brand { display: flex; align-items: center; gap: 12px; font-family: "Space Grotesk"; font-weight: 700; color: #fff; }
.brand-mark { width: 36px; height: 36px; border-radius: 10px; background: var(--accent); display: grid; place-items: center; color: var(--ink); font-size: .9rem; }
.nav.solid .brand, .nav.light .brand { color: var(--ink); }
.nav-links { display: flex; gap: 6px; list-style: none; }
.nav-links a { padding: 9px 16px; border-radius: 999px; font-size: .92rem; font-weight: 500; color: rgba(255,255,255,.82); transition: .2s; }
.nav-links a:hover { color: #fff; background: rgba(255,255,255,.1); }
.nav.solid .nav-links a, .nav.light .nav-links a { color: var(--text); }
.nav.solid .nav-links a:hover, .nav.light .nav-links a:hover { background: rgba(15,27,38,.06); }
.nav-links a.active { background: var(--accent) !important; color: var(--ink) !important; }
.burger { display: none; background: none; border: 0; color: inherit; cursor: pointer; }
.burger span { display: block; width: 24px; height: 2px; background: currentColor; margin: 5px 0; transition: .3s; }
.nav .burger { color: #fff; } .nav.solid .burger, .nav.light .burger { color: var(--ink); }

/* ---------------- hero */
.hero { position: relative; min-height: 100vh; background: var(--ink); color: #fff; display: flex; align-items: center; overflow: hidden; }
.hero-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px); background-size: 48px 48px; mask-image: radial-gradient(ellipse at 70% 50%, #000 30%, transparent 75%); }
.hero-glow { position: absolute; width: 700px; height: 700px; right: -150px; top: -100px; background: radial-gradient(circle, rgba(232,131,58,.28), transparent 65%); filter: blur(10px); }
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; padding-top: 72px; }
.hero h1 { font-size: clamp(3rem, 8vw, 6.2rem); font-weight: 700; margin: 18px 0 22px; }
.hero h1 span { color: transparent; -webkit-text-stroke: 1.5px rgba(255,255,255,.75); display: block; }
.hero .lead { font-size: 1.13rem; color: rgba(255,255,255,.72); max-width: 540px; }
.hero-tags { display: flex; gap: 10px; flex-wrap: wrap; margin: 26px 0 34px; }
.tag { padding: 7px 14px; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; font-size: .82rem; color: rgba(255,255,255,.8); }
.btns { display: flex; gap: 14px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px; border-radius: 999px; font-weight: 600; font-size: .95rem; transition: transform .2s, box-shadow .2s, background .2s; }
.btn-primary { background: var(--accent); color: var(--ink); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(232,131,58,.4); }
.btn-ghost { border: 1px solid rgba(255,255,255,.25); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.08); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { transform: translateY(-2px); }
.hero-art svg { width: 100%; height: auto; }
.draw path, .draw line, .draw rect, .draw polyline { stroke-dasharray: 1200; stroke-dashoffset: 1200; animation: draw 3.2s ease forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.scroll-hint { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); font-size: .72rem; letter-spacing: .2em; color: rgba(255,255,255,.5); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.scroll-hint i { width: 1px; height: 38px; background: linear-gradient(rgba(255,255,255,.6), transparent); animation: drop 1.8s infinite; }
@keyframes drop { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------------- stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); margin-top: -64px; position: relative; z-index: 2; }
.stat { padding: 30px 28px; border-right: 1px solid var(--line); }
.stat:last-child { border: 0; }
.stat b { display: block; font-family: "Space Grotesk"; font-size: 2.6rem; color: var(--ink); line-height: 1; }
.stat span { color: var(--muted); font-size: .88rem; }

/* ---------------- intro / BEC */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.split h2 { font-size: clamp(2rem, 4vw, 2.8rem); margin: 12px 0 20px; }
.split p { color: #45505b; margin-bottom: 14px; }
.jobs { display: grid; gap: 10px; }
.job { display: flex; align-items: center; gap: 14px; padding: 16px 18px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; font-weight: 500; transition: .2s; }
.job:hover { border-color: var(--accent); transform: translateX(4px); }
.job i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }
.link-arrow { display: inline-flex; gap: 8px; font-weight: 600; color: var(--ink); border-bottom: 2px solid var(--accent); padding-bottom: 2px; margin-top: 8px; }

/* ---------------- compétences */
.comp-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.comp-card { position: relative; background: var(--card); border-radius: var(--radius); padding: 26px 22px 24px; border: 1px solid var(--line); transition: transform .25s, box-shadow .25s; overflow: hidden; display: flex; flex-direction: column; min-height: 250px; }
.comp-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--c); }
.comp-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.comp-ico { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 14%, white); color: var(--c); margin-bottom: 18px; }
.comp-card small { font-size: .74rem; font-weight: 700; letter-spacing: .12em; color: var(--c); }
.comp-card h3 { font-size: 1.15rem; margin: 6px 0 10px; }
.comp-card p { font-size: .86rem; color: var(--muted); flex: 1; }
.comp-card .count { margin-top: 16px; font-size: .82rem; font-weight: 600; color: var(--ink); }

/* ---------------- cartes SAE */
.sae-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 18px; }
.sae-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 12px; transition: transform .25s, box-shadow .25s, border-color .25s; position: relative; }
.sae-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: transparent; }
.sae-top { display: flex; justify-content: space-between; align-items: center; }
.sae-num { font-family: "Space Grotesk"; font-weight: 700; font-size: 1.5rem; color: var(--c); }
.pill { font-size: .72rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: #f1ede6; color: #5b6570; }
.pill.ready { background: color-mix(in srgb, var(--c2) 15%, white); color: var(--c2); }
.sae-card h3 { font-size: 1.05rem; line-height: 1.3; }
.sae-card p { font-size: .87rem; color: var(--muted); flex: 1; }
.sae-meta { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { font-size: .7rem; font-weight: 600; padding: 3px 8px; border-radius: 6px; background: #f3f1ec; color: #4c5761; }
.sae-card .go { font-size: .85rem; font-weight: 600; color: var(--ink); display: flex; align-items: center; gap: 6px; }

/* ---------------- filtres */
.filters { display: flex; flex-direction: column; gap: 14px; margin-bottom: 34px; }
.filter-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.filter-row > span { font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); width: 110px; }
.fbtn { border: 1px solid var(--line); background: var(--card); padding: 8px 15px; border-radius: 999px; font: 500 .86rem "Inter"; cursor: pointer; color: var(--text); transition: .2s; }
.fbtn:hover { border-color: var(--ink); }
.fbtn.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.empty { text-align: center; color: var(--muted); padding: 60px 0; }

/* ---------------- en-tête de page */
.page-head { background: var(--ink); color: #fff; padding: 150px 0 80px; position: relative; overflow: hidden; }
.page-head .hero-grid { mask-image: radial-gradient(ellipse at 80% 30%, #000 20%, transparent 70%); }
.page-head .wrap { position: relative; }
.page-head h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); margin: 14px 0 16px; max-width: 900px; }
.page-head p { color: rgba(255,255,255,.7); max-width: 640px; font-size: 1.08rem; }
.crumbs { font-size: .85rem; color: rgba(255,255,255,.55); }
.crumbs a:hover { color: #fff; }

/* ---------------- page projet */
.project { display: grid; grid-template-columns: 1fr 320px; gap: 48px; align-items: start; }
.block { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; margin-bottom: 20px; }
.block h2 { font-size: 1.45rem; margin-bottom: 14px; display: flex; align-items: center; gap: 12px; }
.block h2::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--accent); }
.block p { color: #45505b; margin-bottom: 12px; }
.placeholder { border: 2px dashed var(--line); border-radius: 12px; padding: 26px; color: var(--muted); text-align: center; font-size: .92rem; }
.aside { position: sticky; top: 96px; display: grid; gap: 16px; }
.aside .block { padding: 24px; margin: 0; }
.aside h4 { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; font-family: "Inter"; }
.kv { display: grid; gap: 10px; font-size: .9rem; }
.kv div { display: flex; justify-content: space-between; gap: 12px; }
.kv b { font-weight: 600; text-align: right; }
.ac-list { display: grid; gap: 10px; }
.ac-item { display: grid; grid-template-columns: 62px 1fr; gap: 10px; font-size: .86rem; color: #45505b; }
.ac-item b { color: var(--ink); font-family: "Space Grotesk"; }
.file { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; font-size: .88rem; font-weight: 500; transition: .2s; }
.file:hover { border-color: var(--accent); }
.file svg { color: var(--accent); flex: none; }
.pager { display: flex; justify-content: space-between; gap: 16px; margin-top: 10px; }
.pager a { flex: 1; padding: 18px 22px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; font-size: .88rem; transition: .2s; }
.pager a:hover { border-color: var(--ink); }
.pager small { display: block; color: var(--muted); font-size: .75rem; }

/* ---------------- compétences page */
.comp-section { display: grid; grid-template-columns: 300px 1fr; gap: 40px; padding: 48px 0; border-top: 1px solid var(--line); }
.comp-section:first-child { border: 0; padding-top: 0; }
.comp-side h2 { font-size: 1.7rem; margin: 10px 0 12px; }
.comp-side p { color: var(--muted); font-size: .92rem; }
.level { margin-bottom: 26px; }
.level h4 { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; font-family: "Inter"; }
.ac-row { display: grid; grid-template-columns: 70px 1fr auto; gap: 14px; align-items: center; padding: 13px 16px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 8px; font-size: .9rem; }
.ac-row b { font-family: "Space Grotesk"; color: var(--c); }
.ac-row .links { display: flex; gap: 6px; flex-wrap: wrap; justify-content: end; }
.ac-row .links a { font-size: .72rem; font-weight: 600; padding: 3px 8px; border-radius: 6px; background: color-mix(in srgb, var(--c) 13%, white); color: var(--c); }

/* ---------------- projet pro */
.pro { display: grid; grid-template-columns: 340px 1fr; gap: 32px; align-items: start; }
.profile { background: var(--ink); color: #fff; border-radius: var(--radius); padding: 34px; position: sticky; top: 96px; }
.avatar { width: 96px; height: 96px; border-radius: 26px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); display: grid; place-items: center; font: 700 2rem "Space Grotesk"; color: var(--ink); margin-bottom: 20px; }
.profile h3 { font-size: 1.5rem; }
.profile .sub { color: rgba(255,255,255,.6); font-size: .9rem; margin: 4px 0 22px; }
.bar { margin-bottom: 14px; font-size: .85rem; }
.bar div { display: flex; justify-content: space-between; margin-bottom: 6px; color: rgba(255,255,255,.85); }
.bar i { display: block; height: 6px; border-radius: 6px; background: rgba(255,255,255,.12); overflow: hidden; }
.bar i::after { content: ""; display: block; height: 100%; width: var(--w); background: var(--accent); border-radius: 6px; }
.profile h4 { font-size: .75rem; letter-spacing: .14em; color: var(--accent-2); margin: 26px 0 14px; font-family: "Inter"; }
.langs div { display: flex; justify-content: space-between; font-size: .9rem; padding: 7px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.timeline { position: relative; padding-left: 28px; }
.timeline::before { content: ""; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.tl { position: relative; margin-bottom: 26px; }
.tl::before { content: ""; position: absolute; left: -28px; top: 5px; width: 14px; height: 14px; border-radius: 50%; background: var(--paper); border: 3px solid var(--accent); }
.tl small { color: var(--accent); font-weight: 600; font-size: .8rem; }
.tl h3 { font-size: 1.1rem; margin: 4px 0 6px; }
.tl p { color: var(--muted); font-size: .9rem; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.chips span { padding: 6px 12px; border-radius: 999px; background: #efeae2; font-size: .82rem; font-weight: 500; }
.ambition { background: linear-gradient(135deg, var(--ink), var(--ink-2)); color: #fff; }
.ambition h2::before { background: var(--accent-2); }
.ambition p { color: rgba(255,255,255,.75); }
.ambition .big { font: 600 1.6rem/1.25 "Space Grotesk"; color: #fff; margin-bottom: 14px; }
.ambition .chips span { background: rgba(255,255,255,.1); color: #fff; }
.interests { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.interests h4 { font-size: .9rem; margin-bottom: 6px; }

/* ---------------- CTA + footer */
.cta { background: var(--ink); color: #fff; border-radius: 28px; padding: 64px; display: flex; justify-content: space-between; align-items: center; gap: 30px; position: relative; overflow: hidden; }
.cta h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); max-width: 560px; }
.cta .hero-glow { right: -300px; top: -350px; }
footer { padding: 48px 0 36px; color: var(--muted); font-size: .88rem; }
footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 28px; }
footer a:hover { color: var(--ink); }

/* ---------------- animations d'apparition */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } .draw * { animation: none !important; stroke-dashoffset: 0 !important; } }

/* ---------------- responsive */
@media (max-width: 1000px) {
  .comp-grid { grid-template-columns: repeat(2, 1fr); }
  .hero .wrap, .split, .project, .pro, .comp-section { grid-template-columns: 1fr; }
  .hero-art { display: none; }
  .aside, .profile { position: static; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; } .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .cta { flex-direction: column; align-items: start; padding: 44px 32px; }
}
@media (max-width: 760px) {
  .nav-links { position: fixed; inset: 72px 0 auto; flex-direction: column; background: var(--paper); padding: 16px 24px 28px; box-shadow: 0 20px 30px rgba(0,0,0,.08); display: none; }
  .nav-links.open { display: flex; }
  .nav-links a { color: var(--text) !important; display: block; }
  .burger { display: block; }
  .comp-grid { grid-template-columns: 1fr; }
  .section { padding: 70px 0; }
  .block { padding: 24px; }
  .ac-row { grid-template-columns: 60px 1fr; } .ac-row .links { grid-column: 1 / -1; justify-content: start; }
  .filter-row > span { width: 100%; }
  .wrap { padding: 0 16px; }
  .scroll-hint { display: none; }
  .hero { min-height: auto; padding: 40px 0 110px; }
}
