/* ============================================
   Wiki / Base de connaissances — Clean & Dark
   Only affects /base-de-connaissances page
   ============================================ */
.wiki-page { background: #030303; }

/* --- Hero --- */
.wiki-hero { padding: 24px 0 20px; }

.wiki-hero__eyebrow {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #7c6aef;
  margin-bottom: 12px;
}

.wiki-hero__title {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #f5f5f7;
  margin-bottom: 8px;
}

.wiki-hero__desc {
  font-size: 1rem;
  color: #666680;
  margin-bottom: 24px;
}

/* --- Search bar --- */
.wiki-search {
  position: relative;
  max-width: 100%;
}

.wiki-search__icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #444460;
  pointer-events: none;
}

.wiki-search__input {
  width: 100%;
  padding: 14px 16px 14px 44px;
  font-size: 0.9375rem;
  font-family: inherit;
  color: #f0f0f5;
  background: #0a0a0a;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  outline: none;
  transition: all 0.2s ease;
}

.wiki-search__input::placeholder { color: #444460; }

.wiki-search__input:focus {
  border-color: rgba(124, 106, 239, 0.3);
  box-shadow: 0 0 0 3px rgba(124, 106, 239, 0.06);
}

/* --- Quick nav (horizontal pills) --- */
.wiki-nav {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  padding: 12px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.wiki-nav__link {
  font-size: 0.8125rem;
  font-weight: 500;
  color: #555570;
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.wiki-nav__link:hover {
  color: #ccc;
  background: rgba(255, 255, 255, 0.04);
}

/* --- Sections --- */
.wiki-section {
  margin-bottom: 48px;
}

.wiki-section__title {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #555570;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* --- Grid for multiple cards --- */
.wiki-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

@media (min-width: 640px) {
  .wiki-grid {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  }
}

/* --- Knowledge Card (Clean & Dark) --- */
.wcard {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 24px;
  background: #0a0a0a;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.wcard:hover {
  border-color: rgba(255, 255, 255, 0.15);
  background: #0e0e12;
}

.wcard__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
}

.wcard__thumb {
  flex-shrink: 0;
  width: 72px;
  height: 54px;
  border-radius: 10px;
  overflow: hidden;
}

.wcard__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wcard__title {
  font-size: 1.0625rem;
  font-weight: 600;
  color: #f0f0f5;
  margin-bottom: 4px;
  letter-spacing: -0.02em;
}

.wcard__desc {
  font-size: 0.8125rem;
  color: #888898;
  line-height: 1.55;
  margin-bottom: 6px;
}

.wcard__meta {
  font-size: 0.6875rem;
  color: #555570;
  font-weight: 500;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .wiki-hero__title { font-size: 1.75rem; }
  .wiki-nav { gap: 4px; }
  .wiki-nav__link { font-size: 0.75rem; padding: 5px 10px; }
}
