/* Design System & Variables (Style Apple) */
:root {
    --bg-color: #000000;
    --surface-color: #0b0b0c;
    --border-color: #1d1d1f;
    --text-primary: #ffffff;
    --text-secondary: #86868b;
    --text-muted: #515154;
    --accent-color: #ffffff;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    
    --transition-smooth: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.3s ease;
    
    --grid-gap: 3rem;
}

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

html {
    scroll-behavior: smooth;
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-family);
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

/* Scrollbar Styles */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-color);
}
::-webkit-scrollbar-thumb {
    background: #333336;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #444448;
}

/* Typography */
h1, h2, h3 {
    font-weight: 700;
    letter-spacing: -0.02em;
}

p {
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-secondary);
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

/* Layout Containers */
.section-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 8rem 4rem;
}

/* Navigation Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    border-bottom: 1px solid transparent;
    transition: var(--transition-fast);
}

.site-header.scrolled {
    background-color: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
}

.header-container {
    position: relative;
    max-width: 100%;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.logo-link {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    align-items: center;
}

.logo-img {
    height: 44px;
    width: auto;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
    opacity: 0.9;
}

.logo-link:hover .logo-img {
    transform: scale(1.03);
    opacity: 1;
}

.main-nav {
    display: flex;
    gap: 3rem;
}

.nav-link {
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--text-secondary);
    letter-spacing: 0.05em;
}

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

/* Menu Burger Mobile */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    z-index: 110;
}

.burger-bar {
    width: 20px;
    height: 1px;
    background-color: var(--text-primary);
    transition: var(--transition-fast);
}

/* Mobile Menu Overlay */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--bg-color);
    z-index: 90;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-fast);
}

.mobile-menu.active {
    opacity: 1;
    pointer-events: auto;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
}

.mobile-link {
    font-size: 2rem;
    font-weight: 300;
    color: var(--text-secondary);
}

.mobile-link:hover {
    color: var(--text-primary);
}

/* Hero Section */
.hero-section {
    position: relative;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 8rem;
    overflow: hidden;
}

.hero-bg-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: slowZoom 20s ease-out forwards;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.85) 100%);
}

.hero-content-container {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-title {
    font-size: 4.5rem;
    line-height: 1.05;
    margin-bottom: 1.5rem;
    max-width: 600px;
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 300;
    max-width: 500px;
    margin-bottom: 2.5rem;
    color: var(--text-secondary);
}

.hero-cta-wrapper {
    display: flex;
    gap: 1.5rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.9rem 2.2rem;
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 30px;
    transition: var(--transition-fast);
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--bg-color);
}

.btn-primary:hover {
    background-color: #e5e5ea;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    border-color: var(--accent-color);
    background-color: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.scroll-arrow {
    display: block;
    width: 10px;
    height: 10px;
    border-bottom: 1.5px solid var(--text-secondary);
    border-right: 1.5px solid var(--text-secondary);
    transform: rotate(45deg);
    animation: bounceScroll 2s infinite;
}

/* Portfolio Section */
.portfolio-section {
    background-color: var(--bg-color);
    position: relative;
    border-top: 1px solid var(--border-color);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 5rem;
    color: var(--text-primary);
}

/* Asymmetric Grid Layout */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-gap: var(--grid-gap);
}

.portfolio-item {
    position: relative;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.item-img-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
    background-color: #0c0c0e;
}

.portfolio-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.item-overlay {
    display: none;
}

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

.item-details {
    margin-top: 1.5rem;
    transition: var(--transition-fast);
}

.item-number {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    display: block;
    margin-bottom: 0.5rem;
}

.item-title {
    font-size: 1.4rem;
    font-weight: 500;
    margin-bottom: 0.4rem;
    color: var(--text-primary);
}

.item-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Asymmetric Grid Spacing & Aspect Ratios */
/* Block 1: Large Vertical (Editorial/Mode) */
.item-large {
    grid-column: 1 / 7;
}
.item-large .item-img-wrapper {
    aspect-ratio: 4 / 5;
}

/* Block 2: Wide Horizontal (Corporate) */
.item-wide {
    grid-column: 7 / 13;
    align-self: flex-start;
}
.item-wide .item-img-wrapper {
    aspect-ratio: 16 / 10;
}

/* Block 3: Square (Storytelling) */
.item-square {
    grid-column: 7 / 12;
    margin-top: 2rem;
}
.item-square .item-img-wrapper {
    aspect-ratio: 1 / 1;
}

/* About Section */
.about-section {
    background-color: var(--surface-color);
    border-top: 1px solid var(--border-color);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-gap: var(--grid-gap);
    align-items: flex-start;
}

