/* ============================================================
   ARTICLES.CSS — Archive des actualités scientifiques
   ============================================================ */

/* ── EN-TÊTE DE L'ARCHIVE ─────────────────────────────────── */
.archive-header {
  background: var(--white);
  border-bottom: 1px solid var(--slate-200);
  padding: var(--s10) 0 var(--s8);
}

.archive-header .container {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--s6);
  flex-wrap: wrap;
}

.archive-title {
  font-family: var(--serif);
  font-size: var(--t-3xl);
  font-weight: 700;
  color: var(--ink);
  margin-top: var(--s2);
}

.archive-count {
  font-family: var(--sans);
  font-size: var(--t-sm);
  font-weight: 600;
  color: var(--slate-400);
  background: var(--slate-100);
  border: 1px solid var(--slate-200);
  padding: var(--s2) var(--s5);
  border-radius: 20px;
  align-self: center;
  white-space: nowrap;
}

/* ── FILTRE PAR CATÉGORIE ─────────────────────────────────── */
.filter-row {
  display: flex;
  align-items: center;
  gap: var(--s2);
  flex-wrap: wrap;
  margin-bottom: var(--s8);
  padding-bottom: var(--s6);
  border-bottom: 1px solid var(--slate-100);
}

.filter-btn {
  display: inline-flex;
  align-items: center;
  padding: var(--s2) var(--s4);
  border-radius: 20px;
  font-family: var(--sans);
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--slate-500);
  background: var(--white);
  border: 1px solid var(--slate-200);
  transition: all var(--dur) var(--ease);
  text-decoration: none;
  cursor: pointer;
}

.filter-btn:hover,
.filter-btn.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
}

.filter-btn.is-active-green {
  background: var(--green-900);
  border-color: var(--green-900);
  color: var(--white);
}

/* ── DOI DANS L'EXTRAIT ───────────────────────────────────── */
.art-doi {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  gap: var(--s2);
  font-family: var(--sans);
  font-size: var(--t-xs);
  font-weight: 600;
  color: var(--green-800);
  background: var(--green-50);
  border: 1px solid var(--green-200);
  padding: 3px var(--s3);
  border-radius: 20px;
  transition: all var(--dur) var(--ease);
  word-break: break-all;
}

.art-doi:hover {
  background: var(--green-900);
  border-color: var(--green-900);
  color: var(--white);
}

/* ── CONTENT AREA SPACING ─────────────────────────────────── */
.content-col { min-width: 0 }

/* ── CARD BASE ──────────────────────────────────────────────── */
.articles-list {
  display: flex;
  flex-direction: column;
  gap: var(--s5);
}
.art-card {
  position: relative;
}

.art-card-link {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.art-doi,
.art-pdf {
  position: relative;
  z-index: 2;
}
.art-card > a {
  display: flex;
  text-decoration: none;
  color: inherit;
}
a.art-card {
  text-decoration: none;
  color: inherit;
}
.art-card {
  position: relative;
  display: flex;
  gap: var(--s1);
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: 10px;
  overflow: hidden;
  transition: box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.art-card:hover {
  border-color: var(--slate-300);
  box-shadow: 0 4px 16px rgba(0,0,0,.06);
}

/* ── STRIPE VERTICALE ::before ──────────────────────────────── */
.art-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  border-radius: 10px 0 0 10px;
}

.art-card--article::before { background: var(--green-700); }
.art-card--pub::before     { background: #3B82F6; }

/* ── IMAGE / PLACEHOLDER ────────────────────────────────────── */
.art-card-img {
  flex-shrink: 0;
  width: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--slate-50);
  border-right: 1px solid var(--slate-100);
  margin-left: 4px;
  overflow: hidden;
}

.art-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.art-card-img-placeholder {
  font-family: var(--serif);
  font-size: var(--t-xs);
  font-weight: 700;
  color: var(--slate-400);
  text-align: center;
  padding: var(--s4);
  line-height: 1.4;
}

/* ── BODY ───────────────────────────────────────────────────── */
.art-card-body {
  flex: 1;
  min-width: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--s3);
}

/* ── META ───────────────────────────────────────────────────── */
.art-card-meta {
  display: flex;
  align-items: center;
  gap: var(--s3);
  flex-wrap: wrap;
  padding: var(--s5);
  padding-bottom: 0px;
}

.badge-article {
  background: var(--green-50);
  color: var(--green-800);
  border: 1px solid var(--green-200);
  font-size: var(--t-xs);
  font-weight: 600;
  padding: 2px var(--s3);
  border-radius: 20px;
  font-family: var(--sans);
  letter-spacing: .04em;
  text-transform: uppercase;
}

.badge-pub {
  background: #EFF6FF;
  color: #1D4ED8;
  border: 1px solid #BFDBFE;
  font-size: var(--t-xs);
  font-weight: 600;
  padding: 2px var(--s3);
  border-radius: 20px;
  font-family: var(--sans);
  letter-spacing: .04em;
  text-transform: uppercase;
}

.art-card-date {
  font-family: var(--sans);
  font-size: var(--t-xs);
  color: var(--slate-400);
}

.art-card-by {
  font-family: var(--sans);
  font-size: var(--t-xs);
  color: var(--slate-400);
}

.art-card-by a {
  color: var(--slate-600);
  font-weight: 600;
  text-decoration: none;
}

.art-card-by a:hover { color: var(--ink); }

/* ── TITRE ──────────────────────────────────────────────────── */
.art-card-title {
  font-family: var(--serif);
  font-size: var(--t-lg);
  font-weight: 700;
  line-height: 1.3;
  margin: 0;
  padding-left: var(--s5);
  padding-right: var(--s5);

}

