/* ===== CUSTOM CURSOR ===== */

*, *::before, *::after,
html, body, a, button, input, textarea, select, label, iframe, div, span, p, h1, h2, h3, h4, h5, h6, img, video, nav, header, footer, main, section, article {
    cursor: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mNk+M9QDwADhgGAWjR9awAAAABJRU5ErkJggg=='), none !important;
}

.cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    width: 8px;
    height: 8px;
    background-color: #000083;
    border-radius: 50%;
    pointer-events: none;
    z-index: 99999;
    transform: translate(-50%, -50%);
    transition: width 0.2s ease, height 0.2s ease;
}

.cursor-ring {
    position: fixed;
    top: 0;
    left: 0;
    width: 30px;
    height: 30px;
    background-color: transparent;
    border: 1px solid rgba(0, 0, 131, 0.5);
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
    transform: translate(-50%, -50%);
    transition: width 0.2s ease, height 0.2s ease, transform 0.15s ease;
}

/* Cursor hover state on clickable elements */
.cursor-dot.cursor-hover {
    opacity: 0;
}

.cursor-ring.cursor-hover {
    background-color: rgba(0, 0, 131, 0.5);
}

.cursor-ring.cursor-hover::before,
.cursor-ring.cursor-hover::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 14px;
    height: 2.5px;
    background-color: #000083;
}

.cursor-ring.cursor-hover::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.cursor-ring.cursor-hover::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

/* Masquer le curseur custom sur mobile/tactile */
@media (max-width: 768px), (pointer: coarse) {
    .cursor-dot,
    .cursor-ring {
        display: none !important;
    }
}

/* ===== FONTS ===== */

