/* ==========================================
   FONT DECLARATIONS — local files only
   ========================================== */
@font-face {
    font-family: 'New York';
    src: url('../font/NewYork PERSONAL USE.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Zalando Sans';
    src: url('../font/ZalandoSans-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Zalando Sans';
    src: url('../font/ZalandoSans-LightItalic.ttf') format('truetype');
    font-weight: 300;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Zalando Sans';
    src: url('../font/ZalandoSans-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Zalando Sans';
    src: url('../font/ZalandoSans-Italic.ttf') format('truetype');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Zalando Sans';
    src: url('../font/ZalandoSans-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Zalando Sans';
    src: url('../font/ZalandoSans-MediumItalic.ttf') format('truetype');
    font-weight: 500;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Zalando Sans';
    src: url('../font/ZalandoSans-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Zalando Sans';
    src: url('../font/ZalandoSans-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Zalando Sans';
    src: url('../font/ZalandoSans-ExtraBold.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

/* ==========================================
   DESIGN TOKENS
   ========================================== */
:root {
    --cream:        #F7F5F0;
    --cream-dim:    #EEEBE3;
    --forest:       #1D3D2A;
    --forest-mid:   #2E5C40;
    --sage:         #6B7F5E;
    --sage-light:   #A8BF9A;
    --stone:        #9C9585;
    --citron:       #C8D44E;
    --citron-hi:    #D9E65A;
    --mist:         #E0EDE0;
    --blush:        #EDD5CE;
    --lavender:     #D8D0E8;
    --sand:         #E8DFC8;
    --font-display: 'New York', Georgia, serif;
    --font-body:    'Zalando Sans', system-ui, sans-serif;
}

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

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    background: var(--cream);
    color: var(--forest);
    -webkit-font-smoothing: antialiased;
    height: 100vh;
}

.home {
    overflow: hidden;
}

a {
    text-decoration: none;
    color: var(--forest);
}

/* ==========================================
   HOME — FULLSCREEN LAYOUT
   ========================================== */
.background-image {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.6s ease;
    z-index: 1;
    filter: brightness(82%);
}

.background-image.active {
    opacity: 1;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.18);
    z-index: 2;
    pointer-events: none;
}

/* ==========================================
   LOGO
   ========================================== */
.logo {
    width: 50px;
    position: absolute;
    overflow: hidden;
    top: 30px;
    left: 60px;
}

.logo img {
    width: 100%;
    transform: rotate(0deg);
    transition: 0.3s ease;
}

.logo img:hover {
    transition: 0.3s ease;
    transform: rotate(180deg);
}

.logo-home {
    position: fixed;
    z-index: 100;
    filter: brightness(0) invert(1);
}

/* ==========================================
   HOME — PROJECT LIST
   ========================================== */
.content {
    position: fixed;
    bottom: 0;
    left: 0;
    z-index: 10;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-left: 48px;
    padding-bottom: 40px;
}

.project-item {
    margin: 15px 0 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.project-item a {
    display: flex;
    align-items: baseline;
    gap: 14px;
}

.project-item h1 {
    font-family: var(--font-body);
    font-weight: 800;
    font-size: 42px;
    line-height: 1;
    margin: 0;
    color: rgba(247, 245, 240, 0.35);
    transition: all 0.3s ease;
}

.project-item.active h1 {
    color: #F7F5F0;
    font-size: 52px;
}

.project-item:hover h1 {
    color: rgba(247, 245, 240, 0.75);
}

.project-item.active:hover h1 {
    color: #F7F5F0;
}

.cat-label {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 300;
    color: rgba(247, 245, 240, 0.50);
    letter-spacing: 0.03em;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.project-item.active .cat-label {
   color: var(--citron);
}

.project-item:hover .cat-label {
    color: var(--citron);
}

.tap-indicator {
    display: none;
}

/* ==========================================
   NAVIGATION
   ========================================== */
.nav {
    position: absolute;
    top: 40px;
    right: 60px;
    display: flex;
    gap: 30px;
    z-index: 10;
}

/* Base nav link styles (dark pages) */
.nav a,
.dark .lang-switcher {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--forest);
    text-decoration: none;
    position: relative;
    display: inline-block;
    transition: color 200ms ease;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--citron);
    transition: width 200ms ease;
}

.nav a:hover::after {
    width: 100%;
}

.nav a:hover {
    color: var(--citron);
}

/* Dark-class nav (project & info pages) */
.dark a {
    color: var(--forest);
}

/* Nav on homepage — fixed above fullscreen backgrounds */
.nav-home {
    position: fixed;
    z-index: 100;
}

.nav-home a {
    color: var(--cream);
}

.nav-home a::after {
     background: var(--citron);
}

.nav-home a:hover {
   color: var(--citron);
}

/* Lang switcher button */
.lang-switcher {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.02em;
    text-decoration: none;
    position: relative;
    display: inline-block;
    transition: color 200ms ease;
    color: var(--forest);
}

.lang-switcher::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--citron);
    transition: width 200ms ease;
}

.lang-switcher:hover::after {
    width: 100%;
}

.lang-switcher:hover {
    color:  var(--citron);
}

/* Switcher on dark photo overlay */
.nav-home .lang-switcher {
    color: #eeeeee;
}

.nav-home .lang-switcher::after {
    background: rgba(255, 255, 255, 0.5);
}

.nav-home .lang-switcher:hover {
    color:  var(--citron);
}

.tap-indicator {
    display: none;
}

/* ==========================================
   PROJECT PAGES — VIDEO LAYOUT
   ========================================== */

/* Video container */
.video-container {
    width: 60%;
    margin: 0 auto 100px;
}

.player-wrapper {
    position: relative;
    padding-top: 56.25%;
    background: #000;
}

.player {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.player iframe {
    width: 100%;
    height: 100%;
}

/* Video preview (thumbnail + play) */
.video-preview {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    opacity: 1;
    transition: opacity 1.5s ease;
}

.video-preview.hidden {
    opacity: 0;
    pointer-events: none;
}

.video-preview img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-button-preview {
    position: relative;
    z-index: 11;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.play-button-preview i {
    color: #eeeeee;
    font-size: 32px;
}

.video-preview:hover .play-button-preview {
    transform: scale(1.1);
}

#header-project {
    margin-top: 5%;
}

#last-video {
    padding-bottom: 5%;
}

/* Project info block */
.project-info {
    width: 60%;
    margin: 40px auto;
}

.project-info h1 {
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: normal;
    line-height: 1;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    color: var(--forest);
    margin-bottom: 30px;
    -webkit-text-stroke: 0.5px var(--forest);
}

.project-info h2 {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: normal;
    line-height: 1.2;
    color: var(--forest);
    margin-bottom: 10px;
    -webkit-text-stroke: 0.5px var(--forest);
}

/* Sous-titre produit (ex. Canon R6 V à l'intérieur d'une catégorie) */
.project-info h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: normal;
    line-height: 1.2;
    color: var(--forest);
    margin-bottom: 10px;
}

.project-description {
    display: flex;
    justify-content: space-between;
}

.project-txt {
    width: 80%;
    padding-right: 5%;
}

.project-txt p {
    font-size: 16px;
    line-height: 1.65;
    color: var(--forest);
    
}

.project-details {
    font-size: 14px;
    line-height: 1.8;
    color: var(--stone);
}

.project-details strong {
    color: var(--forest);
    font-weight: 500;
}

/* Image blocks */
.p-img-content {
    width: 60%;
    margin: auto;
    padding-bottom: 3%;
}

.img-work {
    width: 100%;
    margin-top: 15px;
}

.img-work img {
    width: 100%;
    border-radius: 2px;
    display: block;
}

.img-landscape {
    display: flex;
}

.img-portrait {
    display: flex;
}

.img-l {
    padding-right: 7.5px;
}

.img-r {
    padding-left: 7.5px;
}

/* Ligne mixte portrait + paysage : on aligne les hauteurs
   en recadrant (crop) via object-fit pour garder la grille 2×2 propre. */
.img-row-match {
    align-items: stretch;
}

.img-row-match .img-work img {
    aspect-ratio: 3 / 2;
    height: 100%;
    object-fit: cover;
}

.work-content {
    width: 100%;
    display: flex;
    justify-content: center;
}

/* ==========================================
   PROJECT PAGES — PHOTO / GALLERY LAYOUT
   ========================================== */
.photo-wrapper {
    padding: 20px 60px;
    max-width: 3000px;
    margin: 5% auto;
}

.photo-project-header h1 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: normal;
    line-height: 1;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    color: var(--forest);
    margin-bottom: 40px;
}

.photo-project-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 50px;
}

.photo-project-txt {
    width: 50%;
    font-size: 16px;
    line-height: 1.65;
    color: var(--forest);
}

.client-info {
    text-align: end;
    font-size: 14px;
    line-height: 1.8;
    color: var(--stone);
}

.client-info strong {
    color: var(--forest);
    font-weight: 500;
}

/* Gallery grid — masonry */
.gallery-grid {
    column-count: 4;
    column-gap: 20px;
}

.gallery-item {
    break-inside: avoid;
    margin-bottom: 20px;
    width: 100%;
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 2px;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

/* ==========================================
   INFO PAGE — two-column layout
   ========================================== */
.info-container {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 48px;
    align-items: start;
    max-width: 1300px;
    margin: 0 auto;
    padding: 220px 48px 64px;
}

.info-photo {
    width: 100%;
}

.info-photo img {
    width: 100%;
    border-radius: 4px;
    display: block;
}

.info-identity {
    margin-top: 16px;
}

.info-name {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: normal;
    color: var(--forest);
    margin-bottom: 2px;
    -webkit-text-stroke: 0.3px var(--forest);
}

.info-role {
    font-size: 13px;
    color: var(--sage);
    margin-bottom: 1px;
}

.info-location {
    font-size: 12px;
    color: var(--stone);
}

.info-txt {
    width: 100%;
    margin: 0;
}

.info-txt p {
    font-size: 14px;
    line-height: 1.7;
    color: var(--forest);
    margin: 0 0 16px;
}

.a-link {
    text-decoration: underline;
    text-underline-offset: 5px;
    color: var(--forest);
    transition: color 200ms ease;
}

.a-link:hover {
    color: var(--sage);
}

/* Tags / chips */
.info-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.info-tag {
    font-size: 11px;
    font-weight: 500;
    padding: 4px 12px;
    border-radius: 9999px;
    background: var(--mist);
    color: var(--sage);
    transition: background 200ms ease, color 200ms ease;
}

.info-tag:hover {
    background: var(--citron);
    color: var(--forest);
}

.info-tag.blush { background: var(--blush); color: var(--forest); }
.info-tag.lavender { background: var(--lavender); color: var(--forest); }
.info-tag.coffee { background: var(--stone); color: var(--cream); }

/* Gear / equipment section */
.info-gear {
    margin: 24px 0;
}

.info-gear-title {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: var(--stone);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(29, 61, 42, 0.08);
}

.info-gear-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.info-gear-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--forest);
}

