/* Liste des collections */
.list-collections {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  width: 90%;
  margin: 3rem auto;
}

.list-collections a {
  color: black;
  text-decoration: none;
  display: block;
  font-size: 1.15rem;
}

/* Carte collection */
.card-collection {
  position: relative;
  width: 350px;
  background-color: white;
  border-radius: 6px;
  box-shadow: 0 5px 5px rgba(0, 0, 0, 0.25);
}

.card-collection img {
  display: block;
  width: 100%;
  height: 250px;
  object-fit: cover !important;
}

.number-recipes-in {
  position: absolute;
  bottom: 80px;
  right: 10px;
  padding: 5px 10px;
  background-color: rgba(0, 0, 0, 0.6);
  color: white;
  border-radius: 5px;
  font-family: var(--ff-text);
}

.number-recipes-in span {
  display: flex;
  align-items: center;
}

.title-recipe {
  padding: 10px 20px;
}

/* --- Styles pour la variante utilisée dans collection.php --- */
.card-recipe {
  position: relative;
  width: 350px;
  background-color: #fff;
  border-radius: 6px;
  box-shadow: 0 5px 5px rgba(0, 0, 0, 0.25);
  overflow: hidden;
}

.card-recipe img {
  display: block;
  width: 100%;
  height: 250px;
  object-fit: cover !important;
}

.content-recipe {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
}

.content-recipe h1 {
  margin: 0;
  font-size: 1.25rem;
  font-family: var(--ff-main);
}

/* Ensure page-level h1 uses Poppins */
h1 {
  font-family: var(--ff-main);
}

/* Ensure h2 uses Poppins on collections page */
h2 {
  font-family: var(--ff-main);
}

/* In case titles are wrapped specifically */
.title-recipe h2 {
  font-family: var(--ff-main);
}

.content-recipe button {
  padding: 4px 8px;
  background: transparent;
  border: 0;
  border-radius: 6px;
  font-size: 1.225rem;
  cursor: pointer;
}

/* Submenu (copie adaptée depuis profil.css) */
.submenu-recipe {
  position: absolute;
  top: 100%;
  right: 0;
  z-index: 999;
  display: none;
  flex-direction: column;
  min-width: 180px;
  padding: 8px 0;
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 6px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
  white-space: nowrap;
  text-align: left;
}

.submenu-recipe.active {
  display: flex;
}

.submenu-recipe button,
.submenu-recipe a {
  display: block;
  width: 100%;
  padding: 6px 16px;
  color: #333;
  text-align: left;
}