/* ==========================================================================
   N3luj.jpg — Editorial Cinematic Portfolio
   Lead Design: Dark Absolute / Cormorant + Barlow Condensed
   ========================================================================== */

/* --------------------------------------------------------------------------
   TOKENS & RESET
   -------------------------------------------------------------------------- */
:root {
    --black:          #000000;
    --void:           #050505;
    --surface:        #0c0c0c;
    --surface-lift:   #141414;
    --border:         rgba(255,255,255,0.07);
    --border-mid:     rgba(255,255,255,0.15);
    --white:          #f5f4f0;
    --muted:          rgba(245,244,240,0.45);
    --gold:           #2C5282; /* Bleu Nuit / Deep Blue */
    --gold-pale:      rgba(44, 82, 130, 0.25);

    --font-display:   'Cormorant Garamond', Georgia, serif;
    --font-condensed: 'Barlow Condensed', sans-serif;
    --font-body:      'Barlow', sans-serif;

    --ease-out-expo:  cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out:    cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
    background-color: var(--black);
    color: var(--white);
    font-family: var(--font-body);
    font-weight: 300;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

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

/* --------------------------------------------------------------------------
   GRAIN OVERLAY
   -------------------------------------------------------------------------- */
.grain-overlay {
    position: fixed;
    inset: -50%;
    width: 200%;
    height: 200%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
    background-size: 256px 256px;
    opacity: 0.028;
    pointer-events: none;
    z-index: 9999;
    animation: grain-shift 8s steps(1) infinite;
}

@keyframes grain-shift {
    0%   { transform: translate(0, 0); }
    10%  { transform: translate(-2%, -3%); }
    20%  { transform: translate(3%, 1%); }
    30%  { transform: translate(-1%, 4%); }
    40%  { transform: translate(4%, -2%); }
    50%  { transform: translate(-3%, 2%); }
    60%  { transform: translate(2%, 3%); }
    70%  { transform: translate(-4%, -1%); }
    80%  { transform: translate(1%, -4%); }
    90%  { transform: translate(3%, 2%); }
    100% { transform: translate(0, 0); }
}

/* --------------------------------------------------------------------------
   CUSTOM CURSOR
   -------------------------------------------------------------------------- */
.cursor {
    position: fixed;
    top: 0; left: 0;
    width: 6px;
    height: 6px;
    background: var(--white);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    margin: -3px 0 0 -3px;
    transition: width 0.3s var(--ease-out-expo),
                height 0.3s var(--ease-out-expo),
                background 0.3s ease;
}

.cursor--hover {
    width: 10px;
    height: 10px;
    background: var(--gold);
}

.cursor-follower {
    position: fixed;
    top: 0; left: 0;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(245,244,240,0.3);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9997;
    margin: -18px 0 0 -18px;
    transition: width 0.4s var(--ease-out-expo),
                height 0.4s var(--ease-out-expo),
                border-color 0.3s ease;
}

.follower--hover {
    width: 56px;
    height: 56px;
    border-color: var(--gold);
}

/* --------------------------------------------------------------------------
   HEADER
   -------------------------------------------------------------------------- */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 500;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 4%;
    transition: padding 0.5s var(--ease-out-expo),
                background 0.5s ease,
                border-color 0.5s ease;
    border-bottom: 1px solid transparent;
}

.main-header.scrolled {
    padding: 1.2rem 4%;
    background: rgba(0,0,0,0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom-color: var(--border);
}

.logo {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.4rem;
    letter-spacing: 0.05em;
    color: var(--white);
    transition: color 0.3s ease;
}

.logo:hover {
    color: var(--gold);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-link {
    font-family: var(--font-condensed);
    font-weight: 200;
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted);
    transition: color 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: width 0.4s var(--ease-out-expo);
}

.nav-link:hover {
    color: var(--white);
}

.nav-link:hover::after {
    width: 100%;
}

/* --------------------------------------------------------------------------
   HERO
   -------------------------------------------------------------------------- */
.hero {
    position: relative;
    height: 100svh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--black);
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 50% 100%, rgba(200,169,110,0.04) 0%, transparent 60%),
        radial-gradient(ellipse 60% 40% at 20% 20%, rgba(255,255,255,0.02) 0%, transparent 50%);
}

