/* Mobile-first design */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, sans-serif;
  background: #fdfbf7;
  color: #222;
  line-height: 1.5;
  padding-bottom: 2rem;
}

header {
  background: #8B0000;
  color: white;
  padding: 1rem;
  text-align: center;
}

header h1 {
  font-size: 1.4rem;
  margin-bottom: 0.4rem;
}

.hero {
  background: white;
  padding: 1.2rem;
  margin: 1rem;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.oeuvres {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 0 1rem;
}

.oeuvre-card {
  background: white;
  border-radius: 14px;
  padding: 1rem;
  box-shadow: 0 3px 8px rgba(0,0,0,0.1);
  cursor: pointer;
  transition: transform 0.15s;
}

.oeuvre-card:hover,
.oeuvre-card:active {
  transform: translateY(-2px);
}

.oeuvre-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
  color: #8B0000;
}

.oeuvre-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 8px;
  margin: 0.6rem 0;
}

.oeuvre-card audio {
  width: 100%;
  margin-top: 0.6rem;
}

.oeuvre-card .qrcode {
  width: 120px;
  height: 120px;
  margin: 0.6rem auto 0 auto;
  display: block;
}

footer {
  text-align: center;
  margin-top: 2rem;
  color: #777;
  font-size: 0.85rem;
}

/* Grille pour grands écrans */
@media (min-width: 768px) {
  .oeuvres {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
  }

  .oeuvre-card {
    width: 300px;
  }
}