@font-face {
    font-family: 'Helvetica Neue';
    src: url('fonts/HelveticaNeueLTPro-Lt_3995837173.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Helvetica Neue';
    src: url('fonts/HelveticaNeueLTPro-Md_206283750.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Nyght Serif';
    src: url('fonts/NyghtSerif-Light.woff2') format('woff2'),
         url('fonts/NyghtSerif-Light.woff') format('woff');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Nyght Serif';
    src: url('fonts/NyghtSerif-LightItalic.woff2') format('woff2'),
         url('fonts/NyghtSerif-LightItalic.woff') format('woff');
    font-weight: 300;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Nyght Serif';
    src: url('fonts/NyghtSerif-Regular.woff2') format('woff2'),
         url('fonts/NyghtSerif-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* ===== RESET & BASE ===== */

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #000083;
    background-color: #ffffff;
}

/* ===== LOADER ===== */

.loader-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    z-index: 999999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: transform 0.9s cubic-bezier(0.76, 0, 0.24, 1);
}

.loader-screen.loader-hide {
    transform: translateY(-100%);
}

.loader-content {
    display: flex;
    align-items: center;
    gap: 25px;
}

.loader-lottie {
    width: 180px;
    height: 180px;
    margin-left: 20px;
}

.loader-counter {
    font-family: 'Nyght Serif', Georgia, serif;
    font-weight: 300;
    font-size: 1.2rem;
    color: #000000;
    letter-spacing: 0.02em;
    opacity: 0.8;
    min-width: 45px;
    text-align: right;
}

.loader-message {
    font-family: 'Nyght Serif', Georgia, serif;
    font-weight: 300;
    font-style: normal;
    font-size: 1rem;
    color: #000000;
    white-space: nowrap;
    min-width: 195px;
}

.loader-letter {
    display: inline-block;
    opacity: 0;
    transform: translateY(5px);
    animation: letterAppear 0.4s ease forwards;
}

@keyframes letterAppear {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== HOME PAGE ===== */

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

img {
    max-width: 100%;
    display: block;
}

ul, ol {
    list-style: none;
}

/* ===== ABOUT PAGE ===== */

.about-content {
    padding: 20px 15px 100px 15px;
}

.about-layout {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.about-description {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight: 500;
    font-size: 2.8rem;
    line-height: 1.3;
    max-width: 55%;
    color: rgba(0, 0, 131, 0.7);
}

.about-description .highlight {
    color: rgba(0, 0, 131, 1);
}

.about-description .word {
    display: inline-block;
    opacity: 0;
    transform: translateY(15px);
    animation: wordReveal 0.4s ease forwards;
}

@keyframes wordReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.about-video-wrapper {
    opacity: 0;
    animation: fadeIn 0.8s ease forwards;
    animation-delay: 1.5s;
}

.about-location {
    opacity: 0;
    animation: fadeIn 0.8s ease forwards;
    animation-delay: 1.8s;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.about-video-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-left: auto;
    flex-shrink: 0;
}

.about-video {
    max-height: 45vh;
    display: block;
}

.about-location {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-size: 0.75rem;
    font-weight: 500;
    white-space: nowrap;
    letter-spacing: 0.02em;
}

/* ===== CONTACT PAGE ===== */

.contact-page {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: calc(100vh - 40px);
    padding: 0 15px;
    overflow: hidden;
}

.contact-title {
    font-family: 'Nyght Serif', Georgia, serif;
    font-weight: 300;
    font-size: clamp(5rem, 12vw, 14rem);
    line-height: 0.95;
    color: #000083;
    margin-bottom: 60px;
}

.contact-title .word,
.contact-info .word,
.contact-clocks .word {
    display: inline-block;
    opacity: 0;
    transform: translateY(15px);
    animation: wordReveal 1s ease forwards;
}

.contact-title .letter,
.contact-bottom-name .letter {
    display: inline-block;
    opacity: 0;
    transform: translateY(15px);
    animation: wordReveal 0.8s ease forwards;
}

.contact-info {
    position: relative;
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 40px;
    height: 3.5em;
}

.contact-info-label {
    text-transform: uppercase;
    font-weight: 500;
}

.contact-info-block {
    display: flex;
    flex-direction: column;
    gap: 0;
    line-height: 1.2;
    position: absolute;
    top: 0;
}

.contact-toggle {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    align-items: center;
    opacity: 0;
    transform: translateY(15px);
    animation: wordReveal 1s ease forwards;
}

.contact-info-link {
    font-family: 'Nyght Serif', Georgia, serif;
    font-weight: 400;
    color: #000083;
    transition: opacity 0.2s;
}

.contact-info-link:hover {
    opacity: 0.6;
}

.contact-clocks {
    position: relative;
    height: 1.4em;
    font-size: 0.65rem;
    font-weight: 500;
    margin-bottom: 40px;
}

.contact-clock-item {
    display: flex;
    align-items: baseline;
    white-space: nowrap;
    position: absolute;
    top: 0;
}

.contact-clock-city {
    opacity: 0.4;
}

.contact-clock-time {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight: 500;
    margin-left: 0.35em;
    opacity: 0.7;
}

.contact-bottom-name {
    font-family: 'Nyght Serif', Georgia, serif;
    font-weight: 300;
    font-style: italic;
    color: #000083;
    opacity: 0.2;
    white-space: nowrap;
    position: fixed;
    bottom: -0.35em;
    left: 15px;
    right: 15px;
    line-height: 0.85;
}

/* ===== WORK PAGE ===== */

.work-body .footer {
    position: relative;
}

.work-page {
    padding: 60px 15px 100px 15px;
}

.work-intro {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight: 500;
    font-size: 1.3rem;
    margin-top: 80px;
    align-self: flex-start;
}

.work-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
}

.work-project {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    cursor: none !important;
    position: relative;
}

/* Animation d'entrée des projets */
.work-project.reveal {
    opacity: 0;
}

.work-project.reveal.visible {
    opacity: 1;
    transition: opacity 0.7s ease;
}

/* Positionnement par défaut */
.work-project.work-left {
    width: calc(6 / 12 * 100%);
    align-self: flex-start;
    margin-bottom: 100px;
}

.work-project.work-right {
    width: calc(5 / 12 * 100%);
    align-self: flex-end;
    margin-bottom: 100px;
}

/* Positionnement dynamique desktop — chaque projet a sa propre taille et position */
@media (min-width: 769px) {
    /* 1. Hotel Le Sauvage — grand, calé à droite */
    .work-project:nth-child(1) {
        width: calc(5.5 / 12 * 100%);
        align-self: flex-end;
        margin-bottom: 120px;
    }

    /* 2. Auberge Aux 4 Vents — moyen, décalé centre-gauche */
    .work-project:nth-child(2) {
        width: calc(5 / 12 * 100%);
        align-self: flex-start;
        margin-left: 8%;
        margin-bottom: 140px;
    }

    /* 3. Esja Wendel — plus petit, très à droite */
    .work-project:nth-child(3) {
        width: calc(4 / 12 * 100%);
        align-self: flex-end;
        margin-right: 3%;
        margin-bottom: 100px;
    }

    /* 4. Fourniture — large, centre-gauche */
    .work-project:nth-child(4) {
        width: calc(6 / 12 * 100%);
        align-self: flex-start;
        margin-left: 2%;
        margin-bottom: 130px;
    }

    /* 5. Timothée Wu — petit, centre-droit */
    .work-project:nth-child(5) {
        width: calc(4.5 / 12 * 100%);
        align-self: center;
        margin-left: 20%;
        margin-bottom: 110px;
    }

    /* 6. Amandine Perritaz — moyen, calé gauche */
    .work-project:nth-child(6) {
        width: calc(5 / 12 * 100%);
        align-self: flex-start;
        margin-bottom: 80px;
    }
}

.work-image {
    width: 100%;
    aspect-ratio: 16 / 10;
    background-color: #d9d9d9;
    overflow: hidden;
    position: relative;
}

.work-image img,
.work-image video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

/* "View project" label — caché par défaut, visible uniquement sur mobile */
.work-view-label {
    display: none;
    font-family: 'Nyght Serif', Georgia, serif;
    font-weight: 300;
    font-style: normal;
    font-size: 0.5rem;
    color: #000083;
    opacity: 0.6;
    margin-left: auto;
}

.work-project:hover .work-image img,
.work-project:hover .work-image video {
    transform: scale(1.04);
}

.work-hover-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
    clip-path: inset(0 100% 0 0);
    transition: clip-path 0.35s ease-in;
}

.work-project:hover .work-hover-wrapper {
    clip-path: inset(0 0 0 0);
    transition: clip-path 1s cubic-bezier(0.25, 0, 0.15, 1);
}

.work-hover-video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Curseur custom View */
.view-cursor {
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    background-color: #ffffff;
    color: #000083;
    font-family: 'Nyght Serif', Georgia, serif;
    font-size: 0.75rem;
    font-weight: 400;
    padding: 5px 9px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translate(-50%, -50%);
    transition: opacity 0.25s ease;
}

.work-details {
    display: flex;
    flex-direction: column;
    gap: 0;
    line-height: 1.2;
    padding: 6px 0;
    position: relative;
}


/* Ligne du bas — slide de gauche à droite */
.work-details::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0.5px;
    background-color: #000083;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.work-project:hover .work-details::after {
    transform: scaleX(1);
}

.work-name {
    font-size: 0.85rem;
    font-weight: 500;
}

.work-services {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight: 300;
    font-size: 0.85rem;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.35s ease, max-height 0.35s ease;
}

.work-project:hover .work-services {
    opacity: 0.7;
    max-height: 2em;
}

/* ===== PROJECT PAGE — SPLIT LAYOUT ===== */

.project-body {
    overflow: hidden;
}

.project-layout {
    display: flex;
    height: 100vh;
    width: 100vw;
}

/* Panneau gauche */
.project-left {
    width: calc(7 / 12 * 100%);
    height: 100%;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.project-left .header {
    padding: 10px 15px;
    margin-bottom: 40px;
}

.project-left .project-description,
.project-left .project-left-bottom {
    padding: 0 15px;
}

.project-left .project-left-bottom {
    padding-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}


.project-description {
    font-size: 1.15rem;
    font-weight: 500;
    line-height: 1.5;
    max-width: 85%;
}

.project-description a {
    font-style: normal;
    transition: font-style 0.2s ease;
}

.project-description a:hover {
    font-style: italic;
}

.project-left-bottom {
    margin-top: auto;
    position: relative;
}

.project-meta {
    display: flex;
    gap: 60px;
    position: relative;
}

.project-meta-block {
    display: flex;
    flex-direction: column;
    gap: 0;
    line-height: 1.2;
}

.project-meta-label {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight: 500;
    font-size: 0.7rem;
    opacity: 0.6;
}

.project-meta-value {
    font-size: 1.15rem;
    font-weight: 500;
}

.project-all {
    display: inline-block;
    font-family: 'Nyght Serif', Georgia, serif;
    font-weight: 300;
    font-size: 0.9rem;
    color: inherit;
    text-decoration: none;
    opacity: 0.6;
    transition: opacity 0.3s ease;
    margin-top: 20px;
}

.project-all:hover {
    opacity: 1;
}

.project-next {
    display: inline-block;
    font-family: 'Nyght Serif', Georgia, serif;
    font-weight: 300;
    font-size: 0.9rem;
    color: inherit;
    text-decoration: none;
    opacity: 0.6;
    transition: opacity 0.3s ease;
    margin-top: 10px;
}

.project-next:hover {
    opacity: 1;
}

/* Panneau droit */
.project-right {
    width: calc(5 / 12 * 100%);
    height: 100%;
    position: relative;
    background-color: #d9d9d9;
}

.project-gallery-wrapper {
    width: 100%;
    height: 100%;
    overflow: hidden;
    user-select: none;
    -webkit-user-select: none;
    position: relative;
    z-index: 1;
}

.project-scrollbar {
    pointer-events: none;
}

.project-gallery {
    display: flex;
    flex-direction: column;
    will-change: transform;
}

.project-gallery-item {
    width: 100%;
    flex-shrink: 0;
}

.project-gallery-item img {
    width: 100%;
    display: block;
    object-fit: cover;
}

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

.project-gallery-video video {
    width: 100%;
    display: block;
}

.project-gallery-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.project-gallery-video:has(iframe) {
    padding-bottom: 56.25%;
}

.project-gallery-video.video-vertical:has(iframe) {
    padding-bottom: 177.78%;
}

/* Scrollbar indicateur */
.project-scrollbar {
    position: absolute;
    left: -12px;
    top: 50%;
    transform: translateY(-50%);
    width: 2px;
    height: 10%;
    background-color: rgba(0, 0, 131, 0.15);
    z-index: 10;
    border-radius: 0;
}

.project-scrollbar-thumb {
    width: 100%;
    height: 15%;
    background-color: #000083;
    border-radius: 0;
    transition: top 0.05s linear;
    position: absolute;
    top: 0;
}

.video-scroll-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    cursor: none !important;
}

.video-scroll-overlay.hidden {
    pointer-events: none;
}

/* ===== HEADER ===== */

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    font-weight: 500;
    font-size: 0.85rem;
    color: #000083;
}

