
@import url('https://fonts.googleapis.com/css2?family=Arimo:ital,wght@0,400..700;1,400..700&display=swap');

/* ===================================
   CSS Variables & Reset
   =================================== */
:root {
    --color-yellow: #FFED00;
    --color-black: #000000;
    --color-white: #FFFFFF;
    --color-gray-light: #F5F5F5;
    --color-gray-dark: #2A2A2A;
    
    /*--font-primary: 'Manrope', sans-serif;
    --font-secondary: 'Libre Franklin', sans-serif;*/
    --font-primary: "Arimo", sans-serif;
    --font-secondary: "Arimo", sans-serif;

    --gutter-width: 30px;
    --gutter-sm: 20px;

    --max-screen-width-section: 1920px;
    --max-screen-width-header-footer: 1920px;
}

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

body {
    font-family: var(--font-primary);
    color: var(--color-black);
    background-color: var(--color-white);
    overflow-x: hidden;

    font-optical-sizing: auto;
    font-style: normal;
}

/* ===================================
   Header (Hidden Initially)
   =================================== */


.main-header {
    /**/
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    background-color: var(--color-white);
    transform: translateY(-100%);
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
    height:120px;
}

.main-header.visible {
    position: fixed;
    transform: translateY(0);
    /*box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);*/
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    /*padding: var(--gutter-sm) var(--gutter-width);*/
    padding-top:50px;
    padding-left:50px;
    padding-right:50px;
    max-width: var(--max-screen-width-header-footer);
    margin-left: auto;
    margin-right: auto;
}

.header-content a {
    color: var(--color-black);
    text-decoration: none;
}

.header-logo {
    display: flex;
    align-items: flex-start;
    /*gap: 15px;*/
    flex: 0 0 auto;
    position: relative;
    z-index: 1001;
}

.header-logo img {
    width:auto;
    height:33px;
}

.header-center {
    flex: 1;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 0 30px;
}

.header-project-title {
    font-family: var(--font-secondary);
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -0.02em;
    text-transform: lowercase;
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 0;
    line-height: 1;
}

.project-category {
    transition: all 0.4s ease;
    padding: 4px 8px;
    margin: -4px -8px;
    font-weight: 800;
}

.project-category.inverted {
    background-color: var(--color-black);
    color: var(--color-white);
}

a:hover .project-category{
    background-color: var(--color-black);
    color: var(--color-white);
}

.title-separator {
    width: 1px;
    height: 14px;
    background-color: var(--color-black);
    opacity: 0.6;
    display: inline-block;
}


.logo-text {
    font-family: var(--font-secondary);
    font-size: 17px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.02em;
    text-transform: lowercase;
}

.logo-shapes {
    display: flex;
    gap: 5px;
    align-items: center;
}

.logo-circle, .logo-square {
    width: 33px;
    height: 33px;
    background-color: var(--color-black);
    display: block;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.logo-circle:hover, .logo-square:hover {
    opacity: 0.6;
}

.logo-circle {
    border-radius: 50%;
}


.burger-menu {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    color: var(--color-black);
    transition: opacity 0.3s ease;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
    z-index: 1001;
}

/* On desktop, remove hover and cursor from button */
@media (min-width: 769px) {
    .burger-menu {
        cursor: default;
    }
    .burger-menu:hover {
        opacity: 1;
    }
}

#burgerMenu img {
    height:33px;
    width:auto;
}
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    height: 100vh;
    background-color: var(--color-white);
    z-index: 2000;
    transform: translateY(-100%);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.main-nav.open {
    transform: translateY(0);
}

.nav-content {
    padding: 40px;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.nav-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    color: var(--color-black);
    align-self: flex-end;
    margin-bottom: 60px;
    transition: opacity 0.3s ease;
}

.nav-close:hover {
    opacity: 0.6;
}

