img {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}
/* Reset et bases */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #1a1a1a;
    color: #ffffff;
    line-height: 1.6;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background-color: rgba(26, 26, 26, 0.534);
    backdrop-filter: blur(10px);
    z-index: 1000;
}

.nav-left,
.nav-right {
    flex: 0; /* taille automatique selon le contenu */
}

/* Masque la section centrale si elle existe encore */
.nav-center {
    display: none;
}

.nav-link {
    color: #ffffff;
    text-decoration: none;
    margin-right: 30px;
    font-size: 16px;
    font-weight: 500;
    transition: opacity 0.3s;
}

/* Logo dans la barre de navigation */
.logo {
    /* Augmenté de 100% supplémentaire (actuellement 60px → 120px) */
    height: 120px;
    max-width: 360px;
    object-fit: contain;
}

/* Taille réduite de 100% sur petits écrans (smartphones) */
@media (max-width: 600px) {
    .logo {
        /* augmenté de 35% par rapport à 60px → ≈81px */
        height: 81px;
        max-width: 243px;
    }

    /* Espacement plus important entre les liens de nav */
    .nav-right .nav-link {
        margin-right: 10px; /* écarte work et contact */
    }

    .navbar {
        padding: 10px 15px;
    }

    .hero {
        height: auto;
        min-height: 100vh;
        padding: 90px 15px 60px;
    }

    .hero-title {
        font-size: 32px;
        margin-bottom: 10px;
    }

    .hero-subtitle {
        font-size: 14px;
        display: block !important;
    }

    .hero-description {
        font-size: 15px;
        line-height: 1.6;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        margin-top: 15px;
        margin-bottom: 30px;
    }

    .gallery {
        margin: 0 auto;
        padding: 40px 15px;
    }
}

.nav-link:hover {
    opacity: 0.7;
}

.site-title {
    font-size: 20px;
    font-weight: 600;
    color: #ffffff;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* pousse le contenu vers le haut */
    align-items: center;
    text-align: center;
    padding: 200px 20px 20px; /* espace supérieur pour compenser */
}


.hero-title {
    font-size: clamp(40px, 8vw, 80px);
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 20px;
    letter-spacing: -2px;
    transform-origin: center;
    transition: opacity 0.1s ease, transform 0.1s ease;
}

.hero-subtitle {
    font-size: 18px;
    color: #666666;
    font-weight: 300;
}

.hero-description {
    font-size: 25px;
    color: #ffffff;
    font-weight: 300;
    max-width: 900px;
    margin-top: 15px;
    line-height: 1.8;
}

/* Gallery Section */
.gallery {
    padding: 40px;
    max-width: 1400px;
    margin: -500px auto 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    grid-auto-flow: dense;
    /* permet de centrer le dernier élément quand la dernière rangée n'est pas complète */
}


.gallery-grid .gallery-item {
    position: relative;
    cursor: pointer;
    text-decoration: none;
    opacity: 0;
    display: block;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
}

.gallery-grid .gallery-item.visible {
    opacity: 1;
}

.gallery-grid .gallery-item:hover {
    transform: scale(1.05);
    z-index: 10;
}

.gallery-item-inner {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 12px;
    display: block;
}

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

/* Contact Section */
.contact {
    padding: 100px 40px;
    text-align: center;
    background-color: #111;
}

.contact h2 {
    font-size: 32px;
    margin-bottom: 20px;
}

.contact p {
    color: #999;
    font-size: 18px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #1a1a1a;
    color: #ffffff;
    font-size: 24px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: #999;
    transform: scale(1.1);
}

/* Responsive */
@media (max-width: 1000px) {
    .navbar {
        padding: 15px 20px;
    }

    .nav-link {
        margin-right: 15px;
        font-size: 14px;
    }

    .site-title {
        font-size: 16px;
    }

    .gallery {
        padding: 20px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Animation au scroll */
.fade-in {
    opacity: 0;
    transition: opacity 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
}

/* Overlay au survol */
.album-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    padding: 30px 20px 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .album-overlay {
    transform: translateY(0);
}

.album-overlay h3 {
    color: white;
    font-size: 20px;
    margin-bottom: 5px;
    font-weight: 600;
}

.album-overlay p {
    color: #ccc;
    font-size: 14px;
}

/* Album Header */
.album-header {
    padding: 150px 40px 60px;
    text-align: center;
    background-color: #111;
    position: relative;
    z-index: 1;
}

.album-header h2 {
    font-size: 48px;
    margin-bottom: 10px;
    color: #fff;
    display: block;
}

.album-header p {
    color: #999;
    font-size: 18px;
    display: block;
    margin-top: 10px;
    min-height: auto;
}

/* Album Gallery */
.album-gallery {
    padding: 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.album-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    grid-auto-flow: dense;
}

.album-photo {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    border-radius: 12px;
}

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

.album-photo:hover {
    transform: scale(1.05);
    z-index: 10;
}

.album-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Back to home link */
.back-home {
    display: inline-block;
    margin-top: 30px;
    color: #999;
    text-decoration: none;
    transition: color 0.3s;
}

.back-home:hover {
    color: #fff;
}

/* Responsive albums */
@media (max-width: 1000px) {
    .album-header {
        padding: 120px 20px 40px;
    }

    .album-header h2 {
        font-size: 32px;
    }

    .album-gallery {
        padding: 20px;
    }

    .album-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-grid {
        grid-template-columns: repeat(1, 1fr);
    }

    .gallery {
        margin: 0 auto;
        padding: 40px 20px;
    }
}

/* Mobile - ensure description is visible */
@media (max-width: 600px) {
    .album-header {
        padding: 140px 15px 30px;
        position: relative;
        z-index: 1001;
    }

    .album-header h2 {
        font-size: 24px;
        margin-bottom: 15px;
        display: block;
    }

    .album-header p {
        font-size: 14px;
        line-height: 1.6;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        margin-top: 10px;
        margin-bottom: 15px;
        min-height: 20px;
    }

    .album-gallery {
        padding: 10px;
        position: relative;
        z-index: 1;
    }

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

    .gallery {
        margin: 0 auto !important;
        padding: 40px 15px !important;
    }
}

/* Lightbox loading indicator */
.lightbox-loading {
    position: absolute;
    color: white;
    font-size: 16px;
    z-index: -1;
}
