/* css/category.css — Page catégorie */

/* ── Hero catégorie ───────────────────────────────────────────────────────── */
.cat-hero {
  background: linear-gradient(135deg, #003366 0%, #007acc 100%);
  color: #fff;
  padding: 52px 5% 44px;
}
.cat-hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 32px;
}
.cat-hero-img {
  width: 100px; height: 100px;
  border-radius: 14px;
  overflow: hidden;
  flex-shrink: 0;
  border: 3px solid rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.1);
}
.cat-hero-img img { width: 100%; height: 100%; object-fit: contain; }
.cat-hero-text h1 { font-size: 2rem; font-weight: 900; margin-bottom: 8px; }
.cat-hero-text p  { font-size: 0.97rem; opacity: 0.88; line-height: 1.55; }
@media (max-width: 640px) {
  .cat-hero-inner { flex-direction: column; text-align: center; }
  .cat-hero-text h1 { font-size: 1.5rem; }
}

.page-content-wrapper {
  padding: 0 5%;
}

/* ── Breadcrumb ───────────────────────────────────────────────────────────── */
.breadcrumb {
  max-width: 1100px;
  margin: 0 auto 20px;
  padding: 18px 0 0;
  font-size: 0.83rem;
  color: var(--text-light);
}
.breadcrumb a { color: var(--blue); }
.breadcrumb a:hover { color: var(--navy); }
.breadcrumb span { margin: 0 6px; color: var(--border); }

/* ── Articles section ─────────────────────────────────────────────────────── */
.articles-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 8px 0 48px;
}
.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 8px;
}
.section-header h2 { font-size: 1.4rem; font-weight: 700; color: var(--navy); }
.article-count { font-size: 0.85rem; color: var(--text-light); }

/* ── No articles ──────────────────────────────────────────────────────────── */
.no-articles { text-align: center; padding: 60px 20px; color: var(--text-light); font-size: 1rem; }

/* ── Other specialities ───────────────────────────────────────────────────── */
.other-specialities {
  background: var(--gray-bg);
  padding: 40px 5%;
  border-top: 1px solid var(--border);
}
.other-specialities h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--navy);
  text-align: center;
  margin-bottom: 8px;
}
.other-divider {
  width: 40px; height: 3px;
  background: var(--blue);
  border-radius: 2px;
  margin: 0 auto 24px;
}
.other-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  max-width: 900px;
  margin: 0 auto;
}
@media (max-width: 600px) { .other-grid { grid-template-columns: 1fr; } }
.other-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  text-decoration: none;
  color: var(--navy);
  transition: all 0.2s;
}
.other-card:hover { border-color: var(--blue); box-shadow: var(--shadow); transform: translateY(-2px); }
.other-card-img { width: 48px; height: 48px; border-radius: 8px; overflow: hidden; flex-shrink: 0; background: var(--gray-bg); }
.other-card-img img { width: 100%; height: 100%; object-fit: contain; }
.other-card-name { font-weight: 700; font-size: 0.9rem; }

/* ── RTL support ──────────────────────────────────────────────────────────── */
[dir="rtl"] .cat-hero-inner { flex-direction: row-reverse; }
[dir="rtl"] .section-header { flex-direction: row-reverse; }
[dir="rtl"] .other-card { flex-direction: row-reverse; }
