/*
Theme Name: BanaKongo
Theme URI: https://example.com/banakongo
Author: BanaKongo
Author URI: https://example.com
Description: Thème léger pour annuaire de talents. Présente les membres d'un groupe professionnel sur des cartes, avec recherche par nom et filtre par domaine d'activité, ainsi qu'un badge « Je cherche du travail ». Communauté, entraide, et retrouvailles faciles.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: banakongo
Tags: directory, members, light, custom-colors, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ============================================================
   BanaKongo — design tokens
   Palette chaleureuse : crème, ocre, terre cuite, vert disponible
   ============================================================ */
:root {
  --bk-cream:        #FBF7F0;
  --bk-cream-deep:   #F3EBDD;
  --bk-ink:          #2A211A;
  --bk-ink-soft:     #6B5D4F;
  --bk-ink-faint:    #9C8E7E;
  --bk-ochre:        #C8841E;
  --bk-ochre-deep:   #9A6212;
  --bk-terracotta:   #C45A34;
  --bk-terracotta-d: #8F3E20;
  --bk-available:    #2F7D4F;
  --bk-available-bg: #E3F1E7;
  --bk-available-d:  #1C5733;
  --bk-line:         rgba(42, 33, 26, 0.12);
  --bk-line-soft:    rgba(42, 33, 26, 0.07);
  --bk-card:         #FFFFFF;
  --bk-radius:       14px;
  --bk-radius-sm:    9px;
  --bk-shadow:       0 1px 2px rgba(42,33,26,0.04), 0 6px 22px rgba(42,33,26,0.06);
  --bk-shadow-hover: 0 4px 10px rgba(42,33,26,0.07), 0 14px 38px rgba(42,33,26,0.10);
  --bk-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --bk-display: "Fraunces", Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--bk-sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--bk-ink);
  background-color: var(--bk-cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--bk-terracotta-d); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; }

.bk-container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Skip link (a11y) ---------- */
.bk-skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--bk-ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 8px 0;
  z-index: 999;
}
.bk-skip-link:focus { left: 0; }

/* ---------- Header ---------- */
.bk-header {
  background: var(--bk-cream);
  border-bottom: 1px solid var(--bk-line);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(140%) blur(6px);
}
.bk-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 74px;
}
.bk-nav {
  margin-left: auto;
}
.bk-nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bk-terracotta);
  color: #fff;
  font-size: 14.5px;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 10px;
  white-space: nowrap;
}
.bk-nav-cta:hover { background: var(--bk-terracotta-d); color: #fff; text-decoration: none; }
.bk-nav-cta--mobile { display: none; }
.bk-nav-cta--desktop { flex-shrink: 0; }
.bk-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.bk-brand:hover { text-decoration: none; }
.bk-brand-mark {
  width: 40px; height: 40px;
  border-radius: 11px;
  background: linear-gradient(140deg, var(--bk-ochre), var(--bk-terracotta));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-family: var(--bk-display); font-weight: 600; font-size: 22px;
  flex-shrink: 0;
}
.bk-brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.bk-brand-name {
  font-family: var(--bk-display);
  font-weight: 600;
  font-size: 21px;
  color: var(--bk-ink);
  letter-spacing: -0.01em;
}
.bk-brand-tag {
  font-size: 12px;
  color: var(--bk-ink-faint);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.bk-nav ul {
  display: flex;
  gap: 26px;
  list-style: none;
  margin: 0; padding: 0;
  align-items: center;
}
.bk-nav a {
  color: var(--bk-ink-soft);
  font-size: 15px;
  font-weight: 500;
}
.bk-nav a:hover { color: var(--bk-ink); text-decoration: none; }
.bk-nav .current-menu-item > a { color: var(--bk-terracotta-d); }

.bk-menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--bk-line);
  border-radius: 8px;
  padding: 8px 10px;
  cursor: pointer;
  color: var(--bk-ink);
  font-size: 18px;
  line-height: 1;
}

/* ---------- Hero ---------- */
.bk-hero {
  padding: 64px 0 40px;
  text-align: center;
  background:
    radial-gradient(60% 90% at 50% -10%, rgba(200,132,30,0.10), transparent 70%),
    var(--bk-cream);
}
.bk-hero h1 {
  font-family: var(--bk-display);
  font-weight: 600;
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 auto 16px;
  max-width: 16ch;
  color: var(--bk-ink);
}
.bk-hero p {
  font-size: 18px;
  color: var(--bk-ink-soft);
  max-width: 52ch;
  margin: 0 auto;
}
.bk-hero-cta { margin: 22px auto 0 !important; }
.bk-hero-cta .bk-btn { font-size: 16px; padding: 13px 26px; }

