/* Design Galerie - Version Propre et Épurée */

:root {
    --primary: #667eea;
    --primary-dark: #5568d3;
    --text-dark: #333;
    --text-light: #666;
    --border: #e5e5e5;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
}

/* Page Banner */
.page-banner {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.95), rgba(118, 75, 162, 0.95)),
                url('https://images.unsplash.com/photo-1492684223066-81342ee5ff30?ixlib=rb-4.0.3&auto=format&fit=crop&w=1600&q=80') center/cover;
    padding: 100px 0 60px;
    position: relative;
}

.banner-content {
    text-align: center;
    color: white;
}

.banner-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 15px;
}

.banner-content p {
    font-size: 1.1rem;
    opacity: 0.95;
}

/* Main Content */
.main-content {
    padding: 60px 0;
    background: #fafafa;
}

.gallery-intro {
    text-align: center;
    margin-bottom: 40px;
}

.gallery-intro h2 {
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 10px;
    font-weight: 700;
}

.gallery-intro p {
    font-size: 1rem;
    color: var(--text-light);
}

/* Filters */
.gallery-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
}

.filter-btn {
    padding: 10px 20px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-btn:hover {
    color: var(--primary);
    border-color: var(--primary);
}

.filter-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.filter-btn .count {
    opacity: 0.7;
    font-size: 0.85rem;
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.gallery-item {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

/* Gallery Image */
.gallery-img {
    position: relative;
    overflow: hidden;
    height: 220px;
    background: #f5f5f5;
}

.gallery-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

/* Category Badge */
.category-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
    background: rgba(102, 126, 234, 0.9);
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Gallery Content */
.gallery-content {
    padding: 18px;
}

.gallery-content h3 {
    color: var(--text-dark);
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 10px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gallery-content p {
    color: var(--text-light);
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Gallery Meta */
.gallery-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}

.gallery-date {
    color: var(--text-light);
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.gallery-date i {
    color: var(--primary);
}

.location-badge {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--text-light);
    font-size: 0.8rem;
}

.location-badge i {
    color: #999;
}

/* Gallery Stats */
.gallery-stats {
    display: flex;
    gap: 12px;
    color: var(--text-light);
    font-size: 0.8rem;
    margin-bottom: 15px;
}

.gallery-stats span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.gallery-stats i {
    color: #999;
}

/* Gallery Link */
.gallery-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: white;
    background: var(--primary);
    padding: 10px 18px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.gallery-link:hover {
    background: var(--primary-dark);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 40px;
    background: white;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

.empty-state i {
    font-size: 3rem;
    color: #ddd;
    margin-bottom: 20px;
}

.empty-state h3 {
    color: var(--text-dark);
    font-size: 1.3rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.empty-state p {
    color: var(--text-light);
    font-size: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .page-banner {
        padding: 80px 0 50px;
    }
    
    .banner-content h1 {
        font-size: 2rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .gallery-img {
        height: 200px;
    }
}
