/* ============================================================
   Base
   ============================================================ */

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

html {
    font-size: 16px;
}

body {
    font-family: 'Raleway', sans-serif;
    font-weight: 300;
    background: #fff;
    color: #111;
    -webkit-font-smoothing: antialiased;
}

/* ============================================================
   Navigation
   ============================================================ */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
}

.nav-main {
    display: flex;
    align-items: center;
    padding: 0 2rem;
    height: 104px;
    gap: 2.5rem;
}

/* Logo */
.nav-brand {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    text-decoration: none;
}

.nav-logo-img {
    height: 36px;
    width: auto;
    display: block;
}

.nav-burger {
    display: none;
}

/* Main links */
.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    font-size: 0.88rem;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-decoration: none;
    color: #111;
    text-transform: uppercase;
    transition: opacity 0.2s;
}

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

/* Map icon */
.nav-map-icon {
    margin-left: auto;
    display: flex;
    align-items: center;
    color: #111;
    opacity: 0.6;
    transition: opacity 0.2s;
    text-decoration: none;
    flex-shrink: 0;
}

.nav-map-icon:hover {
    opacity: 1;
}

/* Language selector */
.nav-lang {
    position: relative;
    margin-left: auto;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    background: none;
    border: none;
    cursor: pointer;
    font-family: 'Raleway', sans-serif;
    font-size: 0.88rem;
    font-weight: 400;
    letter-spacing: 0.12em;
    color: #111;
    text-transform: uppercase;
    padding: 0;
    transition: opacity 0.2s;
}

.lang-btn:hover {
    opacity: 0.45;
}

.lang-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: #fff;
    border: 1px solid #e0e0e0;
    list-style: none;
    min-width: 56px;
    z-index: 200;
}

.lang-dropdown.open {
    display: block;
}

.lang-dropdown li a {
    display: block;
    padding: 0.5rem 1rem;
    font-size: 0.88rem;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-decoration: none;
    color: #111;
    text-transform: uppercase;
    transition: background 0.15s;
}

.lang-dropdown li a:hover {
    background: #f5f5f5;
}

/* ============================================================
   Homepage — Projects grid
   ============================================================ */

/* ============================================================
   Project title bar (project page only)
   ============================================================ */

.project-title-bar {
    position: sticky;
    top: 104px; /* hauteur de .site-header */
    z-index: 90;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    padding: 0 2rem;
    height: 60px;
}

.project-title-name {
    font-size: 0.72rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #111;
}

.project-words-link {
    font-family: 'Raleway', sans-serif;
    font-size: 0.72rem;
    font-weight: 300;
    font-style: italic;
    letter-spacing: 0.05em;
    color: #111;
    background: none;
    border: none;
    border-bottom: 1px solid #999;
    padding: 0;
    cursor: pointer;
    transition: opacity 0.2s;
}

.project-words-link:hover,
.project-words-link.active {
    opacity: 0.45;
}

/* ============================================================
   Filter bar (projects page)
   ============================================================ */

.filter-bar {
    position: sticky;
    top: 104px;
    z-index: 80;
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    gap: 3rem;
    padding: 0 2rem;
    height: 44px;
}

.filter-types {
    display: flex;
    gap: 2rem;
}

.filter-type {
    font-size: 0.78rem;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-decoration: none;
    color: #888;
    text-transform: uppercase;
    transition: color 0.2s;
}

.filter-type:hover {
    color: #111;
}

.filter-type.active {
    color: #111;
    font-weight: 500;
    border-bottom: 1px solid #111;
}

.filter-category {
    position: relative;
    padding-left: 2rem;
    border-left: 1px solid #ccc;
}

.filter-cat-btn {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    background: none;
    border: none;
    cursor: pointer;
    font-family: 'Raleway', sans-serif;
    font-size: 0.78rem;
    font-weight: 400;
    letter-spacing: 0.12em;
    color: #111;
    text-transform: uppercase;
    padding: 0;
    transition: opacity 0.2s;
}

.filter-cat-btn:hover {
    opacity: 0.45;
}