/* ---------- Community counter (pop) ---------- */
.bk-countbox {
  position: relative;
  max-width: 520px;
  margin: 36px auto 0;
  padding: 30px 28px 26px;
  border: 2px solid var(--bk-terracotta);
  border-radius: 22px;
  background: var(--bk-cream);
  text-align: center;
  overflow: hidden;
}
.bk-countbox-eyebrow {
  margin: 0 0 6px;
  font-size: 12.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bk-ochre-deep);
  font-weight: 600;
}
.bk-countbox-main {
  margin: 0;
  font-family: var(--bk-display);
  line-height: 1.04;
}
.bk-countbox-lead {
  display: block;
  font-size: 15px;
  color: var(--bk-ink-soft);
  margin-bottom: 2px;
  font-family: var(--bk-sans);
}
.bk-countbox-number {
  display: block;
  font-size: clamp(54px, 11vw, 76px);
  font-weight: 600;
  color: var(--bk-terracotta);
  letter-spacing: -0.02em;
}
.bk-countbox-suffix {
  display: block;
  font-size: clamp(22px, 4vw, 30px);
  color: var(--bk-ink);
  margin-top: -4px;
}
.bk-countbox-seeking {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 14px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--bk-available-bg);
  color: var(--bk-available-d);
  font-size: 13px;
  font-weight: 600;
}
.bk-confetti {
  position: absolute;
  display: block;
}
.bk-c1 { top: 18px; left: 26px; width: 10px; height: 10px; border-radius: 50%; background: var(--bk-ochre); }
.bk-c2 { top: 40px; right: 36px; width: 7px; height: 7px; border-radius: 50%; background: var(--bk-available); }
.bk-c3 { bottom: 28px; left: 48px; width: 9px; height: 9px; border-radius: 2px; background: var(--bk-terracotta); transform: rotate(20deg); }
.bk-c4 { bottom: 22px; right: 30px; width: 11px; height: 11px; border-radius: 50%; border: 2px solid var(--bk-ochre); }

/* ---------- Search / filter bar ---------- */
.bk-toolbar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  max-width: 760px;
  margin: 32px auto 0;
}
.bk-toolbar .bk-available-toggle { flex-basis: 100%; justify-content: center; margin-top: 4px; }
.bk-search {
  position: relative;
  flex: 2 1 300px;
}
.bk-search .bk-search-icon {
  position: absolute;
  left: 16px; top: 50%;
  transform: translateY(-50%);
  color: var(--bk-ink-faint);
  pointer-events: none;
}
.bk-search input {
  width: 100%;
  height: 52px;
  padding: 0 16px 0 46px;
  border: 1px solid var(--bk-line);
  border-radius: 12px;
  background: var(--bk-card);
  font-size: 16px;
  font-family: inherit;
  color: var(--bk-ink);
  box-shadow: var(--bk-shadow);
}
.bk-filter {
  flex: 1 1 200px;
}
.bk-filter select {
  width: 100%;
  height: 52px;
  padding: 0 40px 0 16px;
  border: 1px solid var(--bk-line);
  border-radius: 12px;
  background: var(--bk-card)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%239C8E7E' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E")
    no-repeat right 16px center;
  font-size: 16px;
  font-family: inherit;
  color: var(--bk-ink);
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  box-shadow: var(--bk-shadow);
}
.bk-search input:focus,
.bk-filter select:focus {
  outline: none;
  border-color: var(--bk-ochre);
  box-shadow: 0 0 0 3px rgba(200,132,30,0.18);
}

/* ---------- Toggle "available only" ---------- */
.bk-available-toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 18px auto 0;
  font-size: 14px;
  color: var(--bk-ink-soft);
  cursor: pointer;
  user-select: none;
}
.bk-available-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.bk-switch {
  width: 38px; height: 22px;
  border-radius: 999px;
  background: var(--bk-cream-deep);
  border: 1px solid var(--bk-line);
  position: relative;
  transition: background .18s ease;
  flex-shrink: 0;
}
.bk-switch::after {
  content: "";
  position: absolute;
  top: 2px; left: 2px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
  transition: transform .18s ease;
}
.bk-available-toggle input:checked + .bk-switch { background: var(--bk-available); border-color: var(--bk-available); }
.bk-available-toggle input:checked + .bk-switch::after { transform: translateX(16px); }
.bk-available-toggle input:focus-visible + .bk-switch { box-shadow: 0 0 0 3px rgba(47,125,79,0.3); }

/* ---------- Results meta ---------- */
.bk-results-meta {
  max-width: 1140px;
  margin: 36px auto 16px;
  padding: 0 24px;
  font-size: 14px;
  color: var(--bk-ink-faint);
}
.bk-results-meta a { color: var(--bk-terracotta-d); font-weight: 500; }

