<style>
/* 1. Carte principale */
.r-record-body {
  width: 280px; /* largeur élargie */
  height: 220px; /* hauteur réduite */
  margin: 10px;
  display: inline-block;
  vertical-align: top;
  background: #c8e7df; /* vert clair - fond 7Cortex */
  border: 2px solid #32c7a1; /* turquoise 7Cortex */
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.08);
  transition: transform 0.2s ease;
  position: relative;
}

/* 2. Hover effet */
.r-record-body:hover {
  transform: scale(1.03);
}

/* 3. Contenu interne */
.r-record-body .panel-body {
  padding: 10px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  font-size: 12px;
  line-height: 1.3em;
  font-family: "Segoe UI", sans-serif;
  text-align: center;
}

/* 4. Image */
.r-record-body img {
  max-width: 100%;
  height: auto;
  margin-bottom: 6px;
}

/* 5. Texte avec limitation à 4 lignes */
.r-record-body span {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
  font-weight: bold;
  color: #09564d;
}

/* 6. Badge dynamique (ex: Nouveau, Beta, Important) */
.r-record-body .badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background-color: #32c7a1;
  color: white;
  font-size: 11px;
  padding: 3px 7px;
  border-radius: 10px;
  font-weight: bold;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

/* 7. Responsive : ajustement sur tablettes et mobiles */
@media screen and (max-width: 1200px) {
  .r-record-body { max-width: 45%; }
}
@media screen and (max-width: 768px) {
  .r-record-body { max-width: 90%; }
}
</style>
