/* Shared styles for Jules Vannier website */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #e2e8f0;
    background: #111827;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Navigation */
nav {
    padding: 20px 0;
    border-bottom: 1px solid #4b5563;
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: #f1f5f9;
    text-decoration: none;
    margin-bottom: 2px;
}

.nav-subtitle {
    font-size: 0.9rem;
    color: #9ca3af;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #f1f5f9;
}

.nav-links a.current {
    color: #f1f5f9;
    font-weight: 500;
}

/* Hero/Header sections */
.hero {
    padding: 40px 0 20px 0;
    display: flex;
    justify-content: center;
}

.hero .description {
    font-size: 1.1rem;
    max-width: 800px;
    color: #f1f5f9;
    text-align: left;
    line-height: 1.7;
}

.projects-header {
    padding: 40px 0 20px 0;
    display: flex;
    justify-content: center;
}

.projects-header .description {
    font-size: 1.1rem;
    max-width: 800px;
    color: #f1f5f9;
    text-align: left;
    line-height: 1.7;
}

.project-header {
    padding: 40px 0 20px 0;
    text-align: center;
}

.project-header h1 {
    font-size: 3rem;
    font-weight: bold;
    color: #f1f5f9;
    margin-bottom: 20px;
}

.header-image {
    text-align: center;
    margin-top: 20px;
}

.header-image img {
    max-width: 100%;
    max-height: 400px;
    height: auto;
    border: 1px solid #4b5563;
}

/* Gallery styles */
.gallery {
    padding: 20px 0 80px 0;
}

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

.gallery-item {
    aspect-ratio: 16/9;
    overflow: hidden;
    border: 1px solid #4b5563;
}

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

/* Projects styles */
.projects-section {
    padding: 20px 0 80px 0;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.project-card {
    background: #1f2937;
    overflow: hidden;
    border: 1px solid #374151;
    display: block;
    text-decoration: none;
    color: inherit;
}

.project-image {
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-content {
    padding: 24px;
}

.project-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #f1f5f9;
    margin-bottom: 12px;
}

.project-description {
    color: #d1d5db;
    font-size: 1rem;
    line-height: 1.6;
}

/* Content styles for project pages */
.project-content-page {
    padding: 20px 0 80px 0;
}

.content-section {
    margin-bottom: 40px;
}

.content-text {
    font-size: 1.1rem;
    color: #e2e8f0;
    line-height: 1.7;
    margin-bottom: 30px;
}

.content-text strong {
    color: #f1f5f9;
    font-weight: 600;
}

.content-image {
    margin: 40px 0;
    text-align: center;
}

.content-image img {
    max-width: 100%;
    height: auto;
    border: 1px solid #4b5563;
}

/* YouTube video container */
.content-video {
    margin: 40px 0;
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
}

.content-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 1px solid #4b5563;
}

/* Image with caption container */
.image-with-caption {
    text-align: center;
}

.image-with-caption img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: contain;
    border: 1px solid #4b5563;
    margin-bottom: 8px;
    background: #1f2937;
}

.image-caption {
    font-size: 0.9rem;
    color: #9ca3af;
    font-style: italic;
}

/* Multiple images in content-image - grid layout */
.content-image:has(.image-with-caption) {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    text-align: left;
}

.content-image:has(img + img):not(:has(.image-with-caption)) {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    text-align: left;
}

.content-image:has(img + img):not(:has(.image-with-caption)) img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: contain;
    background: #1f2937;
}

@media (max-width: 768px) {
    .content-image:has(.image-with-caption) {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .content-image:has(img + img):not(:has(.image-with-caption)) {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

.coming-soon {
    font-size: 1.2rem;
    color: #9ca3af;
    text-align: center;
}

.content-list {
    margin: 0px 0;
    padding-left: 15px;
}

.content-link {
    color: #60a5fa;
    text-decoration: underline;
}

.content-link:visited {
    color: #a78bfa;
}

.content-link:hover {
    color: #93c5fd;
}

/* Contact page styles */
.contact-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.contact-item {
    margin-bottom: 40px;
}

.contact-item h2 {
    font-size: 1.5rem;
    color: #f1f5f9;
    margin-bottom: 12px;
    font-weight: 600;
}

.contact-link {
    font-size: 1.2rem;
    color: #60a5fa;
    text-decoration: none;
    transition: color 0.3s;
}

.contact-link:hover {
    color: #93c5fd;
    text-decoration: underline;
}

/* Footer */
footer {
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid #4b5563;
    color: #9ca3af;
    margin-top: 80px;
}

/* Media queries */
@media (max-width: 1200px) {
    .container {
        padding: 0 30px;
    }
}

@media (max-width: 900px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
    
    .nav-links {
        gap: 20px;
    }
    
    .project-header h1 {
        font-size: 2.5rem;
    }
    
    .project-header {
        padding: 60px 0 30px 0;
    }
    
    .hero .description {
        font-size: 1rem;
    }
}

@media (max-width: 600px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .logo-section {
        align-items: center;
    }
    
    .nav-links {
        flex-direction: column;
        gap: 15px;
    }
    
    .project-header h1 {
        font-size: 2rem;
    }
    
    .project-content {
        padding: 20px;
    }
}