﻿/* ================================================
   SINEV — Louis Vandereyd — style.css
   ================================================ */

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

:root {
    --color-white: #fffdf5;
    --bg:      var(--color-white);
    --ink:     #1c0f13;
    --muted:   #726c62;
    --line:    rgba(28,15,19,0.12);
    --line-strong: rgba(28,15,19,0.4);
    --hair:    rgba(28,15,19,0.06);
    --surface: var(--color-white);
    --surface-elevated: #fff8e9;
    --nav-bg: rgba(255,253,245,0.85);
    --shadow: rgba(28,15,19,0.16);
    --color-bg: var(--bg);
    --color-surface: var(--surface);
    --color-surface-elevated: var(--surface-elevated);
    --color-text: var(--ink);
    --color-text-muted: var(--muted);
    --color-border: var(--line);
    --color-shadow: var(--shadow);
    --radius:    8px;
    --radius-lg: 18px;
    --header-height: 84px;

    /* accents — one per discipline, used to break the monochrome */
    --rose:    #945d5e;
    --coral:   #f55d3e;
    --teal:    #086788;

    --font: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

:root[data-theme="dark"] {
    --bg: #140f11;
    --ink: var(--color-white);
    --muted: #bdb2a2;
    --line: rgba(255,253,245,0.14);
    --line-strong: rgba(255,253,245,0.42);
    --hair: rgba(255,253,245,0.07);
    --surface: #181214;
    --surface-elevated: #221a1d;
    --nav-bg: rgba(20,15,17,0.88);
    --shadow: rgba(0,0,0,0.42);
    --rose: #d39a9b;
    --teal: #55b6d6;
}

/* discipline accent scopes */
body.accent-coral { --accent: var(--coral); }
body.accent-teal  { --accent: var(--teal); }
body.accent-rose  { --accent: var(--rose); }

html { scroll-behavior: smooth; }

html,
body { background: var(--bg); }

body {
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.25s ease, color 0.25s ease;
}

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

::selection { background: var(--coral); color: var(--bg); }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--line-strong); border: 2px solid var(--bg); border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: var(--ink); }
html { scrollbar-color: var(--line-strong) var(--bg); scrollbar-width: thin; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 1px solid var(--ink);
    outline-offset: 4px;
}

/* ================================================
   SCROLL PROGRESS
   ================================================ */
.scroll-progress {
    position: fixed;
    top: 0; left: 0;
    height: 2px;
    width: 0%;
    background: var(--ink);
    z-index: 400;
    transition: width 0.1s linear;
}

/* ================================================
   CUSTOM CURSOR
   ================================================ */
.cursor-dot,
.cursor-ring {
    position: fixed;
    top: 0; left: 0;
    pointer-events: none;
    z-index: 2100;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    mix-blend-mode: difference;
    transition: opacity 0.2s ease;
}

.cursor-dot {
    width: 6px;
    height: 6px;
    background: rgba(255,255,255,0.6);
}

.cursor-ring {
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255,255,255,0.5);
    transition: width 0.25s ease, height 0.25s ease, opacity 0.2s ease, border-color 0.25s ease;
}

.cursor-ring.hover {
    width: 64px;
    height: 64px;
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.35);
}

@media (pointer: fine) {
    body, a, button { cursor: none; }
    input, textarea { cursor: text; }
    .burger { cursor: none; }
}

/* ================================================
   NAV
   ================================================ */
#navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 40px;
    border-bottom: 1px solid var(--line);
    background: var(--nav-bg);
    backdrop-filter: blur(12px);
    transition: background-color 0.25s ease, border-color 0.25s ease,
                transform 0.3s ease, opacity 0.3s ease;
    will-change: transform;
}

#navbar.is-hidden {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
}

#navbar.is-visible {
    transform: translateY(0);
    opacity: 1;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.theme-toggle {
    position: relative;
    width: 46px;
    height: 28px;
    flex: 0 0 auto;
    padding: 3px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: var(--hair);
    color: var(--ink);
    cursor: pointer;
    transition: border-color 0.25s ease, background-color 0.25s ease, transform 0.25s ease;
}

.theme-toggle:hover { border-color: var(--ink); transform: translateY(-1px); }

.lang-toggle {
    display: flex;
    align-items: center;
    gap: 2px;
    flex: 0 0 auto;
    padding: 3px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: var(--hair);
}

.lang-option {
    width: 28px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: none;
    border-radius: 999px;
    background: transparent;
    font-size: 10px;
    line-height: 1;
    opacity: 0.45;
    filter: grayscale(60%);
    transition: opacity 0.25s ease, filter 0.25s ease, background-color 0.25s ease;
}

.lang-option:hover { opacity: 0.8; }

.lang-option.active {
    opacity: 1;
    filter: grayscale(0%);
    background: var(--surface-elevated);
    box-shadow: 0 1px 4px var(--shadow);
}

.theme-toggle-track {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
}

.theme-toggle-thumb {
    position: absolute;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--ink);
    color: var(--bg);
    box-shadow: 0 2px 8px var(--shadow);
    transition: transform 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}