.hero-vignette {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 100% 100% at 50% 50%,
        transparent 30%,
        rgba(0,0,0,0.7) 100%);
}

/* Side labels */
.hero-side-label {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-family: var(--font-condensed);
    font-weight: 100;
    font-size: 0.7rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--muted);
    bottom: 3rem;
    animation: fadeInUp 1.2s var(--ease-out-expo) 1.2s both;
}

.hero-side-left {
    left: 4%;
    transform-origin: left center;
}

.hero-side-right {
    right: 4%;
    flex-direction: row-reverse;
}

.side-sep {
    display: inline-block;
    width: 24px;
    height: 1px;
    background: var(--muted);
}

/* Main content */
.hero-content {
    text-align: center;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-eyebrow {
    font-family: var(--font-condensed);
    font-weight: 100;
    font-size: 0.75rem;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 2rem;
    animation: fadeInDown 1s var(--ease-out-expo) 0.3s both;
}

.hero-title {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    justify-content: center;
    gap: 0;
    line-height: 1.1;
}

.hero-title-line {
    display: block;
    overflow: visible;
}

.title-word {
    display: block;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(6rem, 18vw, 18rem);
    letter-spacing: -0.02em;
    color: var(--white);
    animation: slideUpReveal 1s var(--ease-out-expo) both;
}

.line-1 .title-word {
    animation-delay: 0.5s;
}

.line-2 .title-word {
    animation-delay: 0.7s;
}

.title-word--outlined {
    color: transparent;
    -webkit-text-stroke: 1px rgba(245,244,240,0.4);
}

.hero-sub {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin-top: 2.5rem;
    font-family: var(--font-condensed);
    font-weight: 200;
    font-size: 0.8rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--muted);
    animation: fadeInUp 1s var(--ease-out-expo) 1s both;
}

.dot-sep {
    color: var(--gold);
    font-size: 1rem;
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    z-index: 2;
    animation: fadeInUp 1s var(--ease-out-expo) 1.5s both;
}

.scroll-text {
    font-family: var(--font-condensed);
    font-weight: 100;
    font-size: 0.65rem;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--muted);
    padding-left: 0.35em; /* Compensate for letter-spacing to perfectly center */
    margin-right: 0;
}

.scroll-line {
    width: 1px;
    height: 50px;
    background: linear-gradient(to bottom, var(--muted), transparent);
    animation: scroll-pulse 2.5s ease-in-out infinite;
}

@keyframes scroll-pulse {
    0%, 100% { opacity: 0.4; transform: scaleY(1); }
    50% { opacity: 1; transform: scaleY(1.2); }
}

/* --------------------------------------------------------------------------
   HERO ANIMATIONS
   -------------------------------------------------------------------------- */
