.residence-grid {
    display: grid;
    gap: 30px;
    margin-bottom: 30px;
  }
  
  .residence-grid-columns-1 {
    grid-template-columns: 1fr;
  }
  
  .residence-grid-columns-2 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .residence-grid-columns-3 {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .residence-grid-columns-4 {
    grid-template-columns: repeat(4, 1fr);
  }
  
  /* Responsive */
  @media (max-width: 980px) {
    .residence-grid-columns-3,
    .residence-grid-columns-4 {
      grid-template-columns: repeat(2, 1fr);
    }
  }
  
  @media (max-width: 767px) {
    .residence-grid {
      grid-template-columns: 1fr !important;
    }
  }
  
  /* Card */
  .residence-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
  }
  
  
  /* Card cliquable (quand c'est un lien <a>) */
  .residence-card-clickable {
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
  }
  
  .residence-card-clickable:hover {
    border-color: #ddd;
    text-decoration: none;
    color: inherit;
  }
  
  /* Image */
  .residence-image {
    position: relative;
    overflow: hidden;
    height: 250px;
    background: #f5f5f5;
  }
  
  .residence-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
  }
  
  .residence-card:hover .residence-image img {
    transform: scale(1.05);
  }
  
  /* Statut - positionné sur l'image */
  .residence-statut {
    position: absolute;
    bottom: 12px;
    left: 12px;
    display: inline-block;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  }
  
  /* Couleurs des statuts */
  .residence-statut.statut-appel {
    background: #FFFCD9;
    color: #D5BC36;
  }
  
  .residence-statut.statut-selection {
    background: #f0f7ff;
    color: #2ea3f2;
  }
  
  .residence-statut.statut-laureats {
    background: #F0FFF2;
    color: #36AC36;
  }
  
  .residence-statut.statut-en-cours {
    background: #FFF0F0;
    color: #F22E5B;
  }
  
  .residence-statut.statut-archivee {
    background: #F4F4F4;
    color: #939393;
  }
  
  .residence-statut.statut-default {
    background: #f0f7ff;
    color: #2ea3f2;
  }
  
  /* Content */
  .residence-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
  }
  
  .residence-title {
    /* font-size: 22px;
    font-weight: 600;
    margin: 0 0 12px 0;
    color: #333;
    line-height: 1.4; */
  }
  
  /* Meta - lieu et dates en italique */
  .residence-meta {
    font-size: 14px;
    font-style: italic;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
  }
  
  .residence-meta .separator {

    font-style: normal;
  }
  
  .residence-excerpt {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: auto;
    padding-bottom: 20px;
  }
  
  .residence-excerpt p {
    margin: 0 0 10px 0;
  }
  
  .residence-excerpt p:last-child {
    margin-bottom: 0;
  }
  
  /* Lien/Bouton */
  .residence-link {
    display: inline-block;
    padding: 12px 24px;
    background: #2ea3f2;
    color: white !important;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    align-self: flex-start;
    border: none;
    margin: auto;
    font-size: 16px;
  }

  .statut-appel.residence-link{
    background: #D5BC36;
  }

  .statut-selection.residence-link{
    background: #2ea3f2;
  }

  .statut-laureats.residence-link{
    background: #36AC36;
  }

  .statut-en-cours.residence-link{
    background: #F22E5B;
  }

  .statut-archivee.residence-link{
    background: #939393;
  }
  
  .residence-link:hover {
    /* background: #1e88d4; */
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(46, 163, 242, 0.3);
    color: white !important;
  }
  
  /* Empêcher le double lien quand la card est cliquable */
  .residence-card-clickable .residence-link {
    display: none;
  }
  
  /* Message vide */
  .no-residences {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    color: #999;
    font-size: 16px;
  }