/* =========================================
   PORTFOLIO — ANDRÉANNE BULOT
   MASONRY + LIGHTBOX
========================================= */

:root {
    --background: #291125;
    --background-dark: #140411;
    --card: #6C3B4B;
    --accent: #C78099;
    --accent-light: #D99AAF;
    --white: #FFFFFF;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--background);
    color: var(--white);
    font-family: "Segoe UI", Arial, sans-serif;
    min-height: 100vh;
}

body.lightbox-open {
    overflow: hidden;
}

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

/* HEADER */

.site-header {
    height: 64px;
    width: 100%;
    background: var(--background-dark);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    padding: 0 5vw;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    border: 1px solid var(--accent);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    transition: 0.25s ease;
}

.logo:hover {
    background: var(--accent);
    color: var(--background-dark);
}

.navigation {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-left: auto;
}

.navigation a {
    font-size: 12px;
    font-weight: 600;
    opacity: 0.9;
    transition: 0.25s ease;
}

.navigation a:hover {
    color: var(--accent-light);
    opacity: 1;
}

.search-button {
    margin-left: 25px;
    background: none;
    border: none;
    color: white;
    font-size: 27px;
    line-height: 1;
    cursor: pointer;
}

/* INTRODUCTION */

.intro {
    width: min(900px, 90%);
    margin: 0 auto;
    padding: 90px 0 80px;
}

.small-label {
    color: var(--accent-light);
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.intro h1 {
    font-size: clamp(42px, 6vw, 76px);
    line-height: 0.95;
    font-weight: 800;
    letter-spacing: -2px;
    margin-bottom: 17px;
}

.intro-text {
    max-width: 580px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 20px;
    line-height: 1.6;
}

/* PORTFOLIO */

.portfolio-section {
    width: min(900px, 90%);
    margin: 0 auto;
}

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.55);
    padding-bottom: 14px;
    margin-bottom: 30px;
}

.section-heading h2 {
    font-size: 21px;
    font-weight: 700;
}

.project-count {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
}

/* =========================================
   GALERIE MASONRY
========================================= */

.project-grid {
    column-count: 2;
    column-gap: 30px;
}

.project {
    width: 100%;
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
    margin-bottom: 42px;
    cursor: pointer;
}

/* IMAGE / VIDÉO / PDF */

.media-wrapper {
    width: 100%;
    max-width: 100%;
    height: auto;
    background: var(--card);
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.9);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.media-wrapper img {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s ease;
}

.video-wrapper video {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    background: var(--card);
}

.pdf-wrapper {
    height: 600px;
    background: white;
}

.pdf-wrapper iframe {
    width: 100%;
    height: 100%;
    display: block;
    border: none;
    background: white;
}

.project:hover .media-wrapper {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.project:hover img {
    transform: scale(1.025);
}

/* =========================================
   LIGHTBOX
   Le projet s'affiche en grand au centre.
========================================= */

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(10, 3, 9, 0.92);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 70px 40px 40px;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.lightbox-content {
    width: min(1100px, 92vw);
    height: min(85vh, 900px);

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;
}

.lightbox-content img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.lightbox-content video {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.lightbox-content iframe {
    width: 100%;
    height: 100%;
    border: none;
    background: white;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;

    width: 45px;
    height: 45px;

    border: 1px solid rgba(255, 255, 255, 0.7);
    background: rgba(20, 4, 17, 0.8);
    color: white;

    font-size: 32px;
    line-height: 35px;
    font-weight: 300;

    cursor: pointer;
    z-index: 1001;

    transition: 0.25s ease;
}

.lightbox-close:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--background-dark);
}

/* CV + COURRIEL */

.bottom-section {
    width: min(900px, 90%);
    margin: 120px auto 0;
    padding: 40px 0 100px;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 80px;
    border-top: 1px solid rgba(255, 255, 255, 0.55);
}

.cv-block h2,
.contact-block h2 {
    font-size: 28px;
    line-height: 1.1;
    margin-bottom: 18px;
}

.cv-block > p:not(.small-label) {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    line-height: 1.7;
    max-width: 500px;
    margin-bottom: 22px;
}

.cv-link {
    display: inline-block;
    padding: 13px 20px;
    border: 1px solid var(--accent);
    color: white;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    transition: 0.25s ease;
}

.cv-link:hover {
    background: var(--accent);
    color: var(--background-dark);
}

.email {
    display: inline-block;
    color: var(--accent-light);
    font-size: 16px;
    font-weight: 600;
    word-break: break-word;
    border-bottom: 1px solid var(--accent);
    padding-bottom: 4px;
    transition: 0.25s ease;
}

.email:hover {
    color: var(--white);
    border-color: var(--white);
}

/* FOOTER */

footer {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding: 25px 5vw;
    color: rgba(255, 255, 255, 0.5);
    font-size: 10px;
    text-align: center;
}

/* TABLETTE */

@media (max-width: 700px) {
    .intro {
        padding-top: 60px;
    }

    .project-grid {
        column-count: 1;
    }

    .project {
        margin-bottom: 45px;
    }

    .bottom-section {
        grid-template-columns: 1fr;
        gap: 50px;
        margin-top: 90px;
    }

    .pdf-wrapper {
        height: 650px;
    }

    .lightbox {
        padding: 70px 20px 20px;
    }

    .lightbox-content {
        width: 96vw;
        height: 82vh;
    }
}

/* TÉLÉPHONE */

@media (max-width: 480px) {
    .site-header {
        padding: 0 20px;
    }

    .search-button {
        margin-left: 15px;
    }

    .intro {
        width: 88%;
        padding: 55px 0;
    }

    .intro h1 {
        font-size: 42px;
    }

    .portfolio-section,
    .bottom-section {
        width: 88%;
    }

    .section-heading {
        align-items: flex-start;
        gap: 10px;
    }

    .pdf-wrapper {
        height: 550px;
    }

    .lightbox {
        padding: 65px 10px 15px;
    }

    .lightbox-content {
        width: 98vw;
        height: 84vh;
    }

    .lightbox-close {
        top: 12px;
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 28px;
    }
}