:root[data-theme="dark"] .theme-toggle-thumb { transform: translateX(18px); }
.theme-toggle svg { position: absolute; width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: opacity 0.2s ease, transform 0.25s ease; }
.theme-icon-sun { opacity: 1; transform: scale(1) rotate(0); }
.theme-icon-moon { opacity: 0; transform: scale(0.65) rotate(-20deg); }
:root[data-theme="dark"] .theme-icon-sun { opacity: 0; transform: scale(0.65) rotate(20deg); }
:root[data-theme="dark"] .theme-icon-moon { opacity: 1; transform: scale(1) rotate(0); }

.nav-id {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.nav-id .clock {
    font-weight: 500;
    color: var(--muted);
    font-variant-numeric: tabular-nums;
}

/* ---- Logo lockup : "Sinev®" ---- */
.nav-logo {
    display: inline-flex;
    align-items: baseline;
    line-height: 1;
    transition: opacity 0.25s ease;
}

.nav-id:hover .nav-logo { opacity: 0.82; }

.nav-logo-word {
    font-size: 23px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--ink);
    transition: color 0.25s ease;
}

.nav-logo-r {
    font-size: 8px;
    font-weight: 600;
    vertical-align: super;
    margin-left: 1px;
    color: var(--muted);
}

.nav-links {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 32px;
}

.nav-links a {
    position: relative;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--muted);
    transition: color 0.2s;
}

.nav-links a::after {
    content: '';
    position: absolute;
    left: 0; bottom: -4px;
    width: 100%;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active { color: var(--accent, var(--ink)); }

.nav-links a:hover::after,
.nav-links a.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

.nav-contact {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--ink);
    padding: 8px 18px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    transition: background 0.25s, color 0.25s;
}

.nav-contact:hover { background: var(--ink); color: var(--bg); }

/* Burger — caché sur desktop */
.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 300;
}

.burger span {
    display: block;
    width: 26px;
    height: 2px;
    background: var(--ink);
    transition: all 0.3s ease;
    transform-origin: center;
}

.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ================================================
   MENU MOBILE
   ================================================ */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 190;
    background: var(--ink);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    transform: translateY(-100%);
    transition: transform 0.5s cubic-bezier(0.77,0,0.175,1);
}

.mobile-menu.open { transform: translateY(0); }

.mm-link {
    font-weight: 800;
    font-size: clamp(40px, 11vw, 76px);
    letter-spacing: -1px;
    text-transform: uppercase;
    color: var(--bg);
    line-height: 1.15;
    padding: 6px 0;
    position: relative;
    overflow: hidden;
}

.mm-link::after {
    content: attr(data-text);
    position: absolute;
    left: 0; top: 0;
    color: var(--mm-accent, var(--muted));
    clip-path: inset(0 100% 0 0);
    transition: clip-path 0.4s cubic-bezier(0.77,0,0.175,1);
}

.mm-link.accent-coral { --mm-accent: var(--coral); }
.mm-link.accent-teal  { --mm-accent: var(--teal); }
.mm-link.accent-rose  { --mm-accent: var(--rose); }

.mm-link:hover::after { clip-path: inset(0 0% 0 0); }

.mm-insta {
    margin-top: 40px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--muted);
    text-transform: uppercase;
}

/* ================================================
   HERO VIDEO
   ================================================ */
#home {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
}

.hero-video-wrap {
    position: absolute;
    inset: 0;
    background: var(--ink);
}

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

.hero-scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(28,15,19,0.1) 0%, rgba(28,15,19,0.15) 45%, rgba(28,15,19,0.8) 100%);
    pointer-events: none;
}

.hero-overlay {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 150px 40px 80px;
    max-width: 1300px;
    margin: 0 auto;
}

.hero-tag {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--coral);
    margin-bottom: 18px;
    animation: fade-up 0.9s 0.1s cubic-bezier(0.16,1,0.3,1) both;
}

.hero-title {
    font-weight: 700;
    font-size: clamp(28px, 3.6vw, 46px);
    letter-spacing: -1px;
    line-height: 1.15;
    max-width: 640px;
    color: rgba(255,253,245,0.92);
    animation: fade-up 0.9s 0.2s cubic-bezier(0.16,1,0.3,1) both;
}

.hero-title em {
    font-style: normal;
    color: rgba(255,253,245,0.55);
}

.hero-video-controls {
    position: absolute;
    right: 40px;
    bottom: 40px;
    z-index: 3;
    display: flex;
    gap: 12px;
    animation: fade-up 0.9s 0.3s cubic-bezier(0.16,1,0.3,1) both;
}

.video-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(28,15,19,0.5);
    border: 1px solid rgba(255,253,245,0.35);
    border-radius: 50%;
    backdrop-filter: blur(6px);
    color: var(--color-white);
    transition: background 0.3s, color 0.3s, border-color 0.3s;
}

.video-btn:hover {
    background: var(--color-white);
    color: #1c0f13;
    border-color: var(--color-white);
}

.video-btn svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
    display: none;
}

#videoPlayBtn .icon-pause { display: block; }
#videoPlayBtn.paused .icon-pause { display: none; }
#videoPlayBtn.paused .icon-play { display: block; }

#videoMuteBtn .icon-mute { display: block; }
#videoMuteBtn.unmuted .icon-mute { display: none; }
#videoMuteBtn.unmuted .icon-unmute { display: block; }

