/* ============================================
   LC PICTURES - LUXURY PHOTOGRAPHY PORTFOLIO
   ============================================ */

/* CSS Variables - Luxury Color Palette */
:root {
    /* Primary Colors */
    --gold: #c9a962;
    --gold-light: #e4d4a5;
    --gold-dark: #9a7b3c;
    
    /* Neutral Colors */
    --black: #0a0a0a;
    --black-soft: #121212;
    --black-light: #1a1a1a;
    --gray-dark: #2a2a2a;
    --gray: #4a4a4a;
    --gray-light: #8a8a8a;
    --white: #fafafa;
    --white-soft: #f0f0f0;
    
    /* Accent */
    --accent: #c9a962;
    --accent-glow: rgba(201, 169, 98, 0.3);
    
    /* Typography */
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Montserrat', -apple-system, sans-serif;
    
    /* Font display optimization */
    --font-display-strategy: swap;
    
    /* Spacing */
    --section-padding: clamp(80px, 12vw, 160px);
    --container-max: 1400px;
    
    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--font-body);
    background: var(--black);
    color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Smooth scrolling mobile */
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
}

/* ============================================
   ACCESSIBILITY - Skip to content
   ============================================ */

.skip-to-content {
    position: absolute;
    top: -100px;
    left: 0;
    background: var(--gold);
    color: var(--black);
    padding: 1rem 2rem;
    text-decoration: none;
    font-weight: 600;
    z-index: 10000;
    border: 2px solid var(--gold);
    transition: top var(--transition-fast);
}

.skip-to-content:focus {
    top: 0;
    outline: 3px solid var(--white);
    outline-offset: 2px;
}

::selection {
    background: var(--gold);
    color: var(--black);
}

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

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

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* ============================================
   NAVIGATION
   ============================================ */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 4rem;
    transition: var(--transition-smooth);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    padding: 1rem 4rem;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.brand-text {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 300;
    color: var(--gold);
    letter-spacing: 0.2em;
}

.brand-separator {
    color: var(--gray);
    font-weight: 200;
}

.brand-sub {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--white);
}

.nav-links {
    display: flex;
    gap: 3rem;
    list-style: none;
}

.nav-link {
    font-size: 0.75rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--gray-light);
    position: relative;
    padding: 0.5rem 0;
    transition: var(--transition-fast);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: var(--transition-smooth);
}

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

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

.nav-link:focus {
    outline: 2px solid var(--gold);
    outline-offset: 4px;
    border-radius: 2px;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    padding: 10px;
}

.nav-toggle span {
    width: 25px;
    height: 1px;
    background: var(--white);
    transition: var(--transition-fast);
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, var(--black) 0%, var(--black-light) 50%, var(--black) 100%);
}


