@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Condensed:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;1,100;1,200;1,300;1,400;1,500;1,600;1,700&display=swap');

@font-face {
    font-family: "GTSectraDisplay";
    src: url("GT-Sectra-Display-Regular.ttf");
}

.ibm-plex-sans-condensed-regular {
    font-family: "IBM Plex Sans Condensed", sans-serif;
    font-size: 18px;
    font-style: normal;
}

:root {
    /* Typography */
    --font-display: "GTSectraDisplay";
    --font-sans: "IBM Plex Sans Condensed", sans-serif;

    --display-size: 50px;
    --caption-size: 12px;

    /* Colors */
    --color-text-primary: #eeeeee;
    --color-text-muted: #575558;
    --color-background: #120D16;
}

* {
    box-sizing: border-box;
}

body {
    background-color: var(--color-background);
    color: var(--color-text-primary);
    font-family: "GTSectraDisplay";
    max-width: 1510px;
    margin: 0 auto;
    padding: 20px;
}

h1, h2, h3, h4, h5, h6, p {
    margin: 0;
}

h1 {
    font-family: var(--font-display);
    font-size: var(--display-size);
    font-weight: normal;
    line-height: 0.95;
    color: var(--color-text-primary);
}

a {
    color: white;
    text-decoration: none;
    transition: color 0.25s ease; /* douceur */
}

a:hover {
    color: #9a9a9a; /* gris */
}


/* =========================================================
   Header : logo + nav + intro
   ========================================================= */
.top-row {
    border-top: 1px solid var(--color-text-muted);
    padding-top: 20px;
    padding-bottom: 20px;
}

.header-top {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 80px;
}

.logo a {
    text-decoration: none;
}

#main-nav a {
    font-family: var(--font-sans);
    font-size: 16px;
    text-decoration: underline;
}


/* =========================================================
   Structure : intro-row (titre + description) puis
   content-row (visuel + panneau projets)
   ========================================================= */
.intro-row {
    display: flex;
    align-items: flex-end;
    gap: 64px;
    padding-top: 24px;
}

.title-block {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-left: 30px;
    white-space: nowrap;
}

#description {
    flex: 1;
    max-width: 760px;
}

.content-row {
    display: flex;
    align-items: flex-start;
    gap: 64px;
    margin-top: 40px;
}

.visual-wrap {
    flex: 0 0 480px;
}

.visual {
    width: 100%;
    max-width: 594px;
    height: 380px;
    object-fit: cover;
    display: block;
}


/* =========================================================
   Projets
   ========================================================= */
#projects-panel {
    flex: 1;
    min-width: 0;
    padding-top: 214px;
}

.caption {
    font-family: var(--font-sans);
    font-size: var(--caption-size);
    letter-spacing: -0.02em;
    color: var(--color-text-primary);
    padding-bottom: 16px;
    border-bottom: 1px solid var(--color-text-muted);
    margin-bottom: 0;
}

#projects-list {
    display: flex;
    flex-direction: column;
}

.project-item {
    position: relative;
    padding: 32px 0;
    border-bottom: 1px solid var(--color-text-muted);
    min-height: 480px;
}

.project-text {
    position: relative;
    z-index: 2;
    max-width: 700px;
}

.project-date {
    font-family: var(--font-sans);
    font-size: var(--caption-size);
    letter-spacing: -0.02em;
    color: var(--color-text-muted);
    margin-bottom: 8px;
}

.project-title {
    font-family: var(--font-display);
    font-size: 48px;
    font-weight: normal;
    line-height: 1.1;
    color: var(--color-text-primary);
}

.badge {
    display: inline-block;
    margin-top: 16px;
    background: #ffffff;
    color: #111111;
    font-family: var(--font-sans);
    font-size: 14px;
    padding: 10px 16px;
}

.project-cover-link {
    display: block;
    position: absolute;
    top: 68px;
    right: 0;
    width: 55%;
    max-width: 620px;
    z-index: 1;
}

.project-cover {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}


/* =========================================================
   TABLET — 800px à 1199px
   ========================================================= */
@media (max-width: 1199px) {

    :root {
        --display-size: 40px;
    }

    .intro-row,
    .content-row {
        gap: 40px;
    }

    .title-block {
        flex: 0 0 320px;
        white-space: normal;
    }

    .visual-wrap {
        flex-basis: 320px;
    }

    .visual {
        max-width: 320px;
        height: 260px;
    }

    #projects-panel {
        padding-top: 140px;
    }

    .project-title {
        font-size: 34px;
    }

    .project-item {
        min-height: 380px;
    }

    .project-cover-link {
        top: 56px;
        max-width: 480px;
    }

    .project-cover {
        height: 300px;
    }
}


/* =========================================================
   MOBILE — jusqu'à 799px
   ========================================================= */
@media (max-width: 799px) {

    body {
        padding: 16px;
    }

    :root {
        --display-size: 30px;
    }

    .top-row {
        padding-top: 16px;
    }

    .intro-row,
    .content-row {
        flex-direction: column;
        gap: 24px;
    }

    .intro-row {
        padding-top: 16px;
    }

    .content-row {
        margin-top: 24px;
    }

    .title-block,
    .visual-wrap {
        flex-basis: auto;
    }

    .title-block {
        gap: 12px;
        padding-left: 0;
        white-space: normal;
    }

    #description {
        max-width: 100%;
    }

    .ibm-plex-sans-condensed-regular {
        font-size: 16px;
    }

    .visual {
        max-width: 100%;
        height: 220px;
    }

    #projects-panel {
        padding-top: 40px;
    }

    .project-item {
        display: block;
        position: relative;
        min-height: auto;
        border: 1px solid var(--color-text-muted);
        padding: 16px;
    }

    .project-text {
        max-width: 100%;
        margin-bottom: 16px;
    }

    .project-title {
        font-size: 26px;
    }

    .project-cover-link {
        position: static;
        width: 100%;
        max-width: 100%;
        z-index: auto;
    }

    .project-cover {
        height: 220px;
        max-height: none;
    }
}