@keyframes fade-up {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ================================================
   PILLARS
   ================================================ */
#disciplines { border-bottom: 1px solid var(--line); }

.pillar.accent-coral { --accent: var(--coral); }
.pillar.accent-teal  { --accent: var(--teal); }
.pillar.accent-rose  { --accent: var(--rose); }

.pillar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 44px 40px 44px 36px;
    border-top: 1px solid var(--line);
    border-left: 4px solid var(--accent, transparent);
    transition: background 0.35s ease, color 0.35s ease, padding 0.35s ease;
}

.pillar:first-child { border-top: none; }

.pillar-left {
    display: flex;
    align-items: baseline;
    gap: 28px;
    min-width: 0;
}

.pillar-num {
    font-size: 12px;
    font-weight: 700;
    color: var(--accent, var(--muted));
    transition: color 0.35s ease;
}

.pillar-name {
    font-weight: 800;
    font-size: clamp(36px, 7vw, 84px);
    letter-spacing: -2px;
    text-transform: uppercase;
    line-height: 1;
    white-space: nowrap;
}

.pillar-desc {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--muted);
    max-width: 220px;
    flex-shrink: 0;
    transition: color 0.35s ease;
}

.pillar-arrow {
    font-size: clamp(24px, 3vw, 40px);
    font-weight: 300;
    flex-shrink: 0;
    transition: transform 0.35s ease;
}

.pillar:hover {
    background: var(--accent, var(--ink));
    color: var(--bg);
    padding-left: 52px;
    padding-right: 56px;
}

.pillar:hover .pillar-num,
.pillar:hover .pillar-desc { color: rgba(255,253,245,0.55); }

.pillar:hover .pillar-arrow { transform: translateX(10px); }

/* ================================================
   HIGHLIGHTS
   ================================================ */
#highlights {
    padding: 90px 40px 70px;
    border-bottom: 1px solid var(--line);
}

.highlights-head {
    max-width: 1300px;
    margin: 0 auto 40px;
    animation: fade-up 0.8s cubic-bezier(0.16,1,0.3,1) both;
}

.highlights-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--muted);
    text-transform: uppercase;
    margin-bottom: 14px;
}

.highlights-title {
    font-weight: 800;
    font-size: clamp(36px, 5.5vw, 64px);
    letter-spacing: -2px;
    text-transform: uppercase;
    line-height: 1;
}

.highlights-title em {
    font-style: normal;
    color: var(--muted);
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    max-width: 1300px;
    margin: 0 auto;
}

.highlight-card {
    position: relative;
    display: block;
    height: 420px;
    overflow: hidden;
    border-radius: var(--radius);
    border-top: 1px solid rgba(255, 253, 245, 0.28);
    background: var(--surface);
    transition: border-color 0.3s ease;
    opacity: 0;
    animation: fade-up 0.8s cubic-bezier(0.16,1,0.3,1) both;
}

.highlight-card:nth-child(1) { animation-delay: 0.1s; }
.highlight-card:nth-child(2) { animation-delay: 0.2s; }
.highlight-card:nth-child(3) { animation-delay: 0.3s; }

.highlight-media {
    position: absolute;
    inset: 0;
}

.highlight-media img,
.highlight-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(20%) contrast(1.02);
    transition: transform 0.7s ease, filter 0.5s ease;
}

.highlight-media-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent, var(--ink));
}

.highlight-media-mark .case-mark {
    font-weight: 800;
    font-size: clamp(28px, 4vw, 48px);
    letter-spacing: -1.5px;
    text-transform: uppercase;
    color: var(--bg);
}

.highlight-card:hover .highlight-media img,
.highlight-card:hover .highlight-media video {
    transform: scale(1.06);
    filter: grayscale(0%);
}

.highlight-card:hover { border-top-color: rgba(255, 253, 245, 0.44); }

.highlight-overlay {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: 24px;
    background: linear-gradient(180deg, rgba(28,15,19,0) 0%, rgba(28,15,19,0.75) 100%);
    color: var(--color-white); /* toujours clair : le scrim ci-dessus reste sombre quel que soit le thème */
}

.highlight-cat {
    display: block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--accent, rgba(255,253,245,0.7));
    margin-bottom: 8px;
}

.highlight-name {
    font-weight: 800;
    font-size: clamp(20px, 2.2vw, 26px);
    letter-spacing: -0.5px;
    text-transform: uppercase;
    line-height: 1.1;
}

.highlight-arrow {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 300;
    color: var(--color-white);
    background: rgba(28,15,19,0.4);
    border: 1px solid rgba(255,253,245,0.35);
    border-radius: 50%;
    backdrop-filter: blur(6px);
    transition: transform 0.35s ease, background 0.3s ease;
}

.highlight-card:hover .highlight-arrow {
    transform: translate(4px, -4px);
    background: var(--accent, var(--ink));
}

/* ================================================
   PAGE HEADER (subpages)
   ================================================ */
.page-header {
    padding: 150px 40px 70px;
    border-bottom: 1px solid var(--line);
    max-width: 1300px;
    margin: 0 auto;
}

.page-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 28px;
    transition: color 0.2s;
}

.page-back:hover { color: var(--accent, var(--ink)); }

.page-title-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
    border-bottom: 3px solid var(--accent, var(--line));
    padding-bottom: 28px;
}

.page-title {
    min-width: 0;
    font-weight: 800;
    font-size: clamp(48px, 9vw, 110px);
    letter-spacing: -3px;
    text-transform: uppercase;
    line-height: 0.95;
    overflow-wrap: break-word;
}

.page-meta {
    display: flex;
    gap: 48px;
}

