/* Nouvelles cartes avec image de fond améliorées */
.lien-card {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: rgba(30, 41, 56, 1);
  border: 1px solid rgba(54, 65, 84, 0.6);
}

.lien-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.25);
}

/* Image de fond avec overlay optimisé */
.lien-card.has-image {
  min-height: 280px;  
}

.card-image-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  background-position: center;
  filter: blur(1px) brightness(0.7);
  z-index: 1;
}

.card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;

  z-index: 2;
}

.card-content {
  position: relative;
  z-index: 3;
  height: 100%;
  display: flex;
    background: linear-gradient(
    180deg,
    rgba(20, 26, 44, 0) 0%,
    rgba(20,26,44,0.85) 30%,
    rgba(20,26,44,0.85) 70%,
    rgba(20, 26, 44, 0.85) 100%
  );
  flex-direction: column;
  padding: 1.5rem;
}

/* Header de la carte */
.lien-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.header-content {
  flex: 1;
  min-width: 0;
}

.header-icon {
  flex-shrink: 0;
  margin-left: 1rem;
}

.lien-title {
  display: block;
  font-size: 1.25rem;
  font-weight: 700;
  color: white;
  text-decoration: none;
  line-height: 1.3;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
  transition: color 0.2s;
}

.lien-title:hover {
  color: #A374FF;
  text-shadow: 0 0 8px rgba(163, 116, 255, 0.3);
  text-decoration: underline;
}

.lien-date {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.8);
  font-weight: 500;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.favicon {
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  border: 2px solid rgba(255,255,255,0.1);
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* Description */
.lien-description {
  flex: 1;
  color: rgba(255,255,255,0.95);
  line-height: 1.6;
  font-size: 0.95rem;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
  margin-bottom: 1.5rem;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
}

/* Catégories */
.categories-container {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.category-badge {
  background: rgba(163, 116, 255, 0.15);
  border: 1px solid rgba(163, 116, 255, 0.3);
  color: #A374FF;
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  text-shadow: none;
}
}

.category-badge:hover {
  background: rgba(163, 116, 255, 0.25);
  border-color: rgba(163, 116, 255, 0.5);
  transform: translateY(-1px);
}

.no-category-badge {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.6);
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.8rem;
  font-style: italic;
}

/* Actions (Shift+hover) */
.lien-actions {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: flex;
  gap: 0.5rem;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 10;
}

.lien.show-actions .lien-actions {
  opacity: 1;
  transform: translateY(0);
.action-btn {
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  text-shadow: none;
}
  text-shadow: none;
}

.action-btn-edit {
  background: rgba(34, 197, 94, 0.9);
  color: white;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.action-btn-edit:hover {
  background: rgba(34, 197, 94, 1);
  transform: translateY(-2px);
}

.action-btn-delete {
  background: rgba(239, 68, 68, 0.9);
  color: white;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.action-btn-delete:hover {
  background: rgba(239, 68, 68, 1);
  transform: translateY(-2px);
}

/* Cartes sans image (fallback) */
.lien-card:not(.has-image) {
  background: linear-gradient(135deg, rgba(30, 41, 56, 1) 0%, rgba(54, 65, 84, 0.8) 100%);
}



.lien-card:not(.has-image) .lien-date {
  color: rgba(255,255,255,0.7);
  text-shadow: none;
}

.lien-card:not(.has-image) .lien-description {
  color: rgba(255,255,255,0.9);
  text-shadow: none;
}