/* ===== Tokens ===== */
:root {
  --bg: #060b16;
  --bg-2: #0a1222;
  --card: rgba(15, 25, 44, 0.72);
  --card-solid: #0f192c;
  --line: rgba(148, 178, 222, 0.12);
  --line-strong: rgba(148, 178, 222, 0.22);
  --text: #e8eef9;
  --muted: #8c9ab3;
  --dim: #5d6b85;
  --c1: #2dd4bf;          /* couleurs d'accent choisies (par défaut : teal du CV) */
  --c2: #38bdf8;
  --c3: #818cf8;
  --a1: var(--c1);
  --a2: var(--c2);
  --a3: var(--c3);
  --grad: linear-gradient(100deg, var(--a1), var(--a2) 55%, var(--a3));
  --ok: #34d399;
  --shadow: 0 20px 60px -20px rgba(0, 0, 0, .6);
  --radius: 18px;
  --sans: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  color-scheme: dark;
}
[data-theme="light"] {
  --bg: #f4f7fb;
  --bg-2: #eaf0f7;
  --card: rgba(255, 255, 255, 0.85);
  --card-solid: #ffffff;
  --line: rgba(15, 35, 70, 0.10);
  --line-strong: rgba(15, 35, 70, 0.18);
  --text: #0d1729;
  --muted: #4b5a74;
  --dim: #7b879c;
  /* en clair, on assombrit l'accent pour garder le contraste */
  --a1: color-mix(in srgb, var(--c1) 68%, #000);
  --a2: color-mix(in srgb, var(--c2) 72%, #000);
  --a3: color-mix(in srgb, var(--c3) 78%, #000);
  --ok: #059669;
  --shadow: 0 20px 50px -25px rgba(15, 35, 70, .35);
  color-scheme: light;
}

/* ===== Base ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background .4s, color .4s;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
b { font-weight: 600; color: var(--text); }
svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
::selection { background: var(--a1); color: #04121a; }

.container { width: min(1180px, 100% - 32px); margin-inline: auto; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.muted { color: var(--muted); }

.bg-grid {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
  opacity: .55;
}
body::before {
  content: ""; position: fixed; z-index: -3; inset: -20% -10% auto; height: 80vh; pointer-events: none;
  background:
    radial-gradient(40% 50% at 20% 30%, color-mix(in srgb, var(--a1) 22%, transparent), transparent 70%),
    radial-gradient(35% 45% at 80% 20%, color-mix(in srgb, var(--a3) 18%, transparent), transparent 70%);
  filter: blur(20px);
}
.cursor-glow {
  position: fixed; z-index: -1; width: 520px; height: 520px; border-radius: 50%;
  pointer-events: none; left: 0; top: 0; transform: translate(-50%, -50%);
  background: radial-gradient(circle, color-mix(in srgb, var(--a2) 12%, transparent), transparent 65%);
  transition: opacity .3s; opacity: 0;
}
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; z-index: 60; width: 100%;
  background: var(--grad); transform-origin: 0 50%; transform: scaleX(0);
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: 12px; border: 1px solid transparent;
  font: 600 15px var(--sans); cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--grad); color: #04121a; box-shadow: 0 10px 30px -10px color-mix(in srgb, var(--a2) 70%, transparent); }
.btn-primary:hover { box-shadow: 0 16px 40px -12px color-mix(in srgb, var(--a2) 85%, transparent); }
.btn-ghost { background: var(--card); border-color: var(--line-strong); color: var(--text); backdrop-filter: blur(8px); }
.btn-ghost:hover { border-color: var(--a1); }
.btn-soft { background: color-mix(in srgb, var(--a1) 14%, transparent); color: var(--a1); border-color: color-mix(in srgb, var(--a1) 35%, transparent); }
.btn-sm { padding: 9px 16px; font-size: 14px; border-radius: 10px; font-family: var(--mono); }

.icon-btn {
  width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px;
  background: transparent; border: 1px solid var(--line-strong); color: var(--muted); cursor: pointer; transition: .2s;
}
.icon-btn:hover { color: var(--a1); border-color: var(--a1); }
.lang-btn { font: 700 12.5px var(--mono); letter-spacing: .04em; }
[data-theme="light"] .btn-primary,
[data-theme="light"] .filters button.active,
[data-theme="light"] .brand-mark,
[data-theme="light"] .socials a:hover { color: #fff; }

/* Sélecteur de couleur */
.picker { position: relative; }
.picker .icon-btn[aria-expanded="true"] { color: var(--a1); border-color: var(--a1); }
.picker-panel {
  position: absolute; top: calc(100% + 10px); right: 0; width: 196px; padding: 14px; border-radius: 14px;
  background: var(--card-solid); border: 1px solid var(--line-strong); box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: .2s; z-index: 70;
}
.picker-panel.show { opacity: 1; visibility: visible; transform: none; }
.picker-title { display: block; font: 600 10.5px var(--mono); letter-spacing: .1em; color: var(--dim); margin-bottom: 12px; }
.picker-options { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.swatch {
  aspect-ratio: 1; border-radius: 10px; cursor: pointer; border: 2px solid transparent; position: relative;
  background: linear-gradient(135deg, var(--s1), var(--s2) 55%, var(--s3)); transition: transform .15s;
}
.swatch:hover { transform: scale(1.1); }
.swatch.active { border-color: var(--text); }
.swatch.active::after { content: "✓"; position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 13px; text-shadow: 0 1px 3px rgba(0, 0, 0, .6); }

.i-sun { display: none; }
[data-theme="light"] .i-sun { display: block; }
[data-theme="light"] .i-moon { display: none; }

/* ===== Nav ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 70%, transparent);
  backdrop-filter: blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s, background .3s;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner { width: min(1180px, 100% - 32px); margin: auto; height: 72px; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 700; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center;
  background: var(--grad); color: #04121a; font-weight: 800; font-size: 15px;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text small { font: 500 10px var(--mono); color: var(--dim); border: 1px solid var(--line-strong); border-radius: 4px; padding: 0 5px; width: fit-content; margin-top: 3px; }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a { padding: 8px 14px; border-radius: 9px; font-size: 14.5px; color: var(--muted); transition: .2s; }
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--a1); background: color-mix(in srgb, var(--a1) 12%, transparent); }
.nav-actions { display: flex; gap: 10px; align-items: center; margin-left: auto; }
.nav-links + .nav-actions { margin-left: 0; }
@media (max-width: 900px) { .nav-links + .nav-actions { margin-left: auto; } }
.burger { display: none; flex-direction: column; gap: 4px; }
.burger span { width: 18px; height: 2px; background: currentColor; border-radius: 2px; transition: .3s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ===== Hero ===== */
.hero { padding: 140px 0 60px; min-height: 100vh; display: flex; flex-direction: column; justify-content: center; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px; border-radius: 999px;
  font: 500 12.5px var(--mono); color: var(--a1);
  background: color-mix(in srgb, var(--a1) 10%, transparent); border: 1px solid color-mix(in srgb, var(--a1) 30%, transparent);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 var(--ok); animation: ping 2s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 60%, transparent); } 80%, 100% { box-shadow: 0 0 0 8px transparent; } }
.hero h1 { font-size: clamp(40px, 6vw, 68px); line-height: 1.05; margin: 22px 0 12px; letter-spacing: -0.03em; font-weight: 800; }
.hero-role { font-size: clamp(22px, 2.8vw, 32px); margin: 0 0 22px; font-weight: 700; letter-spacing: -0.01em; min-height: 1.3em; }
.typed { color: var(--a2); }
.caret { color: var(--a1); animation: blink 1s steps(1) infinite; margin-left: 2px; font-weight: 400; }
@keyframes blink { 50% { opacity: 0; } }
.hero-lead { color: var(--muted); font-size: 17.5px; max-width: 560px; margin: 0 0 22px; }
.hero-meta { list-style: none; padding: 0; margin: 0 0 32px; display: flex; flex-wrap: wrap; gap: 22px; font: 500 13px var(--mono); color: var(--muted); }
.hero-meta li { display: flex; gap: 8px; align-items: center; }
.hero-meta svg { color: var(--a1); width: 16px; height: 16px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-visual { position: relative; padding: 30px 10px; }
.code-card {
  background: var(--card-solid); border: 1px solid var(--line-strong); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden; transform: perspective(1000px) rotateY(-6deg) rotateX(3deg);
  transition: transform .2s ease-out;
}
.code-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.dots { display: flex; gap: 7px; }
.dots i { width: 11px; height: 11px; border-radius: 50%; background: #f87171; }
.dots i:nth-child(2) { background: #fbbf24; }
.dots i:nth-child(3) { background: #34d399; }
.code-file { font: 500 12px var(--mono); color: var(--dim); }
.code-body { margin: 0; padding: 20px 22px; font: 13.5px/1.75 var(--mono); min-height: 280px; white-space: pre-wrap; color: var(--text); }
.tk-k { color: #c084fc; } .tk-v { color: var(--a2); } .tk-s { color: #86efac; } .tk-p { color: var(--muted); } .tk-n { color: #fbbf24; } .tk-c { color: var(--dim); font-style: italic; }
[data-theme="light"] .tk-s { color: #15803d; } [data-theme="light"] .tk-k { color: #9333ea; } [data-theme="light"] .tk-n { color: #b45309; }
.code-log { border-top: 1px dashed var(--line-strong); padding: 14px 22px 18px; font: 12.5px/1.9 var(--mono); color: var(--muted); }
.ok { color: var(--ok); margin-right: 6px; }

.float-badge {
  position: absolute; display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 14px;
  background: var(--card); border: 1px solid var(--line-strong); backdrop-filter: blur(12px); box-shadow: var(--shadow);
  animation: float 6s ease-in-out infinite;
}
.float-badge strong { display: block; font-size: 14px; }
.float-badge small { color: var(--muted); font-size: 12px; }
.fb-icon { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; font: 700 13px var(--mono); color: var(--a1); background: color-mix(in srgb, var(--a1) 14%, transparent); }
.fb-top { top: -6px; right: -14px; }
.fb-bottom { bottom: -4px; left: -20px; animation-delay: -3s; }
@keyframes float { 50% { transform: translateY(-10px); } }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 72px; }
.stat { padding: 24px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); text-align: center; transition: border-color .3s, transform .3s; }
.stat:hover { border-color: color-mix(in srgb, var(--a1) 45%, transparent); transform: translateY(-4px); }
.stat strong { display: block; font-size: 38px; font-weight: 800; letter-spacing: -0.03em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { display: block; font-weight: 600; margin-top: 2px; }
.stat small { color: var(--dim); font: 12px var(--mono); }

/* ===== Sections ===== */
.section { padding: 110px 0; }
.section-head { margin-bottom: 56px; max-width: 640px; }
.section-head.center { margin-inline: auto; text-align: center; }
.eyebrow { display: inline-block; font: 600 12px var(--mono); letter-spacing: .12em; color: var(--a1); padding: 6px 12px; border-radius: 8px; background: color-mix(in srgb, var(--a1) 10%, transparent); border: 1px solid color-mix(in srgb, var(--a1) 25%, transparent); }
.section-head h2 { font-size: clamp(32px, 4.4vw, 48px); margin: 16px 0 10px; letter-spacing: -0.03em; line-height: 1.1; }
.section-head p { color: var(--muted); font: 14.5px var(--mono); margin: 0; }
.mono-label { display: block; font: 600 11.5px var(--mono); color: var(--dim); letter-spacing: .08em; margin: 28px 0 14px; }

.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 30px; color: var(--muted); }
.checks li::before {
  content: "✓"; position: absolute; left: 0; top: 2px; width: 19px; height: 19px; border-radius: 6px;
  display: grid; place-items: center; font-size: 11px; font-weight: 700; color: var(--a1);
  border: 1px solid color-mix(in srgb, var(--a1) 45%, transparent); background: color-mix(in srgb, var(--a1) 10%, transparent);
}

/* Profil */
.profile-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: start; }
.profile-text h3 { font-size: 22px; margin: 0 0 16px; display: flex; gap: 10px; align-items: center; }
.spark { color: var(--a1); }
.profile-text p { font-size: 16.5px; margin: 0 0 14px; }
.profile-text .checks { grid-template-columns: 1fr 1fr; gap: 12px 24px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips span { padding: 7px 14px; border-radius: 999px; font-size: 13.5px; background: var(--card); border: 1px solid var(--line); transition: .2s; }
.chips span:hover { border-color: var(--a1); transform: translateY(-2px); }

.blueprint { padding: 28px; border-radius: 22px; background: var(--card); border: 1px solid var(--line-strong); box-shadow: var(--shadow); position: sticky; top: 100px; }
.bp-photo { position: relative; width: 112px; margin-bottom: 18px; }
.bp-photo img { width: 112px; height: 112px; border-radius: 20px; object-fit: cover; border: 2px solid transparent; background: var(--grad) border-box; }
.bp-status { position: absolute; bottom: -10px; left: 50%; transform: translateX(-50%); white-space: nowrap; display: flex; gap: 6px; align-items: center; font: 600 10.5px var(--mono); padding: 4px 9px; border-radius: 999px; background: var(--card-solid); border: 1px solid var(--line-strong); color: var(--ok); }
.bp-status .dot { width: 6px; height: 6px; }
.blueprint h3 { margin: 18px 0 2px; font-size: 19px; }
.mono-sub { font: 12px var(--mono); color: var(--dim); margin: 0 0 18px; }
.bp-list { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 4px; }
.bp-list li { display: flex; gap: 14px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.bp-list li:last-child { border-bottom: 0; }
.bp-list small, .c-item small { display: block; font: 600 10.5px var(--mono); color: var(--dim); letter-spacing: .08em; }
.bp-list b, .bp-list a { font-size: 14.5px; font-weight: 600; word-break: break-word; }
.bp-list a:hover { color: var(--a1); }
.bp-ic { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; color: var(--a1); background: color-mix(in srgb, var(--a1) 12%, transparent); flex-shrink: 0; }
.bp-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.bp-actions .btn { justify-content: center; }

/* Timeline */
.timeline { position: relative; display: grid; gap: 40px; }
.timeline::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; transform: translateX(-50%); background: linear-gradient(var(--a1), var(--a3) 70%, transparent); opacity: .6; }
.tl-item { position: relative; width: calc(50% - 48px); }
.tl-item.right { margin-left: auto; }
.tl-node { position: absolute; top: 26px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--a1); background: var(--bg); border: 2px solid var(--a1); box-shadow: 0 0 0 6px color-mix(in srgb, var(--a1) 12%, transparent); }
.tl-item.left .tl-node { right: -68px; }
.tl-item.right .tl-node { left: -68px; }
.tl-card { padding: 28px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); position: relative; overflow: hidden; transition: border-color .3s, transform .3s; }
.tl-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 2px; background: var(--grad); }
.tl-card:hover { border-color: color-mix(in srgb, var(--a1) 40%, transparent); transform: translateY(-4px); }
.tl-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.tl-date { font: 600 11.5px var(--mono); color: var(--muted); padding: 5px 10px; border-radius: 7px; background: var(--bg-2); border: 1px solid var(--line); letter-spacing: .04em; }
.tag-live { font: 600 11px var(--mono); color: var(--ok); padding: 4px 10px; border-radius: 7px; background: color-mix(in srgb, var(--ok) 12%, transparent); border: 1px solid color-mix(in srgb, var(--ok) 35%, transparent); }
.tl-card h3, .edu h3 { font-size: 21px; margin: 16px 0 4px; letter-spacing: -0.01em; }
.tl-org { font: 500 13px var(--mono); color: var(--a2); margin: 0 0 18px; }
.tl-org span { color: var(--dim); margin: 0 4px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags span { font: 500 12px var(--mono); padding: 5px 10px; border-radius: 7px; border: 1px solid var(--line-strong); color: var(--muted); background: var(--bg-2); }

/* Projets */
.filters { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
.filters button { font: 500 13.5px var(--mono); padding: 9px 16px; border-radius: 10px; cursor: pointer; color: var(--muted); background: var(--card); border: 1px solid var(--line); transition: .2s; }
.filters button:hover { color: var(--text); border-color: var(--line-strong); }
.filters button.active { color: #04121a; background: var(--grad); border-color: transparent; }
.projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.project {
  position: relative; display: flex; flex-direction: column; padding: 26px; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--line); overflow: hidden; transition: transform .3s, border-color .3s, opacity .3s;
  --mx: 50%; --my: 50%;
}
.project::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s; background: radial-gradient(380px circle at var(--mx) var(--my), color-mix(in srgb, var(--a1) 13%, transparent), transparent 60%); }
.project:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--a1) 40%, transparent); }
.project:hover::after { opacity: 1; }
.project.hide { display: none; }
.project.pop { animation: pop .45s ease both; }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.p-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.p-icon { width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center; font-size: 22px; background: color-mix(in srgb, var(--a1) 12%, transparent); border: 1px solid color-mix(in srgb, var(--a1) 25%, transparent); }
.p-badge { font: 600 10.5px var(--mono); letter-spacing: .06em; padding: 4px 9px; border-radius: 6px; color: var(--a2); border: 1px solid color-mix(in srgb, var(--a2) 35%, transparent); background: color-mix(in srgb, var(--a2) 10%, transparent); }
.project h3 { margin: 0 0 6px; font-size: 19px; }
.p-year { font: 12px var(--mono); color: var(--dim); }
.project p { color: var(--muted); font-size: 14.5px; margin: 12px 0 16px; flex: 1; }
.p-feats { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 6px; }
.p-feats li { font-size: 13.5px; color: var(--muted); padding-left: 18px; position: relative; }
.p-feats li::before { content: "▹"; position: absolute; left: 0; color: var(--a1); }
.project .tags span { font-size: 11px; padding: 4px 8px; }
.p-links { display: flex; gap: 10px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); position: relative; z-index: 1; }
.p-links .btn { flex: 1; justify-content: center; }

