.albums-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}
.album-card {
  text-align: center;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 10px;
  transition: transform 0.2s;
  text-decoration: none;
  color: inherit;
  background: #fff3a3; /* jaune pâle, cohérent avec le reste du site (accent #ff3) */
}
.album-card:hover {
  transform: scale(1.05);
}
.cover {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 6px;
}
.cover-vide {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eee;
  color: #888;
  font-style: italic;
}

#zone-ajouter-album {
  margin: 1em 0 1.5em 0;
  text-align: center;
}
#form-ajouter-album {
  max-width: 420px;
  margin: 1em auto 0 auto;
  text-align: left;
}
.messages-erreur-album {
  background: #fdecea;
  border: 1px solid #dd3107;
  border-radius: 6px;
  padding: 10px 16px;
  margin: 1em 0;
  color: #b05741;
}

/* Page de visualisation d'un album (album.php) */
body.page-album {
  background: #111;
  color: #eee;
  font-family: "Libre Baskerville", serif;
  margin: 0;
  padding: 20px;
}
.entete-album {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 1em;
}
.boutons-entete-album {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.boutons-entete-album button {
  background: #222;
  color: #eee;
  border: 2px solid #555;
  border-radius: 6px;
  padding: 6px 14px;
  cursor: pointer;
  font-family: inherit;
}
.boutons-entete-album button:hover {
  border-color: #ff3;
}
.boutons-entete-album button.actif {
  background: #ff3;
  color: #111;
  border-color: #ff3;
}
.lien-retour-albums {
  color: #ff3;
  text-decoration: none;
  border: 2px solid #ff3;
  border-radius: 6px;
  padding: 6px 14px;
}
.lien-retour-albums:hover {
  background: #ff3;
  color: #111;
}
.gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.thumb {
  width: 220px;
  height: 220px;
  object-fit: cover;
  border-radius: 6px;
  border: 2px solid #333;
}
.gallery a {
  position: relative;
  display: inline-block;
}
.gallery.mode-selection a {
  cursor: pointer;
}
.gallery.mode-selection a:hover .thumb {
  border-color: #ff3;
  opacity: 0.8;
}
.badge-couverture {
  position: absolute;
  top: 6px;
  left: 6px;
  background: #ff3;
  color: #111;
  font-size: 0.75em;
  font-weight: bold;
  padding: 2px 8px;
  border-radius: 4px;
}
.est-couverture .thumb {
  border-color: #ff3;
}
.zone-ajouter-photo {
  margin-top: 2em;
  padding-top: 1em;
  border-top: 1px solid #333;
}
