:root {
    --bg: #080808;
    --surface: #101010;
    --text: #f2f2f2;
    --muted: #858585;
    --border: #292929;
    --font:  monospace;
    --width: 1000px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

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

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

a:hover {
    color: white;
}

::selection {
    background: white;
    color: black;
}

.container {
    width: min(var(--width), 90%);
    margin: auto;
}

.muted {
    color: var(--muted);
}

.section {
    padding: 90px 0;
    border-bottom: 1px solid var(--border);
}

.section-title {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 38px;
    font-size: 20px;
    font-weight: normal;
}

.section-title span {
    color: var(--muted);
    font-size: 18px;
}

/* =========================
   HEADER & NAVIGATION
   ========================= */

header {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    background: #080808;
    border-bottom: 1px solid #292929;
}

nav.container {
    width: min(1000px, calc(100% - 32px));
    min-height: 64px;
    margin-inline: auto;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.logo {
    flex: 0 0 auto;
    white-space: nowrap;
    font-size: 14px;
    font-weight: bold;
    letter-spacing: -0.5px;
}

.logo span {
    color: #858585;
}

.nav-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 20px;

    margin: 0;
    padding: 0;
    list-style: none;

    font-size: 12px;
    color: #858585;
}

.nav-links li {
    flex: 0 0 auto;
}

.nav-links a {
    display: block;
    white-space: nowrap;
    text-decoration: none;
    color: inherit;
}

.nav-links a:hover {
    color: #fff;
}

/* Tablettes et téléphones */

@media (max-width: 650px) {
    nav.container {
        width: calc(100% - 24px);
        min-height: 58px;
        gap: 8px;
    }

    .logo {
        font-size: 12px;
        letter-spacing: -0.7px;
    }

    .nav-links {
        gap: 12px;
        font-size: 11px;
    }
}

/* Petits téléphones */

@media (max-width: 420px) {
    nav.container {
        flex-direction: column;
        justify-content: center;
        gap: 8px;
        padding: 10px 0;
    }

    .logo {
        font-size: 13px;
    }

    .nav-links {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        column-gap: 16px;
        row-gap: 4px;
        font-size: 11px;
    }
}

/* hero */

.hero {
    min-height: 490px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 100px 0;
}

.eyebrow {
    color: var(--muted);
    margin-bottom: 24px;
}

.eyebrow::before {
    content: "> ";
    color: var(--text);
}

h1 {
    font-size: clamp(38px, 7vw, 70px);
    line-height: 1.15;
    letter-spacing: -3px;
    margin-bottom: 25px;
}

h1 span {
    color: var(--muted);
}

.hero-description {
    max-width: 570px;
    color: #aaa;
    font-size: 14px;
    margin-bottom: 32px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.button {
    display: inline-block;
    padding: 10px 18px;
    border: 1px solid var(--border);
    transition: 0.2s;
}

.button.primary {
    background: var(--text);
    color: var(--bg);
    border-color: var(--text);
}

.button:hover {
    background: white;
    color: black;
    border-color: white;
}

.status {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 55px;
    font-size: 12px;
    color: var(--muted);
}

.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: white;
}

/* a propos */

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 55px;
}

.about-text p {
    margin-bottom: 18px;
    color: #aaa;
}

.about-text strong {
    color: var(--text);
    font-weight: normal;
}

.info-list {
    list-style: none;
    border-top: 1px solid var(--border);
}

.info-list li {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.info-list li span:first-child {
    color: var(--muted);
}

.info-list li span:last-child {
    text-align: right;
}

/* competences */

.skills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill {
    border: 1px solid var(--border);
    background: var(--surface);
    padding: 7px 12px;
    font-size: 12px;
    color: #ccc;
}

.skill:hover {
    border-color: #777;
}

.skills-note {
    margin-top: 22px;
    color: var(--muted);
    font-size: 12px;
}

/* projets */

.projects {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.project {
    display: flex;
    flex-direction: column;
    min-height: 250px;
    padding: 24px;
    border: 1px solid var(--border);
    background: var(--surface);
    transition: border-color 0.2s, transform 0.2s;
}

.project:hover {
    border-color: #777;
    transform: translateY(-3px);
}

.project-top {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 25px;
    color: var(--muted);
    font-size: 12px;
}

.project-icon {
    font-size: 23px;
    color: var(--text);
}

.project h3 {
    font-size: 16px;
    font-weight: normal;
    margin-bottom: 12px;
}

.project p {
    color: var(--muted);
    font-size: 12px;
    margin-bottom: 22px;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
    padding-top: 10px;
    color: #aaa;
    font-size: 11px;
}

.project-tags span::before {
    content: "#";
    color: #666;
}

.project-link {
    margin-top: 20px;
    font-size: 12px;
}

.project-link span {
    color: var(--muted);
}

/* contact */

.contact-box {
    padding: 35px;
    border: 1px solid var(--border);
    background: var(--surface);
}

.contact-box h3 {
    font-size: 22px;
    font-weight: normal;
    margin-bottom: 12px;
}

.contact-box p {
    color: var(--muted);
    margin-bottom: 25px;
    max-width: 520px;
}

.contact-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* pied de page */

footer {
    padding: 25px 0;
    color: var(--muted);
    font-size: 11px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

/* responsive */

@media (max-width: 650px) {
    .section {
        padding: 65px 0;
    }

    .hero {
        min-height: 420px;
        padding: 75px 0;
    }

    h1 {
        letter-spacing: -2px;
    }

    .nav-links {
        gap: 12px;
        font-size: 11px;
    }

    .about-grid,
    .projects {
        grid-template-columns: 1fr;
    }

    .about-grid {
        gap: 30px;
    }

    .project {
        min-height: 220px;
    }

    .contact-box {
        padding: 24px;
    }

    .footer-content {
        flex-direction: column;
        gap: 5px;
    }
}

@media (max-width: 380px) {
    nav {
        align-items: flex-start;
        flex-direction: column;
        justify-content: center;
        padding: 12px 0;
    }

    .nav-links {
        flex-wrap: wrap;
    }
}