/* Réseaux sociaux */
.blueprint .mono-label { margin: 4px 0 12px; }
.socials { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.socials a {
  width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; color: var(--muted);
  background: var(--bg-2); border: 1px solid var(--line-strong); transition: .2s;
}
.socials a:hover { color: #04121a; background: var(--grad); border-color: transparent; transform: translateY(-3px); }
svg .fill, svg.fill { fill: currentColor; stroke: none; }

/* Stack : sphère */
.stack { padding-top: 40px; }
.divider { position: relative; display: flex; justify-content: center; margin-bottom: 70px; }
.divider::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px dashed var(--line-strong); }
.divider-pill { position: relative; display: inline-flex; align-items: center; gap: 10px; padding: 8px 10px 8px 16px; border-radius: 999px; font: 600 11.5px var(--mono); letter-spacing: .1em; color: var(--muted); background: var(--bg); border: 1px solid var(--line-strong); transition: .2s; }
.divider-pill span { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-strong); animation: bob 2s ease-in-out infinite; }
.divider-pill:hover { color: var(--a1); border-color: var(--a1); }
@keyframes bob { 50% { transform: translateY(3px); } }
.stack-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.stack-text h3 { font-size: 20px; line-height: 1.5; margin: 0 0 20px; font-weight: 700; }
.dots-list { margin: 0; padding-left: 20px; display: grid; gap: 8px; color: var(--muted); font-size: 15.5px; }
.dots-list li::marker { color: var(--a1); }
.sphere-wrap { display: grid; justify-items: center; }
.icon-cloud { width: 300px; height: 300px; max-width: 100%; border-radius: 8px; touch-action: pan-y; }

