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

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Navigation */
header {
    background: rgba(255,255,255,0.95);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

nav h1 {
    font-size: 1.5rem;
    color: #333;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav ul li a {
    text-decoration: none;
    color: #333;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #d4af37;
}

/* Hero section */
.hero {
    height: 100vh;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    margin-top: 0;
    position: relative;
}

.hero {
    background-color: #2c3e50;
}

.hero-content {
    animation: fadeInUp 1s ease;
    text-align: center;
}

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

.hero-content h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    background: #d4af37;
    color: #333;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s;
    font-weight: bold;
}

.btn:hover {
    background: #ffd700;
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* Gallery */
.gallery {
    padding: 4rem 5%;
    background: #f9f9f9;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.title {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
    color: #333;
}

.filters {
    text-align: center;
    margin-bottom: 2rem;
}

.filter-btn {
    padding: 0.5rem 1.5rem;
    margin: 0 0.5rem;
    border: 2px solid #d4af37;
    background: none;
    cursor: pointer;
    transition: all 0.3s;
    border-radius: 25px;
}

.filter-btn.active,
.filter-btn:hover {
    background: #d4af37;
    color: white;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

/* Cartes d'oeuvres */
.art-card {
    cursor: pointer;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.art-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.art-thumbnail {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
}

.art-info {
    padding: 1rem;
    text-align: left;
}

.art-title {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
    color: #333;
}

.art-title-ar {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.3rem;
    font-family: 'Arial', sans-serif;
}

.art-technique {
    color: #d4af37;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.art-details {
    display: flex;
    justify-content: space-between;
    margin: 0.5rem 0;
    font-size: 0.85rem;
    color: #666;
}

.art-price {
    font-size: 1.2rem;
    font-weight: bold;
    color: #d4af37;
    margin: 0.5rem 0;
}

.art-status {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
}

.status-available {
    background: #27ae60;
    color: white;
}

.status-sold {
    background: #e74c3c;
    color: white;
}

/* Section À propos */
.about-section {
    padding: 5rem 5%;
    background: white;
}

.about-content {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.about-text {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.about-text h2.section-title {
    text-align: center;
    color: #8B7355;
    font-size: 1.8rem;
    border-bottom: 2px solid #d4af37;
    display: inline-block;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
    margin-top: 2rem;
}

.about-text h2:first-of-type {
    margin-top: 0;
}

.about-text h3.subtitle {
    text-align: center;
    color: #666;
    font-size: 1.3rem;
    margin-bottom: 2rem;
    font-weight: normal;
}

.about-text p {
    text-align: justify;
    margin-bottom: 1.2rem;
    line-height: 1.8;
}

.about-text p strong {
    color: #8B7355;
}

/* Statistiques */
.artist-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 3rem;
    margin-bottom: 2rem;
    text-align: center;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: bold;
    color: #d4af37;
}

.stat-label {
    color: #666;
    font-size: 0.9rem;
}

/* Section Contact */
.contact-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 4rem 5%;
    text-align: center;
    color: white;
}

.contact-section .section-title {
    text-align: center;
    color: white;
    margin-bottom: 2rem;
    font-size: 2rem;
}

.contact-content {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.contact-info {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: white;
}

.contact-info p {
    margin: 1rem 0;
    font-size: 1.1rem;
}

/* Liens sociaux */
.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.social-link {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(255,255,255,0.2);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    transition: all 0.3s;
}

.social-link:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-2px);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    overflow: auto;
}

.modal-content {
    margin: 5% auto;
    display: block;
    max-width: 90%;
    max-height: 70vh;
    object-fit: contain;
    animation: zoom 0.3s;
    border-radius: 10px;
}

@keyframes zoom {
    from {transform: scale(0.1); opacity: 0;}
    to {transform: scale(1); opacity: 1;}
}

.close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.close:hover {
    color: #d4af37;
}

#modalCaption {
    text-align: center;
    color: white;
    padding: 1rem;
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto;
}

/* Footer */
footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 1.5rem;
}

.loading {
    text-align: center;
    padding: 2rem;
    color: #666;
}

/* Responsive */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1rem;
    }
    
    .art-thumbnail {
        height: 200px;
    }
    
    .hero-content h2 {
        font-size: 2rem;
    }
    
    .filter-btn {
        margin: 0.2rem;
        padding: 0.3rem 1rem;
        font-size: 0.9rem;
    }
    
    .hero {
        background-attachment: scroll;
    }
    
    .modal-content {
        max-height: 60vh;
        margin: 20% auto;
    }
    
    .about-text p {
        text-align: left;
    }
    
    .artist-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .social-links {
        flex-wrap: wrap;
    }
    
    nav {
        flex-direction: column;
        gap: 1rem;
    }
    
    nav ul {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
}