@font-face {
    font-family: Chiller;
    src: url('../Chiller Regular.ttf') format('truetype');
    font-display: swap;
}

:root {
    --pink: #ed0058;
    --black: #000000;
    --white: #f5f5f5;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--black);
    color: var(--white);
    font-family: Arial, Helvetica, sans-serif;
}

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


/* =========================
   HEADER
========================= */

.site-header {
    height: 74px;
    padding: 0 clamp(20px, 5vw, 76px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #050505;
    position: relative;
    z-index: 5;
}

.logo {
    font-weight: 900;
    letter-spacing: -1px;
    font-size: 20px;
}

.logo span {
    color: var(--pink);
}

nav {
    display: flex;
    gap: 34px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

nav a {
    padding: 8px 0;
}

nav a:hover,
nav a.active {
    color: var(--pink);
}

.menu-btn {
    display: none;
    background: none;
    color: white;
    border: 0;
    font-size: 25px;
}


/* =========================
   PAGE D'ACCUEIL
========================= */

.portfolio-cover {
    width: 100%;
    aspect-ratio: 16 / 9;
    min-height: 560px;
    margin-top: 26px;
    background: #000 url('../images/portfolio-cover.jpg') center top / 100% auto no-repeat;
}

.intro-art {
    width: 100%;
    aspect-ratio: 16 / 9;
    position: relative;
    background: #000 url('../images/bonjour-hi.jpg') center top / 100% auto no-repeat;
}

.intro-copy {
    position: absolute;
    left: 4%;
    top: 55%;
    width: 39%;
    max-width: 680px;
    color: #f5f5f5;
    font-size: clamp(14px, 1.2vw, 19px);
    line-height: 1.55;
}

.intro-copy p {
    margin: 0 0 16px;
}

.intro-link {
    display: inline-block;
    color: var(--pink);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-bottom: 1px solid var(--pink);
    padding-bottom: 4px;
}


/* =========================
   SECTION PROJETS
========================= */

.projects-art {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000 url('../images/mes-projets.1.jpg') center top / 100% auto no-repeat;
}

.projects-wrap {
    padding: 85px clamp(20px, 6vw, 90px) 40px;
    max-width: 1600px;
    margin: auto;
}

.section-heading {
    margin-bottom: 32px;
}

.eyebrow {
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #aaa;
    margin: 0 0 10px;
}

.section-heading h1 {
    font-size: clamp(38px, 6vw, 76px);
    line-height: 0.95;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: -3px;
}

.section-heading h1 span {
    color: var(--pink);
    font-family: Chiller, Impact, sans-serif;
    font-weight: 400;
    letter-spacing: 0;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px 20px;
}

.project-card {
    display: block;
    min-width: 0;
}

.project-card img {
    width: 100%;
    height: clamp(180px, 23vw, 330px);
    display: block;
    object-fit: cover;
    background: #000000;
    transition: transform 0.25s, filter 0.25s;
}

.project-card:hover img {
    transform: scale(0.985);
    filter: brightness(0.82);
}

.project-name {
    display: block;
    margin-top: 13px;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 17px;
}

.project-type {
    display: block;
    margin-top: 5px;
    color: #aaa;
    font-size: 12px;
}

.project-card:hover .project-name {
    color: var(--pink);
}


/* =========================
   FOOTER
========================= */

footer {
    border-top: 1px solid #333;
    padding: 24px clamp(20px, 6vw, 90px);
    display: flex;
    justify-content: space-between;
    color: #aaa;
    font-size: 12px;
}

footer a:hover {
    color: var(--pink);
}


/* =========================
   PAGE À PROPOS
   ET FICHES PROJET
========================= */

.page-shell {
    max-width: 1100px;
    margin: auto;
    padding: 70px 24px 100px;
}

.page-title {
    font-size: clamp(42px, 7vw, 82px);
    text-transform: uppercase;
    line-height: 0.95;
    margin: 0 0 40px;
    letter-spacing: -3px;
}

.page-title span {
    color: var(--pink);
    font-family: Chiller, Impact, sans-serif;
    font-weight: 400;
}

.about-layout {
    display: grid;
    grid-template-columns: minmax(220px, 0.8fr) 1.5fr;
    gap: 35px;
}

.profile-box,
.cv-section,
.project-description {
    border: 1px solid #333;
    padding: 25px;
}

.profile-box h2,
.cv-section h2 {
    font-family: Chiller, Impact, sans-serif;
    font-size: 36px;
    color: var(--pink);
    font-weight: 400;
    margin: 0 0 14px;
}

.profile-box p,
.cv-section p,
.project-description p {
    line-height: 1.65;
    color: #ddd;
}

.cv-section {
    margin-bottom: 18px;
}

.cv-section h3 {
    margin: 0 0 8px;
}

.project-detail-image {
    width: 100%;
    max-height: 75vh;
    object-fit: contain;
    margin: 0 0 25px;
}

.back-link {
    display: inline-block;
    color: var(--pink);
    margin-bottom: 24px;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
}

.detail-layout {
    max-width: 1100px;
    margin: auto;
    padding: 55px 24px 90px;
}


/* =========================
   TABLETTE
========================= */

@media (max-width: 1024px) {

    .portfolio-cover {
        min-height: 0;
        aspect-ratio: 16 / 9;
    }

    .intro-art,
    .projects-art {
        aspect-ratio: 16 / 9;
    }
}


/* =========================
   MOBILE
========================= */

@media (max-width: 760px) {

    .site-header {
        height: 64px;
    }

    .menu-btn {
        display: block;
    }

    nav {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        padding: 18px 24px;
        background: #080808;
        flex-direction: column;
        gap: 15px;
    }

    nav.open {
        display: flex;
    }

    .portfolio-cover {
        margin-top: 14px;
        min-height: 0;
        aspect-ratio: 16 / 9;
        background-size: 100% auto;
        background-position: center top;
    }

    .intro-art {
        aspect-ratio: 16 / 9;
        background-size: 100% auto;
        background-position: center top;
    }

    .intro-copy {
        position: static;
        width: auto;
        max-width: none;
        padding: 24px 22px 30px;
        font-size: 15px;
        line-height: 1.6;
        background: #000;
    }

    .projects-art {
        aspect-ratio: 16 / 9;
        background-size: 100% auto;
        background-position: center top;
    }

    .project-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px 13px;
    }

    .project-card img {
        height: 220px;
    }

    .projects-wrap {
        padding: 35px 20px 65px;
    }

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

    .page-shell {
        padding-top: 45px;
    }

    footer {
        gap: 12px;
        flex-wrap: wrap;
    }
}


/* =========================
   PETIT MOBILE
========================= */

@media (max-width: 420px) {

    .portfolio-cover {
        margin-top: 12px;
    }

    .intro-copy {
        padding: 20px 18px 26px;
        font-size: 14px;
    }

    .project-grid {
        grid-template-columns: 1fr;
    }

    .project-card img {
        height: 260px;
    }
}