:root {
    --bg: #ffffff; --bg-alt: #f1f5f9; --text: #0f172a; --muted: #475569; --line: #e2e8f0;
    --accent: #0284c7; --accent-2: #38bdf8; --dark: #0f172a;
    --radius: 14px; --shadow: 0 1px 2px rgb(15 23 42 / 6%), 0 8px 24px rgb(15 23 42 / 6%);
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
    :root { --bg: #0b1120; --bg-alt: #111a2e; --text: #e2e8f0; --muted: #94a3b8; --line: #1e293b; --accent: #38bdf8; }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); line-height: 1.6; }
a { color: var(--accent); }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.site-header { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent);
    backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--text); text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--dark);
    color: var(--accent-2); font-size: 15px; }
.nav { display: flex; align-items: center; gap: 20px; }
.nav a:not(.btn) { color: var(--muted); text-decoration: none; font-size: 15px; }
.nav a:not(.btn):hover { color: var(--text); }
.btn { display: inline-block; padding: 12px 22px; border-radius: 999px; background: var(--accent); color: #fff;
    text-decoration: none; font-weight: 600; border: 1px solid var(--accent); }
.btn:hover { filter: brightness(1.08); }
.btn-ghost { background: transparent; color: var(--accent); }
.btn-small { padding: 7px 16px; font-size: 14px; }
.hero { padding: 96px 0 72px; background: radial-gradient(1200px 400px at 80% -10%, color-mix(in srgb, var(--accent-2) 22%, transparent), transparent); }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: 13px; color: var(--accent); font-weight: 700; margin: 0 0 12px; }
h1 { font-size: clamp(32px, 5vw, 52px); line-height: 1.12; margin: 0 0 20px; letter-spacing: -.02em; }
.accent { color: var(--accent); }
.lead { font-size: 19px; color: var(--muted); max-width: 720px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0; }
.facts { display: flex; flex-wrap: wrap; gap: 28px; list-style: none; padding: 0; margin: 36px 0 0; color: var(--muted); }
.facts strong { color: var(--text); }
.section { padding: 72px 0; }
.section-alt { background: var(--bg-alt); }
.section h2 { font-size: 30px; margin: 0 0 12px; letter-spacing: -.01em; }
.section-intro { color: var(--muted); margin: 0 0 32px; }
.grid { display: grid; gap: 20px; margin-top: 28px; }
.grid-skills { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.grid-projects { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); margin-top: 0; }
.card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.card h3 { margin: 0 0 12px; font-size: 19px; }
.tagline { color: var(--accent); font-weight: 600; margin: -6px 0 12px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.tags li { background: var(--bg-alt); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; font-size: 14px; }
.tags-small li { font-size: 13px; padding: 2px 10px; }
.project p { margin: 0 0 14px; }
.links { display: flex; gap: 16px; font-weight: 600; }
.two-cols { display: grid; grid-template-columns: 3fr 2fr; gap: 56px; }
.timeline { list-style: none; padding: 0; margin: 20px 0 32px; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 20px 22px; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 7px; width: 12px; height: 12px; border-radius: 50%;
    background: var(--accent); }
.timeline p { margin: 4px 0 0; color: var(--muted); }
.period { display: block; font-size: 13px; color: var(--muted); font-weight: 600; }
.section-contact { background: var(--dark); color: #e2e8f0; text-align: center; }
.section-contact .section-intro { color: #94a3b8; }
.section-contact .actions { justify-content: center; }
.section-contact .btn-ghost { color: var(--accent-2); border-color: var(--accent-2); }
.prose h1 { font-size: 36px; }
.prose h2 { font-size: 21px; margin-top: 32px; }
.muted { color: var(--muted); font-size: 14px; margin-top: 40px; }
.site-footer { border-top: 1px solid var(--line); padding: 28px 0; color: var(--muted); font-size: 14px; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.footer-inner nav { display: flex; gap: 20px; }
.footer-inner a { color: var(--muted); }
@media (max-width: 760px) {
    .nav a:not(.btn) { display: none; }
    .two-cols { grid-template-columns: 1fr; gap: 0; }
    .hero { padding: 64px 0 48px; }
    .grid-projects { grid-template-columns: 1fr; }
}
/* Formulaire de contact */
.contact-form { display: grid; gap: 18px; margin-top: 8px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.contact-form label { display: block; font-weight: 600; margin-bottom: 6px; }
.contact-form input, .contact-form textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px;
    background: var(--bg); color: var(--text); font: inherit; }
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.contact-form ul { list-style: none; padding: 0; margin: 6px 0 0; color: #dc2626; font-size: 14px; }
.contact-form button { justify-self: start; cursor: pointer; font: inherit; font-weight: 600; }
.form-note { color: var(--muted); font-size: 14px; margin: 0; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.alert { padding: 14px 18px; border-radius: 10px; }
.alert-error { background: color-mix(in srgb, #dc2626 12%, transparent); border: 1px solid #dc2626; }
.alert-success { background: color-mix(in srgb, #16a34a 12%, transparent); border: 1px solid #16a34a; }
@media (max-width: 760px) { .form-row { grid-template-columns: 1fr; } }
