@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  line-height: 1.6;
  color: #000;
  background: #fff;
  min-height: 100vh;
}

/* Header */
header {
  text-align: center;
  padding: 4rem 1rem 2rem;
  background: #fff;
  border-bottom: 1px solid #e5e5e5;
}

header h1 {
  font-size: 3rem;
  font-weight: 700;
  color: #000;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

header p {
  font-size: 1.25rem;
  color: #666;
  font-weight: 400;
}

/* Section des filtres */
.filters-section {
  background: #fff;
  margin: 2rem;
  padding: 3rem 2rem;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
}

.filters-section h2 {
  text-align: center;
  margin-bottom: 3rem;
  color: #000;
  font-size: 1.5rem;
  font-weight: 600;
}

.filters-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.filter-group {
  text-align: center;
}

.filter-group h3 {
  margin-bottom: 1.5rem;
  color: #000;
  font-size: 1rem;
  font-weight: 600;
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.filter-btn {
  padding: 0.75rem 1.25rem;
  border: 1px solid #e5e5e5;
  background: #fff;
  color: #000;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 500;
  font-size: 0.875rem;
  font-family: inherit;
}

.filter-btn:hover {
  background: #f5f5f5;
  border-color: #d1d1d1;
}

.filter-btn.active {
  background: #000;
  color: #fff;
  border-color: #000;
}

/* Section galerie */
.gallery-section {
  padding: 3rem 2rem;
  background: #fff;
  margin: 2rem;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
}

.gallery-section h2 {
  text-align: center;
  color: #000;
  margin-bottom: 3rem;
  font-size: 1.5rem;
  font-weight: 600;
}

.gallery-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  padding: 1rem;
}

/* Cartes d'objets */
.artwork-card {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.2s ease;
  opacity: 1;
  transform: scale(1);
}

.artwork-card.hidden {
  display: none;
}

.artwork-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-color: #d1d1d1;
}

.artwork-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.2s ease;
}

.artwork-card:hover .artwork-image {
  transform: scale(1.02);
}

.artwork-info {
  padding: 1.5rem;
}

.artwork-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: #000;
  line-height: 1.4;
}

.artwork-description {
  color: #666;
  margin-bottom: 1rem;
  line-height: 1.6;
  font-size: 0.875rem;
}

.artwork-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  background: #f5f5f5;
  color: #000;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 500;
  border: 1px solid #e5e5e5;
}

/* Footer */
footer {
  text-align: center;
  padding: 3rem 2rem;
  background: #f5f5f5;
  color: #666;
  margin-top: 2rem;
  border-top: 1px solid #e5e5e5;
  font-size: 0.875rem;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.artwork-card {
  animation: fadeInUp 0.4s ease forwards;
}

/* Responsive Design */
@media (max-width: 768px) {
  header {
    padding: 2rem 1rem;
  }

  header h1 {
    font-size: 2.25rem;
  }

  .filters-container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .filter-buttons {
    justify-content: center;
  }

  .gallery-container {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
  }

  .filters-section,
  .gallery-section {
    margin: 1rem;
    padding: 2rem 1.5rem;
  }
}

@media (max-width: 480px) {
  header h1 {
    font-size: 1.875rem;
  }

  .gallery-container {
    grid-template-columns: 1fr;
  }

  .filter-btn {
    padding: 0.625rem 1rem;
    font-size: 0.8125rem;
  }

  .filters-section,
  .gallery-section {
    margin: 0.5rem;
    padding: 1.5rem 1rem;
  }
}