/* Compétences */
.skills { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.skill-card { padding: 28px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.skill-card h3 { margin: 0; font-size: 19px; display: flex; gap: 12px; align-items: center; }
.sk-ic { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; font: 700 14px var(--mono); color: var(--a1); background: color-mix(in srgb, var(--a1) 12%, transparent); }
.skill-card .mono-label { margin-top: 18px; }
.bar { position: relative; margin-bottom: 18px; font-size: 14.5px; font-weight: 500; }
.bar::after { content: attr(data-level) "%"; position: absolute; right: 0; top: 0; font: 600 12.5px var(--mono); color: var(--a1); }
.bar i { display: block; height: 7px; margin-top: 8px; border-radius: 99px; background: var(--bg-2); border: 1px solid var(--line); overflow: hidden; position: relative; }
.bar i::before { content: ""; position: absolute; inset: 0; width: var(--w, 0%); background: var(--grad); border-radius: inherit; transition: width 1.4s cubic-bezier(.2, .8, .2, 1); box-shadow: 0 0 12px color-mix(in srgb, var(--a2) 60%, transparent); }
.langs { margin-top: 22px; padding: 26px 28px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.langs .mono-label { margin-top: 0; }
.lang-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.lang b { display: block; font-size: 16px; }
.lang small { color: var(--muted); font: 12.5px var(--mono); }
.lang-dots { display: flex; gap: 6px; margin-top: 10px; }
.lang-dots i { width: 100%; max-width: 44px; height: 6px; border-radius: 99px; background: var(--bg-2); border: 1px solid var(--line); }
.lang-dots i.on { background: var(--grad); border-color: transparent; }

/* Formation */
.edu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.edu { padding: 28px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); transition: .3s; }
.edu:hover { border-color: color-mix(in srgb, var(--a1) 40%, transparent); transform: translateY(-4px); }
.edu-top { display: flex; justify-content: space-between; align-items: center; }
.edu-ic { font-size: 26px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 28px; }
.contact-info { display: grid; gap: 14px; align-content: start; }
.c-item { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); transition: .2s; }
.c-item:hover { border-color: color-mix(in srgb, var(--a1) 45%, transparent); transform: translateX(4px); }
.c-item b { font-size: 15.5px; }
.c-item > div { flex: 1; min-width: 0; }
.copy { font: 600 11.5px var(--mono); padding: 6px 10px; border-radius: 8px; cursor: pointer; color: var(--a1); background: transparent; border: 1px solid color-mix(in srgb, var(--a1) 40%, transparent); }
.copy:hover { background: color-mix(in srgb, var(--a1) 12%, transparent); }
.c-local { padding: 20px; border-radius: 14px; border: 1px dashed var(--line-strong); }
.c-local .mono-label { margin: 0 0 6px; }
.c-local strong { font: 700 32px var(--mono); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.contact-form { padding: 30px; border-radius: 22px; background: var(--card); border: 1px solid var(--line-strong); display: grid; gap: 16px; box-shadow: var(--shadow); }
.contact-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form label { display: grid; gap: 8px; font: 600 12px var(--mono); color: var(--muted); letter-spacing: .04em; }
.contact-form input, .contact-form select, .contact-form textarea {
  font: 15px var(--sans); color: var(--text); background: var(--bg-2); border: 1px solid var(--line-strong);
  border-radius: 11px; padding: 13px 14px; outline: none; transition: border-color .2s, box-shadow .2s; resize: vertical; width: 100%;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { border-color: var(--a1); box-shadow: 0 0 0 4px color-mix(in srgb, var(--a1) 15%, transparent); }
.contact-form .invalid { border-color: #f87171; }
.contact-form .btn { justify-content: center; }
.form-note { margin: 0; font: 12px var(--mono); color: var(--dim); text-align: center; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 28px 0; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.footer p { margin: 0; color: var(--dim); font: 13px var(--mono); }
.to-top { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line-strong); color: var(--a1); font-weight: 700; transition: .2s; }
.to-top:hover { background: color-mix(in srgb, var(--a1) 12%, transparent); }

.toast { position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 120px); padding: 12px 20px; border-radius: 12px; background: var(--card-solid); border: 1px solid var(--a1); font: 500 14px var(--mono); z-index: 80; transition: transform .35s; box-shadow: var(--shadow); }
.toast.show { transform: translate(-50%, 0); }

/* Reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .projects { grid-template-columns: repeat(2, 1fr); }
  .skills { grid-template-columns: 1fr 1fr; }
  .profile-grid { grid-template-columns: 1fr; }
  .blueprint { position: static; }
}
@media (max-width: 900px) {
  .burger { display: flex; }
  .nav-links {
    position: fixed; top: 72px; left: 0; right: 0; flex-direction: column; gap: 2px; padding: 12px 16px 20px;
    background: var(--bg); border-bottom: 1px solid var(--line); transform: translateY(-120%); transition: transform .35s; z-index: -1;
  }
  .nav-links.open { transform: none; }
  .nav-links a { padding: 13px 14px; }
  .hero { padding-top: 120px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .code-card { transform: none; }
  .stats { grid-template-columns: 1fr 1fr; }
  .timeline::before { left: 20px; }
  .tl-item, .tl-item.right { width: auto; margin-left: 60px; }
  .tl-item.left .tl-node, .tl-item.right .tl-node { left: -60px; right: auto; }
  .contact-grid, .edu-grid, .stack-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .brand-text { display: none; }
  .nav-actions { gap: 8px; }
  .nav-actions .btn-sm { padding: 0; width: 40px; height: 40px; justify-content: center; }
  .nav-actions .btn-sm span { display: none; }
  .picker-panel { position: fixed; top: 80px; right: 16px; }
  .projects, .skills, .lang-row { grid-template-columns: 1fr; }
  .profile-text .checks, .contact-form .row { grid-template-columns: 1fr; }
  .section { padding: 80px 0; }
  .stat strong { font-size: 30px; }
  .fb-top { right: 0; } .fb-bottom { left: 0; }
  .code-body { font-size: 12px; min-height: 250px; }
  .footer-inner { flex-direction: column; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