.nav-links, 
.nav-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-links li {
    margin-bottom: 30px;
    opacity: 0;
    transform: translateY(-30px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.main-nav.open .nav-links li {
    opacity: 1;
    transform: translateY(0);
}

.main-nav.open .nav-links li:nth-child(1) {
    transition-delay: 0.1s;
}

.main-nav.open .nav-links li:nth-child(2) {
    transition-delay: 0.15s;
}

.main-nav.open .nav-links li:nth-child(3) {
    transition-delay: 0.2s;
}

.main-nav.open .nav-links li:nth-child(4) {
    transition-delay: 0.25s;
}

.main-nav.open .nav-links li:nth-child(5) {
    transition-delay: 0.3s;
}

.nav-links a {
    font-family: var(--font-secondary);
    font-size: 18px;
    font-weight: 300;
    color: var(--color-black);
    text-decoration: none;
    text-transform: lowercase;
    letter-spacing: -0.02em;
    transition: opacity 0.3s ease;
    display: inline-block;
}

.nav-links a:hover {
    opacity: 0.5;
}

/* Menu Overlay */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1500;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.nav-overlay.active {
    opacity: 1;
    pointer-events: all;
}

/* ===================================
   Horizontal Navigation (Desktop)
   =================================== */

.horizontal-nav {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: transparent;
    max-height: 0;
    overflow: visible;
    transition: max-height 0.4s ease;
    display: none; /* Hidden on mobile */
    pointer-events: none;
}

.horizontal-nav.active {
    max-height: 105px;
    height: 105px;
    background-color: var(--color-white);
    pointer-events: auto;
}

.header-optional {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    background-color: var(--color-white);
    
    /*max-height: 105px;
    height: 105px;*/
    opacity: 1;
    pointer-events: auto;
    
    padding-top: 4px;
}

.horizontal-nav-content {
    max-width: var(--max-screen-width-header-footer);
    margin: 0 auto;
    padding: 0 50px;
}


.horizontal-nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0px;
    padding: 50px 0 20px 0;
    position: relative;
    /*height: 105px;*/
}


@media (min-width: 1200px) {
    
    .horizontal-nav-links {
        gap: 30px;
    }
}

/* Position projets item on the right side */
.horizontal-nav-links .right-item,
.horizontal-nav-links .right-item2 {    
    font-family: var(--font-secondary);
    font-size: 17px;
    font-weight: 800;
    color: var(--color-black);
    text-decoration: none;
    text-transform: lowercase;
    letter-spacing: -0.02em;
    transition: opacity 0.3s ease, background-color 0.3s ease, color 0.3s ease;
    padding: 5px 15px;
    position: absolute;
    right: 70px;
    top:46px;
    z-index:2;
}


.header-optional .horizontal-nav-links .right-item,
.header-optional .horizontal-nav-links .right-item2 {
    top:16px;
    right:0px;
    display: inline-block; /* Always visible in header-optional */
}

@media (min-width: 769px) {
    
    .header-optional .horizontal-nav-links .right-item,
    .header-optional .horizontal-nav-links .right-item2 {
        top:46px;
        right: 70px;
    }
}

.horizontal-nav-links a {
    font-family: var(--font-secondary);
    font-size: 17px;
    line-height:17px;
    font-weight: 400;
    color: var(--color-black);
    text-decoration: none;
    text-transform: lowercase;
    letter-spacing: -0.02em;
    transition: opacity 0.3s ease, background-color 0.3s ease, color 0.3s ease;
    display: inline-block;
    padding: 5px 15px;
    position: relative;
}

/* Position projets item on the right side */
#horizontalNav .horizontal-nav-links .right-item,
#horizontalNav .horizontal-nav-links .right-item2 {    
    right: 70px;
    top:50px;
}

/* Hidden by default on desktop */
#horizontalNav .horizontal-nav-links .right-item,
#horizontalNav .horizontal-nav-links .right-item2 {
    display: none; 
    z-index:3;
}

/* Show right-item and right-item2 when visible class is added */
#horizontalNav .horizontal-nav-links .right-item.visible,
#horizontalNav .horizontal-nav-links .right-item2.visible {
    display: inline-block;
    pointer-events: auto;
    z-index: 1001;
    opacity: 1;
    background-color: var(--color-white);
}

.horizontal-nav-links a:hover {
    opacity: 0.6;
}

.horizontal-nav-links li:not(.right-item) a.active,
.horizontal-nav-links li:not(.right-item2) a.active,
.horizontal-nav-links li:not(.right-item) a:hover,
.horizontal-nav-links li:not(.right-item2) a:hover  {
    background-color: var(--color-black);
    color: var(--color-white);
    padding: 5px 15px;
}

/* Show horizontal nav only on desktop */
@media (min-width: 769px) {
    .horizontal-nav {
        display: block;
    }
}

/* ===================================
   Hero Slider
   =================================== */

.hero-slider {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

.carousel,
.carousel-inner,
.carousel-item {
    height: 100%;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.15) 100%);
}