@keyframes slideUpReveal {
    from {
        opacity: 0;
        transform: translateY(100%);
        filter: blur(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --------------------------------------------------------------------------
   SECTION COMMONS
   -------------------------------------------------------------------------- */
.section-header {
    padding: 6rem 6% 4rem;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: end;
    gap: 2rem;
    max-width: 1600px;
    margin: 0 auto;
}

.section-num {
    font-family: var(--font-condensed);
    font-weight: 100;
    font-size: 0.7rem;
    letter-spacing: 0.25em;
    color: var(--gold);
    align-self: start;
    padding-top: 0.5rem;
}

.section-title {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: clamp(3rem, 7vw, 7rem);
    line-height: 0.95;
    letter-spacing: -0.02em;
    color: var(--white);
}

.section-title em {
    font-style: italic;
    color: var(--gold);
}

.section-rule {
    width: 1px;
    height: 80px;
    background: linear-gradient(to bottom, var(--border-mid), transparent);
    align-self: stretch;
    margin-bottom: 0.5rem;
}

/* Reveal animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s var(--ease-out-expo),
                transform 0.8s var(--ease-out-expo);
}

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

/* --------------------------------------------------------------------------
   GALLERY
   -------------------------------------------------------------------------- */
.gallery-section {
    padding-bottom: 8rem;
}

/* Filters */
.filters {
    display: flex;
    justify-content: flex-start;
    gap: 0;
    margin: 0 6% 4rem;
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    color: var(--muted);
    padding: 0.75rem 1.5rem 0.75rem 0;
    margin-right: 2rem;
    cursor: none;
    font-family: var(--font-condensed);
    font-weight: 200;
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    transition: color 0.3s ease, border-color 0.3s ease;
}

.filter-btn:last-child {
    margin-right: 0;
}

.filter-btn:hover {
    color: var(--white);
}

.filter-btn.active {
    color: var(--white);
    border-bottom-color: var(--gold);
}

/* Masonry — asymmetric cinematic grid */
.masonry-gallery {
    column-count: 3;
    column-gap: 6px;
    padding: 0 6px;
}

/* Loading */
.loading-spinner {
    column-span: all;
    padding: 6rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    color: var(--muted);
    font-family: var(--font-condensed);
    font-weight: 200;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-size: 0.8rem;
}

.loading-dots {
    display: flex;
    gap: 4px;
}

.loading-dots span {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--muted);
    animation: dot-pulse 1.4s ease-in-out infinite;
}

.loading-dots span:nth-child(2) { animation-delay: 0.2s; }
.loading-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes dot-pulse {
    0%, 80%, 100% { opacity: 0.2; transform: scale(1); }
    40% { opacity: 1; transform: scale(1.3); }
}

/* Gallery item */
.gallery-item {
    break-inside: avoid;
    margin-bottom: 6px;
    position: relative;
    overflow: hidden;
    cursor: none;
    opacity: 0;
    transform: translateY(24px);
    animation: appear 0.7s var(--ease-out-expo) forwards;
    background: var(--surface);
}

/* Cinematic sizing — images keep their natural aspect ratio now */

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

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0;
    transition: transform 0.9s var(--ease-out-expo),
                filter 0.6s ease,
                opacity 0.6s ease;
    filter: grayscale(30%) brightness(0.9);
    will-change: transform, filter, opacity;
}

.gallery-item img.loaded {
    opacity: 1;
}

.gallery-item:hover img.loaded {
    transform: scale(1.06);
    filter: grayscale(0%) brightness(1.05);
}

/* Overlay */
.item-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0,0,0,0.85) 0%,
        rgba(0,0,0,0.2) 50%,
        transparent 100%
    );
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.gallery-item:hover .item-overlay {
    opacity: 1;
}

.item-overlay h3 {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--white);
    margin-bottom: 0.4rem;
}

.item-overlay p {
    font-family: var(--font-condensed);
    font-weight: 300;
    font-size: 0.65rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--muted);
}


/* --------------------------------------------------------------------------
   ABOUT SECTION
   -------------------------------------------------------------------------- */
.about-section {
    padding: 8rem 0;
    border-top: 1px solid var(--border);
    overflow: hidden;
}

.about-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 6%;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 6rem;
    align-items: start;
}

/* Left column */
.about-left {
    position: sticky;
    top: 8rem;
    padding-top: 2rem;
}

.about-num {
    display: block;
    font-family: var(--font-condensed);
    font-weight: 100;
    font-size: 0.7rem;
    letter-spacing: 0.25em;
    color: var(--gold);
    margin-bottom: 2rem;
}

.about-quote {
    font-family: var(--font-display);
    font-weight: 300;
    font-style: normal;
    font-size: clamp(2.5rem, 4vw, 4rem);
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: var(--white);
    border: none;
    padding: 0;
    will-change: transform;
}

.about-quote p em {
    font-style: italic;
    color: var(--gold);
}