.header-logo {
    font-weight: 500;
}

.header-description {
    font-family: 'Nyght Serif', Georgia, serif;
    font-weight: 400;
    white-space: nowrap;
}

.header-nav {
    display: flex;
    gap: 30px;
}

.header-nav a {
    font-weight: 500;
}

.header-nav a.active {
    font-weight: 300;
}

.header-right {
    display: flex;
    gap: 8px;
}

/* ===== HOME — VIDEO STACK ===== */

.stack-container {
    height: calc(100vh - 60px);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    perspective: 1500px;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.15) 8%, black 22%, black 78%, rgba(0,0,0,0.15) 92%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.15) 8%, black 22%, black 78%, rgba(0,0,0,0.15) 92%, transparent 100%);
}

.stack {
    position: relative;
    width: 800px;
    height: 500px;
    transform-style: preserve-3d;
    opacity: 0;
    transform: scale(0.85);
    transition: opacity 1.2s cubic-bezier(0.25, 0, 0.15, 1), transform 1.2s cubic-bezier(0.25, 0, 0.15, 1);
}
.stack.stack-revealed {
    opacity: 1;
    transform: scale(1);
}

.stack-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.18);
    will-change: transform, opacity;
    backface-visibility: hidden;
}

.stack-card video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: grayscale(100%);
    transition: filter 0.6s ease;
}

