/* css/informations.css — Page liste des articles / informations */

/* ── Hero ─────────────────────────────────────────────────────────────────── */
.info-hero {
  background: linear-gradient(135deg, #003366 0%, #0055a5 100%);
  color: #fff;
  padding: 56px 5% 48px;
  text-align: center;
}
.info-hero h1 { font-size: 2.4rem; font-weight: 900; margin-bottom: 12px; }
.info-hero p  { font-size: 1.05rem; opacity: 0.9; max-width: 640px; margin: 0 auto; }
@media (max-width: 600px) { .info-hero h1 { font-size: 1.7rem; } }

/* ── Category sections ────────────────────────────────────────────────────── */
.cat-section { padding: 48px 5%; border-bottom: 1px solid var(--border); }
.cat-section:last-child { border-bottom: none; }
.cat-section.section-alt { background: var(--gray-bg); }

.cat-header {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-bottom: 32px;
}
.cat-thumb {
  width: 90px; height: 90px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid var(--border);
  background: #fff;
}
.cat-thumb img { width: 100%; height: 100%; object-fit: contain; }
.cat-header-text h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}
.cat-header-text p {
  font-size: 0.93rem;
  color: var(--text-light);
  margin-bottom: 12px;
  line-height: 1.5;
}
.cat-see-all {
  display: inline-block;
  background: var(--navy);
  color: #fff;
  padding: 7px 18px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 700;
  transition: background 0.2s;
}
.cat-see-all:hover { background: var(--blue); color: #fff; }

/* ── Article grid ─────────────────────────────────────────────────────────── */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
@media (max-width: 900px) { .articles-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px) { .articles-grid { grid-template-columns: 1fr; } }

/* ── Article card ─────────────────────────────────────────────────────────── */
.article-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.2s, box-shadow 0.2s;
}
.article-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.article-card-img { width: 100%; height: 160px; overflow: hidden; background: var(--gray-bg); }
.article-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s; }
.article-card:hover .article-card-img img { transform: scale(1.04); }
.article-card-body { padding: 16px 18px; display: flex; flex-direction: column; flex: 1; }
.article-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.article-cat {
  background: var(--blue-light);
  color: var(--blue);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  letter-spacing: 0.04em;
}
.article-date { font-size: 0.78rem; color: var(--text-light); margin-left: auto; }
.article-card-title {
  font-size: 0.97rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
  line-height: 1.4;
}
.article-card-excerpt {
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.55;
  flex: 1;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}
.article-read {
  display: inline-block;
  margin-top: 12px;
  color: var(--blue);
  font-size: 0.82rem;
  font-weight: 700;
}
.article-card:hover .article-read { color: var(--navy); }

/* ── Cat header RTL ───────────────────────────────────────────────────────── */
[dir="rtl"] .cat-header { flex-direction: row-reverse; }
[dir="rtl"] .article-date { margin-left: 0; margin-right: auto; }
