.cards__container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
  align-items: stretch; /* aligne les cartes sur la même hauteur */
}

.cards__home {
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* pousse le footer en bas */
  border-radius:   var(--radius);
  overflow: hidden;
  background: #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  height: 100%;
}

.cards__home:hover {
  transform: translateY(-6px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.cards__home img.card-img-top {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.cards__home .card-body {
  padding: 1rem;
  flex-grow: 1; /* pousse le footer vers le bas */
  display: flex;
  flex-direction: column;
}

.cards__home h5 {
  font-size: 1.1rem;
  color: #222;
  font-weight: 600;
}

.cards__home p {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.5;
  flex-grow: 1; /* pousse la flèche vers le bas */
}

.cards__home .card-footer {
  background: #fafafa;
  border-top: 1px solid #eee;
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  margin-top: auto; /* colle le footer en bas */
}

/* Icônes (fichiers SVG via <img>) */
.btn-icon {
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  border: none;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, background-color 0.2s ease, opacity 0.2s ease;
}

.btn-icon:hover { 
  transform: scale(1.1);
  background-color: rgba(0,0,0,0.05);
}

.icon-img {
  width: 22px;
  height: 22px;
  display: block;
}

/* Responsive */
@media (max-width: 576px) {
  .cards__container {
    gap: 1rem;
  }
  .cards__home img.card-img-top {
    height: 160px;
  }
}