.gear-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--citron);
    flex-shrink: 0;
}

.gear-category {
    color: var(--stone);
    margin-left: auto;
    font-size: 11px;
}

/* Social footer row */
.info-social {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid rgba(29, 61, 42, 0.10);
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.info-social a {
    color: var(--forest);
    text-decoration: none;
    font-size: 13px;
}

.socials {
    margin: 0;
    display: flex;
    gap: 16px;
}

.socials a {
    margin-left: 0;
    color: var(--forest);
    font-size: 13px;
    position: relative;
    display: inline-block;
    transition: color 200ms ease;
}

.socials a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--sage);
    transition: width 200ms ease;
}

.socials a:hover::after {
    width: 100%;
}

.socials a:hover {
    color: var(--sage);
}

#email {
    font-size: 13px;
    color: var(--forest);
    position: relative;
    display: inline-block;
    transition: color 200ms ease;
}

#email::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--sage);
    transition: width 200ms ease;
}

#email:hover::after {
    width: 100%;
}

#email:hover {
    color: var(--sage);
}

/* ==========================================
   GEAR CAPTIONS — under image blocks
   ========================================== */
.gear-caption {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-body);
    font-size: 12px;
    font-style: italic;
    color: var(--stone);
    margin-top: 16px;
    margin-bottom: 8px;
}