.about-tags {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.about-tags span {
    font-family: var(--font-condensed);
    font-weight: 100;
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.about-tags span::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 1px;
    background: var(--border-mid);
}

/* Right column */
.about-right {
    display: grid;
    grid-template-rows: auto 1fr;
    gap: 3rem;
}

.about-image-wrapper {
    position: relative;
    overflow: hidden;
    max-width: 16%;
}

.about-image {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    filter: grayscale(20%);
    transition: filter 0.8s ease;
}

.about-image:hover {
    filter: grayscale(0%);
}

.about-image-border {
    position: absolute;
    inset: 12px;
    border: 1px solid rgba(200,169,110,0.2);
    pointer-events: none;
}

.about-name {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: clamp(3rem, 5vw, 5rem);
    line-height: 0.95;
    letter-spacing: -0.02em;
    color: var(--white);
    margin-bottom: 2rem;
}

.about-text p {
    font-size: 1rem;
    color: var(--muted);
    margin-bottom: 1.2rem;
    max-width: 520px;
    line-height: 1.8;
}

.about-specs {
    list-style: none;
    margin-top: 2.5rem;
    border-top: 1px solid var(--border);
    padding-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.about-specs li {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    border-bottom: 1px solid var(--border);
    padding-bottom: 1rem;
}

.spec-label {
    font-family: var(--font-condensed);
    font-weight: 200;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted);
}

.spec-value {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: 1.1rem;
    color: var(--white);
}

/* ── Icone contact ── */
.link-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--border-mid);
    border-radius: 8px;
    font-size: 1.4rem;
    color: var(--muted);
    flex-shrink: 0;
    transition: color 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.contact-link:hover .link-icon {
    color: var(--gold);
    border-color: var(--gold);
    background: var(--gold-pale);
}

.link-icon .ti {
    font-size: inherit;
    line-height: 1;
}



/* --------------------------------------------------------------------------
   CONTACT SECTION
   -------------------------------------------------------------------------- */
.contact-section {
    padding: 8rem 6%;
    border-top: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.contact-section::before {
    content: 'Contact';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-display);
    font-size: clamp(8rem, 20vw, 22rem);
    font-weight: 600;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255,255,255,0.03);
    white-space: nowrap;
    pointer-events: none;
    user-select: none;
    line-height: 1;
}

.contact-inner {
    position: relative;
    z-index: 1;
    max-width: 1400px;
    margin: 0 auto;
}

.contact-num {
    display: block;
    font-family: var(--font-condensed);
    font-weight: 100;
    font-size: 0.7rem;
    letter-spacing: 0.25em;
    color: var(--gold);
    margin-bottom: 2rem;
}

.contact-title {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: clamp(3rem, 7vw, 7rem);
    letter-spacing: -0.02em;
    color: var(--white);
    line-height: 0.95;
    margin-bottom: 4rem;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 0;
    border-top: 1px solid var(--border);
}

.contact-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem 0;
    border-bottom: 1px solid var(--border);
    transition: padding-left 0.4s var(--ease-out-expo);
}

.contact-link:hover {
    padding-left: 1rem;
}


.link-label {
    font-family: var(--font-condensed);
    font-weight: 100;
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--muted);
}

.link-value {
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 3vw, 2.5rem);
    font-weight: 300;
    color: var(--white);
    transition: color 0.3s ease;
}

.contact-link:hover .link-value {
    color: var(--gold);
}

/* --------------------------------------------------------------------------
   LIGHTBOX
   -------------------------------------------------------------------------- */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.97);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.lightbox-content {
    position: relative;
    width: min(95%, 1600px);
    max-height: 90vh;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    z-index: 1001;
    gap: 3rem;
}

/* ── Toolbar : fullscreen + close ── */
.lightbox-toolbar {
    position: fixed;
    top: 2rem;
    right: 2rem;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.5rem;
    z-index: 1003;
}

.lightbox-ctrl {
    background: transparent;
    border: none;
    border-radius: 6px;
    color: var(--muted);
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: none;
    font-size: 1.2rem;
    transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease;
    z-index: 1002;
}

.lightbox-ctrl:hover {
    color: var(--white);
    border-color: rgba(255,255,255,0.35);
    background: rgba(255,255,255,0.06);
}