/* ---------- Toolbar submit button ---------- */
.bk-toolbar-submit {
  height: 52px;
  padding: 0 22px;
  border: none;
  border-radius: 12px;
  background: var(--bk-ink);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  flex: 0 0 auto;
}
.bk-toolbar-submit:hover { background: #1c160f; }

/* ---------- Pagination ---------- */
.bk-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 8px 0 72px;
}
.bk-page {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 14px;
  border: 1px solid var(--bk-line);
  border-radius: 10px;
  background: var(--bk-card);
  color: var(--bk-ink-soft);
  font-size: 14.5px;
  font-weight: 500;
  text-decoration: none;
}
.bk-page:hover { border-color: var(--bk-ochre); color: var(--bk-ink); text-decoration: none; }
.bk-page-current {
  background: var(--bk-terracotta);
  border-color: var(--bk-terracotta);
  color: #fff;
}
.bk-page-prev, .bk-page-next { font-weight: 600; }

/* ---------- Grid ---------- */
.bk-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  padding-bottom: 72px;
}

/* ---------- Talent card ---------- */
.bk-card {
  position: relative;
  background: var(--bk-card);
  border: 1px solid var(--bk-line-soft);
  border-radius: var(--bk-radius);
  padding: 22px 22px 18px;
  box-shadow: var(--bk-shadow);
  transition: transform .16s ease, box-shadow .16s ease;
  display: flex;
  flex-direction: column;
}
.bk-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--bk-shadow-hover);
}

.bk-badge-available {
  position: absolute;
  top: 16px; right: 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bk-available-bg);
  color: var(--bk-available-d);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 6px 11px;
  border-radius: 999px;
}
.bk-badge-available .bk-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--bk-available);
  box-shadow: 0 0 0 3px rgba(47,125,79,0.18);
}

.bk-card-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.bk-avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--bk-cream-deep);
  flex-shrink: 0;
}
.bk-avatar-fallback {
  width: 56px; height: 56px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--bk-display);
  font-weight: 600;
  font-size: 20px;
  color: #fff;
  flex-shrink: 0;
}
.bk-card-name {
  font-family: var(--bk-display);
  font-weight: 600;
  font-size: 19px;
  line-height: 1.2;
  margin: 0 0 3px;
  color: var(--bk-ink);
}
.bk-card-name a { color: inherit; }
.bk-card-name a:hover { color: var(--bk-terracotta-d); text-decoration: none; }
.bk-card-domain {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--bk-ochre-deep);
  background: rgba(200,132,30,0.10);
  padding: 3px 10px;
  border-radius: 999px;
}
.bk-card-bio {
  font-size: 14.5px;
  color: var(--bk-ink-soft);
  line-height: 1.55;
  margin: 4px 0 16px;
  flex: 1;
}
.bk-card-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  border-top: 1px solid var(--bk-line-soft);
  padding-top: 14px;
}
.bk-card-actions a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--bk-ink-soft);
}
.bk-card-actions a:hover { color: var(--bk-terracotta-d); text-decoration: none; }
.bk-card-actions .bk-action-right { margin-left: auto; }

/* ---------- Empty state ---------- */
.bk-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 64px 20px;
  color: var(--bk-ink-faint);
}
.bk-empty .bk-empty-icon { font-size: 40px; opacity: .5; display: block; margin-bottom: 12px; }