.page-meta div { text-align: right; }

.page-meta span {
    display: block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 6px;
}

.page-meta p { font-size: 13px; font-weight: 600; }

.page-desc {
    margin-top: 24px;
    max-width: 640px;
    font-size: 15px;
    line-height: 1.7;
    color: var(--ink);
}

/* ================================================
   PROJECT VIDEO (page projet à vidéo unique, ex : Dancing Girls)
   ================================================ */
.project-video-section {
    display: flex;
    justify-content: center;
    padding: 60px 40px;
    max-width: 1300px;
    margin: 0 auto;
}

.project-video-frame {
    max-width: 100%;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--hair);
    line-height: 0;
}

.project-video-frame video {
    display: block;
    width: 100%;
    height: auto;
}

@media (min-width: 769px) {
    .project-video-frame video {
        width: auto;
        max-width: 100%;
        max-height: calc(100vh - var(--header-height) - 110px);
        max-height: calc(100dvh - var(--header-height) - 110px);
    }
}

/* ================================================
   BROWSER MOCK (émulateur de site — preview navigateur)
   ================================================ */
.browser-mock {
    display: block;
    width: 100%;
    max-width: 1100px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--surface-elevated);
    box-shadow: 0 24px 60px var(--shadow);
    transition: box-shadow 0.3s ease;
}

.browser-mock:hover { box-shadow: 0 28px 70px var(--shadow); }

.browser-mock:focus-visible {
    outline: 3px solid var(--accent, var(--ink));
    outline-offset: 4px;
}

.browser-mock-bar {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--line);
    background: var(--surface-elevated);
}

.browser-mock-dots {
    display: flex;
    gap: 7px;
    flex-shrink: 0;
}

.browser-mock-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--line-strong);
}

.browser-mock-url {
    flex: 1;
    min-width: 0;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.3px;
    color: var(--muted);
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 7px 16px;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.browser-mock-screen {
    aspect-ratio: 1898 / 945;
    background: var(--hair);
    line-height: 0;
}

.browser-mock-screen img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.6s ease;
}

.browser-mock:hover .browser-mock-screen img { transform: scale(1.015); }

/* Aperçu scrollable (véritable capture de page, pas de crop) */
.browser-mock-screen--scroll {
    aspect-ratio: auto;
    height: 640px;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.browser-mock-screen--scroll img {
    height: auto;
    object-fit: initial;
}

.browser-mock:hover .browser-mock-screen--scroll img { transform: none; }

.browser-mock-screen--scroll:focus-visible {
    outline: 3px solid var(--accent, var(--ink));
    outline-offset: -3px;
}

@media (max-width: 768px) {
    .browser-mock-screen--scroll { height: 480px; }
}

@media (max-width: 480px) {
    .browser-mock-bar { gap: 12px; padding: 12px 14px; }
    .browser-mock-url { font-size: 10px; padding: 6px 12px; }
}

.project-facts {
    padding: 0 40px 100px;
    max-width: 1300px;
    margin: 0 auto;
}

.project-facts-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    padding-top: 32px;
    border-top: 1px solid var(--line);
}

.project-facts-grid p {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.5;
}

/* ================================================
   WORK LIST
   ================================================ */
#work { padding-bottom: 120px; }

.project {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-bottom: 1px solid var(--line);
    min-height: 360px;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease, background 0.4s;
}

/* Zone cliquable étendue à toute la carte (Immobilier Espagne, Dancing Girls) */
.project-full-link {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.project.visible { opacity: 1; transform: translateY(0); }
.project:hover { background: var(--hair); }

.project-img-wrap {
    display: block;
    position: relative;
    overflow: hidden;
    height: 100%;
    min-height: 360px;
    background: var(--hair);
}

.project-img-wrap--16-9 {
    aspect-ratio: 16 / 9;
    height: auto;
    min-height: 0;
}

.project-img-wrap .case-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: var(--accent, var(--ink));
    color: var(--bg);
    font-weight: 800;
    font-size: clamp(32px, 5vw, 64px);
    letter-spacing: -2px;
    text-transform: uppercase;
    text-align: center;
    padding: 20px;
}

.project-img-wrap img,
.project-img-wrap video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    filter: grayscale(20%) contrast(1.02);
    transition: transform 0.7s ease, filter 0.5s ease;
}

.project:hover .project-img-wrap img,
.project:hover .project-img-wrap video {
    transform: scale(1.04);
    filter: grayscale(0%);
}

.project-info {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-left: 1px solid var(--line);
}

.project-num {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--accent, var(--muted));
}

.project-title {
    font-weight: 800;
    font-size: clamp(32px, 4.4vw, 56px);
    letter-spacing: -1.5px;
    text-transform: uppercase;
    line-height: 1;
    margin: 14px 0;
}

.project-go {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--ink);
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    padding: 8px 20px;
    width: fit-content;
    transition: all 0.3s;
}

.project-go:hover {
    color: var(--bg);
    background: var(--accent, var(--ink));
    border-color: var(--accent, var(--ink));
}

.project-go::after {
    content: '→';
    display: inline-block;
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.project-go:hover::after { transform: translateX(4px); }

.project-meta {
    display: flex;
    gap: 40px;
    margin-top: 20px;
}

.meta-label {
    display: block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--muted);
    margin-bottom: 8px;
}

