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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
    background: #fff;
    color: #000;
    line-height: 1.5;
    overflow-x: hidden;
}

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

/* Navigation */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-logo {
    font-size: 16px;
    font-weight: 400;
    position: relative;
    transition: color 0.3s ease;
}

.nav-close {
    font-size: 16px;
    position: relative;
    transition: color 0.3s ease;
}

/* Ligne verte fluo au survol */
.nav-logo::after,
.nav-close::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #00ff00;
    transition: width 0.3s ease;
}

.nav-logo:hover::after,
.nav-close:hover::after {
    width: 100%;
}

/* Container 2 colonnes */
.project-container {
    display: flex;
    min-height: 100vh;
    padding-top: 80px;
}

/* Sidebar Gauche - Fixe */
.project-sidebar {
    position: sticky;
    top: 80px;
    width: 40%;
    max-width: 600px;
    height: calc(100vh - 80px);
    padding: 60px 40px;
    display: flex;
    align-items: flex-start;
    overflow-y: auto;
}

.sidebar-content {
    width: 100%;
}

.project-title {
    font-size: clamp(40px, 6vw, 80px);
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: 30px;
}

.project-description {
    font-size: clamp(14px, 1.5vw, 18px);
    line-height: 1.6;
    margin-bottom: 40px;
    opacity: 0.8;
}

.project-link {
    display: inline-block;
    font-size: 16px;
    margin: 30px 0;
    position: relative;
    transition: color 0.3s ease;
}

.project-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #00ff00;
    transition: width 0.3s ease;
}

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

/* Métadonnées du projet */
.project-meta {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.meta-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.5;
}

.meta-value {
    font-size: 14px;
    font-weight: 400;
}

/* Galerie Droite - Scroll */
.project-gallery {
    flex: 1;
    padding: 60px 40px 60px 20px;
}
.gallery-item {
    margin-bottom: 0px;
    width: 100%;
}
.gallery-item:last-child {
    margin-bottom: 0;
}

.gallery-item img,
.gallery-item video {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
}

.gallery-video video {
    max-height: 80vh;
    object-fit: cover;
}


.page-piscine .gallery-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Footer */
.project-footer {
    background: #fff;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 40px 40px;
}

.back-link {
    display: inline-block;
    font-size: 16px;
    margin-bottom: 40px;
    position: relative;
    transition: color 0.3s ease;
}

.back-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #00ff00;
    transition: width 0.3s ease;
}

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

.footer-contact {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 60px;
    margin-bottom: 60px;
}

.contact-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-col h3 {
    font-size: 14px;
    font-weight: 400;
    opacity: 0.5;
    margin-bottom: 8px;
}

.contact-col a {
    font-size: 16px;
    transition: opacity 0.3s ease;
}

.contact-col a:hover {
    opacity: 0.6;
}

.copyright {
    font-size: 14px;
    opacity: 0.6;
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* Responsive */
@media (max-width: 1024px) {
    .project-container {
        flex-direction: column;
    }
    
    .project-sidebar {
        position: relative;
        top: 0;
        width: 100%;
        max-width: 100%;
        height: auto;
        padding: 40px 30px;
    }
    
    .project-gallery {
        padding: 40px 30px;
    }
    
    .footer-contact {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .main-nav {
        padding: 15px 20px;
    }
    
    .project-container {
        padding-top: 60px;
    }
    
    .project-sidebar {
        padding: 30px 20px;
    }
    
    .project-title {
        font-size: clamp(30px, 10vw, 60px);
    }
    
    .project-gallery {
        padding: 30px 20px;
    }
    
    .gallery-item {
        margin-bottom: 50px;
    }
    
    .footer-content {
        padding: 40px 20px 30px;
    }
}