/* Hero Logo */
.hero-logo {
    position: absolute;
    top: calc(50vh - 60px);
    /*left: 237px;*/
    left: 12%;
    /*transform: translateX(-50%);*/
    z-index: 10;
    text-align: left;
    /*display: flex;
    align-items: flex-start;
    gap: 15px;*/
    color: var(--color-white);
    opacity: 1;
    transition: opacity 0.6s ease;
}

.hero-logo.hidden {
    opacity: 0;
    pointer-events: none;
}

.hero-logo .logo-text {
    font-size: 32px;
    color: var(--color-white);
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
    padding-bottom: 6px;
}

.hero-logo .logo-circle,
.hero-logo .logo-square {
    width: 50px;
    height: 50px;
    background-color: var(--color-white);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.hero-logo img {
    width:157px;
    height:auto;
}

/* Hero Legend */
.hero-legend {
    position: absolute;
    bottom: 50px;
    right: 66px;
    z-index: 10;
    font-family: var(--font-secondary);
    font-size: 13px;
    font-weight: 800;
    color: var(--color-white);
    /*text-shadow: 0 2px 8px rgba(0,0,0,0.4);*/
    display: flex;
    align-items: center;
    gap: 12px;
    opacity: 1;
    transition: opacity 0.6s ease;
    pointer-events: none;
}

.legend-separator {
    width: 1px;
    height: 14px;
    background-color: var(--color-white);
    opacity: 0.6;
}

/* ===================================
   Image Grid Section
   =================================== */

.image-grid-section {
    position: relative;
    padding: 0;
    padding-top:110px;
    margin-top: 0;
    background-color: var(--color-white);
    max-width:  var(--max-screen-width-section);
    margin-left: auto;
    margin-right: auto;
}

.image-grid-section .container-fluid {
    padding-left: 37.5px;
    padding-right: 37.5px;
}

.image-grid-section .row {
    margin: 0;
}

.grid-item {
    position: relative;
    padding: 12.5px;
}

.grid-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 897.5 / 563;
    overflow: hidden;
    cursor: pointer;
    background-color: var(--color-white);
}

.grid-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /*transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);*/
}
/*
.grid-image-wrapper:hover .grid-image {
   transform: scale(1.05);
}
*/

.grid-legend {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--color-black);
    color: var(--color-white);
    padding: 2px 10px;
    font-family: var(--font-secondary);
    font-size: 14px;
    font-weight: 400;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.grid-image-wrapper:hover .grid-legend {
    transform: translateY(0);
}

/* Remove the absolute positioned yellow gutters */
.yellow-gutter {
    display: none;
}

/* Grid Instruction */
.grid-instruction {
    position: relative;
    padding: 30px;
    font-family: var(--font-secondary);
    font-size: 12px;
    font-weight: 400;
    text-transform: lowercase;
    background-color: var(--color-black);
    color: var(--color-white);
}

.yellow-instruction-bar {
    position: absolute;
    left: 30px;
    bottom: 0;
    width: 60px;
    height: 25px;
    background-color: var(--color-yellow);
}

/* ===================================
   Footer
   =================================== */

.main-footer {
    background-color: var(--color-gray-light);
    padding: 10px 0;
    margin-top: 0;
}

/* Footer fixed at bottom for project pages */
body.single-projet .main-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 10px 0;
}

.footer-col {
    padding: 0 var(--gutter-width);
    font-size:10px;
}

/* ===================================
   Responsive Design
   =================================== */