.about-label {
    grid-column: 1 / 4;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--text-muted);
}

.about-content {
    grid-column: 4 / 9;
}

.about-text-large {
    font-size: 2.2rem;
    line-height: 1.35;
    font-weight: 400;
    color: var(--text-primary);
    margin-bottom: 2rem;
    max-width: 100%;
}

.about-text-small {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-secondary);
    max-width: 100%;
}

.about-photo-container {
    grid-column: 9 / 13;
    width: 100%;
}

.about-photo-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 8px;
    background-color: var(--border-color);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.about-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), filter 0.8s ease;
    filter: grayscale(15%) contrast(102%);
}

.about-photo-wrapper:hover .about-photo {
    transform: scale(1.03);
    filter: grayscale(0%) contrast(100%);
}

@media (max-width: 768px) {
    .about-grid {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .about-text-large {
        font-size: 1.6rem;
    }
    
    .about-text-small {
        font-size: 1rem;
    }
}

/* Site Footer / Contact Section */
.site-footer {
    background-color: var(--surface-color);
    border-top: 1px solid var(--border-color);
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 8rem 4rem 3rem 4rem;
    display: flex;
    flex-direction: column;
}

.footer-heading {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 4rem;
    max-width: 700px;
}

.footer-middle {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 6rem;
    align-items: start;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    margin-bottom: 0;
}

.contact-map {
    width: 100%;
    height: 380px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    background-color: var(--surface-color);
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
    filter: grayscale(1) invert(0.9) contrast(1.2);
    opacity: 0.8;
    transition: var(--transition-fast);
}

.contact-map iframe:hover {
    filter: grayscale(0.5) invert(0.9) contrast(1.1);
    opacity: 1;
}

.contact-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.contact-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    text-transform: uppercase;
}

.contact-link-val {
    font-size: 1.8rem;
    font-weight: 300;
    color: var(--text-primary);
    display: inline-block;
    width: fit-content;
}

.contact-link-val:hover {
    color: var(--text-secondary);
    transform: translateX(5px);
}

/* Footer Bottom */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding-top: 2.5rem;
}

.footer-logo {
    display: flex;
    align-items: center;
}

.footer-logo .logo-img {
    height: 32px;
    width: auto;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
    opacity: 0.8;
}

.footer-logo:hover .logo-img {
    transform: scale(1.03);
    opacity: 1;
}

