/* Bouton favori */
.ecf-fav-btn {
    background: transparent !important;
    border: none;
    font-size: 14px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0px;
    padding: 0 !important;
    color:#333 !important;
    border:none !important;
    transition: background .2s ease, color .2s ease, opacity .2s ease;
}

.ecf-fav-btn:hover {
    background: rgba(0,0,0,0.05);
    color: #222;
}

.ecf-fav-btn.is-fav,
.ecf-fav-btn.is-fav i {
    color: #f4b400 !important;
    fill: #f4b400 !important;
/*     font-weight: 600; */
}
.ecf-fav-btn i {
	margin-right:2px;
}

.ecf-fav-btn.loading {
    opacity: .5;
    pointer-events: none;
}

/* Page Mes Favoris */
.ecf-favorites-wrapper {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ecf-favorites-group-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
    background:#85A6A6;
    padding:15px;
    border-radius:5px;
    color:#fff;
}

.ecf-favorites-grid {
    display: grid;
/*     grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); */
}

.ecf-favorite-card {
    background: #fff;
/*     border-radius: 10px; */
    overflow: hidden;
/*     box-shadow: 0 1px 4px rgba(0,0,0,0.08); */
    display: flex;
    flex-direction: row;

    justify-content: space-between;
}

.ecf-favorite-card:not(:first-child) {
    padding-top:10px;
    margin-top:10px;
    border-top : 1px solid #ddd;
}

.ecf-favorite-card-thumb img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    display: block;
}

.ecf-favorite-card-thumb-placeholder {
    width: 100%;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f3f3;
    font-size: 0.9rem;
    color: #666;
}

.ecf-favorite-card-body {
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ecf-favorite-card-title {
    font-size: 1rem;
    margin: 0;
}

.ecf-favorite-card-title a {
    color: #222;
    text-decoration: none;
}

.ecf-favorite-card-title a:hover {
    text-decoration: underline;
}

.ecf-favorite-card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #888;
    display:none;
}

.ecf-favorite-card-button {
	align-items:center;
	justify-content:center;
	display:flex;
	    flex-direction: column;
}

.ecf-fav-btn.ecf-fav-btn--inline {
    align-self: flex-start;
    margin-top: 4px;
}

.ecf-fav-btn-icon-only {
    padding: 4px;
    font-size: 20px;
    width: 24px;
    height: 24px;
    line-height: 20px;
    justify-content: center;
    border-radius: 50%;
}

.ecf-fav-btn-icon-only:hover {
    background: rgba(0,0,0,0.05);
}

.ecf-favorite-card-excerpt {
	margin-bottom:0;
}




/* ===========================
   Docs — Cards list (common)
   =========================== */

.ecf-favorite-cards{
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ecf-favorite-card{
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #fff;
  transition: background .15s ease, border-color .15s ease, transform .05s ease;
}

.ecf-favorite-card:hover{
  background: #f8fafc;
  border-color: #dbeafe;
}

.ecf-favorite-card:active{
  transform: scale(0.995);
}

.ecf-favorite-card-left{
  display:flex;
  align-items:center;
  justify-content:center;
}

.ecf-favorite-card-icon{
  width: 38px;
  height: 38px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius: 12px;
  background: #f1f5f9;
  color: #334155;
}

.ec-ged-doc-icon-svg svg{
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.ecf-favorite-card-main{
  flex: 1;
  min-width: 0;
}

.ecf-favorite-card-title{
  display: inline-block;
  font-weight: 650;
  color: #0f172a;
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

.ecf-favorite-card-title:hover{
  text-decoration: underline;
}

.ecf-favorite-card-sub{
  font-size: 12px;
  color: #64748b;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ecf-favorite-card-actions{
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Action icons (bootstrap icons) */
.ecf-favorite-card-actions .ec-ged-icon,
.ecf-favorite-card-actions .ec-ged-fav-toggle{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  color: #475569;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, transform .05s ease;
  text-decoration:none;
}

.ecf-favorite-card-actions .ec-ged-icon:hover,
.ecf-favorite-card-actions .ec-ged-fav-toggle:hover{
  background: #e0f2fe;
  color: #0c4a6e;
}

.ecf-favorite-card-actions .ec-ged-icon:active,
.ecf-favorite-card-actions .ec-ged-fav-toggle:active{
  transform: scale(.97);
}

.ec-ged-fav-toggle.is-fav{
  color: #f59e0b;
}
.ec-ged-fav-toggle.is-fav:hover{
  color: #d97706;
}

/* Responsive cards */
@media (max-width: 520px){
  .ecf-favorite-card{ align-items: flex-start; }
  .ecf-favorite-card-actions{ align-self: flex-start; }
}