.filter-cat-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: #fff;
    border: 1px solid #e0e0e0;
    list-style: none;
    min-width: 160px;
    z-index: 200;
}

.filter-cat-dropdown.open {
    display: block;
}

.filter-cat-dropdown li a {
    display: block;
    padding: 0.5rem 1rem;
    font-size: 0.78rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-decoration: none;
    color: #111;
    text-transform: uppercase;
    transition: background 0.15s;
}

.filter-cat-dropdown li a:hover,
.filter-cat-dropdown li a.active {
    background: #f5f5f5;
}

/* ============================================================
   Homepage — Projects grid
   ============================================================ */

.projects-grid {
    position: relative;
    margin: 24px 34px;
}

.grid-sizer,
.project-card {
    width: calc(50% - 31px);
}

.project-card {
    display: block;
    text-decoration: none;
    color: #111;
    overflow: hidden;
    margin-bottom: 24px;
}

.project-img-wrap {
    overflow: hidden;
    background: #f0f0f0;
}

.project-img-wrap img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.project-card:hover .project-img-wrap img {
    transform: scale(1.03);
}

.project-img-missing {
    background: #e8e8e8;
}

.project-name {
    font-size: 0.68rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.3rem 0 0.55rem;
    opacity: 0;
    transition: opacity 0.25s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    height: 2rem;
    line-height: 2rem;
}

.project-card:hover .project-name {
    opacity: 1;
}

/* ============================================================
   Project description panel
   ============================================================ */

.project-description {
    max-width: 960px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
}

.project-description-inner {
    font-size: 0.88rem;
    font-weight: 300;
    line-height: 1.8;
    color: #333;
    max-width: 680px;
    margin: 0 auto;
}

.project-description-inner p + p {
    margin-top: 1.2em;
}

.project-description-inner a {
    color: #333;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.page-title {
    text-align: center;
    font-size: 0.88rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 2.5rem 0 1.0rem;
}

.contact-inner {
    font-size: 1rem;
    line-height: 1.9;
}