.project-meta p {
    font-size: 11px;
    font-weight: 600;
    line-height: 1.9;
    color: var(--ink);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Alternance */
.project:nth-child(even) { direction: rtl; }
.project:nth-child(even) .project-info {
    direction: ltr;
    border-left: none;
    border-right: 1px solid var(--line);
}
.project:nth-child(even) .project-img-wrap { direction: ltr; }

/* Placeholder / coming soon cards */
.project.placeholder {
    opacity: 1;
    transform: none;
}

.project.placeholder .project-img-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 1px solid var(--line);
}

.project.placeholder .soon-tag {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--muted);
}

.project.placeholder .project-go { pointer-events: none; opacity: 0.5; }
.project.placeholder:hover { background: transparent; }

/* ================================================
   ABOUT
   ================================================ */
#about {
    padding: 130px 40px 140px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    column-gap: 24px;
    row-gap: 90px;
    max-width: 1320px;
    margin: 0 auto;
}

/* ---- Reveal-on-scroll base (shared by all 4 zones) ---- */
.about-reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1), transform 0.7s cubic-bezier(0.16,1,0.3,1);
    transition-delay: calc(var(--rd, 0) * 0.08s);
}

.about-reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---- Zone 1 : Identité ---- */
.about-identity {
    grid-column: 1 / span 4;
    position: relative;
}

.about-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--muted);
    margin-bottom: 22px;
    text-transform: uppercase;
}

.about-title {
    font-weight: 800;
    font-size: clamp(44px, 4.6vw, 72px);
    letter-spacing: -2.5px;
    line-height: 0.98;
}

.about-title-line {
    display: block;
    overflow: hidden;
    padding-bottom: 0.14em;
    margin-bottom: -0.14em;
}

.about-title-line.about-reveal { transform: translateY(100%); }
.about-title-line.about-reveal.is-visible { transform: translateY(0); }

.about-title em {
    font-style: normal;
    color: var(--muted);
}

.about-alias {
    margin-top: 20px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--muted);
}

.about-alias strong { color: var(--ink); }

.about-mark {
    display: block;
    width: 1px;
    height: 64px;
    margin-top: 40px;
    background: var(--line-strong);
    transform: scaleY(0);
    transform-origin: top;
    opacity: 1;
    transition: transform 0.9s cubic-bezier(0.16,1,0.3,1) 0.25s;
}

.about-mark.is-visible { transform: scaleY(1); }

.about-mark::before {
    content: '';
    display: block;
    width: 5px;
    height: 5px;
    margin-left: -2px;
    border-radius: 50%;
    background: var(--accent, var(--ink));
}

/* ---- Zone 2 : Biographie ---- */
.about-bio {
    grid-column: 6 / span 7;
    align-self: start;
}

.about-body {
    font-size: 15px;
    font-weight: 500;
    line-height: 1.85;
    color: var(--muted);
    margin-bottom: 22px;
    max-width: 620px;
}

.about-body:last-child { margin-bottom: 0; }

.about-body strong.hl {
    font-weight: 700;
    color: var(--ink);
}

/* ---- Zone 3 : Domaines de compétence ---- */
.about-skills {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid var(--line);
}

.skill {
    position: relative;
    padding: 36px 28px 0 0;
    transition: padding 0.4s cubic-bezier(0.16,1,0.3,1);
}

.skill + .skill { padding-left: 28px; border-left: 1px solid var(--line); }

.skill:hover { padding-top: 28px; }

.skill[data-accent="coral"] { --accent: var(--coral); }
.skill[data-accent="teal"]  { --accent: var(--teal); }
.skill[data-accent="rose"]  { --accent: var(--rose); }
.skill[data-accent="mono"]  { --accent: var(--ink); }

.skill-index {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--muted);
    margin-bottom: 28px;
}

.skill-icon { display: block; margin-bottom: 26px; color: var(--ink); }

.skill-glyph {
    width: 40px;
    height: 40px;
    overflow: visible;
}

.glyph-blades,
.glyph-prop,
.glyph-clap,
.glyph-cursor {
    transform-box: fill-box;
    transform-origin: center;
    transition: transform 0.5s cubic-bezier(0.16,1,0.3,1);
}

.skill:hover .glyph-blades { transform: rotate(20deg) scale(0.88); }
.skill:hover .glyph-prop   { transform: rotate(90deg); }
.skill:hover .glyph-clap   { transform-origin: 0% 100%; transform: rotate(-10deg); }
.skill:hover .glyph-cursor { transform: translate(2px, 2px); }

.skill:hover .skill-icon { color: var(--accent, var(--ink)); }

.skill-name {
    font-weight: 800;
    font-size: 20px;
    letter-spacing: -0.5px;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.skill-desc {
    font-size: 12.5px;
    font-weight: 500;
    line-height: 1.7;
    color: var(--muted);
    max-width: 260px;
    padding-bottom: 36px;
    transition: color 0.3s ease;
}

.skill::after {
    content: '';
    position: absolute;
    left: 0; right: 28px; bottom: 0;
    height: 1px;
    background: var(--accent, var(--ink));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.45s cubic-bezier(0.16,1,0.3,1);
}

.skill + .skill::after { left: 28px; }

.skill:hover::after { transform: scaleX(1); }
.skill:hover .skill-desc { color: var(--ink); }

/* ---- Zone 4 : Parcours ---- */
.about-timeline { grid-column: 1 / -1; }

.timeline-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--muted);
    text-transform: uppercase;
    margin-bottom: 48px;
}