.gear-caption .cap-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--citron);
    flex-shrink: 0;
}

/* ==========================================
   404 PAGE
   ========================================== */
.error-container {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 100%;
    height: 90vh;
    overflow: hidden;
}

.error-elements {
    display: flex;
    flex-direction: column;
}

.error-elements img {
    width: 10%;
    margin: auto;
    animation: rotate-animation 10s infinite linear;
}

@keyframes rotate-animation {
    0%   { transform: rotate(0deg); }
    50%  { transform: rotate(180deg); }
    100% { transform: rotate(360deg); }
}

.error-elements a {
    color: #fff;
    font-size: 1.5rem;
    text-decoration: underline;
    text-underline-offset: 5px;
    transition: color 0.3s ease;
    margin-top: 2%;
}

.error-elements a:hover {
    color: var(--citron);
}

.bg-404 {
    overflow: hidden;
    position: absolute;
    top: 0;
    left: 0;
    filter: brightness(40%);
    z-index: -1;
    pointer-events: none;
    width: 100%;
    height: 100vh;
    background-image: url('../img/404.webp');
    background-position: center center;
    background-size: cover;
}

/* ==========================================
   RESPONSIVE
   ========================================== */

/* Large tablets / small laptops */
@media (max-width: 1100px) {
    .gallery-grid {
        column-count: 3;
    }
}

