/* Base de connaissances — complète metrologie.css (conteneur, eyebrow, bloc contact). */
.kb-visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.kb-hero {
  position: relative;
  overflow: hidden;
  padding: 120px 0 72px;
  background: radial-gradient(circle at 85% 10%, rgba(43, 149, 246, .28), transparent 45%), #101e31;
  color: #fff;
}
.kb-hero h1 {
  margin-top: 14px;
  font-family: 'Oswald', sans-serif;
  font-size: clamp(3rem, 7vw, 6.2rem);
  line-height: 1;
  letter-spacing: -.03em;
  text-transform: uppercase;
  font-weight: 500;
}
.kb-hero-lead { max-width: 640px; margin-top: 20px; color: #cbd6e3; line-height: 1.8; font-size: 1rem; }

.kb-search {
  position: relative;
  max-width: 640px;
  margin-top: 34px;
}
.kb-search svg { position: absolute; left: 18px; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); color: #7b8ea5; pointer-events: none; }
.kb-search input {
  width: 100%;
  min-height: 56px;
  padding: 14px 18px 14px 50px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 8px;
  background: #fff;
  color: #17263a;
  font-size: .95rem;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .25);
}
.kb-search input:focus-visible { outline: 3px solid #2b95f6; outline-offset: 2px; }

.kb-hero-stats { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 30px; color: #9fb2c7; font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.kb-hero-stats strong { color: #fff; font-size: 1rem; margin-right: 6px; }

.kb-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 56px;
  padding: 72px 0 96px;
}
.kb-aside { position: relative; }
.kb-toc {
  position: sticky;
  top: 100px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  padding-right: 8px;
}
.kb-toc-group { margin: 22px 0 8px; color: #2b95f6; font-size: .66rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.kb-toc-group:first-child { margin-top: 0; }
.kb-toc ul { display: grid; gap: 2px; }
.kb-toc a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 12px;
  border-left: 2px solid #e2e9f1;
  color: #47566b;
  font-size: .84rem;
  line-height: 1.4;
  transition: color .2s, border-color .2s, background .2s;
}
.kb-toc a span { color: #a7b5c5; font-size: .7rem; font-weight: 700; }
.kb-toc a:hover, .kb-toc a.is-active { color: #176fbe; border-color: #2b95f6; background: #f2f7fc; }
.kb-toc a:focus-visible { outline: 2px solid #2b95f6; outline-offset: 2px; }
.kb-toc a.is-muted { opacity: .4; }

.kb-search-status { min-height: 0; margin-bottom: 0; color: #5f7083; font-size: .88rem; }
.kb-search-status:not(:empty) { margin-bottom: 24px; }

.kb-theme { scroll-margin-top: 100px; }
.kb-theme + .kb-theme { margin-top: 72px; }
.kb-theme[hidden] { display: none; }
.kb-theme-eyebrow { color: #2b95f6; font-size: .68rem; font-weight: 700; letter-spacing: .18em; }
.kb-theme h2 {
  margin-top: 10px;
  font-family: 'Oswald', sans-serif;
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  line-height: 1.12;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: -.015em;
  color: #17263a;
}
.kb-theme-intro { max-width: 680px; margin-top: 12px; color: #5f7083; line-height: 1.75; font-size: .95rem; }

.kb-questions {
  margin-top: 26px;
  border: 1px solid #dae4ee;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 14px 40px rgba(20, 39, 61, .05);
  overflow: hidden;
}
.kb-item { scroll-margin-top: 100px; }
.kb-item[hidden] { display: none; }
.kb-item + .kb-item { border-top: 1px solid #e7edf3; }
.kb-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 24px;
  cursor: pointer;
  list-style: none;
  color: #17263a;
  font-weight: 600;
  font-size: .98rem;
  line-height: 1.45;
  transition: background .2s, color .2s;
}
.kb-item summary::-webkit-details-marker { display: none; }
.kb-item summary:hover { background: #f7faff; color: #176fbe; }
.kb-item summary:focus-visible { outline: 2px solid #2b95f6; outline-offset: -3px; }
.kb-item-icon { position: relative; flex: 0 0 28px; width: 28px; height: 28px; border-radius: 50%; background: #edf5fc; }
.kb-item-icon::before, .kb-item-icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 2px; background: #2b95f6; transform: translate(-50%, -50%); transition: transform .2s; }
.kb-item-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.kb-item[open] summary { color: #176fbe; }
.kb-item[open] .kb-item-icon { background: #2b95f6; }
.kb-item[open] .kb-item-icon::before, .kb-item[open] .kb-item-icon::after { background: #fff; }
.kb-item[open] .kb-item-icon::after { transform: translate(-50%, -50%) rotate(0deg); }

.kb-answer { padding: 0 24px 24px; color: #47566b; line-height: 1.8; font-size: .94rem; max-width: 820px; }
.kb-answer p + p, .kb-answer p + ul, .kb-answer ul + p { margin-top: 12px; }
.kb-answer ul { display: grid; gap: 6px; padding-left: 4px; }
.kb-answer li { position: relative; padding-left: 20px; }
.kb-answer li::before { content: ""; position: absolute; left: 2px; top: .75em; width: 6px; height: 6px; border-radius: 50%; background: #2b95f6; }
.kb-answer strong { color: #17263a; font-weight: 600; }
.kb-answer a { color: #176fbe; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.kb-answer a:hover { color: #0f5597; }
.kb-answer a:focus-visible { outline: 2px solid #2b95f6; outline-offset: 2px; border-radius: 2px; }
.kb-answer mark, .kb-item summary mark { background: #fff1b8; color: inherit; border-radius: 2px; }

.kb-empty { padding: 32px; border: 1px dashed #c9d6e3; border-radius: 12px; color: #5f7083; text-align: center; }
.kb-empty a { color: #176fbe; font-weight: 600; text-decoration: underline; }

@media (max-width: 960px) {
  .kb-layout { grid-template-columns: 1fr; gap: 32px; padding-top: 40px; }
  .kb-toc { position: static; max-height: none; overflow: visible; padding: 20px; border: 1px solid #dae4ee; border-radius: 12px; background: #fff; }
  .kb-toc ul { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
}

@media (max-width: 600px) {
  .kb-hero { padding: 80px 0 52px; }
  .kb-item summary { padding: 18px 16px; font-size: .94rem; }
  .kb-answer { padding: 0 16px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .kb-toc a, .kb-item summary, .kb-item-icon::before, .kb-item-icon::after { transition: none; }
}

@media print {
  .kb-hero { padding: 20px 0; background: none; color: #000; }
  .kb-search, .kb-aside, .metro-contact { display: none; }
  .kb-layout { display: block; padding: 0; }
  .kb-questions { box-shadow: none; }
  .kb-item .kb-answer { display: block; }
}