/* ── Image wrapper (slide animation) ── */
.lightbox-img-wrapper {
    width: auto;
    max-width: 70%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    flex-shrink: 0;
}

.lightbox-img-wrapper img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    box-shadow: 0 0 80px rgba(0,0,0,0.9);
    transition: opacity 0.25s ease, transform 0.3s ease;
    will-change: transform, opacity;
}

.lightbox-img-wrapper img.zoomed {
    transform: scale(2.5);
    cursor: zoom-out;
}

/* Classes injectées par JS pour l'animation slide */
@keyframes slide-in-right {
    from { transform: translateX(60px); opacity: 0; }
    to   { transform: translateX(0);    opacity: 1; }
}
@keyframes slide-in-left {
    from { transform: translateX(-60px); opacity: 0; }
    to   { transform: translateX(0);     opacity: 1; }
}
.lightbox-slide-in-right { animation: slide-in-right 0.32s var(--ease-out-expo) both; }
.lightbox-slide-in-left  { animation: slide-in-left  0.32s var(--ease-out-expo) both; }

/* ── Info ── */
.lightbox-info {
    margin-top: 0;
    text-align: left;
    max-width: 30%;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.lightbox-title {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 400;
    letter-spacing: 0.25em;
    color: var(--white);
    margin-bottom: 1rem;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.lightbox-desc {
    font-family: var(--font-body);
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--muted);
    margin-bottom: 1.5rem;
}

.lightbox-cat {
    font-family: var(--font-condensed);
    font-weight: 300;
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--muted);
}

.lightbox-location {
    font-family: var(--font-condensed);
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    color: var(--gold);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    text-decoration: none;
    transition: color 0.3s;
    background: rgba(200, 169, 110, 0.1);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
}

.lightbox-location:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.15);
}

/* ── Nav prev / next ── */
.lightbox-nav {
    position: absolute;
    background: transparent;
    border: none;
    color: var(--muted);
    font-size: 2rem;
    cursor: none;
    transition: color 0.3s ease, transform 0.2s ease;
    z-index: 1002;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-nav:hover {
    color: var(--white);
}

.lightbox-nav.prev {
    left: -3.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2.2rem;
}

.lightbox-nav.next {
    right: -3.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2.2rem;
}

.lightbox-nav.prev:hover {
    transform: translateY(-50%) translateX(-3px);
}

.lightbox-nav.next:hover {
    transform: translateY(-50%) translateX(3px);
}

/* ── Icone Tabler dans les boutons ── */
.lightbox-ctrl .ti,
.lightbox-nav .ti {
    font-size: inherit;
    line-height: 1;
}

/* --------------------------------------------------------------------------
   FOOTER
   -------------------------------------------------------------------------- */
.main-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 4%;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-family: var(--font-condensed);
    font-weight: 100;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
}

.footer-admin {
    color: var(--muted);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-size: 0.7rem;
    transition: color 0.3s ease;
}

.footer-admin:hover {
    color: var(--gold);
}

/* --------------------------------------------------------------------------
   ADMIN PANEL STYLES (preserved)
   -------------------------------------------------------------------------- */
.admin-body { background-color: #09090b; }

.admin-login-container {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-box {
    background: var(--surface);
    padding: 3rem;
    border-radius: 4px;
    border: 1px solid var(--border);
    width: 100%;
    max-width: 400px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
}

.login-box h2 {
    font-family: var(--font-body);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.login-box p {
    color: var(--muted);
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

.input-group { margin-bottom: 1.5rem; }

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--muted);
}

.input-group input,
.input-group select,
.input-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--black);
    border: 1px solid var(--border);
    color: var(--white);
    border-radius: 4px;
    font-family: var(--font-body);
    transition: border-color 0.3s;
}

.input-group input:focus,
.input-group select:focus,
.input-group textarea:focus {
    outline: none;
    border-color: var(--gold);
}

.admin-btn {
    width: 100%;
    padding: 0.75rem;
    background: var(--white);
    color: var(--black);
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.3s;
}

.admin-btn:hover { opacity: 0.9; }