.copyright {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.admin-link {
    color: var(--text-muted);
    transition: var(--transition-fast);
    text-decoration: none;
}

.admin-link:hover {
    color: var(--text-primary);
}

/* Animations & Reveal on Scroll */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

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

@keyframes slowZoom {
    0% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes bounceScroll {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) rotate(45deg);
    }
    40% {
        transform: translateY(-8px) rotate(45deg);
    }
    60% {
        transform: translateY(-4px) rotate(45deg);
    }
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
    .section-container {
        padding: 6rem 2rem;
    }
    
    .header-container {
        padding: 1.5rem 2rem;
    }
    
    .hero-section {
        padding: 0 2rem;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .portfolio-grid {
        grid-gap: 2rem;
    }
    
    .item-large {
        grid-column: 1 / 7;
    }
    
    .item-wide {
        grid-column: 7 / 13;
    }
    
    .item-square {
        grid-column: 7 / 13;
        margin-top: 0;
    }
    
    .footer-container {
        padding: 6rem 2rem 2rem 2rem;
    }
    
    .footer-heading {
        font-size: 2.8rem;
    }

    .footer-middle {
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    /* Active Mobile Menu State */
    .menu-toggle.active .burger-bar:nth-child(1) {
        transform: translateY(3.5px) rotate(45deg);
    }
    
    .menu-toggle.active .burger-bar:nth-child(2) {
        transform: translateY(-3.5px) rotate(-45deg);
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-cta-wrapper {
        flex-direction: column;
        gap: 1rem;
    }
    
    .btn {
        width: 100%;
        text-align: center;
    }
    
    .portfolio-grid {
        display: flex;
        flex-direction: column;
        gap: 3rem;
    }
    
    .item-large, .item-wide, .item-square {
        width: 100%;
        margin-top: 0;
    }
    
    .item-large .item-img-wrapper,
    .item-wide .item-img-wrapper,
    .item-square .item-img-wrapper {
        aspect-ratio: 4 / 5;
    }
    
    .footer-heading {
        font-size: 2.2rem;
    }
    
    .contact-link-val {
        font-size: 1.35rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .footer-middle {
        display: flex;
        flex-direction: column;
        gap: 3rem;
    }

    .contact-map {
        height: 280px;
    }
}

/* Gallery Modal Styles */
.gallery-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.98);
    z-index: 200;
    opacity: 0;
    pointer-events: none;
    overflow-y: auto;
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 6rem 4rem;
}

.gallery-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.gallery-modal-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

.gallery-close {
    position: fixed;
    top: 2rem;
    right: 4rem;
    background: none;
    border: none;
    font-size: 3.5rem;
    font-weight: 200;
    color: var(--text-primary);
    cursor: pointer;
    z-index: 210;
    transition: var(--transition-fast);
    line-height: 1;
}

.gallery-close:hover {
    opacity: 0.7;
    transform: scale(1.1);
}

.gallery-modal-header {
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 2rem;
}

.gallery-category-num {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    display: block;
    margin-bottom: 0.5rem;
}

.gallery-modal-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* Responsive Masonry Grid */
.gallery-masonry {
    column-count: 3;
    column-gap: 1.5rem;
    width: 100%;
}

.gallery-img-wrapper {
    break-inside: avoid;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    overflow: hidden;
    background-color: #0c0c0e;
    position: relative;
    cursor: pointer;
}

.gallery-img-wrapper img {
    width: 100%;
    display: block;
    height: auto;
    transition: var(--transition-smooth);
}

.gallery-img-wrapper:hover img {
    transform: scale(1.02);
}

@media (max-width: 1024px) {
    .gallery-masonry {
        column-count: 2;
    }
    
    .gallery-close {
        right: 2rem;
    }
}

@media (max-width: 768px) {
    .gallery-modal {
        padding: 5rem 2rem;
    }
    
    .gallery-close {
        top: 1rem;
        right: 1.5rem;
        font-size: 2.8rem;
    }
    
    .gallery-modal-title {
        font-size: 2.2rem;
    }
    
    .gallery-masonry {
        column-count: 1;
        column-gap: 0;
    }
}



/* Animation de révélation améliorée (avec échelle et délai) */
.reveal {
    opacity: 0;
    transform: translateY(40px) scale(0.98);
    transition: opacity 1.4s cubic-bezier(0.16, 1, 0.3, 1), transform 1.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Staggered Reveals for Grid Items */
.portfolio-grid .portfolio-item:nth-child(1) {
    transition-delay: 0.1s;
}

.portfolio-grid .portfolio-item:nth-child(2) {
    transition-delay: 0.25s;
}

.portfolio-grid .portfolio-item:nth-child(3) {
    transition-delay: 0.4s;
}

/* Hero elements reveal animations */
.hero-title.reveal {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    transform: translateY(50px);
}

.hero-title.reveal.active {
    transform: translateY(0);
}

.hero-subtitle.reveal {
    transition-delay: 0.15s;
}

.hero-cta-wrapper.reveal {
    transition-delay: 0.3s;
}

/* Hero Slideshow Transitions and Animations */
.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.08);
    transition: opacity 1.5s ease-in-out, transform 8s ease-out;
}

.hero-slide.active {
    opacity: 1;
    transform: scale(1.01);
}

/* Adaptation du logo sur les très petits écrans */
@media (max-width: 480px) {
    .logo-text {
        font-size: 1.15rem;
        letter-spacing: 0.15em;
    }
}

/* ==========================================
   PREMIUM 3D ANIMATIONS & EFFECTS
   ========================================== */

/* Particules flottantes dans le Hero */
.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: floatParticle linear infinite;
}

.particle:nth-child(odd) {
    background: rgba(255, 255, 255, 0.15);
    width: 3px;
    height: 3px;
}

@keyframes floatParticle {
    0% {
        transform: translateY(100vh) translateX(0) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
        transform: translateY(80vh) translateX(10px) scale(1);
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(-10vh) translateX(-20px) scale(0.5);
        opacity: 0;
    }
}

/* Curseur magnétique premium */
.magnetic-cursor {
    position: fixed;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                height 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                background 0.3s,
                border 0.3s,
                mix-blend-mode 0.3s;
    mix-blend-mode: difference;
}

.magnetic-cursor.hover {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.25);
    mix-blend-mode: normal;
}

.magnetic-cursor-trail {
    position: fixed;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.08);
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1),
                height 0.6s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.4s,
                border 0.3s;
}

.magnetic-cursor-trail.hover {
    width: 64px;
    height: 64px;
    border-color: rgba(255, 255, 255, 0.15);
}

/* Effet 3D Tilt sur les items du Portfolio */
.portfolio-item {
    perspective: 800px;
    transform-style: preserve-3d;
}

.portfolio-item .item-img-wrapper {
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio-item:hover .item-img-wrapper {
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5),
                0 10px 25px rgba(0, 0, 0, 0.3);
}

