.avis{
    margin-top: 120px;
    margin-bottom: 40px;
    text-align: center
}

.filter-buttons {
    margin-top: 80px !important;
    margin-bottom: 20px !important;
    text-align: left;
}

.filter-btn {
    margin: 0 10px!important;
    background-color: #4D3F7E;
    color: white !important;
    text-decoration: none ! important;
    border-radius: 5px;
}

.filter-btn:hover {
    background-color: white;
    color: black !important;
    border : 2px solid  #4D3F7E;
}

.filter-btn.active {
    background-color: white;
    color: black !important;
    border : 2px solid #4D3F7E;
}

.liste-avis-deces {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100vw !important;
    max-width: 1400px !important;
    margin: auto;
    margin-bottom: 120px!important;
    padding: 0 10px !important;
}

/* Supprime les restrictions des conteneurs Elementor */
.elementor-widget-container {
    width: 100% !important;
    max-width: 100% !important;
}

/* Corrige le problème des sections "e-con-boxed" */
.elementor-section.elementor-section-boxed > .elementor-container {
    max-width: 100% !important;
    width: 100% !important;
}

.avis-deces-card {
    display: flex;
    align-items: flex-start; /* Alignement vertical du contenu */
    background: #ffffff;
    border-radius: 10px;
    padding: 20px !important;
    margin-bottom: 20px;
    width: 100%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
    text-align: left;
    gap: 20px;
}

.avis-deces-card:hover {
    transform: scale(1.02);
}

.avis-deces-image img {
    width: 180px;
    height: 180px;
    border-radius: 10px;
    object-fit: cover;
}

.avis-deces-content-wrapper {
    display: flex;
    flex-direction: column; /* Ajout pour organiser le contenu dans une colonne */
    justify-content: flex-start; /* Assure que le contenu commence en haut */
    flex-grow: 1;
}

.avis-deces-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.avis-deces-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0em !important;
}

.avis-deces-content p{
    margin-bottom: 0em !important;
}

.avis-deces-footer .btn-avis, 
.avis-deces-footer .btn-fleurs {
    display: inline-block;
    padding: 8px 12px;
    text-decoration: none ! important;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
}   

.btn-avis {
    background: #4D3F7E;
    color: white ! important;
}

.btn-avis:hover {
    background: #4D3F7E;
}

.btn-fleurs {
    background: #4D3F7E;
    color: white ! important;
}

.btn-fleurs:hover {
    background: #4D3F7E;
}

/* Responsive layout  */
@media only screen and (max-width: 800px) {
  .avis-deces-card {
    flex-direction: column;
  }
  .avis-deces-image img{
      width: 100%;
  }
  .avis-deces-footer {
      align-items: stretch;
      display: flex;
      flex-direction: column;
  }
  .avis-deces-content{
    display: flex;
    flex-direction: column;
    align-items : flex-start;
  }
  .avis-deces-footer a{
    margin-bottom: 5px;
  }
}