/* Tablet portrait */
@media (max-width: 800px) {
    .gallery-grid {
        column-count: 1;
        column-gap: 15px;
    }
    .gallery-item {
        margin-bottom: 15px;
    }
    .photo-wrapper {
        padding: 20px 30px;
    }
}

/* Small mobile */
@media (max-width: 500px) {
    .gallery-grid {
        column-count: 1;
    }
    .photo-wrapper {
        padding: 20px 30px;
    }
}

/* Mobile — main breakpoint */
@media (max-width: 768px) {
    .home {
        overflow: hidden;
    }

    .logo {
        left: 30px;
        top: 20px;
        width: 40px;
    }

    .nav {
        top: 30px;
        right: 30px;
    }

    .nav a,
    .nav-home a,
    .nav-home .lang-switcher {
        color: #eeeeee;
        font-size: 0.85rem;
    }

    .dark a,
    .dark .lang-switcher {
        color: var(--forest);
    }

    /* Content becomes full-screen carousel container */
    .content {
        height: 100vh;
        width: 100%;
        padding: 0;
        display: block;
        position: fixed;
        top: 0;
        overflow: hidden;
    }

    /* Each project fills the screen; only .active is visible */
    .project-item {
        position: absolute;
        top: 0;
        left: 0;
        height: 100vh;
        width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        padding: 0 70px 120px 30px;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.5s ease;
        margin: 0;
    }

    .project-item.active {
        opacity: 1;
        pointer-events: auto;
        z-index: 3;
    }

    .project-item a {
        display: flex;
        flex-direction: column;
        gap: 6px;
    }

    .project-item h1 {
        color: #F7F5F0;
        font-size: 2.5rem;
    }

    .project-item.active h1 {
        color: #F7F5F0;
        font-size: 2.5rem;
    }

    .cat-label {
        color: rgba(247, 245, 240, 0.75);
        font-size: 14px;
        white-space: normal;
    }

    .tap-indicator {
        display: block;
        position: fixed;
        bottom: 30px;
        right: 30px;
        color: #eeeeee;
        font-size: 1.5rem;
        z-index: 10;
        opacity: 0.7;
        pointer-events: none;
        text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
    }

    /* Project page — mobile */
    .project-txt {
        width: 100%;
    }

    .project-description {
        flex-wrap: wrap-reverse;
    }

    .project-details {
        margin-bottom: 3%;
    }

    .p-img-content {
        width: 100%;
        margin: auto;
        padding: 0 30px 30px 30px;
    }

    .img-landscape {
        flex-wrap: wrap;
    }

    .img-portrait {
        flex-wrap: wrap;
    }

    .img-l {
        padding-right: 0;
    }

    .img-r {
        padding-left: 0;
    }

    .video-container {
        width: 100%;
        margin: 50px auto 40px;
        padding: 0 30px;
    }

    #header-project {
        margin-top: 25%;
    }

    .project-info {
        width: 100%;
        padding: 0 30px;
    }

    .project-info h1 {
        font-size: 1.5rem;
    }

    .work-content {
        margin-top: 15%;
    }

    .photo-project-info {
        display: flex;
        flex-wrap: wrap;
        margin-bottom: 50px;
    }

    .photo-project-txt {
        width: 100%;
    }

    .client-info {
        text-align: start;
        margin-top: 20px;
    }

    /* Info page — mobile */
    .info-container {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 100px 30px 40px;
    }

    .info-left {
        display: flex;
        gap: 20px;
        align-items: flex-start;
    }

    .info-photo {
        width: 140px;
        flex-shrink: 0;
    }

    .info-identity {
        margin-top: 0;
    }

    .info-social {
        justify-content: space-between;
    }

    .socials {
        margin-top: 0;
    }

    /* 404 — mobile */
    .error-elements {
        margin: 2%;
    }

    .error-elements p {
        font-size: 1.8rem;
    }

    .error-elements a {
        font-size: 1rem;
    }
}

@media (max-width: 414px) {
    .project-item a {
        display: flex;
        flex-direction: column;
    }

    .info-social {
        width: 100%;
        
    }
}