.timeline-track {
    --tl-h: 260px;
    position: relative;
    display: flex;
    justify-content: space-between;
    list-style: none;
}

.timeline-track::before {
    content: '';
    position: absolute;
    top: calc(var(--tl-h) / 2);
    left: 0; right: 0;
    height: 1px;
    background: var(--line);
}

.timeline-track::after {
    content: '';
    position: absolute;
    top: calc(var(--tl-h) / 2);
    left: 0;
    width: 0;
    height: 1px;
    background: var(--ink);
    transition: width 1.4s cubic-bezier(0.16,1,0.3,1);
}

.timeline-track.in-view::after { width: 100%; }

.tl-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: var(--tl-h);
    width: calc(100% / 6);
    padding: 0 10px;
}

.tl-spacer { flex: 1 1 0; }

.tl-content {
    flex: 1 1 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    transition: transform 0.35s cubic-bezier(0.16,1,0.3,1);
}

.tl-up .tl-content { justify-content: flex-end; }

.tl-marker {
    flex-shrink: 0;
    width: 8px;
    height: 8px;
    margin: 12px 0;
    border-radius: 50%;
    background: var(--surface);
    border: 1.5px solid var(--line-strong);
    transition: background-color 0.4s ease, border-color 0.4s ease, transform 0.4s ease, box-shadow 0.4s ease;
}

.tl-item.about-reveal.is-visible .tl-marker {
    background: var(--ink);
    border-color: var(--ink);
    transform: scale(1.15);
}

@media (hover: hover) {
    .tl-up:hover .tl-content { transform: translateY(-5px); }
    .tl-down:hover .tl-content { transform: translateY(5px); }

    .tl-item.about-reveal.is-visible:hover .tl-marker {
        transform: scale(1.55);
        box-shadow: 0 0 0 5px var(--line);
    }
}

.tl-year {
    display: block;
    font-weight: 800;
    font-size: 16px;
    letter-spacing: -0.3px;
    color: var(--muted);
    margin-bottom: 8px;
    transition: color 0.4s ease;
}

.tl-content p {
    font-size: 12px;
    font-weight: 500;
    line-height: 1.65;
    max-width: 190px;
}

.tl-content p strong { font-weight: 800; color: var(--ink); }

.tl-item.about-reveal.is-visible .tl-year { color: var(--ink); }

/* ================================================
   CONTACT
   ================================================ */
#contact {
    padding: 100px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.contact-title {
    font-weight: 800;
    font-size: clamp(40px, 8vw, 96px);
    letter-spacing: -3px;
    line-height: 0.92;
    text-align: center;
    text-transform: uppercase;
    margin-bottom: 60px;
}

.contact-title em { font-style: normal; color: var(--muted); }

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
    width: 100%;
    max-width: 800px;
    margin-bottom: 60px;
}

