/* ============================= */
/*           FILTRES             */
/* ============================= */

.filtres-container {
  margin-bottom: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.filtre-btn {
  padding: 10px 16px;
  background-color: #e0f4fb;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  font-size: clamp(0.7rem, 1.6vw, 0.95rem);
  color: #1487c6;
  transition: background-color 0.3s, color 0.3s;
}

.filtre-btn:hover,
.filtre-btn.active {
  background-color: #1487c6;
  color: #fff;
}

/* ============================= */
/*        GRILLE VIGNETTES       */
/* ============================= */

.vignettes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* ============================= */
/*    VIGNETTE = ENCART FILM     */
/* ============================= */

.vignette {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 18px;                /* encart Merlot Hello */
  padding: 16px;                      /* respiration encart */
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  box-sizing: border-box;
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* Hover identique aux encarts */
.vignette:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.14);
}

/* ============================= */
/*         IMAGE (BRUTE)         */
/* ============================= */

.vignette img {
  width: 100%;
  height: auto;        /* garde l’image entière */
  object-fit: contain; /* pas de découpe */
  display: block;
}

/* ============================= */
/*        INFOS OEUVRE           */
/* ============================= */

.vignette-info {
  padding-top: 12px;
  text-align: center;
}

.vignette-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: #62c0fe;
  margin-bottom: 4px;
  line-height: 1.3;
}

.vignette-annee {
  font-size: 0.9rem;
  color: #777;
}

/* ============================= */
/*           RESPONSIVE          */
/* ============================= */

@media (max-width: 768px) {
  .vignette-title {
    font-size: 0.95rem;
  }

  .vignette-annee {
    font-size: 0.8rem;
  }
}