.stack-card.is-center video {
    filter: grayscale(0%);
}

.stack-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.5'/%3E%3C/svg%3E");
    background-size: 128px 128px;
    opacity: 0.75;
    mix-blend-mode: overlay;
    pointer-events: none;
    z-index: 1;
    transition: opacity 0.6s ease;
}

.stack-card.is-center::after {
    opacity: 0;
}

.stack-card.is-center {
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3);
}

/* Lignes sous le carousel */
.stack-dots {
    position: absolute;
    top: calc(100% + 20px);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 4px;
    z-index: 50;
}

.stack-dot {
    width: 12px;
    height: 1.5px;
    border-radius: 0;
    background: rgba(0, 0, 131, 0.2);
    transition: background 0.3s ease;
    cursor: none !important;
}

.stack-dot.active {
    background: #000083;
}


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

@media (max-width: 768px) {
    .loader-content {
        gap: 15px;
    }

    .loader-lottie {
        width: 110px;
        height: 110px;
        margin-left: 12px;
    }

    .loader-counter {
        font-size: 0.8rem;
        min-width: 32px;
    }

    .loader-message {
        font-size: 0.65rem;
        min-width: 120px;
    }

    .stack-container {
        -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.15) 8%, black 22%, black 78%, rgba(0,0,0,0.15) 92%, transparent 100%);
        mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.15) 8%, black 22%, black 78%, rgba(0,0,0,0.15) 92%, transparent 100%);
    }

    .stack {
        width: 330px;
        height: 210px;
    }

    /* Lignes verticales à gauche du carousel sur mobile */
    .stack-dots {
        top: 50%;
        left: auto;
        right: calc(100% + (50vw - 165px) / 2);
        transform: translateY(-50%);
        flex-direction: column;
        gap: 3px;
    }

    .stack-dot {
        width: 1px;
        height: 6px;
        border-radius: 0;
    }

    .stack-dot.active {
        transform: none;
    }

    .header {
        font-size: 0.52rem;
        padding: 8px 10px;
    }

    .header-description {
        font-size: 0.48rem;
    }

    .header-nav {
        gap: 12px;
    }

    .header-right {
        display: none;
    }

    .work-page {
        padding: 30px 10px 60px 10px;
    }

    .work-project.work-left {
        width: calc(9 / 12 * 100%);
        margin-bottom: 50px;
    }

    .work-project.work-right {
        width: calc(8 / 12 * 100%);
        margin-bottom: 50px;
    }

    /* Positionnement dynamique mobile */
    .work-project:nth-child(1) {
        width: calc(8.5 / 12 * 100%);
        align-self: flex-end;
        margin-bottom: 60px;
    }

    .work-project:nth-child(2) {
        width: calc(8 / 12 * 100%);
        align-self: flex-start;
        margin-left: 5%;
        margin-bottom: 70px;
    }

    .work-project:nth-child(3) {
        width: calc(7 / 12 * 100%);
        align-self: flex-end;
        margin-right: 2%;
        margin-bottom: 50px;
    }

    .work-project:nth-child(4) {
        width: calc(9 / 12 * 100%);
        align-self: flex-start;
        margin-bottom: 65px;
    }

    .work-project:nth-child(5) {
        width: calc(7.5 / 12 * 100%);
        align-self: center;
        margin-left: 10%;
        margin-bottom: 55px;
    }

    .work-project:nth-child(6) {
        width: calc(8 / 12 * 100%);
        align-self: flex-start;
        margin-bottom: 40px;
    }

    .work-name {
        font-size: 0.55rem;
    }

    .work-services {
        font-size: 0.5rem;
        opacity: 0.7;
        max-height: none;
        overflow: visible;
    }

    .work-details {
        display: grid;
        grid-template-columns: 1fr auto;
        grid-template-rows: auto auto;
        align-items: start;
    }

    .work-name {
        grid-column: 1;
        grid-row: 1;
    }

    .work-services {
        grid-column: 1;
        grid-row: 2;
    }

    .work-view-label {
        display: inline;
        grid-column: 2;
        grid-row: 1;
        font-size: 0.42rem;
    }

    .work-intro {
        font-size: 0.6rem;
        margin-top: 40px;
    }

    .about-layout {
        flex-direction: column;
    }

    .about-description {
        font-size: 0.9rem;
        max-width: 100%;
        margin-bottom: 30px;
    }

    .about-video-wrapper {
        align-self: flex-start;
        margin-left: 0;
        position: relative;
    }

    .about-video {
        max-height: 30vh;
    }

    .about-location {
        position: absolute;
        right: -20px;
        top: 0;
        height: 100%;
        font-size: 0.45rem;
    }


}


