.custom-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 70vh;
    overflow: hidden;
    flex-direction: row
}

.custom-wrapper .custom-card {
  position: relative;
  width: 400px;
  height: 400px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

/* Image de fond */
.custom-wrapper .custom-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
  filter: brightness(0.7); /* pour lire le texte */
}

/* Contenu */
.custom-wrapper .custom-card-content {  
  position: relative;
  z-index: 1;
  line-height: 1.4;
  /*padding: 15px;*/
}

/* Titre en forme de puce */
.custom-wrapper .custom-card-title {
  display: inline-block;
  background: #6c6360;
  padding: 5px 15px 5px 10px;
  border-radius: 0 20px 20px 0; /* arrondi que à droite */
  font-weight: bold;
  font-size: 1rem;
}

/* Sous-titre */
.custom-wrapper .custom-card-subtitle {
  margin-top: 10px;
  margin-left: 15px;
  font-size: 0.9rem;
  font-weight: 600;
  opacity: 0.9; 
}

/* Description */
.custom-wrapper .custom-card-text {
    background: rgba(0, 0, 0, 0.78); /* fond sombre transparent */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.542);
    border-radius: 10px;
    padding: 10px 12px;
    margin-top: 5px;
    margin-left: 15px;
    margin-right: 15px;
    font-size: 0.9rem; 
    opacity: 0.8;
}

/* Responsive : prend toute la largeur sur mobile */
@media (max-width: 576px) {

    .custom-wrapper .custom-card-content {  
        position: relative;
        z-index: 1;
        line-height: 1.4;
        font-size: 0.9rem; 
        /*padding: 15px;*/
    }

    .custom-wrapper .custom-card {
    width: 85%;         /* prend presque toute la largeur */
    max-width: 250px;   /* limite en largeur */
    height: auto;       /* hauteur auto selon contenu */
    min-height: 220px;  /* évite les cartes trop plates */
  }

  .custom-wrapper .custom-card-content {
    padding: 10px;
    font-size: 0.85rem;
  }

  .custom-wrapper .custom-card-title {
    font-size: 0.9rem;
    padding: 4px 12px 4px 8px;
  }
}