/* Contact form */
.contact-form {
    margin-top: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-field label {
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    color: #888;
}

.form-required {
    color: #111;
}

.form-field input,
.form-field textarea {
    font-family: 'Raleway', sans-serif;
    font-size: 0.88rem;
    font-weight: 300;
    color: #111;
    background: #fff;
    border: none;
    border-bottom: 1px solid #ccc;
    padding: 0.5rem 0;
    outline: none;
    transition: border-color 0.2s;
    width: 100%;
    resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
    border-bottom-color: #111;
}

.form-submit {
    align-self: flex-start;
    margin-top: 0.5rem;
    background: none;
    border: 1px solid #111;
    font-family: 'Raleway', sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    color: #111;
    padding: 0.6rem 2rem;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.form-submit:hover {
    background: #111;
    color: #fff;
}

.contact-feedback {
    margin-top: 1.5rem;
    font-size: 0.85rem;
    line-height: 1.6;
    padding: 1rem 1.2rem;
}

.contact-feedback--ok {
    border-left: 2px solid #111;
    color: #333;
}

.contact-feedback--error {
    border-left: 2px solid #c00;
    color: #c00;
}

/* Legal page */
.legal-text h2 {
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #111;
    margin: 2rem 0 0.6rem;
}

.legal-text h2:first-child {
    margin-top: 0;
}

.legal-text p {
    margin-bottom: 0.8rem;
}

/* Map page */
.map-page-body .site-header {
    position: sticky;
    top: 0;
}

.map-page {
    height: calc(100vh - 104px);
}

#map {
    width: 100%;
    height: 100%;
}

.leaflet-popup-content-wrapper {
    border-radius: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    padding: 0;
}

.leaflet-popup-content {
    margin: 10px 14px;
    font-size: 0.78rem;
}

.leaflet-popup-tip-container {
    display: none;
}

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

.site-footer {
    background: #1c1c1c;
    color: #888;
    margin-top: 4rem;
}

.footer-inner {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 3rem;
    padding: 3rem 2rem 2rem;
}

.footer-main-link {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    color: #ccc;
    text-decoration: none;
    text-transform: uppercase;
    transition: color 0.2s;
    display: block;
}

.footer-main-link:hover {
    color: #fff;
}

.footer-col ul {
    list-style: none;
    margin-top: 0.6rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.footer-col ul a {
    font-size: 0.75rem;
    font-weight: 300;
    letter-spacing: 0.08em;
    color: #888;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-col ul a:hover {
    color: #ccc;
}

.footer-col--lang {
    margin-left: 1rem;
}

.footer-copy {
    padding: 1.5rem 2rem;
    border-top: 1px solid #2a2a2a;
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    color: #888;
}

@media (max-width: 767px) {
    .map-page {
        height: calc(100vh - 52px);
    }
}

.studio-map-wrap {
    margin: 3rem 0 0;
    height: 420px;
}

.studio-map-wrap #map {
    width: 100%;
    height: 100%;
}

.map-popup-name {
    font-family: 'Raleway', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    color: #111;
    text-decoration: none;
    font-weight: 500;
    display: block;
}

.map-popup-name:hover {
    opacity: 0.6;
}

.studio-photos {
    display: flex;
    gap: 2rem;
    max-width: 680px;
    margin: 2rem auto 0;
}

.studio-photos img {
    flex: 1 1 0;
    min-width: 0;
    height: auto;
    display: block;
    object-fit: cover;
}

/* ============================================================
   Project page
   ============================================================ */

.project-detail {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 1.5rem 4rem;
}

.project-media img,
.project-media video {
    display: block;
    width: 100%;
    height: auto;
    margin-bottom: 48px;
}

.project-media img {
    max-height: calc(100vh - 164px); /* 104px nav + 60px title bar */
    object-fit: contain;
}

.project-media video {
    background: #000;
}

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

@media (min-width: 1481px) {
    .grid-sizer,
    .project-card {
        width: calc(33.333% - 31px);
    }
}

@media (max-width: 767px) {
    .projects-grid {
        margin: 10px;
    }

    .grid-sizer,
    .project-card {
        width: 100%;
    }

    .nav-main {
        padding: 0 1rem;
        gap: 1.2rem;
        height: 52px;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 52px;
        left: 0;
        right: 0;
        background: #fff;
        border-bottom: 1px solid #e0e0e0;
        flex-direction: column;
        gap: 0;
        padding: 1rem 0;
        z-index: 99;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links li a {
        display: block;
        padding: 0.75rem 1.5rem;
    }

    .nav-burger {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 22px;
        height: 16px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 0;
    }

    .nav-burger span {
        display: block;
        height: 1.5px;
        background: #111;
        transition: opacity 0.2s;
    }

    .nav-logo-img {
        height: 22px;
    }

    .project-name {
        opacity: 1;
    }

    .project-title-bar {
        padding: 0 1rem;
        top: 48px;
    }

    /* Footer mobile */
    .footer-inner {
        flex-direction: column;
        gap: 2rem;
        padding: 2rem 1.5rem 1rem;
    }

    .filter-bar {
        gap: 1rem;
        padding: 0 0.75rem;
    }

    .filter-types {
        gap: 0.75rem;
    }

    .filter-category {
        padding-left: 0.75rem;
    }

    .filter-type,
    .filter-cat-btn {
        font-size: 0.68rem;
        letter-spacing: 0.06em;
    }
}

/* ============================================================
   Press / News page
   ============================================================ */

.press-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 2rem 4rem;
}

@media (max-width: 1024px) {
    .press-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 767px) {
    .press-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 1.5rem 1rem;
        gap: 1.5rem;
    }
}

.press-item a {
    display: block;
    text-decoration: none;
    color: inherit;
}

.press-item a:hover .press-thumb img {
    opacity: 0.75;
}

.press-thumb {
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #f4f4f4;
    margin-bottom: 0.6rem;
}

.press-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.2s;
}

.press-caption {
    font-size: 0.72rem;
    font-weight: 400;
    letter-spacing: 0.06em;
    line-height: 1.4;
    text-transform: uppercase;
    color: #333;
}