/* ===== FOOTER ===== */

.footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 20px 15px;
    font-size: 0.85rem;
    font-weight: 500;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    color: #000083;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 0;
    line-height: 1.2;
}

.footer-contact,
.footer-social {
    position: absolute;
    bottom: 20px;
}

.footer-tagline {
    font-weight: 500;
    text-transform: uppercase;
}

.footer-rotating-word {
    display: inline-block;
}

.footer-rotating-word .rotating-letter {
    display: inline-block;
    opacity: 1;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.footer-rotating-word .rotating-letter.hide {
    opacity: 0;
    transform: translateY(-5px);
}

.footer-rotating-word .rotating-letter.show {
    opacity: 1;
    transform: translateY(0);
}

.footer-contact,
.footer-social {
    opacity: 0.7;
}

.footer-contact a,
.footer-social a {
    font-family: 'Nyght Serif', Georgia, serif;
    font-weight: 400;
    color: #000083;
    transition: opacity 0.2s;
}

.footer-contact a:hover,
.footer-social a:hover {
    opacity: 0.6;
}

.footer-toggle {
    align-items: center;
    justify-content: center;
}

.theme-toggle {
    position: relative;
    width: 36px;
    height: 18px;
    padding: 0;
    border: 1px solid #000083;
    border-radius: 50px;
    background: transparent;
    cursor: none !important;
    display: flex;
    align-items: center;
}

.toggle-slider {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 12px;
    height: 12px;
    background-color: #000083;
    border-radius: 50%;
    transition: transform 0.5s ease-in-out;
}

.toggle-slider.active {
    transform: translateX(18px);
}

/* Color picker popup — gradient nuancier */
.color-picker-popup {
    position: absolute;
    bottom: calc(100% + 10px);
    right: 0;
    background-color: rgba(0, 0, 131, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 131, 0.15);
    border-radius: 10px;
    padding: 12px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(5px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 100;
}

.color-picker-popup.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.color-gradient-bar {
    width: 140px;
    height: 140px;
    border-radius: 6px;
    background: linear-gradient(135deg, #ffffff 0%, #FAF8F5 35%, #F5F0EB 100%);
    position: relative;
    cursor: crosshair;
    border: 1px solid rgba(0, 0, 131, 0.12);
}

.color-gradient-handle {
    position: absolute;
    top: 0;
    left: 0;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid #000083;
    background-color: #ffffff;
    cursor: crosshair;
    pointer-events: none;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
    transition: background-color 0.05s ease;
    transform: translate(-50%, -50%);
}

/* ===== PAGE TRANSITION — HORIZONTAL WIPE ===== */

.page-transition-wipe {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--wipe-bg, #ffffff);
    z-index: 99999;
    transform: translateX(-100%);
    transition: transform 0.5s cubic-bezier(0.76, 0, 0.24, 1);
    pointer-events: none;
}

.page-transition-wipe.active {
    transform: translateX(0%);
}

.page-transition-wipe.exit {
    transform: translateX(100%);
}

/* Vertical variant — bottom to top */
.page-transition-wipe.wipe-vertical {
    transform: translateY(100%);
}

.page-transition-wipe.wipe-vertical.active {
    transform: translateY(0%);
}

.page-transition-wipe.wipe-vertical.exit {
    transform: translateY(-100%);
}

/* ===== BEIGE MODE ===== */

body.beige-mode {
    background-color: #F5F0EB;
}

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

@media (max-width: 768px) {
    .footer {
        font-size: 0.48rem;
        padding: 10px 10px;
    }

    .footer-contact,
    .footer-social {
        position: static;
    }

    .contact-title {
        font-size: clamp(3rem, 11vw, 6rem);
    }

    .contact-info {
        display: flex;
        gap: 20px;
        height: auto;
        font-size: 0.65rem;
    }

    .contact-info-block {
        position: static;
    }

    .contact-toggle {
        position: static;
        align-items: flex-start;
        margin-left: auto;
    }

    .contact-clocks {
        font-size: 0.42rem;
        margin-bottom: 20px;
    }

    .theme-toggle {
        width: 24px;
        height: 12px;
        border-width: 0.5px;
    }

    .toggle-slider {
        width: 6px;
        height: 6px;
        top: 2px;
        left: 2px;
    }

    .toggle-slider.active {
        transform: translateX(13px);
    }

    .color-picker-popup {
        padding: 8px;
    }

    .color-gradient-bar {
        width: 110px;
        height: 110px;
    }

    .color-gradient-handle {
        width: 12px;
        height: 12px;
    }

    .project-body {
        overflow: auto;
    }

    .project-layout {
        flex-direction: column;
        height: 100vh;
        min-height: 100vh;
    }

    .project-left {
        width: 100%;
        height: auto;
        padding: 0;
        flex-shrink: 0;
    }

    .project-right {
        width: 100%;
        flex: 1;
        min-height: 0;
    }

    .project-left .header {
        padding: 8px 10px;
        margin-bottom: 15px;
        font-size: 0.52rem;
    }

    .project-left .project-description,
    .project-left .project-left-bottom {
        padding: 0 10px;
    }

    .project-left .header .header-description {
        font-size: 0.48rem;
    }

    .project-left .header .header-nav {
        gap: 12px;
    }

    .project-description {
        max-width: 100%;
        font-size: 0.6rem;
        margin-bottom: 25px;
    }

    .project-left .project-left-bottom {
        flex-wrap: wrap;
        align-items: flex-end;
        gap: 0;
        padding-bottom: 10px;
    }

    .project-meta {
        gap: 20px;
        margin-bottom: 0;
    }

    .project-meta-label {
        font-size: 0.45rem;
    }

    .project-meta-value {
        font-size: 0.65rem;
    }

    .project-all {
        font-size: 0.55rem;
        margin-top: 0;
        margin-left: auto;
    }

    .project-next {
        font-size: 0.55rem;
        margin-top: 0;
        margin-left: 12px;
    }

    .project-scrollbar {
        left: auto !important;
        right: 6px;
        top: 50% !important;
        transform: translateY(-50%);
        height: 15%;
        z-index: 10;
        background-color: rgba(255, 255, 255, 0.3) !important;
    }

    .project-scrollbar-thumb {
        background-color: #ffffff !important;
    }
}