/* Ligne de lumière animée (light streak) sur les cards */
.portfolio-item .item-img-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.04), transparent);
    transform: skewX(-15deg);
    transition: left 0.8s ease;
    pointer-events: none;
    z-index: 2;
}

.portfolio-item:hover .item-img-wrapper::after {
    left: 150%;
}

/* Animated gradient border on hero CTA buttons */
.btn-primary {
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.6s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

/* Section title avec ligne animée */
.section-title::after {
    content: '';
    display: block;
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, var(--accent-color), transparent);
    margin-top: 1rem;
    transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.section-title.reveal.active::after {
    width: 80px;
}

/* Smooth text reveal character by character (CSS-only approximation) */
.hero-title.reveal {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    transform: translateY(50px);
}

.hero-title.reveal.active {
    transform: translateY(0);
}

/* Animated noise texture overlay (subtle grain effect) */
.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    pointer-events: none;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 200px;
}

/* Smooth scroll progress bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-color), rgba(255,255,255,0.3));
    z-index: 1000;
    transform-origin: left;
    transition: none;
}

/* About section : ligne verticale animée */
.about-label::before {
    content: '';
    display: block;
    width: 1px;
    height: 0;
    background: var(--text-muted);
    margin-bottom: 0.8rem;
    transition: height 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.about-label.reveal.active::before {
    height: 30px;
}

/* Footer heading : text gradient shimmer */
.footer-heading {
    background: linear-gradient(90deg, var(--text-primary) 0%, var(--text-secondary) 50%, var(--text-primary) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmerText 4s linear infinite;
}

@keyframes shimmerText {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

/* Image reveal from bottom with clip-path */
@keyframes clipReveal {
    from {
        clip-path: inset(100% 0 0 0);
    }
    to {
        clip-path: inset(0 0 0 0);
    }
}

.gallery-img-wrapper {
    animation: clipReveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.gallery-masonry .gallery-img-wrapper:nth-child(1) { animation-delay: 0s; }
.gallery-masonry .gallery-img-wrapper:nth-child(2) { animation-delay: 0.1s; }
.gallery-masonry .gallery-img-wrapper:nth-child(3) { animation-delay: 0.2s; }
.gallery-masonry .gallery-img-wrapper:nth-child(4) { animation-delay: 0.3s; }
.gallery-masonry .gallery-img-wrapper:nth-child(5) { animation-delay: 0.4s; }
.gallery-masonry .gallery-img-wrapper:nth-child(6) { animation-delay: 0.5s; }
.gallery-masonry .gallery-img-wrapper:nth-child(7) { animation-delay: 0.6s; }
.gallery-masonry .gallery-img-wrapper:nth-child(8) { animation-delay: 0.7s; }
.gallery-masonry .gallery-img-wrapper:nth-child(9) { animation-delay: 0.8s; }

/* Lien admin footer : animation de soulignement */
.admin-link {
    position: relative;
}

.admin-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--text-primary);
    transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Contact items : hover slide effect */
.contact-item {
    transform: translateX(0);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.contact-item:hover {
    transform: translateX(8px);
}

.portfolio-item .item-img-wrapper {
    background: linear-gradient(135deg, #0c0c0e, #141416);
}

/* Nav links : effet de soulignement progressif */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    width: 0;
    height: 1px;
    background: var(--text-primary);
    transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1), left 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Lightbox Modal for Individual Photos */
.lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.5s;
}

.lightbox-modal.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    transform: scale(0.97);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.lightbox-modal.active .lightbox-content img {
    transform: scale(1);
}

/* Lightbox Navigation Buttons */
.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 3rem;
    background: none;
    border: none;
    font-size: 3rem;
    font-weight: 200;
    color: #ffffff;
    cursor: pointer;
    z-index: 1010;
    transition: opacity 0.3s, transform 0.3s;
    line-height: 1;
}

.lightbox-close:hover {
    opacity: 0.7;
    transform: scale(1.1);
}

.lightbox-prev, .lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(5px);
    color: #ffffff;
    font-size: 1.5rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 1010;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s, border-color 0.3s, transform 0.3s;
}

.lightbox-prev:hover, .lightbox-next:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-50%) scale(1.05);
}

.lightbox-prev {
    left: 3rem;
}

.lightbox-next {
    right: 3rem;
}

.lightbox-caption {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text-secondary);
    letter-spacing: 0.05em;
    text-align: center;
    max-width: 80%;
}

@media (max-width: 768px) {
    .lightbox-prev {
        left: 1rem;
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
    .lightbox-next {
        right: 1rem;
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
    .lightbox-close {
        top: 1.5rem;
        right: 1.5rem;
        font-size: 2.5rem;
    }
}