.art-card-title a {
  color: var(--ink);
  text-decoration: none;
  transition: color var(--dur) var(--ease);
}

.art-card-title a:hover { color: var(--green-800); }

/* ── RÉSUMÉ ─────────────────────────────────────────────────── */
.resume-block{
  padding: var(--s5);
  background-color: #f9ffdd5e;
}
.art-card-resume {
  font-family: var(--sans);
  font-size: var(--t-sm);
  color: var(--slate-600);
  line-height: 1.6;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── META GRID (infos bibliographiques) ─────────────────────── */
.art-card-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s2) var(--s6);
  padding: var(--s3) var(--s4);
  background: var(--slate-50);
  border: 1px solid var(--slate-100);
  border-radius: 6px;
  margin: var(--s5);
  margin-bottom: 0;
  margin-top: 0;
}

.art-card-meta-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.art-card-meta-lbl {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--slate-400);
}

.art-card-meta-val {
  font-family: var(--sans);
  font-size: var(--t-xs);
  color: var(--slate-700);
  font-weight: 500;
}

/* ── FOOTER ─────────────────────────────────────────────────── */
.art-card-foot {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: var(--s2);
  margin-top: auto;
  padding: var(--s3);
  border-top: 1px solid var(--slate-100);

}

.art-card-fi {
  font-family: var(--sans);
  font-size: var(--t-xs);
  font-weight: 700;
  color: var(--green-800);
  background: var(--green-50);
  border: 1px solid var(--green-200);
  padding: 2px var(--s3);
  border-radius: 20px;
}

.art-card-cat {
  font-family: var(--sans);
  font-size: var(--t-xs);
  color: var(--slate-400);
  margin: 0;
}

.art-card-cat a {
  color: var(--slate-600);
  text-decoration: none;
  font-weight: 600;
}

/* ── PDF BUTTON ─────────────────────────────────────────────── */
.art-pdf {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  font-family: var(--sans);
  font-size: var(--t-xs);
  font-weight: 700;
  color: var(--white);
  background: var(--green-800);
  border: 1px solid var(--green-900);
  padding: 3px var(--s3);
  border-radius: 20px;
  text-decoration: none;
  transition: all var(--dur) var(--ease);
}

.art-pdf:hover { background: var(--green-900); }

/* ── UNITÉ (actualités) ─────────────────────────────────────── */
.art-card-unite {
  font-family: var(--sans);
  font-size: var(--t-xs);
  font-weight: 600;
  color: var(--slate-500);
  background: var(--slate-100);
  border: 1px solid var(--slate-200);
  padding: 2px var(--s3);
  border-radius: 20px;
}

/* ── TAGS ───────────────────────────────────────────────────── */
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
}

.tag {
  font-family: var(--sans);
  font-size: var(--t-xs);
  color: var(--slate-500);
  background: var(--white);
  border: 1px solid var(--slate-200);
  padding: 2px var(--s3);
  border-radius: 20px;
  text-decoration: none;
  transition: all var(--dur) var(--ease);
}

.tag:hover {
  background: var(--slate-100);
  color: var(--ink);
}

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 540px) {
  .art-card { flex-direction: column; }
  .art-card-img {
    width: 100%;
    height: 80px;
    border-right: none;
    border-bottom: 1px solid var(--slate-100);
    margin-left: 0;
  }
  .art-card::before {
    width: 100%;
    height: 4px;
    bottom: auto;
    border-radius: 10px 10px 0 0;
  }
  .art-card-meta-grid {
    grid-template-columns: 1fr;
  }
}
.file-badge--pdf {
  background: rgba(239, 68, 68, 0.12);
  color: #ef4444;
}

.file-badge--docx {
  background: rgba(59, 130, 246, 0.12);
  color: #3b82f6;
}

.file-badge--pptx {
  background: rgba(249, 115, 22, 0.12);
  color: #f97316;
}

.file-badge--xlsx {
  background: rgba(34, 197, 94, 0.12);
  color: #22c55e;
}
/* card container obligatoire */
.art-card {
  position: relative;
}

/* lien overlay propre */
.art-card-link {
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* BADGE MODERNE CLEAN */
.file-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 4px 10px;
  border-radius: 999px;

  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;

  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

  border: 1px solid rgba(255,255,255,.25);

  /* petit effet flottant propre */
  box-shadow: 0 6px 16px rgba(0,0,0,.08);
}

.abstract-label {
  display: inline-flex;
  align-items: center;
  gap: var(--s3);
  font-size: var(--t-xs);
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold-600);
  margin-bottom: var(--s4);
}

.abstract-label::before {
  content: '';
  width: 20px;
  height: 2px;
  background: var(--gold-500);
  flex-shrink: 0;
}

/* tableau */
table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--t-sm);
  background: var(--white);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--sh-sm);
  margin: var(--s8) 0;
}

thead th {
  background: var(--ink);
  color: var(--white);
  font-family: var(--sans);
  font-size: var(--t-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: var(--s3) var(--s5);
  text-align: left;
  white-space: nowrap;
}

tbody tr { transition: background var(--dur) var(--ease) }
tbody tr:nth-child(even) { background: var(--slate-100) }
tbody tr:hover           { background: var(--gold-50) }

td {
  padding: var(--s3) var(--s5);
  border-bottom: 1px solid var(--slate-200);
  color: var(--slate-700);
  line-height: 1.5;
  vertical-align: top;
}

tbody tr:last-child td { border-bottom: none }

/* Blockquote */
blockquote {
  border-left: 4px solid var(--green-800);
  margin: var(--s8) 0;
  padding: var(--s5) var(--s6);
  background: var(--green-50);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
}

.art-content blockquote p {
  color: var(--green-900);
  font-style: italic;
  margin: 0;
  max-width: 100%;
}