/* Encyclopédie OFT — Bloc 5 */
.encyclo-wrap { max-width: 1100px; margin: 0 auto; }
.encyclo-sub { color: var(--muted, #6c757d); margin-bottom: 1rem; font-size: 13px; }

.encyclo-kpi-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 1.25rem;
}
.encyclo-kpi {
  flex: 1;
  min-width: 90px;
  padding: 12px;
  border: 1px solid var(--border, #dee2e6);
  border-radius: 8px;
  background: var(--card-bg, #fff);
  text-align: center;
}
.encyclo-kpi strong { display: block; font-size: 1.4rem; }
.encyclo-kpi span { font-size: 11px; color: var(--muted); }
.encyclo-kpi.accent strong { color: #ffb020; }

.encyclo-search-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 1.25rem;
}
.encyclo-search-row .fc:first-child { flex: 1; min-width: 200px; }

.encyclo-section-title { margin: 1.5rem 0 0.75rem; font-size: 14px; font-weight: 700; }

.encyclo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}

.card-entry {
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  border: 1px solid var(--border, #dee2e6);
  border-radius: 8px;
  padding: 12px;
  background: var(--card-bg, #fff);
}
.card-entry:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
.card-entry h6 { margin: 8px 0 4px; font-size: 13px; }
.card-entry-head { display: flex; justify-content: space-between; align-items: center; }
.encyclo-desc { font-size: 11px; color: var(--muted); margin: 0 0 6px; line-height: 1.4; }
.encyclo-uses { font-size: 10px; color: var(--muted); }
.encyclo-price { font-size: 11px; font-weight: 700; color: var(--accent, #00e676); }
.encyclo-price.muted { color: var(--muted); font-weight: 500; }

.badge-categorie {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 6px;
  border-radius: 4px;
  display: inline-block;
}
.badge-engin { background: #0d6efd; color: #fff; }
.badge-fournisseur { background: #198754; color: #fff; }
.badge-materiel { background: #fd7e14; color: #fff; }
.badge-technique { background: #6f42c1; color: #fff; }
.badge-reglementation { background: #dc3545; color: #fff; }

.encyclo-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  align-items: center;
  justify-content: center;
  z-index: 10001;
}
.encyclo-modal-panel {
  background: var(--card-bg, #fff);
  padding: 1.25rem;
  border-radius: 8px;
  width: 440px;
  max-width: 95vw;
  border: 1px solid var(--border);
}
.encyclo-modal-actions { display: flex; gap: 8px; justify-content: flex-end; }

.encyclo-breadcrumb { font-size: 12px; margin-bottom: 1rem; }
.encyclo-breadcrumb a { color: var(--accent); }

.encyclo-fiche-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 16px;
}
@media (max-width: 900px) {
  .encyclo-fiche-layout { grid-template-columns: 1fr; }
}

.encyclo-fiche-header { cursor: default; }
.encyclo-fiche-header:hover { transform: none; }
.encyclo-fiche-top { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.encyclo-fiche-top h2 { margin: 8px 0 4px; font-size: 1.25rem; }
.encyclo-aliases { font-size: 12px; color: var(--muted); margin: 0; }
.encyclo-meta { text-align: right; font-size: 11px; }
.encyclo-conf-bar {
  width: 80px; height: 6px; background: var(--border);
  border-radius: 3px; overflow: hidden; margin: 4px 0;
}
.encyclo-conf-bar span {
  display: block; height: 100%;
  background: var(--accent, #00e676);
}
.encyclo-lead { margin: 12px 0; font-size: 14px; line-height: 1.5; }
.encyclo-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.encyclo-block { cursor: default; margin-bottom: 12px; }
.encyclo-block:hover { transform: none; }
.encyclo-block h6 { margin: 0 0 8px; font-size: 13px; font-weight: 700; }
.encyclo-block ul { margin: 0; padding-left: 1.2rem; font-size: 13px; }
.encyclo-watch-item { padding-bottom: 10px; margin-bottom: 10px; border-bottom: 1px solid var(--border); }
.encyclo-watch-item:last-child { border-bottom: none; }
.encyclo-prices-market { border-left: 3px solid #0d6efd; }
.encyclo-prices-oft { border-left: 3px solid var(--accent, #00e676); }
.encyclo-nego { font-size: 12px; color: #198754; margin-top: 8px; }
.encyclo-fourn-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  padding: 4px 0;
  border-bottom: 1px solid var(--border);
}
.encyclo-veille-alert {
  margin-top: 16px;
  padding: 12px;
  border-radius: 8px;
  background: rgba(13, 110, 253, 0.1);
  border: 1px solid #0d6efd;
  font-size: 13px;
}
