/* ══════════════════════════════════════════════════════════════
   JOURNALISTS — Front-page section + Listing page + Profile page
   ══════════════════════════════════════════════════════════════ */

/* ── Shared breadcrumb (reuses .jn- prefix) ── */
.jn-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #6b7280;
  margin-bottom: 20px;
  font-family: 'Source Sans 3', sans-serif;
}
.jn-breadcrumb a { color: #6b7280; text-decoration: none; }
.jn-breadcrumb a:hover { color: #00AEEF; }

.jn-empty {
  text-align: center;
  color: #888;
  padding: 40px 0;
  font-family: 'Source Sans 3', sans-serif;
}

/* ══════════════════════════════════════════════════════════════
   FRONT-PAGE SECTION
   ══════════════════════════════════════════════════════════════ */
.jn-fp-section {
  padding: 52px 0 48px;
  background: #f8f9fa;
  border-top: 1px solid #e5e7eb;
}

.jn-fp-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  margin-top: 32px;
}

.jn-fp-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  gap: 0;
  transition: transform .2s;
}
.jn-fp-card:hover { transform: translateY(-4px); }

.jn-fp-photo-wrap {
  width: 100%;
  aspect-ratio: 3/4;
  overflow: hidden;
  border-radius: 4px;
  background: #1a2a42;
  position: relative;
}
.jn-fp-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: opacity .2s;
}
.jn-fp-card:hover .jn-fp-photo { opacity: .9; }

.jn-fp-info {
  width: 100%;
  background: #0d1a2e;
  padding: 10px 10px 12px;
  border-radius: 0 0 4px 4px;
}
.jn-fp-name {
  display: block;
  font-family: 'Merriweather', Georgia, serif;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 3px;
}
.jn-fp-role {
  display: block;
  font-size: 11px;
  color: #9ca3af;
  font-family: 'Source Sans 3', sans-serif;
  line-height: 1.4;
}

.jn-fp-footer {
  text-align: center;
  margin-top: 32px;
}
.jn-fp-more {
  display: inline-block;
  padding: 11px 28px;
  background: #0d1a2e;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  font-family: 'Source Sans 3', sans-serif;
  text-decoration: none;
  border-radius: 4px;
  transition: background .2s;
}
.jn-fp-more:hover { background: #1a3a5c; }

/* Responsive front-page grid */
@media (max-width: 1024px) { .jn-fp-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 700px)  { .jn-fp-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; } }
@media (max-width: 480px)  { .jn-fp-grid { grid-template-columns: repeat(2, 1fr); } }


/* ══════════════════════════════════════════════════════════════
   LISTING PAGE — /nos-journalistes/
   ══════════════════════════════════════════════════════════════ */
.jn-page { background: #f8f9fa; min-height: 60vh; }

/* Hero */
.jn-hero {
  background: linear-gradient(135deg, #0a1628 0%, #0d2040 60%, #0a1628 100%);
  padding: 56px 0 48px;
  border-bottom: 4px solid #00AEEF;
  position: relative;
  overflow: hidden;
}
.jn-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(0,174,239,.12) 0%, transparent 65%);
  pointer-events: none;
}
.jn-hero-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
}
.jn-hero-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2px;
  color: #00AEEF;
  border: 1px solid rgba(0,174,239,.4);
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 16px;
  font-family: 'Source Sans 3', sans-serif;
}
.jn-hero-title {
  font-family: 'Merriweather', Georgia, serif;
  font-size: 36px;
  font-weight: 900;
  color: #fff;
  margin: 0 0 16px;
  line-height: 1.2;
}
.jn-hero-title span { color: #00AEEF; }
.jn-hero-intro {
  font-size: 16px;
  color: #9ca3af;
  line-height: 1.7;
  margin: 0;
  font-family: 'Source Sans 3', sans-serif;
  max-width: 600px;
}

/* Wrap */
.jn-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 24px 60px;
}

/* Alphabet nav */
.jn-alpha-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 36px;
  padding: 16px 20px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 6px rgba(0,0,0,.06);
}
.jn-alpha-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 700;
  color: #374151;
  text-decoration: none;
  font-family: 'Source Sans 3', sans-serif;
  transition: background .15s, color .15s;
}
.jn-alpha-link:hover {
  background: #0d1a2e;
  color: #fff;
}

/* Alphabetical group */
.jn-group { margin-bottom: 48px; }
.jn-group-letter {
  font-family: 'Merriweather', Georgia, serif;
  font-size: 28px;
  font-weight: 900;
  color: #0d1a2e;
  border-bottom: 2px solid #0d1a2e;
  padding-bottom: 8px;
  margin-bottom: 24px;
  line-height: 1;
}

/* Cards grid */
.jn-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.jn-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  border-radius: 4px;
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
.jn-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,.15);
}

.jn-card-photo-wrap {
  width: 100%;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: #1a2a42;
  flex-shrink: 0;
}
.jn-card-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: opacity .2s;
}
.jn-card:hover .jn-card-photo { opacity: .9; }

.jn-card-info {
  background: #0d1a2e;
  padding: 12px 12px 14px;
  flex: 1;
}
.jn-card-name {
  display: block;
  font-family: 'Merriweather', Georgia, serif;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  line-height: 1.35;
  margin-bottom: 4px;
}
.jn-card-role {
  display: block;
  font-size: 11px;
  color: #9ca3af;
  font-family: 'Source Sans 3', sans-serif;
  line-height: 1.4;
}

