/* Blog IndabaX — habillage éditorial (style revue scientifique), CSS pur */

.bx-page { background: #fdfcfa; }

.bx-container { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 20px; box-sizing: border-box; }
.bx-narrow { max-width: 720px; }

/* ---------- En-tête index ---------- */
.bx-hero {
  padding: 96px 0 56px;
  text-align: center;
  border-bottom: 1px solid #eae6dd;
}
.bx-kicker {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase;
  color: #7c3aed; margin-bottom: 18px;
}
.bx-hero h1 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  font-size: 2.4rem;
  line-height: 1.15;
  color: #1a1a17;
  margin: 0 0 18px;
  max-width: 720px;
  margin-left: auto; margin-right: auto;
}
@media (min-width: 768px) { .bx-hero h1 { font-size: 3.4rem; } }
.bx-hero p {
  font-size: 1.05rem; color: #6b6a5f; max-width: 560px; margin: 0 auto; line-height: 1.6;
}

.bx-search-wrap { padding: 32px 0 8px; }
.bx-search { position: relative; max-width: 520px; margin: 0 auto; }
.bx-search input {
  width: 100%; padding: 13px 18px 13px 44px; border-radius: 999px;
  border: 1px solid #e5e1d6; background: #fff; font-size: 14px;
  box-sizing: border-box;
}
.bx-search input:focus { outline: none; border-color: #8b5cf6; box-shadow: 0 0 0 3px rgba(139,92,246,0.12); }
.bx-search svg { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: #9c9a8c; }
.bx-search-results {
  position: absolute; left: 0; right: 0; top: calc(100% + 8px);
  background: #fff; border: 1px solid #e5e1d6; border-radius: 14px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.1); z-index: 20; overflow: hidden;
  max-height: 0; opacity: 0; pointer-events: none; transition: all 0.2s ease;
}
.bx-search-results.is-open { max-height: 360px; opacity: 1; pointer-events: auto; overflow-y: auto; }
.bx-search-results a { display: block; padding: 12px 16px; text-decoration: none; border-bottom: 1px solid #f1efe8; }
.bx-search-results a:last-child { border-bottom: none; }
.bx-search-results a:hover { background: #faf9f5; }
.bx-search-results .t { font-weight: 600; color: #1a1a17; font-size: 13.5px; }
.bx-search-results .e { color: #8a887a; font-size: 12px; margin-top: 2px; }

/* ---------- Article vedette ---------- */
.bx-featured {
  display: grid; grid-template-columns: 1fr; gap: 24px;
  padding: 48px 0; border-bottom: 1px solid #eae6dd; align-items: center;
}
@media (min-width: 900px) { .bx-featured { grid-template-columns: 1.1fr 1fr; gap: 48px; } }
.bx-featured-img { border-radius: 16px; overflow: hidden; aspect-ratio: 16/10; background: #eee; }
.bx-featured-img img { width: 100%; height: 100%; object-fit: cover; }
.bx-featured-label { font-family: 'JetBrains Mono', monospace; font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: #7c3aed; margin-bottom: 12px; }
.bx-featured h2 { font-family: 'Fraunces', Georgia, serif; font-size: 1.9rem; line-height: 1.2; margin: 0 0 14px; }
.bx-featured h2 a { color: #1a1a17; text-decoration: none; }
.bx-featured h2 a:hover { color: #6d28d9; }
.bx-featured p.bx-excerpt { color: #5c5b52; line-height: 1.7; margin-bottom: 18px; }

/* ---------- Grille d'articles ---------- */
.bx-grid-section { padding: 48px 0 80px; }
.bx-section-title { font-family: 'Fraunces', Georgia, serif; font-size: 1.5rem; color: #1a1a17; margin: 0 0 28px; }
.bx-grid {
  display: grid; grid-template-columns: 1fr; gap: 36px 28px;
}
@media (min-width: 640px) { .bx-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .bx-grid { grid-template-columns: repeat(3, 1fr); } }

.bx-card { display: flex; flex-direction: column; text-decoration: none; }
.bx-card-img { border-radius: 12px; overflow: hidden; aspect-ratio: 16/10; background: #eee; margin-bottom: 16px; }
.bx-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.bx-card:hover .bx-card-img img { transform: scale(1.04); }
.bx-card h3 { font-family: 'Fraunces', Georgia, serif; font-size: 1.2rem; line-height: 1.3; color: #1a1a17; margin: 0 0 8px; }
.bx-card:hover h3 { color: #6d28d9; }
.bx-card p.bx-excerpt { color: #6b6a5f; font-size: 13.5px; line-height: 1.6; margin: 0 0 14px; }

.bx-byline { display: flex; align-items: center; gap: 8px; margin-top: auto; }
.bx-avatar {
  width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg,#8b5cf6,#6366f1); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 10.5px; font-weight: 700;
}
.bx-byline-text { font-size: 12px; color: #8a887a; }
.bx-byline-text strong { color: #4b4a42; font-weight: 600; }
.bx-dot { display: inline-block; }

.bx-empty { grid-column: 1/-1; text-align: center; padding: 64px 20px; color: #9c9a8c; }
.bx-empty svg { margin: 0 auto 16px; opacity: 0.5; }

/* ---------- Article — page détail ---------- */
.bx-article-header { padding: 56px 0 32px; text-align: center; border-bottom: 1px solid #eae6dd; }
.bx-article-header h1 {
  font-family: 'Fraunces', Georgia, serif; font-weight: 600;
  font-size: 2rem; line-height: 1.2; color: #1a1a17; margin: 0 auto 20px; max-width: 780px;
}
@media (min-width: 768px) { .bx-article-header h1 { font-size: 2.75rem; } }

.bx-article-byline { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 8px; }
.bx-article-byline .bx-avatar { width: 40px; height: 40px; font-size: 14px; }
.bx-article-byline-info { text-align: left; }
.bx-article-byline-info .name { font-weight: 700; color: #1a1a17; font-size: 14px; }
.bx-article-byline-info .meta { font-size: 12.5px; color: #8a887a; }

.bx-hero-image { width: 100%; max-width: 900px; margin: 40px auto 0; padding: 0 20px; box-sizing: border-box; }
.bx-hero-image img { width: 100%; border-radius: 16px; display: block; box-shadow: 0 20px 50px rgba(0,0,0,0.1); }

.bx-article-body {
  padding: 48px 0;
  font-family: 'Charter', 'Georgia', serif;
  font-size: 1.15rem; line-height: 1.85; color: #2a2a24;
}
.bx-article-body p { margin: 0 0 1.4em; }
.bx-article-body img { max-width: 100%; border-radius: 10px; }
.bx-article-body a { color: #6d28d9; }

.bx-actions-bar {
  display: flex; justify-content: center; gap: 12px; flex-wrap: wrap;
  padding: 8px 0 40px;
}
.bx-action-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px; border-radius: 999px; font-size: 13.5px; font-weight: 600;
  border: 1px solid #e5e1d6; background: #fff; color: #4b4a42; cursor: pointer;
  transition: all 0.2s ease;
}
.bx-action-btn:hover { border-color: #c4b5fd; }
.bx-action-btn.is-active { background: #f3e8ff; border-color: #c4b5fd; color: #6d28d9; }
.bx-action-btn.is-following { background: #6d28d9; border-color: #6d28d9; color: #fff; }

.bx-share-row { display: flex; justify-content: center; align-items: center; gap: 16px; padding: 24px 0 48px; border-top: 1px solid #eae6dd; border-bottom: 1px solid #eae6dd; }
.bx-share-label { font-size: 12.5px; color: #8a887a; font-weight: 600; }
.bx-share-row a { width: 36px; height: 36px; border-radius: 50%; background: #f5f3ee; color: #4b4a42; display: flex; align-items: center; justify-content: center; text-decoration: none; }
.bx-share-row a:hover { background: #ede9fe; color: #6d28d9; }

/* ---------- Commentaires ---------- */
.bx-comments { padding: 48px 0 80px; }
.bx-comments h2 { font-family: 'Fraunces', Georgia, serif; font-size: 1.5rem; color: #1a1a17; margin: 0 0 28px; }

.bx-comment-form { margin-bottom: 40px; }
.bx-comment-form textarea {
  width: 100%; border: 1px solid #e5e1d6; border-radius: 12px; padding: 14px 16px;
  font-size: 14.5px; font-family: inherit; resize: vertical; box-sizing: border-box;
}
.bx-comment-form textarea:focus { outline: none; border-color: #8b5cf6; box-shadow: 0 0 0 3px rgba(139,92,246,0.12); }
.bx-comment-form button {
  margin-top: 12px; padding: 10px 22px; border-radius: 999px; border: none;
  background: linear-gradient(135deg,#8b5cf6,#6366f1); color: #fff; font-weight: 600; font-size: 13.5px; cursor: pointer;
}
.bx-reply-indicator { font-size: 13px; color: #7c3aed; margin-bottom: 8px; }
.bx-reply-indicator button { background: none; border: none; color: #7c3aed; text-decoration: underline; cursor: pointer; padding: 0; font-size: 13px; }

.bx-comment { display: flex; gap: 12px; margin-bottom: 24px; }
.bx-comment-body { flex: 1; min-width: 0; }
.bx-comment-meta { font-size: 12.5px; color: #8a887a; margin-bottom: 4px; }
.bx-comment-meta strong { color: #1a1a17; }
.bx-comment-text { font-size: 14.5px; color: #2a2a24; line-height: 1.6; }
.bx-comment-actions { display: flex; gap: 14px; margin-top: 6px; }
.bx-comment-actions button { background: none; border: none; padding: 0; font-size: 12.5px; color: #7c3aed; cursor: pointer; }
.bx-comment-actions button.bx-delete { color: #b91c1c; }
.bx-replies { margin-top: 14px; margin-left: 8px; padding-left: 16px; border-left: 2px solid #eae6dd; }
.bx-no-comments { color: #9c9a8c; font-style: italic; font-size: 14px; }
.bx-login-prompt { font-size: 14px; color: #6b6a5f; }
.bx-login-prompt a { color: #6d28d9; font-weight: 600; }

/* ---------- Articles similaires ---------- */
.bx-related { padding: 48px 0 80px; border-top: 1px solid #eae6dd; }