.contact-item {
    position: relative;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 24px;
    transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

a.contact-item {
    display: block;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

a.contact-item:hover,
a.contact-item:focus-visible {
    border-color: var(--line-strong);
    transform: translateY(-3px);
    box-shadow: 0 12px 24px var(--shadow);
}

a.contact-item::after {
    content: "→";
    position: absolute;
    top: 24px;
    right: 24px;
    opacity: 0;
    transform: translateX(-4px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

a.contact-item:hover::after,
a.contact-item:focus-visible::after {
    opacity: 0.45;
    transform: translateX(0);
}

a.contact-item:focus-visible {
    outline: 1px solid var(--ink);
    outline-offset: 3px;
}

.contact-item label {
    display: block;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    opacity: 0.5;
    margin-bottom: 8px;
}

.contact-item a,
.contact-item p,
.contact-value { font-size: 14px; font-weight: 700; color: inherit; }

.contact-value--wa { display: inline-flex; align-items: center; gap: 8px; }

.wa-icon { width: 15px; height: 15px; flex-shrink: 0; opacity: 0.85; }

.contact-info {
    width: 100%;
    max-width: 720px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface-elevated);
    padding: 56px 48px;
}

.contact-info-lead {
    font-size: clamp(18px, 2.4vw, 22px);
    font-weight: 800;
    letter-spacing: -0.3px;
}

.contact-info-text {
    max-width: 540px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.65;
}

.contact-info-text strong {
    color: var(--coral);
    font-weight: 800;
}

.contact-info-alt { opacity: 0.85; }

.contact-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    width: 100%;
    margin-top: 10px;
}

.contact-btn {
    flex: 1 1 240px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 18px 24px;
    border-radius: var(--radius);
    font-weight: 800;
    font-size: 12.5px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.contact-btn svg { width: 16px; height: 16px; flex-shrink: 0; }

.contact-btn--wa {
    background: var(--coral);
    color: var(--bg);
    border: 1px solid var(--coral);
}

.contact-btn--wa:hover,
.contact-btn--wa:focus-visible {
    opacity: 0.88;
    transform: translateY(-2px);
    box-shadow: 0 12px 24px var(--shadow);
}

.contact-btn--call {
    background: transparent;
    color: var(--ink);
    border: 1px solid var(--line-strong);
}

.contact-btn--call:hover,
.contact-btn--call:focus-visible {
    background: var(--hair);
    border-color: var(--ink);
    transform: translateY(-2px);
}

.contact-btn:focus-visible {
    outline: 1px solid var(--ink);
    outline-offset: 3px;
}

/* ================================================
   FOOTER
   ================================================ */
footer {
    padding: 28px 40px;
    border-top: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    list-style: none;
    gap: 12px 32px;
    max-width: 100%;
}

.footer-links a {
    position: relative;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--muted);
    transition: color 0.2s;
}

.footer-links a::after {
    content: '';
    position: absolute;
    left: 0; bottom: -4px;
    width: 100%;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.footer-links a:hover { color: var(--ink); }
.footer-links a:hover::after { transform: scaleX(1); transform-origin: left; }

.footer-insta {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--muted);
    transition: color 0.2s;
}

.footer-insta:hover { color: var(--ink); }

.footer-copy {
    width: 100%;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--muted);
    text-transform: uppercase;
    border-top: 1px solid var(--line);
    padding-top: 18px;
}

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

/* ---- ABOUT : tablette / petit desktop (identité+bio empilées, timeline verticale) ---- */
@media (max-width: 1080px) {
    .about-grid { row-gap: 64px; }

    .about-identity,
    .about-bio { grid-column: 1 / -1; }

    .about-bio { max-width: 720px; }

    .about-skills { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }

    .skill:nth-child(3) { border-left: none; padding-left: 0; }
    .skill:nth-child(3)::after { left: 0; }
    .skill:nth-child(3),
    .skill:nth-child(4) { border-top: 1px solid var(--line); padding-top: 32px; }

    /* timeline : bascule en version verticale, ligne fixe à gauche */
    .timeline-track { display: block; position: relative; padding-left: 4px; }

    .timeline-track::before {
        top: 6px; bottom: 6px; left: 8px; right: auto;
        width: 1px; height: auto;
    }

    .timeline-track::after { display: none; }

    .tl-item {
        display: grid;
        grid-template-columns: 16px 1fr;
        column-gap: 18px;
        height: auto;
        width: 100%;
        text-align: left;
        align-items: start;
        padding: 0 0 40px;
    }

    .tl-item:last-child { padding-bottom: 0; }

    .tl-spacer { display: none; }

    .tl-marker {
        grid-column: 1; grid-row: 1;
        justify-self: center;
        margin: 5px 0 0;
    }

    .tl-content {
        grid-column: 2; grid-row: 1;
        justify-content: flex-start !important;
    }

    .tl-content p { max-width: none; }
}

@media (max-width: 900px) {
    .pillar-desc { display: none; }

    .highlights-grid { grid-template-columns: 1fr 1fr; }
    .highlight-card:nth-child(3) { grid-column: span 2; }

    .project-facts-grid { grid-template-columns: repeat(2, 1fr); row-gap: 28px; }
}

@media (max-width: 768px) {
    #navbar { padding: 18px 24px; }

    .nav-logo-word { font-size: 19px; }

    .nav-links,
    .nav-id .clock { display: none; }

    .burger { display: flex; }

    .hero-overlay { padding: 120px 24px 60px; }
    .hero-video-controls { right: 24px; bottom: 24px; }

    .pillar { padding: 32px 24px; flex-wrap: wrap; }
    .pillar:hover { padding-left: 24px; padding-right: 24px; }
    .pillar-name { letter-spacing: -1px; }

    #highlights { padding: 70px 24px 50px; }
    .highlights-grid { grid-template-columns: 1fr; }
    .highlight-card:nth-child(3) { grid-column: auto; }
    .highlight-card { height: 320px; }

    .page-header { padding: 120px 24px 50px; }
    .page-meta { gap: 24px; }

    #work { padding-bottom: 80px; }

    .project {
        grid-template-columns: 1fr;
        min-height: auto;
        direction: ltr !important;
    }

    .project-img-wrap { height: 260px; direction: ltr !important; }
    .project-img-wrap--16-9 { height: auto; aspect-ratio: 16 / 9; }

    .project-info {
        border-left: none !important;
        border-right: none !important;
        border-top: 1px solid var(--line);
        padding: 28px 24px;
        direction: ltr !important;
    }

    #about { padding: 80px 24px 90px; }
    .about-grid { row-gap: 56px; }
    .about-mark { height: 44px; margin-top: 32px; }

    .about-skills { grid-template-columns: 1fr; row-gap: 0; }
    .skill { border-left: none !important; padding: 32px 0 0 !important; }
    .skill:not(:first-child) { border-top: 1px solid var(--line); }
    .skill::after { left: 0 !important; right: 0 !important; }

    .timeline-label { margin-bottom: 36px; }
    .tl-item { padding-bottom: 32px; }
    .tl-content p { font-size: 12.5px; }

    .project-video-section { padding: 40px 24px; }
    .browser-mock { border-radius: var(--radius); }
    .project-facts { padding: 0 24px 70px; }
    .project-facts-grid { grid-template-columns: 1fr; gap: 24px; }

    #contact { padding: 80px 24px; }

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

    .contact-info { padding: 40px 24px; }
    .contact-btn { flex: 1 1 100%; }

    footer {
        padding: 28px 24px;
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ---- FOOTER : petit mobile — les liens repassent en largeur pleine et se centrent
   dès qu'ils ne tiennent plus sur une ligne (le flex-wrap seul suffit déjà à éviter
   tout débordement à n'importe quelle largeur ; ceci ne fait qu'affiner l'alignement
   une fois le retour à la ligne effectif). ---- */
@media (max-width: 600px) {
    .footer-links {
        width: 100%;
        column-gap: 20px;
    }

    .footer-links a {
        display: inline-block;
        padding: 4px 2px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .project { transition: none; }
    .pillar { transition: none; }
    .highlight-card { animation: none; opacity: 1; }

    .about-reveal {
        opacity: 1 !important;
        transform: none !important;
        transition: opacity 0.3s ease !important;
    }

    .about-mark,
    .glyph-blades, .glyph-prop, .glyph-clap, .glyph-cursor,
    .skill, .skill::after, .tl-marker, .tl-year, .tl-content {
        transition: opacity 0.2s ease !important;
        animation: none !important;
    }

    .timeline-track::after { transition: none !important; width: 100% !important; }

    .contact-item,
    a.contact-item::after,
    .contact-btn {
        transition: none !important;
    }

    a.contact-item:hover,
    a.contact-item:focus-visible,
    .contact-btn--wa:hover,
    .contact-btn--wa:focus-visible,
    .contact-btn--call:hover,
    .contact-btn--call:focus-visible {
        transform: none;
    }
}

/* ================================================
   PROJECT GALLERIES
   ================================================ */
.project-gallery {
    max-width: 1300px;
    margin: 0 auto;
    padding: 70px 40px 120px;
    columns: 2;
    column-gap: 24px;
}

.project-gallery--browser {
    columns: initial;
    display: flex;
    justify-content: center;
}

.gallery-item {
    break-inside: avoid;
    margin: 0 0 32px;
}

.gallery-open {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: var(--hair);
    cursor: none;
    overflow: hidden;
}

@media not all and (pointer: fine) {
    .gallery-open { cursor: zoom-in; }
}

.gallery-open img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform 0.6s ease, filter 0.4s ease;
}

.gallery-open:hover img { transform: scale(1.015); }

.gallery-open:focus-visible {
    outline: 3px solid var(--accent, var(--ink));
    outline-offset: 4px;
}

.gallery-item figcaption {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding-top: 10px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--muted);
}

.gallery-item figcaption span { color: var(--accent, var(--ink)); }

.project-pagination {
    display: flex;
    max-width: 1300px;
    margin: 0 auto;
    border-top: 1px solid var(--line);
}

.project-pagination a {
    flex: 1 1 50%;
    padding: 48px 40px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: background 0.3s ease, color 0.3s ease;
}

.project-pagination a:first-child { border-right: 1px solid var(--line); }
.project-pagination a:last-child { align-items: flex-end; text-align: right; }
.project-pagination a:hover { background: var(--accent, var(--ink)); color: var(--bg); }
.project-pagination a:hover span { color: rgba(255,253,245,0.7); }
.project-pagination span { font-size: 10px; font-weight: 700; letter-spacing: 2px; color: var(--muted); text-transform: uppercase; transition: color 0.3s ease; }
.project-pagination strong { font-size: clamp(24px, 3vw, 40px); font-weight: 800; letter-spacing: -0.5px; line-height: 1.05; text-transform: uppercase; }

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: rgba(28, 15, 19, 0.94);
}

