* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family:
    "Inter",
    "Segoe UI",
    system-ui,
    -apple-system,
    sans-serif;
  background-color: whitesmoke;
  color: #2c241e;
  line-height: 1.5;
}

.navbar {
  background: #1a1a1a;
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.logo h1 {
  color: #e8c9a0;
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: 1px;
}

.logo p {
  color: #9b8a7a;
  font-size: 0.75rem;
  letter-spacing: 2px;
}

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

.nav-links a {
  color: #f0ebe3;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
  font-size: 0.95rem;
}

.nav-links a:hover,
.nav-links a.active {
  color: #e8c9a0;
}

.page-header {
  background:
    linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)),
    url("/images/motifs-tissus-africains.avif");
  color: white;
  padding: 4rem 2rem;
  text-align: center;
}

.page-header h1 {
  font-size: 3rem;
  font-weight: 400;
  letter-spacing: -0.5px;
  margin-bottom: 1rem;
}

.page-header p {
  font-size: 1.5rem;
  max-width: 700px;
  margin: 0 auto;
  opacity: 0.9;
}

.filters-section {
  padding: 2rem 2rem 0;
  max-width: 1400px;
  margin: 0 auto;
}

.filters-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.filter-btn {
  background: transparent;
  border: 1px solid #d4c4b0;
  padding: 0.6rem 1.5rem;
  border-radius: 40px;
  font-size: 0.85rem;
  font-weight: 500;
  color: #4a3e34;
  cursor: pointer;
  transition: all 0.3s;
  font-family: inherit;
}

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

.collections-section {
  padding: 2rem 2rem 5rem;
  max-width: 1400px;
  margin: 0 auto;
}

.collection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.art-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  transition:
    transform 0.3s,
    box-shadow 0.3s;
  cursor: pointer;
}

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

.card-image {
  height: 280px;
  overflow: hidden;
  position: relative;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.art-card:hover .card-image img {
  transform: scale(1.05);
}

.card-content {
  padding: 1.5rem;
}

.card-category {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #b87c4f;
  font-weight: 600;
}

.card-title {
  font-size: 1.3rem;
  margin: 0.5rem 0 0.25rem;
  color: #2c241e;
}

.card-subtitle {
  font-size: 0.8rem;
  color: #9b8a7a;
  margin-bottom: 0.75rem;
  font-style: italic;
}

.card-description {
  color: #5e5246;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.card-details {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #eee5db;
  font-size: 0.75rem;
  color: #8a7a6a;
}

.card-details span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.btn-view {
  display: inline-block;
  margin-top: 1rem;
  padding: 8px 20px;
  border: 1px solid #b87c4f;
  color: #b87c4f;
  text-decoration: none;
  border-radius: 30px;
  font-size: 0.8rem;
  font-weight: 500;
  transition: all 0.3s;
}

.btn-view:hover {
  background: #b87c4f;
  color: white;
}

footer {
  background: #1a1a1a;
  color: #b0a088;
  padding: 3rem 2rem 1.5rem;
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.footer-col h4 {
  color: #e8c9a0;
  margin-bottom: 1rem;
  font-weight: 500;
}

.footer-col p,
.footer-col a {
  color: #9b8a7a;
  text-decoration: none;
  font-size: 0.85rem;
  line-height: 1.8;
}

.footer-col a:hover {
  color: #e8c9a0;
}

.copyright {
  text-align: center;
  padding-top: 2rem;
  margin-top: 2rem;
  border-top: 1px solid #2c2c2c;
  font-size: 0.75rem;
}
/* Hamburger menu */
.nav-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
  z-index: 999;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.nav-overlay.active {
  display: block;
  opacity: 1;
}

/* Le menu lui-même - glisse depuis la droite */
.nav-menu {
  position: fixed;
  top: 0;
  right: -320px;
  width: 300px;
  height: 100%;
  background: #1a1a1a;
  z-index: 1000;
  padding: 2rem 1.5rem;
  transition: right 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.3);
  overflow-y: auto;
}

.nav-menu.active {
  right: 0;
}

/* Bouton de fermeture (croix) */
.nav-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: #e8c9a0;
  font-size: 2rem;
  cursor: pointer;
  transition: transform 0.3s;
  padding: 5px;
  line-height: 1;
}

.nav-close:hover {
  transform: rotate(90deg);
  color: white;
}

/* Logo dans le menu */
.nav-menu .logo-mobile {
  margin-top: 40px;
  margin-bottom: 2rem;
  border-bottom: 1px solid #333;
  padding-bottom: 1rem;
}

.nav-menu .logo-mobile h2 {
  color: #e8c9a0;
  font-size: 1.3rem;
  font-weight: 500;
}

.nav-menu .logo-mobile p {
  color: #9b8a7a;
  font-size: 0.7rem;
  letter-spacing: 1px;
}

/* Liens dans le menu */
.nav-menu .nav-links-mobile {
  list-style: none;
  padding: 0;
}

.nav-menu .nav-links-mobile li {
  margin-bottom: 0.5rem;
}

.nav-menu .nav-links-mobile a {
  display: block;
  color: #f0ebe3;
  text-decoration: none;
  font-size: 1.1rem;
  padding: 12px 16px;
  border-radius: 12px;
  transition: all 0.3s;
  font-weight: 500;
}

.nav-menu .nav-links-mobile a:hover,
.nav-menu .nav-links-mobile a.active {
  background: #b87c4f;
  color: white;
}

/* Cacher le hamburger sur desktop */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  z-index: 1001;
  position: relative;
}

.hamburger .bar {
  width: 28px;
  height: 3px;
  background-color: #e8c9a0;
  border-radius: 3px;
  transition: 0.3s;
}

.hamburger.active .bar:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active .bar:nth-child(2) {
  opacity: 0;
}
.hamburger.active .bar:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  /* Cacher les anciens liens */
  .nav-links {
    display: none !important;
  }
}
/* Mobile */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  /* Cacher les anciens liens */
  .nav-links {
    display: none !important;
  }
}
.search-container {
  max-width: 500px;
  margin: 1.5rem auto 0 auto;
  text-align: center;
}

#searchInput {
  width: 100%;
  padding: 12px 20px;
  border: 1px solid #d4c4b0;
  border-radius: 40px;
  font-size: 1rem;
  background: white;
  outline: none;
  transition: 0.2s;
}

#searchInput:focus {
  border-color: #b87c4f;
  box-shadow: 0 0 0 2px rgba(184, 124, 79, 0.2);
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }
  .nav-links {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background: #1a1a1a;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 2rem;
    gap: 1.5rem;
    transition: left 0.3s ease;
    z-index: 999;
  }
  .nav-links.active {
    left: 0;
  }
  .nav-links li {
    margin: 0;
  }
}

@media (max-width: 768px) {
  .page-header h1 {
    font-size: 2rem;
  }
  .nav-container {
    flex-direction: column;
    text-align: center;
  }
  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }
  .collection-grid {
    grid-template-columns: 1fr;
  }
}