/* ---------- Single talent ---------- */
.bk-single {
  max-width: 760px;
  margin: 48px auto;
  background: var(--bk-card);
  border: 1px solid var(--bk-line-soft);
  border-radius: var(--bk-radius);
  box-shadow: var(--bk-shadow);
  padding: 40px;
}
.bk-single-head { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.bk-single .bk-avatar, .bk-single .bk-avatar-fallback { width: 88px; height: 88px; font-size: 30px; }
.bk-single h1 { font-family: var(--bk-display); font-size: 34px; margin: 0 0 8px; letter-spacing: -0.01em; }
.bk-single-body { margin-top: 28px; font-size: 17px; line-height: 1.7; }
.bk-back { display: inline-block; margin: 28px auto 0; color: var(--bk-ink-soft); font-size: 14px; }

/* ---------- Submission form ---------- */
.bk-form-wrap {
  max-width: 720px;
  margin: 56px auto;
  padding: 0 24px;
}
.bk-form-card {
  background: var(--bk-card);
  border: 1px solid var(--bk-line-soft);
  border-radius: 20px;
  box-shadow: var(--bk-shadow);
  overflow: hidden;
}
.bk-form-head {
  background: linear-gradient(140deg, rgba(200,132,30,0.10), rgba(196,90,52,0.10));
  border-bottom: 1px solid var(--bk-line-soft);
  padding: 32px 36px 26px;
}
.bk-form-title {
  font-family: var(--bk-display);
  font-size: 28px;
  font-weight: 600;
  color: var(--bk-ink);
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}
.bk-form-intro {
  margin: 0;
  font-size: 15px;
  color: var(--bk-ink-soft);
  line-height: 1.55;
}
.bk-form {
  padding: 30px 36px 34px;
}
.bk-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.bk-field { margin-bottom: 18px; }
.bk-field label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--bk-ink);
  margin-bottom: 7px;
}
.bk-field input[type="text"],
.bk-field input[type="email"],
.bk-field input[type="url"],
.bk-field select,
.bk-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--bk-line);
  border-radius: 11px;
  background: var(--bk-cream);
  font-size: 15px;
  font-family: inherit;
  color: var(--bk-ink);
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.bk-field input::placeholder,
.bk-field textarea::placeholder { color: var(--bk-ink-faint); }
.bk-field textarea { resize: vertical; min-height: 110px; }
.bk-field input:focus,
.bk-field select:focus,
.bk-field textarea:focus {
  outline: none;
  border-color: var(--bk-ochre);
  background: var(--bk-card);
  box-shadow: 0 0 0 3px rgba(200,132,30,0.16);
}
.bk-field input[type="file"] {
  width: 100%;
  font-size: 14px;
  color: var(--bk-ink-soft);
  padding: 11px 14px;
  border: 1px dashed var(--bk-line);
  border-radius: 11px;
  background: var(--bk-cream);
  cursor: pointer;
}
.bk-field-check {
  background: var(--bk-cream);
  border: 1px solid var(--bk-line-soft);
  border-radius: 11px;
  padding: 13px 15px;
}
.bk-field-check label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  font-size: 15px;
  margin: 0;
  cursor: pointer;
}
.bk-field-check input { width: 19px; height: 19px; accent-color: var(--bk-terracotta); flex-shrink: 0; }
.bk-field-hint {
  display: block;
  font-size: 13px;
  color: var(--bk-ink-faint);
  margin-top: 7px;
}
.bk-req { color: var(--bk-terracotta); }
.bk-form-submit {
  width: 100%;
  justify-content: center;
  font-size: 16px;
  padding: 15px;
  margin-top: 6px;
}
.bk-form-notice {
  max-width: 720px;
  margin: 56px auto 0;
  padding: 18px 20px;
  border-radius: 14px;
  font-size: 15px;
  line-height: 1.55;
}
.bk-form-success {
  background: var(--bk-available-bg);
  color: var(--bk-available-d);
  border: 1px solid rgba(47,125,79,0.3);
}
.bk-form-error {
  background: #FCEBEB;
  color: #A32D2D;
  border: 1px solid rgba(163,45,45,0.3);
}

@media (max-width: 560px) {
  .bk-field-row { grid-template-columns: 1fr; gap: 0; }
  .bk-form-head { padding: 26px 22px 22px; }
  .bk-form { padding: 24px 22px 28px; }
}

/* ---------- Footer ---------- */
.bk-footer {
  border-top: 1px solid var(--bk-line);
  background: var(--bk-cream-deep);
  padding: 40px 0;
  margin-top: auto;
}
.bk-footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 14px;
  color: var(--bk-ink-soft);
}

/* ---------- Page / post content ---------- */
.bk-content { max-width: 760px; margin: 48px auto; }
.bk-content h1 { font-family: var(--bk-display); font-size: 38px; letter-spacing: -0.02em; }

.site-wrap { display: flex; flex-direction: column; min-height: 100vh; }

/* ---------- Buttons ---------- */
.bk-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bk-terracotta);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  padding: 12px 22px;
  border-radius: 11px;
  border: none;
  cursor: pointer;
}
.bk-btn:hover { background: var(--bk-terracotta-d); text-decoration: none; color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .bk-nav { display: none; margin-left: 0; }
  .bk-nav.is-open {
    display: block;
    position: absolute;
    top: 74px; left: 0; right: 0;
    background: var(--bk-cream);
    border-bottom: 1px solid var(--bk-line);
    padding: 12px 24px 20px;
  }
  .bk-nav.is-open ul { flex-direction: column; align-items: flex-start; gap: 14px; }
  .bk-nav-cta--desktop { display: none; }
  .bk-nav.is-open .bk-nav-cta--mobile { display: inline-flex; margin-top: 14px; }
  .bk-menu-toggle { display: inline-block; }
  .bk-hero { padding: 44px 0 28px; }
  .bk-single { padding: 26px; margin: 28px auto; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
