/* ════════════════════════════════════════════════════════════
   Kerbone V2 — pages d'expertise (gabarit page-expertise.php), 07/10/2026.
   Tokens de main.css uniquement (palette bleue). Chargé seulement sur ce gabarit.
════════════════════════════════════════════════════════════ */

.kb-expertise {
  max-width: 920px;
  margin: 0 auto;
  padding: 150px 24px 40px;
}

.kb-expertise__crumb {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  font-size: 13px; color: var(--c-text-muted); margin-bottom: 28px;
}
.kb-expertise__crumb a { color: var(--c-text-default); }
.kb-expertise__crumb a:hover { color: var(--c-sage); }

/* Hero */
.kb-expertise__hero { text-align: left; margin-bottom: 64px; }
.kb-expertise__eyebrow { display: inline-block; margin-bottom: 18px; }
.kb-expertise__title {
  font-size: clamp(30px, 4.6vw, 48px);
  line-height: 1.12; letter-spacing: -0.02em; font-weight: 700;
  color: var(--c-text-title); margin: 0 0 20px;
}
.kb-expertise__lead {
  font-size: 19px; line-height: 1.6; color: var(--c-text-default);
  max-width: 760px; margin: 0 0 30px;
}
.kb-expertise__cta { display: flex; flex-wrap: wrap; gap: 12px; }

/* Sections */
.kb-expertise__section { padding: 44px 0; border-top: 1px solid var(--c-bg-border); }
.kb-expertise__h2 {
  font-size: clamp(24px, 3vw, 32px); line-height: 1.2; font-weight: 700;
  letter-spacing: -0.015em; color: var(--c-text-title); margin: 0 0 28px;
}
.kb-expertise__section h3 { font-size: 17px; font-weight: 700; color: var(--c-text-title); margin: 0 0 6px; line-height: 1.35; }
.kb-expertise__section p { font-size: 15.5px; line-height: 1.6; color: var(--c-text-default); margin: 0; }

/* Situations : 3 cartes */
.kb-expertise__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.kb-expertise__card {
  background: var(--c-bg-white); border: 1px solid var(--c-bg-border);
  border-radius: var(--r-card); padding: 22px 20px;
  transition: border-color var(--dur, .25s) var(--ease), box-shadow var(--dur, .25s) var(--ease);
}
.kb-expertise__card:hover { border-color: var(--c-sage-light); box-shadow: 0 8px 28px rgba(0, 61, 213, 0.10); }

/* Étapes */
.kb-expertise__steps { display: grid; gap: 18px; counter-reset: none; }
.kb-expertise__step {
  display: grid; grid-template-columns: 56px 1fr; gap: 16px; align-items: start;
  padding: 20px 22px; background: var(--c-bg-light); border-radius: var(--r-card);
}
.kb-expertise__step-num {
  font-size: 26px; font-weight: 800; color: var(--c-sage); line-height: 1; padding-top: 2px;
}

/* Repères chiffrés : bloc sombre bleu nuit */
.kb-expertise__section--dark {
  background: var(--c-forest); color: #fff; border: 0;
  border-radius: var(--r-hero-lg); padding: 44px 36px; margin: 24px 0;
}
.kb-expertise__section--dark .kb-expertise__h2 { color: #fff; }
.kb-expertise__facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.kb-expertise__fact { display: flex; flex-direction: column; gap: 8px; }
.kb-expertise__fact-num { font-size: 34px; font-weight: 800; letter-spacing: -0.02em; color: var(--c-sage-light); line-height: 1; }
.kb-expertise__fact-label { font-size: 14px; line-height: 1.5; color: var(--c-text-dark-default); }

/* Pourquoi Kerbone */
.kb-expertise__why { display: grid; gap: 18px; }
.kb-expertise__why li { display: grid; grid-template-columns: 28px 1fr; gap: 14px; align-items: start; }
.kb-expertise__why svg { width: 24px; height: 24px; color: var(--c-sage); margin-top: 2px; }

/* FAQ : <details> natif (lisible sans JS, par les robots et les IA) */
.kb-expertise__faq { border-top: 1px solid var(--c-bg-border); }
.kb-expertise__faq-item { border-bottom: 1px solid var(--c-bg-border); }
.kb-expertise__faq-item summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px;
  align-items: center; padding: 18px 0; font-size: 16.5px; font-weight: 600; color: var(--c-text-title);
}
.kb-expertise__faq-item summary::-webkit-details-marker { display: none; }
.kb-expertise__faq-icon {
  flex: 0 0 28px; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--c-bg-border);
  display: inline-flex; align-items: center; justify-content: center; font-weight: 400; font-size: 18px;
  color: var(--c-text-default); transition: transform .25s var(--ease), border-color .25s var(--ease);
}
.kb-expertise__faq-item[open] .kb-expertise__faq-icon { transform: rotate(45deg); border-color: var(--c-sage); color: var(--c-sage); }
.kb-expertise__faq-item p { padding: 0 48px 20px 0; }

/* CTA final */
.kb-expertise__final {
  margin: 36px 0 20px; padding: 48px 36px; border-radius: var(--r-hero-lg);
  background: linear-gradient(135deg, var(--c-forest-deep), var(--c-forest-mid)); color: #fff; text-align: center;
}
.kb-expertise__final .kb-expertise__h2 { color: #fff; margin-bottom: 12px; }
.kb-expertise__final p { color: var(--c-text-dark-default); max-width: 600px; margin: 0 auto 26px; font-size: 16px; line-height: 1.6; }
.kb-expertise__final .kb-expertise__cta { justify-content: center; }

/* Liens croisés */
.kb-expertise__related {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 26px 0 10px; font-size: 14px;
}
.kb-expertise__related-title { color: var(--c-text-muted); margin-right: 6px; }
.kb-expertise__related a {
  padding: 8px 14px; border-radius: var(--r-full); border: 1px solid var(--c-bg-border);
  color: var(--c-text-default); transition: all .2s var(--ease);
}
.kb-expertise__related a:hover { border-color: var(--c-sage); color: var(--c-sage); }

/* Responsive */
@media (max-width: 899px) {
  .kb-expertise { padding-top: 130px; }
  .kb-expertise__cards { grid-template-columns: 1fr; }
  .kb-expertise__facts { grid-template-columns: repeat(2, 1fr); }
  .kb-expertise__section--dark { padding: 32px 24px; border-radius: var(--r-hero); }
  .kb-expertise__final { padding: 36px 22px; }
}
@media (max-width: 520px) {
  .kb-expertise { padding-left: 16px; padding-right: 16px; }
  .kb-expertise__facts { grid-template-columns: 1fr; }
  .kb-expertise__step { grid-template-columns: 44px 1fr; padding: 16px; }
  .kb-expertise__faq-item p { padding-right: 0; }
  .kb-expertise__cta .kv2-btn { width: 100%; justify-content: center; }
}