.admin-btn.outline {
    background: transparent;
    color: var(--white);
    border: 1px solid var(--border);
    width: auto;
    padding: 0.5rem 1.5rem;
}

.admin-btn.outline:hover { background: var(--border); }
.admin-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.error-msg { color: #ef4444; font-size: 0.85rem; margin-top: 1rem; text-align: center; }
.status-msg { color: #10b981; font-size: 0.85rem; margin-top: 1rem; }
.hidden { display: none !important; }

.admin-dashboard-container {
    padding: 2rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.admin-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
}

.admin-panel {
    background: var(--surface);
    padding: 2rem;
    border-radius: 4px;
    border: 1px solid var(--border);
}

.admin-panel h3 {
    margin-bottom: 2rem;
    font-weight: 600;
    border-bottom: 1px solid var(--border);
    padding-bottom: 1rem;
}

.sortable-list {
    list-style: none;
    max-height: 600px;
    overflow-y: auto;
    padding-right: 1rem;
}

.sortable-list::-webkit-scrollbar { width: 6px; }
.sortable-list::-webkit-scrollbar-track { background: var(--black); }
.sortable-list::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

.sortable-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: var(--black);
    border: 1px solid var(--border);
    margin-bottom: 0.5rem;
    border-radius: 4px;
    cursor: grab;
    transition: box-shadow 0.2s;
}

.sortable-item:active { cursor: grabbing; }
.sortable-item.sortable-ghost { opacity: 0.4; background: var(--border); }

.item-thumb {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    margin-right: 1rem;
}

.item-details { flex-grow: 1; }
.item-details h4 { font-size: 0.95rem; margin-bottom: 0.2rem; }
.item-details p { font-size: 0.8rem; color: var(--muted); }

.item-actions { display: flex; gap: 0.5rem; }

.action-btn {
    background: transparent;
    border: none;
    color: var(--muted);
    cursor: pointer;
    font-size: 1.2rem;
    transition: color 0.2s;
}

.action-btn:hover { color: #ef4444; }

.drag-handle {
    color: var(--muted);
    margin-right: 1rem;
    cursor: grab;
    font-size: 1.2rem;
}

/* --------------------------------------------------------------------------
   RESPONSIVE — Tablet (≤1100px)
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
    .about-container {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    .about-left {
        position: static;
    }
    .about-quote {
        font-size: clamp(2rem, 5vw, 3.5rem);
    }
}

/* --------------------------------------------------------------------------
   RESPONSIVE — Phablet (≤900px)
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
    .masonry-gallery {
        column-count: 2;
    }
    /* Gallery items : pas de ratio forcé, les images gardent leur ratio natif */
    .gallery-item {
        aspect-ratio: unset;
    }
    .gallery-item img {
        height: auto;
        width: 100%;
        object-fit: cover;
    }
    .section-header {
        grid-template-columns: auto 1fr;
        grid-template-rows: auto auto;
    }
    .section-rule {
        display: none;
    }
    .admin-grid { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   RESPONSIVE — Mobile (≤600px)
   -------------------------------------------------------------------------- */
@media (max-width: 600px) {

    /* ── Cursor: désactivé sur tactile ── */
    html { cursor: auto; }
    .cursor, .cursor-follower { display: none; }
    .filter-btn, .gallery-item { cursor: pointer; }
    .lightbox-btn, .lightbox-nav { cursor: pointer; }

    /* ── Header ── */
    .main-header {
        padding: 1.2rem 5%;
        flex-wrap: nowrap;
    }
    .logo { font-size: 1.15rem; }
    nav ul {
        gap: 1.2rem;
    }
    .nav-link {
        font-size: 0.7rem;
        letter-spacing: 0.12em;
    }

    /* ── Hero: suppression des labels latéraux (trop étroits) ── */
    .hero-side-label {
        display: none;
    }
    .hero-title .title-word {
        font-size: clamp(4.5rem, 20vw, 7rem);
    }
    .hero-sub {
        gap: 0.8rem;
        font-size: 0.7rem;
        margin-top: 1.5rem;
    }
    .hero-eyebrow {
        font-size: 0.65rem;
        letter-spacing: 0.25em;
        margin-bottom: 1.2rem;
    }
    .scroll-indicator {
        bottom: 1.5rem;
    }

    /* ── Section header ── */
    .section-header {
        padding: 4rem 5% 2.5rem;
        gap: 1rem;
    }
    .section-title {
        font-size: clamp(2.4rem, 9vw, 4rem);
    }

    /* ── Filtres ── */
    .filters {
        margin: 0 5% 2.5rem;
        gap: 0;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        flex-wrap: nowrap;
        scrollbar-width: none;
        padding-bottom: 0;
    }
    .filters::-webkit-scrollbar { display: none; }
    .filter-btn {
        font-size: 0.72rem;
        padding: 0.65rem 1rem 0.65rem 0;
        margin-right: 1.5rem;
        white-space: nowrap;
        flex-shrink: 0;
    }

    /* ── Galerie ── */
    .masonry-gallery {
        column-count: 2;
        column-gap: 4px;
        padding: 0 4px;
    }
    /* Images au format natif — pas d'aspect-ratio forcé */
    .gallery-item {
        aspect-ratio: unset;
        margin-bottom: 4px;
    }
    .gallery-item img {
        height: auto;
        width: 100%;
    }
    /* Overlay toujours visible sur mobile (pas de hover) */
    .item-overlay {
        opacity: 0; /* gardé invisible, tap déclenche lightbox */
    }

    /* ── About ── */
    .about-section {
        padding: 5rem 0;
    }
    .about-container {
        padding: 0 5%;
        gap: 2.5rem;
    }
    .about-quote {
        font-size: clamp(1.8rem, 7vw, 2.5rem);
    }
    .about-tags {
        margin-top: 1.5rem;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.75rem;
    }
    .about-tags span::before { display: none; }
    .about-tags span {
        font-size: 0.65rem;
        border: 1px solid var(--border-mid);
        padding: 0.3rem 0.6rem;
        border-radius: 2px;
    }
    .about-name {
        font-size: clamp(2.5rem, 9vw, 3.5rem);
        margin-bottom: 1.2rem;
    }
    .about-text p {
        font-size: 0.92rem;
        max-width: 100%;
    }
    .about-image-wrapper {
        max-width: 100%;
    }
    .about-right {
        gap: 2rem;
    }
    .about-specs li {
        flex-direction: column;
        gap: 0.2rem;
        align-items: flex-start;
    }

    /* ── Contact ── */
    .contact-section {
        padding: 5rem 5%;
    }
    .contact-section::before {
        font-size: clamp(5rem, 22vw, 10rem);
    }
    .contact-title {
        font-size: clamp(2.4rem, 9vw, 4rem);
        margin-bottom: 2.5rem;
    }
    .contact-link {
        flex-direction: row;           /* icône + label + valeur sur une ligne */
        align-items: center;
        gap: 0.75rem;
        padding: 1.2rem 0;
        flex-wrap: wrap;
    }
    .link-value {
        font-size: clamp(1.1rem, 4.5vw, 1.6rem);
        margin-left: auto;             /* valeur poussée à droite */
    }
    .link-label {
        font-size: 0.65rem;
    }

    /* ── Footer ── */
    .main-footer {
        flex-direction: column;
        gap: 0.8rem;
        text-align: center;
        padding: 1.5rem 5%;
    }

    /* ── Lightbox mobile ── */
    .lightbox-content {
        max-width: 100%;
        width: 100%;
        height: 100dvh;
        max-height: 100dvh;
        border-radius: 0;
        flex-direction: column;
        justify-content: flex-start;
        padding-top: env(safe-area-inset-top, 1rem);
        gap: 0;
    }
    .lightbox-toolbar {
        position: relative;
        top: 0;
        right: 0;
        width: 100%;
        padding: 0.75rem 0.75rem 0.5rem;
    }
    .lightbox-ctrl {
        cursor: pointer;
        width: 42px;
        height: 42px;
        font-size: 1.3rem;
    }
    .lightbox-img-wrapper {
        max-width: 100%;
    }
    .lightbox-img-wrapper img {
        max-height: 60dvh;
        max-width: 100vw;
    }
    .lightbox-info {
        margin-top: 0.75rem;
        padding: 0 1.2rem;
        text-align: center;
        max-width: 100%;
    }
    .lightbox-title {
        font-size: 1.2rem;
        letter-spacing: 0.12em;
    }
    .lightbox-desc {
        font-size: 0.82rem;
    }
    /* Boutons nav latéraux en position absolue sur l'image */
    .lightbox-nav {
        font-size: 1.6rem;
        padding: 0;
        background: rgba(0,0,0,0.45);
        backdrop-filter: blur(4px);
        border-radius: 50%;
        width: 44px;
        height: 44px;
        cursor: pointer;
    }
    .lightbox-nav.prev {
        left: 0.6rem;
        top: calc(50% - 60px);  /* centré sur l'image */
    }
    .lightbox-nav.next {
        right: 0.6rem;
        top: calc(50% - 60px);
    }
    .lightbox-nav.prev:hover,
    .lightbox-nav.next:hover {
        transform: translateY(-50%);  /* reset override desktop */
    }
    /* Indicateur swipe */
    .swipe-hint {
        display: flex;
    }
}

.suggestions-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface-lift);
    border: 1px solid var(--border);
    border-radius: 4px;
    z-index: 10;
    max-height: 200px;
    overflow-y: auto;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.suggestion-item {
    padding: 0.75rem 1rem;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border);
    transition: background 0.2s ease;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--gold);
}