.hero-overlay {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse at 20% 50%, rgba(201, 169, 98, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(201, 169, 98, 0.05) 0%, transparent 40%),
        radial-gradient(ellipse at 60% 80%, rgba(201, 169, 98, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.hero-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.hero-particles::before,
.hero-particles::after {
    content: '';
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--gold);
    border-radius: 50%;
    opacity: 0.5;
    animation: float 20s infinite linear;
}

.hero-particles::before {
    top: 20%;
    left: 10%;
    box-shadow: 
        100vw 10vh 0 var(--gold),
        20vw 60vh 0 var(--gold),
        80vw 30vh 0 var(--gold),
        50vw 80vh 0 var(--gold),
        30vw 40vh 0 var(--gold),
        15vw 25vh 0 var(--gold),
        70vw 15vh 0 var(--gold),
        90vw 70vh 0 var(--gold),
        45vw 55vh 0 var(--gold),
        5vw 85vh 0 var(--gold),
        60vw 45vh 0 var(--gold),
        25vw 75vh 0 var(--gold),
        85vw 90vh 0 var(--gold),
        35vw 10vh 0 var(--gold),
        75vw 60vh 0 var(--gold);
}

.hero-particles::after {
    top: 70%;
    right: 20%;
    animation-delay: -10s;
    box-shadow: 
        -60vw -30vh 0 var(--gold),
        40vw -50vh 0 var(--gold),
        -30vw 20vh 0 var(--gold),
        -15vw -60vh 0 var(--gold),
        55vw -20vh 0 var(--gold),
        -45vw 10vh 0 var(--gold),
        20vw -40vh 0 var(--gold),
        -70vw -10vh 0 var(--gold),
        10vw 30vh 0 var(--gold),
        -25vw -45vh 0 var(--gold),
        65vw 15vh 0 var(--gold),
        -50vw 35vh 0 var(--gold);
}

/* Particules supplémentaires avec animation différente */
.hero-particles .particle-layer {
    position: absolute;
    inset: 0;
}

.hero-particles .particle-layer::before,
.hero-particles .particle-layer::after {
    content: '';
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--gold-light);
    border-radius: 50%;
    opacity: 0.3;
    animation: floatSlow 30s infinite linear;
}

.hero-particles .particle-layer::before {
    top: 10%;
    left: 50%;
    box-shadow:
        -20vw 30vh 0 var(--gold),
        40vw 20vh 0 var(--gold),
        -10vw 70vh 0 var(--gold),
        60vw 50vh 0 var(--gold),
        -40vw 15vh 0 var(--gold),
        30vw 85vh 0 var(--gold),
        -55vw 45vh 0 var(--gold),
        15vw 35vh 0 var(--gold);
}

.hero-particles .particle-layer::after {
    bottom: 20%;
    right: 30%;
    animation-delay: -15s;
    box-shadow:
        25vw -25vh 0 var(--gold),
        -35vw -40vh 0 var(--gold),
        50vw -10vh 0 var(--gold),
        -20vw 25vh 0 var(--gold),
        45vw 40vh 0 var(--gold),
        -60vw -20vh 0 var(--gold);
}

@keyframes floatSlow {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.3;
    }
    33% {
        transform: translate(-15px, 25px) scale(1.3);
        opacity: 0.5;
    }
    66% {
        transform: translate(10px, -15px) scale(0.7);
        opacity: 0.2;
    }
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.4;
    }
    25% {
        transform: translate(10px, -20px) scale(1.2);
        opacity: 0.6;
    }
    50% {
        transform: translate(-5px, 10px) scale(0.8);
        opacity: 0.3;
    }
    75% {
        transform: translate(15px, 5px) scale(1.1);
        opacity: 0.5;
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem;
}

.hero-text-wrapper {
    animation: fadeInUp 1.2s ease-out;
}

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

.hero-subtitle {
    display: block;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 0.4em;
    color: var(--gray-light);
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-title {
    font-family: var(--font-display);
    font-weight: 300;
    line-height: 1;
    margin-bottom: 1.5rem;
}

.title-line {
    display: block;
    font-size: clamp(4rem, 15vw, 12rem);
    letter-spacing: 0.15em;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.title-line.accent {
    color: var(--gold);
    font-style: italic;
    font-weight: 400;
    animation-delay: 0.6s;
}

.hero-tagline {
    font-family: var(--font-display);
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 300;
    font-style: italic;
    color: var(--gray-light);
    margin-bottom: 3rem;
    animation: fadeInUp 1s ease-out 0.8s both;
}

.hero-cta {
    animation: fadeInUp 1s ease-out 1s both;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 2.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    border: 1px solid var(--gold);
    color: var(--gold);
    background: transparent;
    transition: var(--transition-smooth);
    overflow: hidden;
    position: relative;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--transition-smooth);
    z-index: -1;
}

.btn:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

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

.btn-arrow {
    width: 20px;
    height: 20px;
    transition: transform var(--transition-fast);
}

.btn:hover .btn-arrow {
    transform: translateX(5px);
}

.btn:focus {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
    border-radius: 2px;
}

.scroll-indicator {
    position: absolute;
    bottom: 1rem;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: fit-content;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    animation: fadeInUp 1s ease-out 1.2s both;
    z-index: 10;
}

.mouse {
    width: 24px;
    height: 40px;
    border: 1px solid var(--gray);
    border-radius: 12px;
    position: relative;
}

.wheel {
    width: 3px;
    height: 8px;
    background: var(--gold);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(12px);
    }
}

.scroll-indicator span {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--gray);
}

/* ============================================
   SECTION COMMON STYLES
   ============================================ */

section {
    padding: var(--section-padding) 4rem;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 4rem;
}

.section-number {
    font-family: var(--font-display);
    font-size: 0.875rem;
    color: var(--gold);
    font-weight: 400;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 300;
    letter-spacing: 0.1em;
}

