/* 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; }

/* ── Cat sections (page informations, style DG) ───────────────────────────── */
.cat-section {
  margin-bottom: 52px;
}
.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 { flex: 1; }
.cat-header-text h2 { font-size: 1.6rem; font-weight: 700; color: #003366; margin-bottom: 6px; }
.cat-header-text p  { font-size: 0.93rem; color: #4a5568; margin-bottom: 0; line-height: 1.5; }
.cat-see-all {
  flex-shrink: 0;
  align-self: center;
  display: inline-block;
  background: #003366;
  color: #fff;
  padding: 7px 18px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
  text-decoration: none;
  transition: background 0.2s;
}
.cat-see-all:hover { background: #007ACC; color: #fff; }
@media (max-width: 640px) {
  .cat-header { display: grid; grid-template-columns: 90px 1fr; grid-template-rows: auto auto; column-gap: 16px; row-gap: 10px; }
  .cat-thumb { grid-row: 1 / 3; grid-column: 1; }
  .cat-header-text { grid-row: 1; grid-column: 2; }
  .cat-see-all { grid-row: 2; grid-column: 2; }
}
/* Note: pas de row-reverse en RTL (alignement DG: image gauche, bouton droite) */

/* ─── Unité visuelle avec docteurgozlan.fr (palette identique DG) ───────── */
.other-specialities {
  background: #f7f9fc;                        /* DG --gray-bg */
  border-top-color: #dde8f0;                  /* DG --border  */
}
.other-specialities h2 {
  color: #003366;                             /* DG --navy    */
  font-size: 1.3rem;                          /* DG explicit (override règle h2 globale clamp RET) */
  letter-spacing: normal;                     /* DG (RET applique -.025em global) */
  line-height: 1.4;                           /* DG (RET applique 1.15 global)    */
  font-family: 'Roboto', system-ui, sans-serif;
}
.other-divider {
  background: #007ACC;                        /* DG --blue    */
}
.other-card {
  border-color: #dde8f0;                      /* DG --border  */
}
.other-card:hover {
  border-color: #007ACC;                      /* DG --blue    */
}
.other-card-img {
  background: #f7f9fc;                        /* DG --gray-bg */
}