/* --------------------------------------------------------------------------
   ADMIN TABS
   -------------------------------------------------------------------------- */
.admin-tabs-nav {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tab-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--white);
    padding: 0.5rem 1rem;
    cursor: pointer;
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.tab-btn:hover {
    background: rgba(255, 255, 255, 0.05);
}

.tab-btn.active {
    background: var(--gold);
    color: var(--black);
    border-color: var(--gold);
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: flex;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --------------------------------------------------------------------------
   ADMIN PHOTO GRID (Ergonomic Sorting)
   -------------------------------------------------------------------------- */
.sortable-list {
    column-width: 180px; /* Adapte le nombre de colonnes selon l'écran */
    column-gap: 1rem;
    list-style: none;
    padding: 0;
    margin: 1rem 0;
    display: block; /* Annule le display: grid */
}

.sortable-item {
    break-inside: avoid;
    margin-bottom: 1rem;
    background: var(--surface-lift);
    border: 1px solid var(--border);
    border-radius: 6px;
    overflow: hidden;
    position: relative;
    cursor: grab;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.sortable-item:active {
    cursor: grabbing;
}

.sortable-item:hover {
    border-color: var(--border-mid);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

.item-thumb-wrapper {
    position: relative;
    width: 100%;
    height: 100px;
    overflow: hidden;
}

.item-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.item-actions {
    position: absolute;
    top: 0.25rem;
    right: 0.25rem;
    display: flex;
    gap: 0.25rem;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.sortable-item:hover .item-actions {
    opacity: 1;
}

.action-btn {
    background: rgba(0,0,0,0.6);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 4px;
    color: var(--white);
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.85rem;
    transition: background 0.2s ease, transform 0.1s ease;
    backdrop-filter: blur(4px);
}

.action-btn:hover {
    background: rgba(0,0,0,0.8);
    transform: scale(1.05);
}

.action-btn.delete-btn:hover {
    color: #ef4444;
    border-color: #ef4444;
}

.item-details {
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.item-title {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 0.85rem;
    color: var(--white);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.item-exif {
    font-family: var(--font-condensed);
    font-weight: 200;
    font-size: 0.6rem;
    color: var(--muted);
    letter-spacing: 0.1em;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sortable-ghost {
    opacity: 0.4;
    background: var(--surface);
    border: 2px dashed var(--gold);
}

.sortable-drag {
    opacity: 1 !important;
    box-shadow: 0 15px 30px rgba(0,0,0,0.5) !important;
    transform: scale(1.03);
}