@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap');

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

body {
    background-color: #0a0a0c;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    padding: 0;
    min-height: 100vh;
    color: #F5F5F5;
    overflow-x: hidden;
}

/* Header fixe */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    background: rgba(10, 10, 12, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 100;
    border-bottom: 1px solid rgba(255, 184, 28, 0.1);
    opacity: 0;
    animation: fadeInDown 0.8s ease-out forwards;
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
    text-align: center;
}

.site-title {
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 3px;
    color: #F5F5F5;
    text-transform: uppercase;
    opacity: 0.9;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 100px 5% 60px;
}

h1 {
    color: #F5F5F5;
    text-align: center;
    font-size: 3.5rem;
    font-weight: 300;
    letter-spacing: 12px;
    margin-bottom: 60px;
    padding: 40px 0;
    text-transform: uppercase;
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.3s forwards;
    position: relative;
}

h1::after {
    content: '';
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #FFB81C, transparent);
    opacity: 0;
    animation: fadeIn 1s ease-out 1s forwards;
}

.gallery {
    column-count: 4;
    column-gap: 14px;
    opacity: 0;
    animation: fadeIn 0.8s ease-out 0.6s forwards;
}

.gallery-item {
    break-inside: avoid;
    margin-bottom: 14px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
    border-radius: 4px;
}

.gallery-item:nth-child(1) { animation-delay: 0.1s; }
.gallery-item:nth-child(2) { animation-delay: 0.15s; }
.gallery-item:nth-child(3) { animation-delay: 0.2s; }
.gallery-item:nth-child(4) { animation-delay: 0.25s; }
.gallery-item:nth-child(5) { animation-delay: 0.3s; }
.gallery-item:nth-child(6) { animation-delay: 0.35s; }
.gallery-item:nth-child(7) { animation-delay: 0.4s; }
.gallery-item:nth-child(8) { animation-delay: 0.45s; }
.gallery-item:nth-child(n+9) { animation-delay: 0.5s; }

.gallery-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(5, 5, 6, 0.97);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 40px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    display: flex;
    animation: fadeIn 0.3s ease forwards;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    position: relative;
    animation: zoomIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.lightbox-content img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.8),
        0 0 40px rgba(255, 184, 28, 0.1);
}

.lightbox-close {
    position: fixed;
    top: 30px;
    right: 30px;
    font-size: 32px;
    color: #F5F5F5;
    cursor: pointer;
    z-index: 1001;
    background: rgba(10, 10, 12, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1px solid rgba(255, 184, 28, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-weight: 300;
}

.lightbox-close:hover {
    background: rgba(255, 184, 28, 0.15);
    border-color: rgba(255, 184, 28, 0.5);
    transform: rotate(90deg);
}

.lightbox-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    font-size: 28px;
    color: #F5F5F5;
    cursor: pointer;
    background: rgba(10, 10, 12, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1px solid rgba(255, 184, 28, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    user-select: none;
    font-weight: 300;
}

.lightbox-nav:hover {
    background: rgba(255, 184, 28, 0.15);
    border-color: rgba(255, 184, 28, 0.5);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
    left: 30px;
}

.lightbox-next {
    right: 30px;
}

.loading {
    text-align: center;
    color: #888;
    padding: 60px 20px;
    font-size: 1.1rem;
    font-weight: 300;
    letter-spacing: 1px;
}

/* Footer */
.footer {
    text-align: center;
    padding: 40px 20px;
    color: rgba(245, 245, 245, 0.5);
    font-size: 0.85rem;
    font-weight: 300;
    letter-spacing: 1px;
    border-top: 1px solid rgba(255, 184, 28, 0.1);
    margin-top: 60px;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

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

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Responsive */
@media (max-width: 1200px) {
    .gallery {
        column-count: 3;
    }
    
    h1 {
        font-size: 2.8rem;
        letter-spacing: 8px;
    }
}

@media (max-width: 768px) {
    .gallery {
        column-count: 2;
        column-gap: 10px;
    }

    .gallery-item {
        margin-bottom: 10px;
    }

    h1 {
        font-size: 2rem;
        letter-spacing: 6px;
        margin-bottom: 40px;
    }

    .container {
        padding: 80px 4% 40px;
    }

    .header {
        padding: 15px 0;
    }

    .site-title {
        font-size: 0.85rem;
        letter-spacing: 2px;
    }

    .footer {
        font-size: 0.75rem;
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    .gallery {
        column-count: 2;
        column-gap: 8px;
    }

    .gallery-item {
        margin-bottom: 8px;
    }

    h1 {
        font-size: 1.5rem;
        letter-spacing: 4px;
        padding: 30px 0;
    }

    .lightbox {
        padding: 20px;
    }

    .lightbox-nav {
        font-size: 24px;
        width: 44px;
        height: 44px;
    }

    .lightbox-close {
        font-size: 28px;
        width: 44px;
        height: 44px;
        top: 20px;
        right: 20px;
    }

    .lightbox-prev {
        left: 20px;
    }

    .lightbox-next {
        right: 20px;
    }

    .container {
        padding: 70px 4% 30px;
    }
}