@media (max-width: 768px) {
    :root {
        --gutter-width: 20px;
        --gutter-sm: 15px;
    }

    .main-header.visible {
        height:70px;
    }

    body.projects-page .main-header {
        height:140px;
    }

    body.projects-page .image-grid-section {
        padding-top: 160px;
    }

    body.project-page .project-content {
        padding-top: 100px;
    }
    
    /* Navigation Menu */
    .main-nav {
        max-width: 100%;
    }
    
    .nav-content {
        padding: 30px;
    }
    
    .nav-close {
        margin-bottom: 40px;
    }
    
    .nav-links a {
        font-size: 28px;
        font-weight: 800;
    }
    .nav-links ul a {
        font-weight: 400;
    }

    .nav-links li {
        margin-bottom: 20px;
        text-align: center;
    }
    
    .nav-links ul {
        margin-top: 20px;
    }
    /* Hero */
     /*.hero-logo {
       top: 30px;
    }*/

    .horizontal-nav-links {
        padding-top:82px;
    }
    
    .hero-legend {
        bottom: 20px;
        right: 20px;
        font-size: 11px;
    }
    
    .header-content {
        padding: var(--gutter-sm) var(--gutter-sm);
    }
    
    /* Reduce outer gutters on mobile */
    .image-grid-section .container-fluid {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* Reduce central gutters on mobile */
    .grid-item {
        padding: 5px;
    }
    
    .grid-image-wrapper {
        aspect-ratio: 1 / 0.8;
    }
    
    .grid-legend {
        padding: 15px 20px;
        font-size: 12px;
        transform: translateY(0); /* Always visible on mobile */
    }
}

@media (max-width: 576px) {
    .nav-links a {
        font-size: 24px;
    }
    
    .hero-logo .logo-text {
        font-size: 14px;
    }
    
    .logo-circle {
        width: 16px;
        height: 16px;
    }
    
    .logo-square {
        width: 14px;
        height: 14px;
    }
}

/* ===================================
   Animations
   =================================== */

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
/*
.carousel-item {
    animation: fadeIn 1.5s ease-in-out;
}
*/

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* ===================================
   Filter Animation Effects
   =================================== */

.grid-item {
    opacity: 1;
    transform: scale(1);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.grid-item.filter-fade-out {
    opacity: 0;
    transform: scale(0.95);
    pointer-events: none;
}

.grid-item.filter-fade-in {
    animation: filterFadeIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes filterFadeIn {
    0% {
        opacity: 0;
        transform: scale(0.96) translateY(15px);
    }
    60% {
        transform: scale(1.01) translateY(-2px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Active filter subtle pulse effect */
.horizontal-nav-links a.active {
    animation: subtlePulse 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes subtlePulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Image grid wrapper subtle effect during filtering */
.image-grid-section {
    transition: opacity 0.2s ease;
}

.image-grid-section.filtering {
    opacity: 0.95;
}

/* Add subtle glow to filtered items */
.grid-item.filter-fade-in .grid-image-wrapper {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    animation: subtleGlow 0.8s ease;
}

@keyframes subtleGlow {
    0% {
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    }
    50% {
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    }
    100% {
        box-shadow: 0 0 0 rgba(0, 0, 0, 0);
    }
}

.main-footer p, .footer-in-col p{
    font-size:10px;
}

.main-footer a{
    color: var(--color-black);

}

.main-footer .container-fluid {
    padding-right: 50px;
    padding-left: 50px;
    max-width: var(--max-screen-width-header-footer);
}


/* ===================================
   Project Detail Page
   =================================== */

/* Two Column Layout with Independent Scroll */
.project-content {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--color-white);
    
    max-width:  var(--max-screen-width-section);
    
    margin-left: auto;
    margin-right: auto;
}

/* Adjust bottom spacing for footer on project pages */
body.project-page .project-content {
    bottom: 0px; /* Account for footer height */
}

.project-content .container-fluid {
    height: 100%;
    padding-left: 50px;
    padding-right: 50px;
}

/* Mobile Project Title */
.mobile-project-title {
    display: none; /* Hidden on desktop */
    text-align: center;
    padding: 30px 0;
    padding-top:120px;
    padding-bottom:0;
}

.mobile-project-title h1 {
    font-family: var(--font-secondary);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: -0.02em;
    text-transform: lowercase;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 0;
    line-height: 1;
    flex-wrap: wrap;
}

.project-content .row {
    height: 100%;
    margin: 0;
}

.project-col-left,
.project-col-right {
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    /* Hide scrollbar for Chrome, Safari and Opera */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;  /* IE and Edge */
}

.project-col-left::-webkit-scrollbar,
.project-col-right::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.project-col-left {
    padding-right: 12.5px;
}

.project-col-right {
    padding-left: 12.5px;
}

.project-info .project-description,
.agence-info .agence-description {
    max-width:386px;
    margin-left:auto;
    margin-right:auto;
    padding-bottom: 100px;
}

.project-info .project-description p,
.agence-info .agence-description p {
    font-size: 14px;
    font-weight: 500;
}

.agence-info .agence-description .big {
    padding-top: 40px;
}
.agence-info .agence-description .big p {
    font-size: 17px;
    font-weight: 500;
    padding-bottom: 20px;
}
.agence-info .agence-description .big a {
    color: var(--color-black);
    text-decoration: none;

}

.agence-info .agence-description .big a:hover{
    font-weight: 800;
}

.project-info .gallery-item + .project-description {
    padding-top: 100px;
}

.project-info .gallery-item {
    width:100%;
    height:auto;
    max-width:500px;
    margin-left: auto;
    margin-right: auto;
}

/* Gallery Items */
.project-gallery-left,
.project-info,
.agence-info {
    display: flex;
    flex-direction: column;
    gap: 25px;
    padding: 50px 0;
}


.project-info {
    padding-top: 150px;
}

.agence-info {
    padding-top: 100px;
}


.gallery-item {
    position: relative;
    width: 100%;
}

.gallery-image-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    cursor: pointer;
    background-color: var(--color-gray-light);
}

.gallery-item:not([data-gallery]) .gallery-image-wrapper{
    cursor: auto;
}

.gallery-image {
    width: 100%;
    height: auto;
    display: block;
    /*transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);*/
}
/*
.gallery-image-wrapper:hover .gallery-image {
    transform: scale(1.05);
}
*/

.gallery-legend {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--color-black);
    color: var(--color-white);
    padding: 2px 10px;
    font-family: var(--font-secondary);
    font-size: 14px;
    font-weight: 400;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-info .gallery-legend {
    background-color: var(--color-white);
    color: var(--color-black);
}

.gallery-image-wrapper:hover .gallery-legend {
    transform: translateY(0);
}

/* Project Details Text (No Black Background) */
/*
.project-details {
    padding: 30px 0;
}

.detail-block {
    margin-bottom: 20px;
}

.detail-block:last-child {
    margin-bottom: 0;
}

.detail-label {
    font-family: var(--font-secondary);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 5px;
    color: var(--color-black);
}

.detail-block p {
    font-family: var(--font-secondary);
    font-size: 11px;
    font-weight: 400;
    line-height: 1.6;
    margin: 0;
    text-transform: lowercase;
    color: var(--color-black);
}

/* Project Description */
/*
.project-description {
    padding: 30px 0;
}

.description-title {
    font-family: var(--font-secondary);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 15px;
}

.project-description p {
    font-family: var(--font-secondary);
    font-size: 13px;
    font-weight: 400;
    line-height: 1.7;
    margin-bottom: 15px;
    text-align: justify;
}

.project-description p:last-child {
    margin-bottom: 0;
}
*/
/* ===================================
   Lightbox Modal
   =================================== */
.lightbox-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0);
    z-index: 3000;
    overflow: hidden;
    transition: background-color 0.3s ease;
}

.lightbox-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.3s ease;
}

.lightbox-content {
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    display: block;
    animation: fadeIn 0.3s ease;
}

/* Slide animations */
@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.lightbox-content img.slide-left {
    animation: slideInFromRight 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.lightbox-content img.slide-right {
    animation: slideInFromLeft 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.lightbox-caption {
    color: var(--color-white);
    font-family: var(--font-secondary);
    font-size: 14px;
    font-weight: 400;
    margin-top: 20px;
    text-align: center;
    animation: fadeIn 0.4s ease 0.2s both;
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 30px;
    background: none;
    border: none;
    color: var(--color-white);
    cursor: pointer;
    padding: 10px;
    z-index: 3001;
    transition: opacity 0.3s ease;
    animation: fadeIn 0.3s ease 0.1s both;
}

.lightbox-close:hover {
    opacity: 0.6;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--color-white);
    cursor: pointer;
    padding: 20px;
    z-index: 3001;
    transition: opacity 0.3s ease;
    animation: fadeIn 0.3s ease 0.15s both;
}

.lightbox-prev {
    left: 30px;
}

.lightbox-next {
    right: 30px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    opacity: 0.6;
}

.lightbox-counter {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--color-white);
    font-family: var(--font-secondary);
    font-size: 14px;
    font-weight: 400;
    animation: fadeIn 0.4s ease 0.2s both;
}

/* ===================================
   Project Page Responsive Design
   =================================== */
@media (max-width: 991px) {
    .project-content {
        position: relative;
        top: auto;
        bottom: auto;
        height: auto;
    }
    
    body.project-page .project-content {
        bottom: auto;
    }
    
    body.project-page .main-footer {
        position: relative;
    }
    
    .project-content .row {
        height: auto;
    }
    
    .project-col-left,
    .project-col-right {
        height: auto;
        overflow-y: visible;
        padding-left: 0;
        padding-right: 0;
    }
    
    .project-content .container-fluid {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .header-center {
        display: none;
    }
    
    /* Show mobile project title 
    .mobile-project-title {
        display: block;
    }*/
}

@media (max-width: 768px) {
    .project-title {
        font-size: 14px;
        flex-direction: column;
        gap: 10px;
    }
    
    .title-separator {
        display: none;
    }
    
    .mobile-project-title h1 {
        font-size: 16px;
    }
    
    .gallery-legend {
        padding: 12px 15px;
        font-size: 12px;
    }
    
    /* Make legends visible on mobile by default (hover doesn't work on touch) */
    .grid-legend,
    .gallery-legend {
        transform: translateY(0);
    }
    
    .project-details,
    .project-description {
        padding: 20px 0;
    }
    
    .lightbox-prev {
        left: 10px;
    }
    
    .lightbox-next {
        right: 10px;
    }
    
    .lightbox-close {
        top: 20px;
        right: 20px;
    }
    
    .header-content {
        padding-top: 30px;
        padding-left: 20px;
        padding-right: 20px;

        max-width:  var(--max-screen-header-width);
    }

    body.project-page .main-footer {
        padding: 30px 0;
    }
    
    .project-info .project-description,
    .agence-info .agence-description {
        max-width:386px;
        margin-left:auto;
        margin-right:auto;
        padding-bottom: 50px;
    }
    
    .project-info .project-description p,
    .agence-info .agence-description p {
        font-size: 14px;
        font-weight: 500;
    }
    
    .project-info .gallery-item + .project-description {
        padding-top: 50px;
    }
    
    .project-info,
    .agence-info {
        padding-top: 50px;
    }
    
    .agence-info {
        padding-bottom: 0px;
    }
    .agence-info .agence-description {
        padding-bottom: 0px;
    }

}

@media (max-width: 576px) {
    .header-project-title {
        font-size: 12px;
    }
    
    .mobile-project-title h1 {
        font-size: 11px;
    }
    
    .detail-label,
    .detail-block p,
    .description-title {
        font-size: 10px;
    }
    
    .project-description p {
        font-size: 11px;
    }
}

/* ===================================
   Page légale (mentions légales, confidentialité, cookies)
   =================================== */

.legal-content {
    min-height: 100vh;
    padding-top: 150px;
    padding-bottom: 80px;
    background-color: var(--color-white);
}

.legal-col {
    padding-left: 20px;
    padding-right: 20px;
}

.legal-title {
    font-family: var(--font-secondary);
    font-size: 18px;
    font-weight: 800;
    text-transform: none;
    letter-spacing: -0.02em;
    margin-bottom: 40px;
    padding-bottom: 20px;
    /*border-bottom: 1px solid var(--color-black);*/
}

.legal-body {
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.7;
    color: var(--color-black);
}

.legal-body h2, #cmplz-document h2 {
    font-family: var(--font-secondary);
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 40px;
    margin-bottom: 15px;
}

.legal-body h3, #cmplz-document h3 {
    font-family: var(--font-secondary);
    font-size: 13px;
    font-weight: 700;
    margin-top: 25px;
    margin-bottom: 10px;
}

.legal-body p {
    margin-bottom: 15px;
}

.legal-body a {
    color: var(--color-black);
    text-decoration: underline;
}

.legal-body a:hover {
    opacity: 0.6;
}

.legal-body ul,
.legal-body ol {
    padding-left: 20px;
    margin-bottom: 15px;
}

.legal-body li {
    margin-bottom: 6px;
}

@media (max-width: 768px) {
    .legal-content {
        padding-top: 100px;
        padding-bottom: 60px;
    }

    .legal-title {
        font-size: 15px;
        margin-bottom: 40px;
    }

    .legal-body {
        font-size: 13px;
    }
}

.main-footer .footer-col li a {
    margin-left: 15px;
}
.main-footer .footer-col a:first-of-type {
    margin-left: 0;
}

/* ===================================
   Footer nav menu
   =================================== */
.footer-nav {
    margin: 0;
    margin-left:10px;
    padding: 0;
    list-style: none;
    display: inline;
}

.footer-nav li {
    display: inline;
}

.footer-nav li + li::before {
    content: '';
    display: inline-block;
    width: 1px;
    height: 9px;
    background-color: var(--color-black);
    opacity: 0.4;
    margin: 0 8px;
    vertical-align: middle;
}

.footer-nav a {
    font-size: 10px;
    color: var(--color-black);
    text-decoration: underline;
}

.footer-nav a:hover {
    text-decoration: none;
}
