/* ==================================================
   ARTICLE CARDS — CMS ALSACE.CO
   ================================================== */

.article-card{
  background:#0f1a2e;
  border:1px solid rgba(255,255,255,.10);
  border-radius:18px;
  overflow:hidden;
  display:flex;
  flex-direction:column;
  box-shadow: 0 12px 40px rgba(0,0,0,.35);
  transition: transform .15s ease, border-color .15s ease;
}

.article-card:hover{
  transform: translateY(-2px);
  border-color: rgba(255,255,255,.18);
}

/* =========================
   Image
   ========================= */
.article-card-img{
  position:relative;
  height:160px;
  background: rgba(255,255,255,.06);
  min-height:140px;
}

.article-card-img img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.article-card-img::after{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(
    180deg,
    rgba(0,0,0,0) 40%,
    rgba(0,0,0,.25) 100%
  );
}

/* =========================
   Top meta (source / date)
   ========================= */
.article-card-top{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  padding:12px 12px 0;
  flex-wrap:wrap;
}

.article-source{
  display:flex;
  align-items:center;
  gap:8px;
  font-size:13px;
  color: rgba(234,240,255,.72);
  min-width:0;
  flex:1;
}

.article-source-badge{
  width:26px;
  height:26px;
  border-radius:10px;
  display:grid;
  place-items:center;
  background: rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.10);
  flex-shrink:0;
}

.article-date{
  font-size:12px;
  color: rgba(234,240,255,.55);
  white-space:nowrap;
  flex-shrink:0;
}

/* =========================
   Body
   ========================= */
.article-card-body{
  padding:10px 12px 12px;
  display:flex;
  flex-direction:column;
  gap:10px;
  flex:1;
}

.article-title{
  font-size:16px;
  line-height:1.25;
  font-weight:750;
  margin:0;
  word-wrap:break-word;
  overflow-wrap:break-word;

  display:-webkit-box;
  -webkit-line-clamp:3;
  -webkit-box-orient:vertical;
  overflow:hidden;
}

.article-excerpt{
  font-size:13px;
  color: rgba(234,240,255,.70);
  line-height:1.35;
  word-wrap:break-word;
  overflow-wrap:break-word;

  display:-webkit-box;
  -webkit-line-clamp:3;
  -webkit-box-orient:vertical;
  overflow:hidden;
}

/* =========================
   Actions
   ========================= */
.article-card-actions{
  margin-top:auto;
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}

.article-readmore{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.18);
  color:#eaf0ff;
  font-weight:650;
  text-decoration:none;
  white-space:nowrap;
}

.article-readmore:hover{
  border-color: rgba(255,255,255,.20);
}

.article-dot{
  width:10px;
  height:10px;
  border-radius:50%;
  background:#ff0000;
  box-shadow: 0 0 0 6px rgba(255,0,0,.12);
  flex-shrink:0;
}

/* =========================
   RESPONSIVE
   ========================= */
@media (max-width: 640px){
  .article-card-img{
    height:140px;
  }
  
  .article-card-top{
    padding:10px 10px 0;
  }
  
  .article-card-body{
    padding:10px;
  }
  
  .article-title{
    font-size:15px;
  }
  
  .article-excerpt{
    font-size:12.5px;
  }
  
  .article-source{
    font-size:12px;
  }
  
  .article-date{
    font-size:11px;
  }
}

@media (max-width: 480px){
  .article-card{
    border-radius:16px;
  }
  
  .article-card-img{
    height:130px;
    min-height:120px;
  }
  
  .article-readmore{
    font-size:13px;
    padding:8px 10px;
  }
  
  .article-source-badge{
    width:24px;
    height:24px;
  }
}
