.pa-recipes-grid {
  margin: 1.25rem 0;
  margin-top: 50px !important;
  margin-bottom: 80px !important;

}

.pa-recipes-grid__inner {
  display: grid;
  padding-left: 10px !important;
  padding-right: 10px !important;
  grid-template-columns: repeat(auto-fit, minmax(var(--pa-recipes-grid-min-col, 260px), 1fr));
  gap: 1rem;
  margin-bottom: 3rem;
}

.pa-recipes-grid__card {
  background: #ffffff;
  border: 1px solid #e7edf3;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.pa-recipes-grid__card:hover {
  box-shadow: 0 7px 18px rgba(15, 23, 42, 0.1);
}

.pa-recipes-grid__image-link {
  display: block;
  height: 220px;
  background: linear-gradient(135deg, #e8dcc8 0%, #a17440 100%);
  position: relative;
  text-decoration: none !important;
}

.pa-recipes-grid__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pa-recipes-grid__content {
  padding: 1rem 1rem 1.05rem !important;
  display: flex;
  flex-direction: column;
  flex: 1;
  background: #ffffff;
}

.pa-recipes-grid__title {
  margin: 0;
  margin-bottom: 20px !important;
  font-size: 1.8rem !important;
  line-height: 1.2;
  color: #000;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.pa-recipes-grid__title a {
  color: inherit;
  text-decoration: none !important;
}

.pa-recipes-grid__title a:hover {
  text-decoration: none !important;
}

.pa-recipes-grid a,
.pa-recipes-grid a:hover,
.pa-recipes-grid a:focus,
.pa-recipes-grid a:active,
.pa-recipes-grid a:visited {
  text-decoration: none !important;
}

.pa-recipes-grid__description {
  margin: 0.25rem 0 0;
  color: #49515b;
  font-size: 0.75rem;
  line-height: 1.35;
  font-weight: 600;
  max-width: 95%;
  display: block;
  overflow: visible;
}

.pa-recipes-grid__meta {
  margin-top: 0.25rem;
  margin-bottom: 10px;;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.45rem;
  color: #000;
  font-size: 1rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-top: 0.25rem;
}

.pa-recipes-grid__dot {
  opacity: 0.5;
}

.pa-recipes-grid__macros {
  list-style: none;
  margin: 0;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.42rem;
  padding-top: 0.7rem;
  font-size: 1.6rem !important;
}

/* Override thème: margin-left en !important sur .entry-content ul */
:root .containerArticle .wp-block-columns .wp-block-column .entry-content ul.pa-recipes-grid__macros {
  margin-left: 0 !important;
  padding-left: 0 !important;
  list-style: none !important;
}

.pa-recipes-grid__macros {
  margin-top: auto;
}

.pa-recipes-grid__macros li {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 52px;
  padding: 0.5rem 0.55rem !important;
  border-radius: 10px;
  background: #f7f9fc;
  border: 1px solid #e3e8ef;
  color: #000;
  line-height: 1;
  text-align: center;
  text-transform: none;
  letter-spacing: 0.01em;
}

.pa-recipes-grid__macros li strong {
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}

.pa-recipes-grid__macros li span {
  color: #6b7280;
  font-weight: 400;
  font-size: 1rem;
}

.pa-recipes-grid__badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 120px;
  padding: 0.34rem 0.78rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  color: #000;
  font-size: 0.80rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pa-recipes-grid__badge--ratio {
  left: auto;
  right: 0.75rem;
  background: rgba(0, 0, 0, 0.92);
  color: #ffffff;
  max-width: 140px;
}

.pa-recipes-grid__error {
  margin: 0.5rem 0;
  color: #b91c1c;
}

@media (max-width: 480px) {
  .pa-recipes-grid__image-link {
    height: 190px;
  }

  .pa-recipes-grid__content {
    padding: 0.9rem 0.85rem;
  }

  .pa-recipes-grid__title {
    font-size: 1.12rem;
  }

  .pa-recipes-grid__macros {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
