:root {
    --bg: #0c0d0f;
    --bg-2: #131518;
    --line: #23262b;
    --fg: #c9ccd1;
    --dim: #6b7079;
    --bright: #eceef1;
    --acc: #7dff9b;
    --acc-dim: #3c8a51;
    --warn: #ffb454;
    --cy: #6cc7ff;
    --mono: "JetBrains Mono", "Cascadia Mono", Consolas, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--fg);
    font-family: var(--mono);
    font-size: 14px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

::selection { background: var(--acc); color: #000; }

a { color: inherit; text-decoration: none; }

.wrap { max-width: 920px; margin: 0 auto; padding: 0 24px; }

/* ---------- barre du haut ---------- */
.topbar {
    position: sticky; top: 0; z-index: 10;
    background: rgba(12, 13, 15, .92);
    border-bottom: 1px solid var(--line);
}
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; height: 44px; }
.topbar .path { color: var(--dim); }
.topbar .path b { color: var(--acc); font-weight: 500; }
.topbar nav a { margin-left: 22px; color: var(--dim); transition: color .15s; }
.topbar nav a:hover { color: var(--acc); }
.topbar nav a::before { content: "./"; color: var(--acc-dim); }

/* ---------- hero ---------- */
.hero { padding: 72px 0 56px; }
.prompt { color: var(--dim); }
.prompt .u { color: var(--acc); }
.prompt .c { color: var(--bright); }

.hero-grid { display: grid; grid-template-columns: 1fr 170px; gap: 40px; align-items: start; margin-top: 18px; }
.hero h1 { font-size: 40px; line-height: 1.15; color: var(--bright); font-weight: 700; letter-spacing: -1px; }
.hero h1 .cursor {
    display: inline-block; width: .55em; height: .9em; margin-left: 6px;
    background: var(--acc); vertical-align: -.08em;
    animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.hero .lead { margin-top: 20px; max-width: 58ch; }
.hero .lead em { color: var(--acc); font-style: normal; }

.avatar { width: 170px; height: 170px; object-fit: cover; border: 1px solid var(--line); }
.avatar-wrap { position: relative; }
.avatar-wrap::after { content: "uid=1000(hugo)"; display: block; margin-top: 8px; color: var(--dim); font-size: 11px; }

.status { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--dim); font-size: 13px; }
.status span::before { content: "["; color: var(--acc-dim); margin-right: 4px; }
.status span::after { content: "]"; color: var(--acc-dim); margin-left: 4px; }
.status b { color: var(--fg); font-weight: 500; }

.actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
    padding: 8px 16px; border: 1px solid var(--line); color: var(--bright);
    transition: border-color .15s, color .15s, background .15s;
}
.btn:hover { border-color: var(--acc); color: var(--acc); }
.btn.primary { background: var(--acc); color: #000; border-color: var(--acc); font-weight: 700; }
.btn.primary:hover { background: transparent; color: var(--acc); }

/* ---------- sections ---------- */
section { padding: 44px 0; border-top: 1px solid var(--line); }
.sec-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 28px; }
.sec-head h2 { font-size: 15px; font-weight: 500; color: var(--bright); }
.sec-head h2::before { content: "$ "; color: var(--acc); }
.sec-head .hint { color: var(--dim); font-size: 12px; }

/* contact */
.contact p { margin-bottom: 18px; }
.site-footer { margin-top: 48px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--dim); font-size: 12px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

/* ---------- pages projet ---------- */
.detail-container { max-width: 820px; margin: 0 auto; padding: 40px 24px 80px; }
.back-link { color: var(--dim); display: inline-block; margin-bottom: 32px; }
.back-link:hover { color: var(--acc); }
.detail-container h1 { font-size: 32px; color: var(--bright); letter-spacing: -.5px; margin-bottom: 20px; }
.detail-container h1::before { content: "# "; color: var(--acc); }
.detail-container h2 { font-size: 15px; color: var(--bright); margin: 36px 0 12px; font-weight: 700; }
.detail-container h2::before { content: "## "; color: var(--acc-dim); }
.detail-container p { margin-bottom: 12px; max-width: 72ch; }
.detail-container strong { color: var(--bright); font-weight: 500; }
.detail-container ul { list-style: none; }
.detail-container li { position: relative; padding-left: 20px; margin-bottom: 6px; }
.detail-container li::before { content: ">"; position: absolute; left: 0; color: var(--acc); }
.main-image { width: 100%; max-height: 380px; object-fit: cover; border: 1px solid var(--line); margin-bottom: 24px; display: block; }
.tech-line { padding: 10px 14px; border: 1px solid var(--line); border-left: 2px solid var(--acc); background: var(--bg-2); max-width: none !important; }
.screenshots { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.screenshots img, .screenshots video { width: 100%; border: 1px solid var(--line); display: block; }

/* ---------- mobile ---------- */
@media (max-width: 680px) {
    .hero { padding-top: 44px; }
    .hero-grid { grid-template-columns: 1fr; }
    .avatar-wrap { order: -1; }
    .avatar { width: 110px; height: 110px; }
    .hero h1 { font-size: 30px; }


    .proj { grid-template-columns: 1fr; gap: 4px; }
    .topbar nav a { margin-left: 14px; }
}

@media (prefers-reduced-motion: reduce) {
    .cursor { animation: none !important; }
    html { scroll-behavior: auto; }
}

/* pages projet: compléments */
.idx { color: var(--dim); font-size: 12px; margin-bottom: 6px; }
.tags.big { margin: 0 0 24px; }
.tags.big span { font-size: 12px; color: var(--acc); border-color: var(--acc-dim); padding: 1px 10px; }
.pager { margin-top: 56px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--dim); }
.pager a:hover { color: var(--acc); }

/* projets: rythme varié */
.kind { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.kind.rev { color: var(--warn); }
.kind.hw { color: var(--cy); }
.kind.tool { color: var(--dim); }
.stk { color: var(--dim); font-size: 12px; }

.feat { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.feat .card:last-child { grid-column: 1 / -1; flex-direction: row; }
.feat .card:last-child .thumb { width: 260px; height: auto; border-bottom: 0; border-right: 1px solid var(--line); flex-shrink: 0; }
.card { border: 1px solid var(--line); background: var(--bg-2); display: flex; flex-direction: column; transition: border-color .15s, transform .15s; }
.card:hover { border-color: var(--acc); transform: translateY(-2px); }
.card .thumb { height: 160px; background: #e9eaec; display: flex; align-items: center; justify-content: center; border-bottom: 1px solid var(--line); overflow: hidden; }
.card .thumb img { max-width: 70%; max-height: 70%; object-fit: contain; }
.card .body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card h3 { font-size: 20px; color: var(--bright); letter-spacing: -.3px; }
.card:hover h3 { color: var(--acc); }
.card p { color: var(--fg); flex: 1; }

@media (max-width: 760px) {
    .feat { grid-template-columns: 1fr; }
    .feat .card:last-child { flex-direction: column; }
    .feat .card:last-child .thumb { width: auto; height: 160px; border-right: 0; border-bottom: 1px solid var(--line); }
}