.section-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--gray-dark), transparent);
}

/* ============================================
   ABOUT SECTION
   ============================================ */

.about {
    background: var(--black-soft);
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 6rem;
    align-items: start;
    max-width: var(--container-max);
    margin: 0 auto;
}

.about-image {
    position: sticky;
    top: 120px;
}

.image-frame {
    position: relative;
    padding: 1.5rem;
}

.frame-corner {
    position: absolute;
    width: 60px;
    height: 60px;
    border: 1px solid var(--gold);
    opacity: 0.5;
}

.frame-corner.top-left {
    top: 0;
    left: 0;
    border-right: none;
    border-bottom: none;
}

.frame-corner.top-right {
    top: 0;
    right: 0;
    border-left: none;
    border-bottom: none;
}

.frame-corner.bottom-left {
    bottom: 0;
    left: 0;
    border-right: none;
    border-top: none;
}

.frame-corner.bottom-right {
    bottom: 0;
    right: 0;
    border-left: none;
    border-top: none;
}

.profile-photo {
    width: 100%;
    aspect-ratio: 4/5;
    object-fit: cover;
    filter: grayscale(20%);
    transition: var(--transition-slow);
}

.image-frame:hover .profile-photo {
    filter: grayscale(0%);
}

.about-content {
    padding-top: 2rem;
}

.about-intro h3 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
    color: var(--gold);
}

.intro-text {
    font-size: 1.1rem;
    font-weight: 300;
    line-height: 1.8;
    color: var(--gray-light);
    margin-bottom: 2rem;
}

.about-philosophy {
    margin: 3rem 0;
    padding-left: 2rem;
    border-left: 2px solid var(--gold);
}

.about-philosophy blockquote {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-style: italic;
    font-weight: 300;
    color: var(--white-soft);
    line-height: 1.6;
}

.equipment-section h4 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--gold);
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
}

.equipment-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.equipment-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--black-light);
    border: 1px solid var(--gray-dark);
    transition: var(--transition-smooth);
}

.equipment-item:hover {
    border-color: var(--gold);
    background: rgba(201, 169, 98, 0.05);
}

.equipment-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.equipment-icon svg {
    width: 32px;
    height: 32px;
    stroke: var(--gold);
}

.equipment-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.equipment-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--gray);
}

.equipment-value {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--white);
}

/* ============================================
   PORTFOLIO SECTION
   ============================================ */

.portfolio {
    background: var(--black);
}

.portfolio-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 4rem;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.7rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--gray-light);
    border: 1px solid transparent;
    transition: var(--transition-fast);
}

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

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

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

.portfolio-item {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    cursor: pointer;
    background: var(--black-light);
    width: 100%;
    height: 0;
    padding-bottom: 75%; /* 4/3 aspect ratio - plus grand et luxueux */
    transition: transform var(--transition-smooth);
}

.portfolio-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
    will-change: transform;
}

/* Toutes les images ont la même taille et le même ratio */
.portfolio-item.landscape img,
.portfolio-item.portrait img {
    object-fit: cover;
}

.portfolio-item:hover {
    transform: translateY(-5px);
}

.portfolio-item:hover img {
    transform: scale(1.08);
}

.portfolio-item:focus {
    outline: 2px solid var(--gold);
    outline-offset: 4px;
    border-radius: 2px;
}

.portfolio-item:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 4px;
}

.portfolio-item-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.7) 50%, rgba(0,0,0,0) 80%);
    opacity: 0;
    transition: opacity var(--transition-smooth);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 3rem;
}

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

.portfolio-item-title {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 400;
    margin-bottom: 0.75rem;
    letter-spacing: 0.02em;
    transform: translateY(20px);
    transition: transform var(--transition-smooth);
}

.portfolio-item:hover .portfolio-item-title {
    transform: translateY(0);
}

.portfolio-item-category {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--gold);
    font-weight: 300;
    transform: translateY(20px);
    transition: transform var(--transition-smooth) 0.1s;
}

.portfolio-item:hover .portfolio-item-category {
    transform: translateY(0);
}