.lightbox.open { display: flex; }
.lightbox img,
.lightbox video {
    max-width: 100%;
    max-height: calc(100vh - 80px);
    max-height: calc(100dvh - 80px);
    object-fit: contain;
}
.lightbox-close {
    position: absolute;
    top: 22px;
    right: 22px;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 253, 245, 0.45);
    border-radius: 50%;
    background: rgba(28, 15, 19, 0.6);
    color: var(--color-white);
    font: 700 22px/1 var(--font);
    cursor: pointer;
}

@media (max-width: 768px) {
    .project-gallery { columns: 1; padding: 50px 24px 80px; }
    .project-pagination { flex-direction: column; }
    .project-pagination a { padding: 28px 24px; }
    .project-pagination a:first-child { border-right: none; border-bottom: 1px solid var(--line); }
    .project-pagination a:last-child { align-items: flex-start; text-align: left; }
    .lightbox { padding: 20px; }
}

@media (prefers-reduced-motion: reduce) {
    .gallery-open img { transition: none; }
    body,
    nav,
    .theme-toggle,
    .theme-toggle-thumb,
    .theme-toggle svg,
    .lang-toggle,
    .lang-option { transition: none; }
}

/* ================================================
   COMING SOON (placeholder project pages)
   ================================================ */
.coming-soon {
    max-width: 1300px;
    margin: 0 auto;
    padding: 100px 40px 160px;
    text-align: center;
}

.coming-soon-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent, var(--muted));
    border: 1px solid var(--accent, var(--line-strong));
    border-radius: 999px;
    padding: 10px 24px;
    margin-bottom: 24px;
}

.coming-soon p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--muted);
    max-width: 480px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .coming-soon { padding: 70px 24px 100px; }
}

/* ================================================
   PROJECT SECTIONS (multi-part project pages, ex: IMMO Espagne)
   ================================================ */
.project-section + .project-section { border-top: 1px solid var(--line); }
.project-section .highlights-head { padding: 70px 40px 0; margin-bottom: 40px; }

@media (max-width: 768px) {
    .project-section .highlights-head { padding: 50px 24px 0; }
}
