/* ===========================================
   RESET & BASE
   =========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


body {
    height: 100%;
    background-color: var(--color-dark);
    font-family: "Nohemi", system-ui, -apple-system, sans-serif;
}

/* ===========================================
   FONTS - local
   =========================================== */
@font-face {
    font-family: "Nohemi";
    src: url("fonts/Nohemi/Nohemi-Light-BF6438cc5702321.woff2") format("woff2");
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Nohemi";
    src: url("fonts/Nohemi/Nohemi-Regular-BF6438cc579d934.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Nohemi";
    src: url("fonts/Nohemi/Nohemi-Medium-BF6438cc57ddecd.woff2") format("woff2");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Nohemi";
    src: url("fonts/Nohemi/Nohemi-Bold-BF6438cc577b524.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "DarkReborn";
    src: url("layout/fonts/corvus/DarkReborn.woff2") format("woff2");
}

@font-face {
    font-family: "ESNein";
    src: url("layout/fonts/corvus/ESNein-Extrabold.woff2") format("woff2");
}

@font-face {
    font-family: "WCManoNegra";
    src: url("layout/fonts/pdp/WCManoNegra.woff2") format("woff2");
}

@font-face {
    font-family: "CFBitronik";
    src: url("layout/fonts/avatar/CFBitronik.woff2") format("woff2");
}

@font-face {
    font-family: "PPNeueMachina";
    src: url("layout/fonts/ascii/PPNeueMachina.woff2") format("woff2");
}


/* ===========================================
   CSS VARIABLES
   =========================================== */
:root {
    --cut: 115px;
    --color-dark: #0b0b0b;
    --color-light: #fff;
    --color-accent: #FF0073;
}

/* ===========================================
   HEADER
   =========================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 40px;
    pointer-events: none;
}

.header__logo {
    font-size: 18px;
    color: var(--color-light);
    text-decoration: none;
    mix-blend-mode: difference;
    pointer-events: auto;
    transition: opacity 0.3s ease;
}

.header__logo:hover {
    opacity: 0.7;
}

.header {
    mix-blend-mode: difference;
    z-index: 100;

}

.header__burger {
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: 2px solid wheat;
    cursor: pointer;
    padding: 20px 15px;
    pointer-events: auto;
    border-radius: 500px;
    transition: all 0.4s ease;
}

.header__burger-line {
    width: 32px;
    height: 2px;
    transition: all 0.4s ease;
    background-color: #fff;
}


.header__burger:hover .header__burger-line {
    opacity: 0.7;
}

/* ===========================================
   MENU OVERLAY
   =========================================== */
.menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 40%;
    height: 100vh;
    background: var(--color-dark);
    z-index: 200;
    transform: translateX(100%);
    transition: transform 0.6s cubic-bezier(0.76, 0, 0.24, 1);
    display: flex;
    flex-direction: column;
}

.menu.is-open {
    transform: translateX(0);
}

.menu__close {
    position: absolute;
    top: 50px;
    right: 40px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: none;
    border: none;
    color: var(--color-light);
    font-size: 16px;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.menu__close:hover {
    opacity: 0.7;
}

.menu__close svg {
    width: 24px;
    height: 24px;
}

.menu__content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    padding: 120px 60px 60px;
    border-left: #fff solid 2px;
}

.menu__links {
    display: flex;
    flex-direction: column;
    gap: 0;

}

.menu__link {
    display: flex;
    align-items: baseline;
    gap: 16px;
    text-decoration: none;
    padding: 16px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    margin: 0 -60px;
}


.menu__link-text {
    padding-left: 25px;
}

.menu__link:hover {
    background: var(--color-light);
}

.menu__link:hover .menu__link-text {
    color: var(--color-dark);
}

.menu__link:hover .menu__link-num {
    color: var(--color-dark);
}

.menu__link-text {
    font-size: clamp(3rem, 8vw, 6rem);
    color: var(--color-light);
}

.menu__link-num {
    font-family: "Fragment Mono", monospace;
    font-size: 14px;
    color: var(--color-accent);
}

.menu__footer {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.menu__footer-title {
    font-family: "Fragment Mono", monospace;
    font-size: 11px;
    color: var(--color-light);
    opacity: 0.5;
    letter-spacing: 1px;
}



.menu__footer-links {
    display: flex;
    gap: 32px;
}

.menu__footer-links a {
    font-family: "Fragment Mono", monospace;
    font-size: 13px;
    color: var(--color-light);
    text-decoration: none;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.menu__footer-links a:hover {
    opacity: 1;
}


/* ===========================================
   LAYOUT - GRID STRUCTURE
   =========================================== */
section {
    width: 100vw;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    overflow: hidden;
}

.col {
    height: 100%;
    background: var(--color-light);
}

/* ===========================================
   UTILITY CLASSES
   =========================================== */
.bold {
    font-weight: 400;
}

.bold-r {
    font-weight: 400;
    color: #FF0073;
}

.dot {
    color: var(--color-accent);
}

/* ===========================================
   HERO SECTION
   =========================================== */
.hero {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 0;
    height: 100vh;
    width: 100vw;
}

/* ===========================================
   FLOATING PROJECTS - Images qui rebondissent
   =========================================== */
.floating-projects {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.floating-project {
    position: absolute;
    width: 150px;
    height: 150px;
    border-radius: 8px;
    overflow: hidden;
    pointer-events: auto;
    cursor: grab;
    will-change: transform;
    transition: box-shadow 0.3s ease;
}

.floating-project:active {
    cursor: grabbing;
}

.floating-project.is-dragging {
    cursor: grabbing;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.floating-project img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
    border: white solid 1px;
}

/* Z-index pour passer dessus/dessous les textes */
.floating-project--behind {
    z-index: 0;
}

.floating-project--front {
    z-index: 3;
}

.hero .col {
    background: var(--color-dark);
    height: 100vh;
    pointer-events: none;
}

.hero h1 {
    color: var(--color-light);
    text-align: center;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10vw;
    font-weight: 400;
    position: relative;
    z-index: 2;
    pointer-events: none;
}

.reveal-text {
    display: inline-flex;
}

.letter-mask {
    display: inline-block;
    overflow: hidden;
    vertical-align: bottom;
    height: 1.1em;
}

.letter-inner {
    display: inline-block;
    transform: translateY(110%);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.letter-inner.revealed {
    transform: translateY(0);
}

.hero .pasdot {
    color: transparent;
}

.hero p {
    color: white;
    font-family: "Fragment Mono", monospace;
    font-size: 10px;
    width: 50%;
    text-align: left;
    position: relative;
    z-index: 1;
    pointer-events: none;
}

.hero .p1 {
    position: relative;
    top: 80%;
    margin-left: 60%;
}

.hero .p2 {
    position: relative;
    top: 10%;
    margin-right: 60%;
}

/* ===========================================
   SMALL-ABOUT SECTION
   =========================================== */
.small-about {
    position: relative;
    z-index: 1;
    margin-top: 100vh;
    min-height: 100vh;
}

.small-about .col {
    background: var(--color-light);
    height: 120vh;
}

.small-about h2 {
    font-weight: 300;
    font-size: 30px;
    text-align: center;
    line-height: 40px;
}


/* Rounded corners */
.small-about .col--mid {
    border-top-left-radius: var(--cut);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10vh 5%;
}

.small-about .col--left {
    border-top-right-radius: var(--cut);
}

/* ===========================================
   RECENT-PROJECTS SECTION
   =========================================== */
.recent-projects {
    position: relative;
    z-index: 2;
    min-height: 100vh;
}

.recent-projects .col {
    background: var(--color-dark);
    height: 115vh;
}

.recent-projects .col--mid {
    position: relative;
    overflow: visible;
}

.recent-projects h2 {
    text-align: center;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3em;
    position: relative;
    z-index: 1;
}

/* Rounded corners */
.recent-projects .col--mid {
    border-top-right-radius: var(--cut);
}

.recent-projects .col--right {
    border-top-left-radius: var(--cut);
}

/* ===========================================
   PROJECTS CONTAINER
   Animé par GSAP - défile pendant que la section est pin
   =========================================== */
.projects-container {
    position: absolute;
    top: 100vh;
    left: 0;
    width: 100%;
    z-index: 10;
    pointer-events: auto;
}

.projects-wrapper {
    display: flex;
    flex-direction: column;
    gap: 8vh;
    padding: 10vh 5%;
}

/* Project cards */
.project-card {
    background: var(--color-light);
    border-radius: 20px;
    padding: 4vh 4vw;
    min-height: 50vh;
    margin-left: -37.5%;
    width: 175%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.project-card:hover {
    transform: scale(1.02);
}

.project-card__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 4vh;
}

.project-card__number {
    font-family: "Fragment Mono", monospace;
    font-size: 12px;
    color: var(--color-dark);
    opacity: 0.5;
}

.project-card__tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.project-card__tag {
    font-family: "Fragment Mono", monospace;
    font-size: 10px;
    padding: 4px 12px;
    border: 1px solid var(--color-dark);
    border-radius: 20px;
    color: var(--color-dark);
}

.project-card__title {
    font-size: clamp(2rem, 5vw, 4rem);
    color: var(--color-dark);
    margin-bottom: 1vh;
    line-height: 1.1;
}

.project-card__date {
    font-family: "Fragment Mono", monospace;
    font-size: 12px;
    color: var(--color-accent);
    opacity: 0.5;
    display: block;
    margin-bottom: 2vh;
}

.project-card__description {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--color-dark);
    opacity: 0.7;
    max-width: 70%;
}

.project-card__visual {
    height: 30vh;
    background: linear-gradient(135deg, var(--color-dark) 0%, #333 100%);
    border-radius: 12px;
    margin-top: 4vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.project-card__visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-card__visual-placeholder {
    font-family: "Fragment Mono", monospace;
    font-size: 12px;
    color: var(--color-light);
    opacity: 0.3;
}

/* Alternate card style */

.project-card--alt .project-card__tag {
    border-color: var(--color-dark);
    color: var(--color-dark);
}

.project-card--alt .project-card__visual {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.05) 100%);
}

/* ===========================================
   FOOTER SECTION
   =========================================== */
.footer {
    position: relative;
    z-index: 99;
    min-height: 100vh;
}

.footer .col {
    background: var(--color-light);
    height: 120vh;
}

.footer .col--mid {
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer__content {
    padding-top: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 50px;
    color: var(--color-light);
    mix-blend-mode: difference;
}


.footer h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    text-align: center;
}

.footer__links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.footer__link {
    font-family: "Fragment Mono", monospace;
    font-size: 14px;
    color: var(--color-light);
    text-decoration: none;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.footer__link:hover {
    opacity: 1;
}

/* Rounded corners */
.footer .col--mid {
    border-top-left-radius: var(--cut);
}

.footer .col--left {
    border-top-right-radius: var(--cut);
}

/* ===========================================
   PANELS (GSAP utility)
   =========================================== */
.panel {
    min-height: 100vh;
    position: relative;
}

/* ===========================================
   BUTTONS
   =========================================== */
.btn {
    display: inline-block;
    font-family: "Fragment Mono", monospace;
    font-size: 12px;
    text-decoration: none;
    padding: 16px 32px;
    border-radius: 50px;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
}

.btn--about {
    color: var(--color-accent);
    border: 1px solid var(--color-accent);
    background: transparent;
    margin-top: 40px;
}

.btn--about:hover {
    background: var(--color-accent);
    color: var(--color-light);
}

.btn--more {
    color: var(--color-light);
    border: 1px solid var(--color-light);
    background: transparent;
    align-self: center;
    margin-top: 4vh;
}

.btn--more:hover {
    background: var(--color-light);
    color: var(--color-dark);
}

/* ===========================================
   ABOUT PAGE - BIO SECTION (fond noir, première)
   =========================================== */
.about-bio {
    position: relative;
    z-index: 1;
    min-height: 100vh;
}

.about-bio .col {
    background: var(--color-dark);
    height: 100vh;
}

.about-bio .col--mid {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10vh 5%;
    width: 50vw;
}


.about-bio__content {
    max-width: 500px;
    text-align: center;
}

.about-bio h2 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    color: var(--color-light);
    margin-bottom: 30px;
}

.about-bio__text {
    font-family: "Fragment Mono", monospace;
    font-size: 12px;
    line-height: 1.8;
    color: var(--color-light);
    opacity: 0.7;
}

/* ===========================================
   ABOUT PAGE - SKILLS SECTION (fond blanc)
   =========================================== */
.about-skills {
    position: relative;
    z-index: 2;
    min-height: 100vh;

}

.about-skills .col {
    background: var(--color-light);
    height: 140vh;
}

.about-skills .col--mid {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10vh 5%;
    border-top-left-radius: var(--cut);
    width: 50vw;
}

.about-skills .col--left {
    border-top-right-radius: var(--cut);
}

.about-skills__content {
    padding-top: 30%;
    max-width: 500px;
    text-align: center;
}

.about-skills h2 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    color: var(--color-dark);
    margin-bottom: 30px;
}

.about-skills__text {
    font-family: "Fragment Mono", monospace;
    font-size: 12px;
    line-height: 1.8;
    color: var(--color-dark);
    opacity: 0.7;
}

/* ===========================================
   ABOUT PAGE - TRAINING SECTION (fond noir)
   =========================================== */
.about-training {
    position: relative;
    z-index: 3;
    min-height: 100vh;
}

.about-training .col {
    background: var(--color-dark);
    height: 130vh;
}

.about-training .col--mid {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10vh 5%;
    border-top-right-radius: var(--cut);
    width: 50vw;
}


.about-training .col--right {
    border-top-left-radius: var(--cut);
}

.about-training__content {
    max-width: 500px;
    text-align: center;
    padding-top: 30%;
}

.about-training h2 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    color: var(--color-light);
    margin-bottom: 30px;
}

.about-training__text {
    font-family: "Fragment Mono", monospace;
    font-size: 12px;
    line-height: 1.8;
    color: var(--color-light);
    opacity: 0.7;
}

/* ===========================================
   CONTACT PAGE - HERO SECTION (fond noir)
   =========================================== */
.contact-hero {
    position: relative;
    z-index: 1;
    min-height: 100vh;
}

.contact-hero .col {
    background: var(--color-dark);
    height: 100vh;
}

.contact-hero .col--mid {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10vh 5%;
}

.contact-hero__content {
    max-width: 500px;
    color: #ffffff;
    font-size: 3em;
    text-align: center;
    mix-blend-mode: difference;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 100;
    pointer-events: none;
}

.contact-hero__content h2 {
    position: relative;
    transform: translate(-50%, -50%);
    text-align: center;
    left: 50%;
    margin-bottom: -20px;
}

.contact-hero h2 {
    font-size: clamp(3rem, 8vw, 6rem);
    color: #fff;
    margin-bottom: 30px;
}

.contact-hero__text {
    font-family: "Fragment Mono", monospace;
    font-size: 12px;
    line-height: 1.8;
    color: #fff;
}

/* ===========================================
   CONTACT PAGE - INFO SECTION (fond blanc)
   =========================================== */
.contact-info {
    position: relative;
    z-index: 2;
    min-height: 100vh;

}

.contact-info .col {
    background: var(--color-light);
    height: 120vh;
}

.contact-info .col--mid {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10vh 5%;
    border-top-left-radius: var(--cut);
    position: relative;
}

.contact-info .col--left {
    border-top-right-radius: var(--cut);
}

.contact-info__content {
    max-width: 500px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    padding-top: 120%;
}

.contact-info__details {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.contact-info__item {
    font-family: "Fragment Mono", monospace;
    font-size: 14px;
    color: var(--color-dark);
    min-width: 50px;
    align-items: center;
}

.contact-info__label {
    font-weight: 600;
}

.contact-info__value {
    color: var(--color-dark);
    text-decoration: none;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.contact-info__value:hover {
    opacity: 1;
}

.contact-info__socials {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.contact-info__social {
    font-family: "Fragment Mono", monospace;
    font-size: 14px;
    color: var(--color-dark);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.contact-info__social:hover {
    opacity: 0.6;
}

.contact-info__copyright {
    position: absolute;
    bottom: 30px;
    right: 40px;
    font-family: "Fragment Mono", monospace;
    font-size: 11px;
    color: var(--color-dark);
    opacity: 0.5;
}

/* ===========================================
   SCROLL INDICATOR - Enhanced
   =========================================== */
/* .scroll-indicator {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    z-index: 10;
    pointer-events: none;
    animation: fadeInIndicator 1s ease 1.5s both;
} */

@keyframes fadeInIndicator {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.scroll-indicator__text {
    font-family: "Fragment Mono", monospace;
    font-size: 11px;
    color: var(--color-light);
    letter-spacing: 3px;
    text-transform: uppercase;
    opacity: 0.8;
}

.scroll-indicator__arrow {
    width: 24px;
    height: 60px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

.scroll-indicator__arrow::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: var(--color-accent);
    border-radius: 50%;
    animation: scrollBounce 2s ease-in-out infinite;
    box-shadow: 0 0 10px var(--color-accent), 0 0 20px var(--color-accent);
}

.scroll-indicator__arrow::after {
    content: '';
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    border-right: 1.5px solid rgba(255, 255, 255, 0.5);
    border-bottom: 1.5px solid rgba(255, 255, 255, 0.5);
    transform: translateX(-50%) rotate(45deg);
    animation: arrowPulse 2s ease-in-out infinite;
}

@keyframes scrollBounce {

    0%,
    100% {
        top: 8px;
        opacity: 1;
    }

    50% {
        top: 38px;
        opacity: 0.5;
    }
}

@keyframes arrowPulse {

    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }
}

/* ===========================================
   WORKS PAGE
   =========================================== */
.works {
    position: relative;
    z-index: 21;
    min-height: 100vh;
    width: 100%;
    background: var(--color-dark);
    padding: 100px 40px 200px;
    display: flex;
    gap: 40px;
}

/* Sidebar gauche avec titre et filtres */
.works__sidebar {
    flex-shrink: 0;
    width: 200px;
    position: fixed;
    top: 100px;
    left: 40px;
    z-index: 10;
}

.works h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: var(--color-light);
    font-weight: 700;
    margin: 0 0 40px 0;
}

/* Filtres en colonne */
.works__filters {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.filter-btn {
    font-family: "Fragment Mono", monospace;
    font-size: 14px;
    color: var(--color-light);
    background: transparent;
    border: 1px solid transparent;
    border-radius: 50px;
    padding: 10px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.5;
    text-align: left;
}

.filter-btn:hover {
    opacity: 1;
}

.filter-btn.active {
    opacity: 1;
    border-color: var(--color-accent);
}

/* Bento Grid - prend le reste de l'espace */
.bento-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-left: 240px;
}

.bento-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 1;
}

/* Tailles variées */
.bento-item--tall {
    grid-row: span 2;
    aspect-ratio: auto;
}

.bento-item--wide {
    grid-column: span 2;
    aspect-ratio: 2/1;
}

.bento-item--large {
    grid-column: span 2;
    grid-row: span 2;
    aspect-ratio: auto;
}

.bento-item__link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.bento-item__image {
    width: 100%;
    height: 100%;
    overflow: hidden;
    border: white solid 1px;
}

.bento-item__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.bento-item:hover .bento-item__image img {
    transform: scale(1.05);
}

.bento-item__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 20px;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.4s ease;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
    padding-bottom: 60px;
}

.bento-item:hover .bento-item__overlay {
    opacity: 1;
    transform: translateY(0);
}

.bento-item__info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.bento-item__title {
    font-size: 1.1rem;
    color: var(--color-light);
    font-weight: 500;
}

.bento-item__date {
    font-family: "Fragment Mono", monospace;
    font-size: 11px;
    color: var(--color-light);
    opacity: 0.6;
}

.bento-item__tags {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.bento-item__tag {
    font-family: "Fragment Mono", monospace;
    font-size: 10px;
    color: var(--color-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    background: rgba(0, 0, 0, 0.6);
    padding: 6px 12px;
    border-radius: 50px;
    white-space: nowrap;
}

/* Responsive */
@media (max-width: 1024px) {
    .works {
        flex-direction: column;
        padding: 100px 20px 200px;
    }

    .menu {
        width: 101%;
    }

    .menu__link {
        padding: 30px 20px;
    }

    .menu__link-text {
        font-size: 4em;
    }

    .menu__footer a {
        font-size: 10px;
    }

    .works__sidebar {
        width: 100%;
        position: relative;
        top: 0;
        left: 0;
        display: flex;
        align-items: baseline;
        gap: 40px;
        margin-bottom: 30px;
    }

    .hero h1 {
        font-size: 4em;
    }

    .hero .p1 {
        font-size: 6px;
        width: 50%;
        top: 750px;
        left: -50px;
    }

    .hero .p2 {
        font-size: 6px;
        width: 50%;
        right: 50px;
        top: 150px;
        right: -50px;
    }

    .hero .pasdot {
        color: white;
        display: none;
    }

    .works h1 {
        margin-bottom: 0;
    }

    .works__filters {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 20px;
    }

    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
        margin-left: 0;
    }

    .bento-item--large {
        grid-column: span 2;
        grid-row: span 1;
    }

    .floating-project {
        width: 80px;
        height: 80px;
    }

    .hero .col--mid {
        width: 25vw;
    }

    .contact-hero__content {
        font-size: 35px;
        min-width: 300px;
    }

    .contact-hero__content p {
        font-size: 13px;
        line-height: 18px;
    }
}



@media (max-width: 600px) {
    .works__sidebar {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

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



    .bento-item--tall,
    .bento-item--wide,
    .bento-item--large {
        grid-row: span 1;
        grid-column: span 1;
        aspect-ratio: 4/3;
    }

    .works__filters {
        gap: 15px;
    }

    .filter-btn {
        font-size: 12px;
    }

    .works {
        padding: 100px 15px 200px;
    }
}

::-webkit-scrollbar {
    display: none
}

/* ===========================================
   PROJECT PAGE STYLES
   =========================================== */

/* Project Hero */


.project-hero {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    padding: 60px 40px;
}

.project-hero__background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

.project-hero__background::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background: linear-gradient(to top, var(--color-dark) 0%, transparent 100%);
}

.project-hero__content {
    position: relative;
    z-index: 1;
    width: 100%;
    margin: 0 auto;

}

.project-hero__tags {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.project-hero__tag {
    font-family: "Fragment Mono", monospace;
    font-size: 11px;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.project-hero__tag::before {
    content: '✦';
    font-size: 10px;
}

.project-hero__title {
    font-size: clamp(3rem, 10vw, 8rem);
    color: var(--color-light);
    font-weight: 400;
    line-height: 1;
    text-transform: capitalize;
}

/* Project Info Section */
.project-info {
    background: var(--color-light);
    padding: 100px 40px;
    position: relative;
    z-index: 1;
}



.project-info__container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.project-info__left {
    padding-top: 60px;
}

.project-info__title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    color: var(--color-dark);
    font-weight: 400;
    margin-bottom: 10px;
}

.project-info__date {
    font-family: "Fragment Mono", monospace;
    font-size: 14px;
    color: var(--color-accent);
    display: block;
    margin-bottom: 40px;
}

.project-info__description {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.project-info__description p {
    font-family: "Fragment Mono", monospace;
    font-size: 13px;
    line-height: 1.8;
    color: var(--color-dark);
    opacity: 0.8;
}

.project-info__right {
    position: relative;
}

.project-info__image {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.project-info__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Project Gallery */
.project-gallery {
    background: var(--color-light);
    padding: 0 40px 100px;
}

.project-gallery__grid {
    max-width: 1400px;
    margin: 0 auto 60px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.gallery-grid__item {
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    background: var(--color-dark);
}

.gallery-grid__item img,
.gallery-grid__item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-gallery__showcase {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.gallery-showcase__item {
    border-radius: 8px;
    overflow: hidden;
    background: var(--color-dark);
}

.gallery-showcase__item--full {
    grid-column: span 2;
}

.gallery-showcase__item--half {
    grid-column: span 1;
}

.gallery-showcase__item img,
.gallery-showcase__item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Project Tools */
.project-tools {
    background: var(--color-light);
    padding: 60px 40px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.project-tools__container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
}

.tools-row {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.tools-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.tools-item__name {
    font-family: "Fragment Mono", monospace;
    font-size: 11px;
    color: var(--color-dark);
    opacity: 0.6;
}

.tools-item__index {
    font-family: "Fragment Mono", monospace;
    font-size: 10px;
    color: var(--color-dark);
    opacity: 0.4;
}

.colors-row {
    display: flex;
    align-items: center;
    gap: 16px;
}

.color-dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.color-dot:hover {
    transform: scale(1.2);
}

.colors-add {
    width: 24px;
    height: 24px;
    border: 1px dashed rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: rgba(0, 0, 0, 0.3);
}

/* Project Navigation */
.project-nav {
    background: var(--color-light);
    padding: 60px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.project-nav__link {
    font-family: "Fragment Mono", monospace;
    font-size: 14px;
    color: var(--color-dark);
    text-decoration: none;
    padding: 16px 32px;
    border: 1px solid var(--color-dark);
    border-radius: 50px;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.project-nav__link:hover {
    opacity: 1;
    background: var(--color-dark);
    color: var(--color-light);
}

/* Project Footer adjustment */
.project-footer {
    margin-top: 0;
}

.project-footer .col--mid {
    border-top-left-radius: var(--cut);
    background-color: var(--color-dark);
}

.project-footer .col--left {
    border-top-right-radius: var(--cut);
    background-color: var(--color-dark);
}

.project-footer .col--right {
    background-color: var(--color-dark);
}


body.pr {
    background-color: var(--color-light) !important;
}


/* Responsive for Project Page */
@media (max-width: 1920px) {
    .contact-info__content {
        padding-top: 80vh;
    }

}

@media (max-width: 1024px) {
    .project-hero {
        padding: 40px 20px;
    }

    .project-info {
        padding: 60px 20px;
    }

    .project-info__container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .project-info__left {
        padding-top: 0;
    }

    .project-gallery {
        padding: 0 20px 60px;
    }

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

    .gallery-showcase__item--full,
    .gallery-showcase__item--half {
        grid-column: span 1;
    }

    .project-nav {
        padding: 40px 20px;
    }


}


@media (max-width: 600px) {
    .project-hero__title {
        font-size: clamp(2rem, 12vw, 4rem);
    }

    .project-info::before,
    .project-info::after {
        display: none;
    }

    .tools-row {
        gap: 20px;
    }

    .project-tools__container {
        flex-direction: column;
        align-items: flex-start;
    }


}


/* ===========================================
   PROJECT CONTENT SECTION (NEW LAYOUT)
   =========================================== */

.project-content {
    background: var(--color-light);
    min-height: 100vh;
}

.project-content .col {
    background: var(--color-light);
}

.project-content__info {
    padding: 350px 60px 100px 40px;
}

.project-content__carousel {
    padding: 100px 40px 100px 0;
}

.project-carousel {
    scale: 75%;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.project-carousel__main {
    width: 50vw;
    aspect-ratio: 4/3;
    background: var(--color-dark);
    overflow: hidden;
    position: relative;
    border-radius: 12px;
    right: 0px;
    top: 50px;
}

.project-content__title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    color: var(--color-dark);
    font-weight: 400;
    margin-bottom: 8px;
    line-height: 1.1;
}

.project-content__date {
    font-family: "Fragment Mono", monospace;
    font-size: 14px;
    color: var(--color-accent);
    display: block;
    margin-bottom: 30px;
}

.project-content__description {
    margin-bottom: 40px;
}

.project-content__description p {
    font-family: "Fragment Mono", monospace;
    font-size: 13px;
    line-height: 1.9;
    color: var(--color-dark);
    opacity: 0.75;
    margin-bottom: 16px;
}

.project-content__description p:last-child {
    margin-bottom: 0;
}

/* Keywords */
.project-content__keywords {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
}

.project-keyword {
    font-family: "Fragment Mono", monospace;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 10px 20px;
    background: var(--color-dark);
    color: var(--color-light);
    border-radius: 50px;
    transition: all 0.3s ease;
}

.project-keyword:hover {
    background: var(--color-accent);
    transform: translateY(-2px);
}

/* Tools */
.project-content__tools {
    margin-bottom: 30px;
}

.project-content__tools-label,
.project-content__colors-label {
    font-family: "Fragment Mono", monospace;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-dark);
    opacity: 0.5;
    display: block;
    margin-bottom: 12px;
}

.project-content__tools-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.project-tool {
    font-family: "Fragment Mono", monospace;
    font-size: 11px;
    padding: 8px 16px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 4px;
    color: var(--color-dark);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.project-tool:hover {
    opacity: 1;
    border-color: var(--color-dark);
}

/* Colors */
.project-content__colors {
    margin-bottom: 30px;
}

.project-content__colors-list {
    display: flex;
    gap: 12px;
}

.project-color {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
}

.project-color:hover {
    transform: scale(1.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.project-carousel__main img,
.project-carousel__main video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    cursor: pointer;
    transition: transform 0.3s ease;
    background: var(--color-dark);
}

.project-carousel__main img:hover,
.project-carousel__main video:hover {
    transform: scale(1.02);
}

.project-carousel__controls {
    position: static;
    transform: none;
    margin: 16px auto 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50px;
    backdrop-filter: blur(10px);
}

.project-carousel__btn {
    width: 48px;
    height: 48px;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: var(--color-dark);
}

.project-carousel__btn:hover {
    background: var(--color-dark);
    color: var(--color-light);
    border-color: var(--color-dark);
}

.project-carousel__btn svg {
    width: 20px;
    height: 20px;
}

.project-carousel__counter {
    font-family: "Fragment Mono", monospace;
    font-size: 13px;
    color: var(--color-dark);
    opacity: 0.6;
    min-width: 70px;
    text-align: center;
}

/* ===========================================
   THUMBNAILS GALLERY
   =========================================== */

.project-thumbnails {
    background: white;
    /* (ou garde ton blanc si tu veux) */
    padding: 16px 0 0;
}

.project-thumbnails__grid {
    padding-top: 10px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
    align-items: center;
}

.project-thumbnail {
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    background: var(--color-dark);
    transition: all 0.3s ease;
    opacity: 0.6;
    border: 2px solid transparent;
}

.project-thumbnail:hover {
    opacity: 1;
    transform: scale(1.02);
}

.project-thumbnail.active {
    opacity: 1;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 2px rgba(255, 0, 115, 0.2);
}

.project-thumbnail img,
.project-thumbnail video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.project-thumbnail__play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: var(--color-dark);
}

/* Desktop (par défaut) */
.project-carousel__main {
    order: 1;
}

.project-carousel__controls {
    order: 2;
}

.project-thumbnails {
    order: 3;
}

/* Mobile: thumbnails avant controls */
@media (max-width: 1024px) {
    .project-carousel__main {
        order: 1;
    }

    .project-thumbnails {
        order: 2;
    }

    .project-carousel__controls {
        order: 3;
    }
}

/* ===========================================
   RESPONSIVE - Project Content
   =========================================== */

@media (max-width: 1024px) {
    .project-content {
        display: flex;
        flex-direction: column;
    }

    .project-content__info {
        order: 1;
        padding: 60px 20px;
        width: 100%;
    }

    .project-content__carousel {
        order: 2;
        padding: 0;
        width: 100%;
    }

    .project-content .col--mid {
        display: none;
    }

    .project-carousel {
        scale: 100%;
    }


    .project-carousel__main {
        aspect-ratio: 16/9;
        height: auto;
        border-radius: 0;
        width: 100%;
        top: 1px;
    }


    .project-thumbnails {
        padding: 0 20px 60px;
    }

    .project-thumbnails__grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 10px;
    }

    .small-about h2 {
        font-size: 20px;
        line-height: 22px;
    }


    .about-bio p,
    .about-skills p,
    .about-training p {
        font-size: 12px;
        text-align: center;
        line-height: normal;
    }

}

.small-about .col--mid {
    width: 50vw;
    align-items: center;
}

@media (max-width: 600px) {
    .project-content__title {
        font-size: clamp(1.5rem, 8vw, 2.5rem);
    }

    .project-content__info {
        padding: 40px 20px;
    }

    .project-carousel__main {
        aspect-ratio: 16/9;
        width: 100%;
    }

    .project-carousel__btn {
        width: 36px;
        height: 36px;
    }

    .project-carousel__controls {
        padding: 8px 16px;
        gap: 16px;
    }

    .project-carousel__counter {
        font-size: 11px;
    }

    .project-thumbnails {
        padding: 0 15px 40px;
    }

    .project-thumbnails__grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 8px;
    }

    .project-thumbnail {
        border-radius: 6px;
    }

    .project-keyword {
        font-size: 10px;
        padding: 8px 14px;
    }

    .project-nav {
        padding: 30px 15px;
    }

    .project-nav__link {
        padding: 12px 20px;
        font-size: 12px;
    }

    .about-bio h2,
    .about-skills h2,
    .about-training h2 {
        font-size: 35px;
        text-align: center;
    }
}

/* ===========================================
   BACK BUTTON
   =========================================== */
.project-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: "Fragment Mono", monospace;
    font-size: 12px;
    color: var(--color-light);
    text-decoration: none;
    margin-bottom: 20px;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.project-back:hover {
    opacity: 1;
    gap: 12px;
}

.project-back svg {
    transition: transform 0.3s ease;
}

.project-back:hover svg {
    transform: translateX(-4px);
}

/* ===========================================
   LIGHTBOX
   =========================================== */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.lightbox.is-open {
    opacity: 1;
    visibility: visible;
}

.lightbox__close {
    position: absolute;
    top: 30px;
    right: 30px;
    background: none;
    border: none;
    color: var(--color-light);
    cursor: pointer;
    padding: 10px;
    opacity: 0.7;
    transition: all 0.3s ease;
    z-index: 10;
}

.lightbox__close:hover {
    opacity: 1;
    transform: rotate(90deg);
}

.lightbox__content {
    max-width: 90vw;
    max-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox__content img,
.lightbox__content video {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
}

.lightbox__btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--color-light);
    cursor: pointer;
    padding: 16px;
    border-radius: 50%;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.lightbox__btn:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.2);
}

.lightbox__btn--prev {
    left: 30px;
}

.lightbox__btn--next {
    right: 30px;
}

.lightbox__counter {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    font-family: "Fragment Mono", monospace;
    font-size: 14px;
    color: var(--color-light);
    opacity: 0.6;
}

@media (max-width: 600px) {
    .lightbox__btn {
        padding: 12px;
    }

    .lightbox__btn--prev {
        left: 10px;
    }

    .lightbox__btn--next {
        right: 10px;
    }

    .lightbox__close {
        top: 15px;
        right: 15px;
    }

    .project-back {
        font-size: 11px;
    }
}

/* ===========================================
   PAGE TRANSITION
   =========================================== */
.page-transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9999;
}

.page-transition__inner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-dark);
    transform: scaleY(0);
    transform-origin: bottom;
}

.page-transition.is-active {
    pointer-events: all;
}

/* Animation d'entrée de page */
body {
    animation: pageEnter 0.5s ease-out forwards;
}

@keyframes pageEnter {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* ===========================================
   PROJECT POPUP
   =========================================== */
.project-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.project-popup__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
}

.project-popup__content {
    position: relative;
    background: var(--color-light);
    border-radius: 16px;
    overflow: hidden;
    max-width: 400px;
    width: 100%;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.project-popup__close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
}

.project-popup__close:hover {
    background: var(--color-light);
    transform: rotate(90deg);
}

.project-popup__close svg {
    color: var(--color-dark);
}

.project-popup__image {
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: var(--color-dark);
}

.project-popup__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-popup__info {
    padding: 24px;
}

.project-popup__title {
    font-size: 24px;
    font-weight: 400;
    color: var(--color-dark);
    margin-bottom: 4px;
}

.project-popup__date {
    font-family: "Fragment Mono", monospace;
    font-size: 12px;
    color: var(--color-accent);
    display: block;
    margin-bottom: 12px;
}

.project-popup__description {
    font-family: "Fragment Mono", monospace;
    font-size: 12px;
    line-height: 1.6;
    color: var(--color-dark);
    opacity: 0.7;
    margin-bottom: 20px;
}

.project-popup__btn {
    display: inline-block;
    font-family: "Fragment Mono", monospace;
    font-size: 12px;
    text-decoration: none;
    color: var(--color-light);
    background: var(--color-dark);
    padding: 12px 24px;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.project-popup__btn:hover {
    background: var(--color-accent);
}

@media (max-width: 600px) {
    .project-popup__content {
        max-width: 320px;
    }

    .project-popup__title {
        font-size: 20px;
    }

    .project-popup__info {
        padding: 20px;
    }
}

/* ===========================================
   PROJECT PAGE — NEW LAYOUT (no 3-col grid)
   =========================================== */

/* Override the global section grid for project page */
body.pr .pj-section {
    display: block;
    width: 100%;
    overflow: visible;
}

body.pr .pj-container {
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 80px;
}

/* --- Hero --- */
.pj-hero {
    position: relative;
    z-index: 0;
    width: 100vw;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    padding: 60px 40px;
}

.pj-hero__background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.pj-hero__background::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background: linear-gradient(to top, var(--color-dark) 0%, transparent 100%);
}

.pj-hero__content {
    position: relative;
    z-index: 1;
    width: 100%;
}

.pj-hero__back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: "Fragment Mono", monospace;
    font-size: 12px;
    color: var(--color-light);
    text-decoration: none;
    margin-bottom: 20px;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.pj-hero__back:hover {
    opacity: 1;
    gap: 12px;
}

.pj-hero__back svg {
    transition: transform 0.3s ease;
}

.pj-hero__back:hover svg {
    transform: translateX(-4px);
}

.pj-hero__title {
    font-size: clamp(3rem, 10vw, 8rem);
    color: var(--color-light);
    font-weight: 400;
    line-height: 1;
    text-transform: capitalize;
}

.pj-hero__tags {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.pj-hero__tag {
    font-family: "Fragment Mono", monospace;
    font-size: 11px;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pj-hero__tag::before {
    content: '✦';
    font-size: 10px;
}

/* --- Intro --- */
.pj-intro {
    position: relative;
    z-index: 1;
    background: var(--color-light);
    padding: 150px 0 80px;
}

.pj-intro__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.pj-label {
    font-family: "Fragment Mono", monospace;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-accent);
    display: block;
    margin-bottom: 16px;
}

.pj-intro__title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    color: var(--color-dark);
    font-weight: 400;
    line-height: 1.05;
    margin-bottom: 12px;
}

.pj-intro__date {
    font-family: "Fragment Mono", monospace;
    font-size: 13px;
    color: var(--color-dark);
    opacity: 0.4;
}

.pj-intro__description {
    margin-bottom: 40px;
}

.pj-intro__description p {
    font-family: "Fragment Mono", monospace;
    font-size: 12px;
    line-height: 1.9;
    color: var(--color-dark);
    opacity: 0.75;
    margin-bottom: 16px;
}

.pj-intro__meta {
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.pj-meta-label {
    font-family: "Fragment Mono", monospace;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--color-dark);
    opacity: 0.4;
    display: block;
    margin-bottom: 10px;
}

.pj-intro__tools-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pj-tool {
    font-family: "Fragment Mono", monospace;
    font-size: 11px;
    padding: 8px 16px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 4px;
    color: var(--color-dark);
    opacity: 0.7;
}

.pj-intro__info-row {
    display: flex;
    gap: 60px;
}

.pj-intro__info-value {
    font-size: 24px;
    font-weight: 400;
    color: var(--color-dark);
}

.pj-intro__categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pj-category {
    font-family: "Fragment Mono", monospace;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 6px 14px;
    background: var(--color-accent);
    color: var(--color-light);
    border-radius: 50px;
}

/* --- Showcase (produit final, inside intro) --- */
.pj-showcase__full {
    width: 100%;
    margin-top: 60px;
}

.pj-showcase__full img,
.pj-showcase__full video {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
}

.pj-showcase__youtube {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    border-radius: 10px;
    overflow: hidden;
    background: #000;
}

.pj-showcase__youtube iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* --- Brand colors + Typography --- */
.pj-brand {
    background: var(--color-light);
    padding: 60px 0 80px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.pj-brand__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 160px;
}

.pj-brand__heading {
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    font-weight: 400;
    color: var(--color-dark);
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pj-brand__swatches {
    display: flex;
    gap: 8px;
    height: 120px;
}

.pj-swatch {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.pj-swatch__color {
    width: 100%;
    flex: 1;
    border-radius: 8px;
}

.pj-swatch__info {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    gap: 4px;
}

.pj-swatch__hex {
    font-family: "Fragment Mono", monospace;
    font-size: 10px;
    color: var(--color-dark);
    opacity: 0.5;
    text-transform: uppercase;
}

.pj-swatch__usage {
    font-family: "Fragment Mono", monospace;
    font-size: 10px;
    color: var(--color-dark);
    opacity: 0.35;
}

.pj-brand__typo-preview {
    display: flex;
    gap: 80px;
    flex-wrap: wrap;
    align-items: flex-start;
}

.pj-typo-item {
    text-align: center;
    flex: 1;
    min-width: 120px;
}

.pj-typo-item__preview {
    font-size: clamp(3rem, 6vw, 5rem);
    display: block;
    color: var(--color-dark);
    margin-bottom: 8px;
    line-height: 1.2;
}

.pj-typo-item__name {
    font-family: "Fragment Mono", monospace;
    font-size: 11px;
    color: var(--color-dark);
    opacity: 0.6;
    display: block;
}

.pj-typo-item__style {
    font-family: "Fragment Mono", monospace;
    font-size: 10px;
    color: var(--color-dark);
    opacity: 0.4;
    display: block;
}

/* --- Bento image grids --- */
.pj-bento-section {
    background: var(--color-light);
    padding: 10px 0;
}

.pj-bento {
    display: grid;
    gap: 10px;
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 80px;
}

.pj-bento--1 {
    grid-template-columns: 1fr;
}

.pj-bento--2 {
    grid-template-columns: 1fr 1fr;
}

.pj-bento--3 {
    grid-template-columns: 1fr 1fr;
}

.pj-bento--3 .pj-bento__item:first-child {
    grid-column: 1 / -1;
}

.pj-bento--4 {
    grid-template-columns: 1fr 1fr;
}

.pj-bento__item {
    border-radius: 8px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.05);
}

.pj-bento__item img,
.pj-bento__item video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

/* --- Text blocks --- */
.pj-text-block {
    background: var(--color-light);
    padding: 60px 0;
}

.pj-text-block__content {
    font-family: "Fragment Mono", monospace;
    font-size: 13px;
    line-height: 2;
    color: var(--color-dark);
    opacity: 0.7;
    max-width: 1000px;
}

/* --- Navigation prev/next --- */
.pj-nav-section {
    background: var(--color-light);
    padding: 60px 0 80px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.pj-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.pj-nav__card {
    display: flex;
    flex-direction: column;
    gap: 16px;
    text-decoration: none;
    color: var(--color-dark);
    padding: 20px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.pj-nav__card:hover {
    border-color: var(--color-accent);
    transform: translateY(-4px);
}

.pj-nav__card--next {
    text-align: right;
}

.pj-nav__name {
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    font-weight: 400;
    display: block;
}

.pj-nav__thumb {
    width: 100%;
    height: 180px;
    border-radius: 8px;
    background-size: cover;
    background-position: center;
}

/* --- Lightbox --- */
.pj-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.pj-lightbox.is-open {
    opacity: 1;
    pointer-events: all;
}

.pj-lightbox__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(10px);
}

.pj-lightbox__content {
    position: relative;
    z-index: 1;
    max-width: 90vw;
    max-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pj-lightbox__content img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 6px;
    display: block;
}

.pj-lightbox__content video {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 6px;
    display: block;
}

.pj-lightbox__close {
    position: absolute;
    top: 30px;
    right: 30px;
    z-index: 2;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.3s;
    padding: 10px;
}

.pj-lightbox__close:hover {
    opacity: 1;
}

.pj-lightbox__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.3s;
}

.pj-lightbox__arrow:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.15);
}

.pj-lightbox__arrow--prev {
    left: 30px;
}

.pj-lightbox__arrow--next {
    right: 30px;
}

.pj-lightbox__counter {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    font-family: "Fragment Mono", monospace;
    font-size: 12px;
    color: white;
    opacity: 0.5;
}

@media (max-width: 600px) {
    .pj-lightbox__arrow {
        width: 40px;
        height: 40px;
    }

    .pj-lightbox__arrow--prev {
        left: 10px;
    }

    .pj-lightbox__arrow--next {
        right: 10px;
    }

    .pj-lightbox__close {
        top: 15px;
        right: 15px;
    }
}

/* --- Footer (original 3-col) --- */
.pj-footer {
    z-index: 4;
}

.pj-footer .col {
    background: var(--color-dark);
    height: 120vh;
}

.pj-footer .col--mid {
    border-top-left-radius: var(--cut);
    background-color: var(--color-dark);
}

.pj-footer .col--left {
    border-top-right-radius: var(--cut);
    background-color: var(--color-dark);
}

.pj-footer .col--right {
    background-color: var(--color-dark);
}

.pj-footer .footer__content {
    mix-blend-mode: normal;
}

.pj-footer .footer__link {
    color: var(--color-light);
}

.pj-footer h2 {
    color: var(--color-light);
}

/* ===========================================
   RESPONSIVE — PROJECT PAGE
   =========================================== */
@media (max-width: 1024px) {
    .pj-hero {
        padding: 40px 20px;
    }

    body.pr .pj-container {
        padding: 0 30px;
    }

    .pj-intro__grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .pj-intro__info-row {
        gap: 30px;
    }

    .pj-brand__grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .pj-bento {
        padding: 0 30px;
    }
}

@media (max-width: 600px) {
    .pj-hero__title {
        font-size: clamp(2rem, 12vw, 4rem);
    }

    .pj-intro__title {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .pj-bento--2,
    .pj-bento--3,
    .pj-bento--4 {
        grid-template-columns: 1fr;
    }

    .pj-bento--3 .pj-bento__item:first-child {
        grid-column: auto;
    }

    .pj-nav {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .pj-nav__card--next {
        text-align: left;
    }

    .pj-nav__thumb {
        height: 140px;
    }
}