.loading-placeholder {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem;
    color: var(--gray);
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 2px solid var(--gray-dark);
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.no-photos {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem;
    color: var(--gray);
}

.no-photos p {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-style: italic;
}

/* ============================================
   CONTACT SECTION
   ============================================ */

.contact {
    background: var(--black-soft);
}

.contact-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.contact-info h3 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 300;
    color: var(--gold);
    margin-bottom: 1.5rem;
}

.contact-info > p {
    font-size: 1.1rem;
    font-weight: 300;
    color: var(--gray-light);
    line-height: 1.8;
    margin-bottom: 3rem;
}

.contact-details {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-bottom: 3rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-item svg {
    width: 24px;
    height: 24px;
    stroke: var(--gold);
}

.contact-item span {
    font-size: 0.9rem;
    color: var(--white);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.social-link {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--gray-dark);
    transition: var(--transition-fast);
}

.social-link svg {
    width: 22px;
    height: 22px;
    stroke: var(--gray-light);
    transition: var(--transition-fast);
}

.social-link:hover {
    border-color: var(--gold);
    background: var(--gold);
}

.social-link:hover svg {
    stroke: var(--black);
}

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

.footer {
    background: var(--black);
    padding: 3rem 4rem;
    border-top: 1px solid var(--gray-dark);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: var(--container-max);
    margin: 0 auto;
}

.footer .nav-brand {
    transform: scale(0.8);
    transform-origin: left;
}

.footer-copy {
    font-size: 0.75rem;
    color: var(--gray);
}

/* ============================================
   PHOTO MODAL
   ============================================ */

.photo-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.98);
    display: none;
    opacity: 0;
    transition: opacity var(--transition-smooth);
}

.photo-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.photo-modal.visible {
    opacity: 1;
}

.modal-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--gray-dark);
    transition: var(--transition-fast);
    z-index: 10;
}

.modal-close svg {
    width: 24px;
    height: 24px;
    stroke: var(--white);
}

.modal-close:hover {
    border-color: var(--gold);
    background: var(--gold);
}

.modal-close:hover svg {
    stroke: var(--black);
}

.modal-close:focus,
.modal-nav:focus,
.modal-info-btn:focus {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--gray-dark);
    transition: var(--transition-fast);
    z-index: 10;
}

.modal-nav svg {
    width: 28px;
    height: 28px;
    stroke: var(--white);
}

.modal-nav:hover {
    border-color: var(--gold);
    background: var(--gold);
}

.modal-nav:hover svg {
    stroke: var(--black);
}

.modal-prev {
    left: 2rem;
}

.modal-next {
    right: 2rem;
}

.modal-content {
    display: flex;
    align-items: center;
    gap: 4rem;
    max-width: 90vw;
    max-height: 90vh;
    padding: 2rem;
    overflow: hidden; /* Pas de scroll sur PC */
}

.modal-image-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    max-height: 90vh;
}

.modal-image {
    max-width: 100%;
    max-height: 95vh; /* Plus grande sur PC */
    width: auto;
    height: auto;
    object-fit: contain;
    transition: none !important; /* Pas d'animation lors du changement */
}

.modal-info {
    width: 350px;
    flex-shrink: 0;
    position: relative;
}

/* Cacher les métadonnées par défaut partout */
.modal-meta {
    display: none;
}

/* Bouton info - visible partout */
.modal-info-btn {
    position: absolute;
    top: 0;
    right: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--gray-dark);
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition-fast);
    z-index: 10;
}

.modal-info-btn:hover {
    border-color: var(--gold);
    background: var(--gold);
}

.modal-info-btn svg {
    width: 20px;
    height: 20px;
    stroke: var(--white);
    transition: var(--transition-fast);
}

.modal-info-btn:hover svg {
    stroke: var(--black);
}

/* Popup des métadonnées */
.modal-meta-popup {
    position: absolute;
    top: 60px;
    right: 0;
    width: 280px;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid var(--gray-dark);
    border-radius: 8px;
    padding: 1.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-smooth);
    z-index: 20;
}

.modal-meta-popup.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.modal-meta-popup-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.modal-meta-popup-content .meta-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.modal-meta-popup-content .meta-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--gray);
}

.modal-meta-popup-content .meta-value {
    font-size: 0.9rem;
    color: var(--gold);
}

.modal-title {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 300;
    margin-bottom: 1rem;
}

.modal-description {
    font-size: 0.95rem;
    font-weight: 300;
    color: var(--gray-light);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.modal-meta {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.meta-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--gray);
}

