/* Filtres */
.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin: 30px 0;
}

.filter-btn {
    padding: 12px 24px;
    background: var(--beige-lin);
    border: 2px solid transparent;
    color: var(--marron-cuir);
    border-radius: 30px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-btn:hover {
    background: var(--marron-cuir);
    color: white;
    transform: translateY(-2px);
}

.filter-btn.active {
    background: var(--marron-cuir);
    color: white;
    border-color: var(--dore-fil);
    box-shadow: 0 4px 12px rgba(107, 79, 63, 0.2);
}

/* Grille de galerie */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.gallery-item {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.gallery-img {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.gallery-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover .gallery-img img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    opacity: 0;
    transition: all 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.view-full, .download-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: white;
    color: var(--marron-cuir);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.download-btn {
    text-decoration: none;
    background: var(--dore-fil);
    color: white;
}

.view-full:hover {
    background: var(--marron-cuir);
    color: white;
    transform: rotate(90deg);
}

.download-btn:hover {
    background: var(--bordeaux);
    transform: translateY(-3px);
}

.gallery-info {
    padding: 20px;
}

.gallery-info h4 {
    color: var(--marron-cuir);
    margin-bottom: 8px;
    font-family: var(--font-title);
    font-size: 1.2rem;
}

.image-date {
    color: var(--vert-olive);
    font-size: 0.9rem;
    margin-top: 5px;
}

/* Instructions */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.step {
    text-align: center;
    padding: 30px;
    background: var(--beige-lin);
    border-radius: 8px;
    position: relative;
}

.step-number {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    background: var(--marron-cuir);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
}

.drive-links {
    margin-top: 15px;
}

.btn-small {
    padding: 8px 16px;
    background: white;
    border: 1px solid var(--marron-cuir);
    color: var(--marron-cuir);
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.btn-small:hover {
    background: var(--marron-cuir);
    color: white;
}

/* États */
.loading-spinner {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 0;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--beige-lin);
    border-top-color: var(--marron-cuir);
    border-radius: 50%;
    margin: 0 auto 20px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.empty-gallery, .error-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
}

.empty-gallery i, .error-message i {
    font-size: 3rem;
    color: var(--beige-lin);
    margin-bottom: 25px;
}

.error-message i {
    color: var(--bordeaux);
}

/* Responsive */
@media (max-width: 768px) {
    .filters {
        gap: 10px;
    }
    
    .filter-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .steps-grid {
        gap: 60px;
    }
}