@media (max-width: 1024px) { .jn-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 700px)  { .jn-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; } }
@media (max-width: 480px)  { .jn-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 340px)  { .jn-grid { grid-template-columns: 1fr 1fr; } }


/* ══════════════════════════════════════════════════════════════
   PROFILE PAGE — /author/{slug}/
   ══════════════════════════════════════════════════════════════ */
.jn-profile-page { background: #f8f9fa; min-height: 60vh; }

/* Profile hero */
.jn-profile-hero {
  background: linear-gradient(135deg, #0a1628 0%, #0d2040 60%, #0a1628 100%);
  padding: 48px 0 44px;
  border-bottom: 4px solid #00AEEF;
}
.jn-profile-hero-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Profile card inside hero */
.jn-profile-card {
  display: grid;
  grid-template-columns: 160px 1fr auto;
  gap: 32px;
  align-items: flex-start;
  margin-top: 24px;
}

.jn-profile-photo-wrap {
  width: 160px;
  height: 210px;
  border-radius: 4px;
  overflow: hidden;
  border: 3px solid rgba(255,255,255,.15);
  flex-shrink: 0;
}
.jn-profile-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.jn-profile-info { flex: 1; }
.jn-profile-name {
  font-family: 'Merriweather', Georgia, serif;
  font-size: 30px;
  font-weight: 900;
  color: #fff;
  margin: 0 0 8px;
  line-height: 1.2;
}
.jn-profile-role {
  font-size: 15px;
  color: #00AEEF;
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 600;
  margin: 0 0 16px;
}
.jn-profile-bio {
  font-size: 14px;
  color: #9ca3af;
  line-height: 1.75;
  font-family: 'Source Sans 3', sans-serif;
  margin: 0 0 14px;
  max-width: 520px;
}
.jn-profile-count {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #6b7280;
  font-family: 'Source Sans 3', sans-serif;
  margin: 0;
}

.jn-profile-action { display: flex; align-items: flex-start; padding-top: 4px; }
.jn-profile-all-btn {
  display: inline-block;
  padding: 10px 20px;
  background: rgba(255,255,255,.1);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  font-family: 'Source Sans 3', sans-serif;
  text-decoration: none;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,.2);
  white-space: nowrap;
  transition: background .2s;
}
.jn-profile-all-btn:hover { background: rgba(255,255,255,.2); }

/* Articles section */
.jn-profile-wrap {
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 24px 60px;
}
.jn-profile-section-title {
  font-family: 'Merriweather', Georgia, serif;
  font-size: 22px;
  font-weight: 900;
  color: #0d1a2e;
  margin: 0 0 28px;
  padding-bottom: 12px;
  border-bottom: 2px solid #0d1a2e;
}

/* Articles grid */
.jn-articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.jn-article-card {
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 1px 6px rgba(0,0,0,.07);
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s;
}
.jn-article-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,.12); }

.jn-article-img-link { display: block; aspect-ratio: 16/10; overflow: hidden; background: #e8e8e8; }
.jn-article-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .3s;
}
.jn-article-card:hover .jn-article-img { transform: scale(1.03); }

.jn-article-body { padding: 16px; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.jn-article-cat {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--red, #c00);
  font-family: 'Source Sans 3', sans-serif;
}
.jn-article-title {
  font-family: 'Merriweather', Georgia, serif;
  font-size: 15px;
  font-weight: 700;
  color: #0d1a2e;
  line-height: 1.4;
  margin: 0;
}
.jn-article-title a { color: inherit; text-decoration: none; }
.jn-article-title a:hover { color: var(--red, #c00); }
.jn-article-excerpt {
  font-size: 13px;
  color: #6b7280;
  line-height: 1.6;
  font-family: 'Source Sans 3', sans-serif;
  margin: 0;
  flex: 1;
}
.jn-article-date {
  font-size: 11px;
  color: #9ca3af;
  font-family: 'Source Sans 3', sans-serif;
  margin-top: auto;
}

/* Pagination */
.jn-pagination { margin-top: 40px; display: flex; justify-content: center; }
.jn-pagination .nav-links { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.jn-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  font-family: 'Source Sans 3', sans-serif;
  color: #374151;
  text-decoration: none;
  background: #fff;
  border: 1px solid #e5e7eb;
  transition: background .15s, color .15s;
}
.jn-pagination .page-numbers.current,
.jn-pagination .page-numbers:hover {
  background: #0d1a2e;
  color: #fff;
  border-color: #0d1a2e;
}
.jn-pagination .page-numbers.dots { border: none; background: none; }

/* Profile page responsive */
@media (max-width: 800px) {
  .jn-profile-card {
    grid-template-columns: 110px 1fr;
    grid-template-rows: auto auto;
    gap: 20px;
  }
  .jn-profile-action {
    grid-column: 1 / -1;
    padding-top: 0;
  }
  .jn-profile-photo-wrap { width: 110px; height: 145px; }
  .jn-profile-name { font-size: 22px; }
  .jn-articles-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .jn-profile-card {
    grid-template-columns: 1fr;
  }
  .jn-profile-photo-wrap { width: 100px; height: 132px; }
  .jn-articles-grid { grid-template-columns: 1fr; }
  .jn-hero-title { font-size: 26px; }
}