.meta-value {
    font-size: 0.9rem;
    color: var(--gold);
}

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

@media (max-width: 1200px) {
    .about-container {
        grid-template-columns: 1fr 1.2fr;
        gap: 4rem;
    }
    
    .modal-content {
        flex-direction: column;
        gap: 2rem;
        overflow: hidden; /* Pas de scroll */
    }
    
    .modal-image {
        max-height: calc(90vh - 300px); /* Plus de place pour les infos en colonne */
    }
    
    .modal-info {
        width: 100%;
        max-width: 500px;
    }
}

@media (max-width: 992px) {
    section {
        padding: var(--section-padding) 2rem;
    }
    
    .navbar {
        padding: 1.5rem 2rem;
    }
    
    .about-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .about-image {
        position: relative;
        top: 0;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .equipment-grid {
        grid-template-columns: 1fr;
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
        padding: 0 2rem;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 1rem 1.5rem;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--black);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: right var(--transition-smooth);
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-toggle {
        display: flex;
        z-index: 1001;
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
    
    /* S'assurer que la section hero a une hauteur suffisante sur mobile */
    .hero {
        min-height: 100vh;
        height: 100vh;
    }
    
    /* Remonter l'icône de scroll sur mobile */
    .scroll-indicator {
        bottom: 3rem;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }
    
    .portfolio-item {
        padding-bottom: 75%; /* Ratio 4/3 - luxueux */
    }
    
    .portfolio-item img {
        object-fit: cover;
    }
    
    /* Overlay toujours visible sur mobile pour faciliter le clic */
    .portfolio-item-overlay {
        opacity: 0.85;
        padding: 1.5rem;
    }
    
    .portfolio-item-title {
        font-size: 1.2rem;
    }
    
    .portfolio-item-category {
        font-size: 0.7rem;
    }
    
    .portfolio-item:active .portfolio-item-overlay {
        opacity: 1;
    }
    
    .portfolio-item-title,
    .portfolio-item-category {
        transform: translateY(0);
    }
    
    .contact-details {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    
    .photo-modal {
        padding: 0;
        overflow: hidden;
        height: 100dvh; /* Dynamic viewport height pour mobile */
        height: 100vh; /* Fallback */
    }
    
    .modal-nav {
        display: flex; /* Afficher les flèches sur mobile */
        width: 50px;
        height: 50px;
        top: 50%;
        transform: translateY(-50%);
    }
    
    .modal-prev {
        left: 0.5rem;
    }
    
    .modal-next {
        right: 0.5rem;
    }
    
    .modal-nav svg {
        width: 24px;
        height: 24px;
    }
    
    .modal-nav:active {
        background: var(--gold);
        border-color: var(--gold);
    }
    
    .modal-nav:active svg {
        stroke: var(--black);
    }
    
    .modal-content {
        flex-direction: column;
        gap: 0;
        padding: 0;
        max-width: 100vw;
        max-height: 100dvh; /* Dynamic viewport height */
        max-height: 100vh; /* Fallback */
        width: 100vw;
        height: 100dvh; /* Dynamic viewport height */
        height: 100vh; /* Fallback */
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        align-items: stretch;
        justify-content: flex-start;
        scroll-behavior: smooth;
        position: relative;
    }
    
    .modal-image-container {
        width: 100%;
        max-width: 100vw;
        flex: none;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 2.5rem 0 0;
        min-height: 0;
        height: 100dvh; /* Dynamic viewport height */
        height: 100vh; /* Fallback */
        background: var(--black);
        position: relative;
        overflow: hidden;
        touch-action: pan-y pinch-zoom;
        transition: none !important; /* Pas d'animation lors du changement */
    }
    
    .modal-image {
        max-width: 100%;
        width: 100%;
        height: auto;
        object-fit: contain;
        display: block;
        touch-action: pan-y pinch-zoom;
        user-select: none;
        -webkit-user-drag: none;
        transition: none !important; /* Pas d'animation lors du changement */
    }
    
    /* Format PORTRAIT - Photo remplit la page, infos par-dessus en overlay */
    .modal-image-container.portrait {
        height: 100dvh; /* Dynamic viewport height */
        height: 100vh; /* Fallback */
        padding-bottom: 0;
    }
    
    .modal-image-container.portrait ~ .modal-content {
        overflow: hidden;
    }
    
    .modal-content:has(.modal-image-container.portrait) {
        overflow: hidden;
    }
    
    .modal-image-container.portrait .modal-image {
        height: 100dvh; /* Dynamic viewport height */
        height: 100vh; /* Fallback */
        width: 100%;
        object-fit: cover;
        object-position: center;
    }
    
    .modal-image-container.portrait .modal-info {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        padding: 1.5rem 1rem 1rem;
        background: transparent;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        z-index: 5;
        box-sizing: border-box;
        min-height: auto;
    }
    
    .modal-image-container.portrait .modal-title,
    .modal-image-container.portrait .modal-description {
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8), 0 1px 4px rgba(0, 0, 0, 0.6);
        color: var(--white);
    }
    
    .modal-image-container.portrait .modal-info-btn {
        width: 36px;
        height: 36px;
        top: 1rem;
        right: 1rem;
        background: rgba(0, 0, 0, 0.7);
        border: 1px solid rgba(255, 255, 255, 0.3);
    }
    
    .modal-image-container.portrait .modal-info-btn svg {
        width: 18px;
        height: 18px;
    }
    
    .modal-image-container.portrait .modal-info-btn:active {
        background: var(--gold);
        border-color: var(--gold);
    }
    
    .modal-image-container.portrait .modal-info-btn:active svg {
        stroke: var(--black);
    }
    
    .modal-image-container.portrait .modal-meta-popup {
        top: auto;
        bottom: 100px;
        right: 1rem;
        width: calc(100% - 2rem);
        max-width: 280px;
        padding: 1.25rem;
    }
    
    .modal-meta-popup-content {
        gap: 0.75rem;
    }
    
    .modal-meta-popup-content .meta-label {
        font-size: 0.6rem;
    }
    
    .modal-meta-popup-content .meta-value {
        font-size: 0.8rem;
    }
    
    /* Format PAYSAGE - Photo dézoomée pour meilleure visibilité */
    .modal-image-container.landscape {
        height: 65vh;
        min-height: 65vh;
        max-height: 65vh;
        padding-bottom: 0;
        flex: 0 0 auto;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .modal-image-container.landscape .modal-image {
        height: 65vh;
        width: 100%;
        object-fit: contain;
        object-position: center;
    }
    
    /* Infos en dessous pour paysage (quand modal-info est enfant de modal-content) */
    .modal-content > .modal-info {
        position: relative;
        background: var(--black);
        padding: 1rem;
        margin-top: 0;
        flex: 0 0 auto;
    }
    
    .modal-info {
        width: 100%;
        max-width: 100%;
        padding: 0.5rem;
        flex-shrink: 0;
        background: var(--black);
        box-sizing: border-box;
    }
    
    .modal-close {
        top: 0.5rem;
        right: 0.5rem;
        width: 36px;
        height: 36px;
        background: rgba(0, 0, 0, 0.7);
        backdrop-filter: blur(10px);
        z-index: 10;
    }
    
    .modal-close svg {
        width: 16px;
        height: 16px;
    }
    
    .modal-title {
        font-size: 1rem;
        margin-bottom: 0.4rem;
        line-height: 1.2;
        color: var(--white);
    }
    
    .modal-description {
        font-size: 0.7rem;
        margin-bottom: 0.75rem;
        line-height: 1.4;
        color: var(--gray-light);
    }
    
    .modal-meta {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    
    .meta-item {
        padding: 0.2rem 0;
    }
    
    .meta-label {
        font-size: 0.5rem;
        margin-bottom: 0.05rem;
        line-height: 1.2;
        color: var(--gray);
    }
    
    .meta-value {
        font-size: 0.65rem;
        line-height: 1.2;
        color: var(--gold);
    }
    
    /* Style spécifique pour overlay portrait - infos plus visibles */
    .modal-image-container.portrait .modal-title {
        font-size: 1.15rem;
        margin-bottom: 0.6rem;
        color: var(--white);
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
    }
    
    .modal-image-container.portrait .modal-description {
        font-size: 0.8rem;
        margin-bottom: 1rem;
        color: rgba(255, 255, 255, 0.95);
        text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
    }
    
    .modal-image-container.portrait .modal-meta {
        gap: 0.6rem;
    }
    
    .modal-image-container.portrait .meta-label {
        font-size: 0.55rem;
        color: rgba(255, 255, 255, 0.7);
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    }
    
    .modal-image-container.portrait .meta-value {
        font-size: 0.75rem;
        color: var(--gold);
        text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
    }
}

@media (min-width: 1400px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 4rem;
        padding: 0 4rem;
    }
    
    .portfolio-item-overlay {
        padding: 4rem;
    }
    
    .portfolio-item-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    section {
        padding: 60px 1rem;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        padding: 0 0.75rem;
    }
    
    .portfolio-item-overlay {
        padding: 1.5rem;
    }
    
    .portfolio-item-title {
        font-size: 1.15rem;
    }
    
    .portfolio-item-category {
        font-size: 0.65rem;
    }
    
    /* Remonter encore plus l'icône sur petits écrans */
    .scroll-indicator {
        bottom: 3rem;
    }
    
    .modal-image-container {
        padding: 2.5rem 0.5rem 0.1rem;
        min-height: 0;
        max-height: 90vh;
    }
    
    .modal-image {
        max-height: 90vh;
        max-width: 100%;
        width: 100%;
    }
    
    .modal-info {
        padding: 0.5rem;
    }
    
    .modal-title {
        font-size: 0.95rem;
        margin-bottom: 0.25rem;
        line-height: 1.2;
    }
    
    .modal-description {
        font-size: 0.65rem;
        margin-bottom: 0.5rem;
        line-height: 1.3;
    }
    
    .modal-meta {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.25rem;
    }
    
    .meta-item {
        padding: 0.1rem 0;
    }
    
    .meta-label {
        font-size: 0.48rem;
        line-height: 1.1;
    }
    
    .meta-value {
        font-size: 0.6rem;
        line-height: 1.1;
    }
    
    .modal-close {
        top: 0.25rem;
        right: 0.25rem;
        width: 32px;
        height: 32px;
    }
    
    .modal-close svg {
        width: 14px;
        height: 14px;
    }
    
    .modal-info {
        padding: 1rem;
    }
    
    .modal-title {
        font-size: 1.25rem;
        margin-bottom: 0.75rem;
    }
    
    .modal-description {
        font-size: 0.85rem;
        margin-bottom: 1.5rem;
    }
    
    .modal-close {
        top: 0.5rem;
        right: 0.5rem;
        width: 40px;
        height: 40px;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .section-line {
        width: 100%;
    }
    
    .portfolio-filters {
        gap: 0.5rem;
        padding: 0 0.5rem;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .portfolio-filters::-webkit-scrollbar {
        display: none;
    }
    
    .filter-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.7rem;
        white-space: nowrap;
        flex-shrink: 0;
        touch-action: manipulation;
    }
    
    /* Smooth scroll pour toute la page mobile */
    * {
        -webkit-tap-highlight-color: transparent;
    }
    
    /* Améliorer les interactions tactiles */
    button, a, .portfolio-item {
        touch-action: manipulation;
    }
    
    /* Navigation plus fluide */
    .nav-link {
        padding: 0.75rem 0;
    }
    
    /* Sections avec padding optimisé mobile */
    section {
        scroll-margin-top: 80px;
    }
}

/* ============================================
   ANIMATIONS ON SCROLL
   ============================================ */

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Animations spécifiques par élément */
.portfolio-item.reveal {
    transform: translateY(50px) scale(0.95);
}

.portfolio-item.reveal.visible {
    transform: translateY(0) scale(1);
}

.equipment-item.reveal {
    transform: translateX(-20px);
}

.equipment-item.reveal.visible {
    transform: translateX(0);
}

.contact-item.reveal {
    transform: translateX(20px);
}

.contact-item.reveal.visible {
    transform: translateX(0);
}

/* Admin Link (retiré pour sécurité) */
.admin-link {
    display: none !important; /* Complètement caché pour sécurité */
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    background: var(--black-light);
    border: 1px solid var(--gray-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.3;
    transition: var(--transition-fast);
    z-index: 100;
}

.admin-link:hover {
    opacity: 1;
    border-color: var(--gold);
}

.admin-link svg {
    width: 18px;
    height: 18px;
    stroke: var(--gray);
}

.admin-link:hover svg {
    stroke: var(--gold);
}

