/* ═══════════════════════════════════════════════════════════
   KLAMPAC — Barre du catalogue : titre, nombre de modèles, recherche, onglets de catégories
   Ordinateur ET mobile. Classes .klt- (aucun conflit).
   ═══════════════════════════════════════════════════════════ */
.klt { font-family: 'Archivo', 'Helvetica Neue', Arial, sans-serif; color: var(--kl-ink, #111A33); margin-bottom: 28px }
.klt *, .klt *::before, .klt *::after { box-sizing: border-box }

.klt-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding: 28px 0 18px }
.klt-title { margin: 0; font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 600; letter-spacing: -.02em; line-height: 1.05; color: var(--kl-blue, #1E2F65) !important }
.klt-count { display: block; margin-top: 6px; font-size: 14px; color: var(--kl-muted, #677087) }

/* Recherche : champ fin, discret, arrondi */
.klt-search { position: relative; flex: 0 1 340px; display: block }
.klt-search svg { position: absolute; left: 16px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); fill: none; stroke: var(--kl-muted, #677087); stroke-width: 1.7; pointer-events: none }
.klt-search input {
  width: 100%; height: 46px; padding: 0 16px 0 46px; border-radius: 999px;
  border: 1px solid transparent; background: var(--kl-bg-soft, #F6F7FA); color: inherit;
  font: inherit; font-size: 15px; outline: none; transition: border-color .25s, background-color .25s, box-shadow .25s;
  -webkit-appearance: none; appearance: none;
}
.klt-search input::placeholder { color: var(--kl-muted, #677087) }
.klt-search input:focus { background: #fff; border-color: var(--kl-blue, #1E2F65); box-shadow: 0 0 0 3px rgba(30, 47, 101, .1) }

/* Onglets de catégories : texte simple + trait bleu sous l'onglet actif */
.klt-tabs { position: relative; display: flex; gap: 30px; border-bottom: 1px solid var(--kl-line, #E3E6EE); overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch }
.klt-tabs::-webkit-scrollbar { display: none }
.klt-tabs a, .klt-tabs button {
  position: relative; flex: 0 0 auto; padding: 14px 0 15px; background: none; border: 0; cursor: pointer;
  font: inherit; font-size: 15px; font-weight: 500; color: var(--kl-muted, #677087); text-decoration: none; white-space: nowrap;
  transition: color .2s;
}
.klt-tabs a:hover, .klt-tabs button:hover { color: var(--kl-ink, #111A33) }
.klt-tabs .is-active { color: var(--kl-ink, #111A33) }
.klt-tabs .is-active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--kl-blue, #1E2F65); border-radius: 2px }
.klt-tabs sup { font-size: 11px; margin-left: 3px; color: var(--kl-muted, #677087); font-weight: 400 }

.klt-mbtn, .klt-sheet { display: none }

/* ── MOBILE : recherche + bouton « Catégorie » qui ouvre un panneau ── */
@media (max-width: 760px) {
  .klt { margin-bottom: 20px }
  .klt-head { flex-direction: column; align-items: stretch; gap: 14px; padding: 20px 0 0 }
  .klt-title { font-size: 1.75rem }
  .klt-tabs-wrap { display: none }
  .klt-mrow { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px }
  .klt-search { flex: 1 1 auto }
  .klt-search input { font-size: 16px; height: 48px }   /* 16 px : évite le zoom iPhone */
  .klt-mbtn {
    display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 16px; border-radius: 999px;
    border: 1px solid var(--kl-line, #E3E6EE); background: #fff; color: var(--kl-ink, #111A33);
    font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap;
  }
  .klt-mbtn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7 }
  .klt-current { margin: 14px 0 0; font-size: 14px; color: var(--kl-muted, #677087) }
  .klt-current b { color: var(--kl-ink, #111A33); font-weight: 600 }

  /* Panneau qui monte du bas */
  .klt-sheet { display: block; position: fixed; inset: 0; z-index: 1000; visibility: hidden; transition: visibility 0s .45s }
  .klt-sheet.is-open { visibility: visible; transition: none }
  .klt-sheet-bg { position: absolute; inset: 0; background: rgba(17, 26, 51, .45); opacity: 0; transition: opacity .35s }
  .klt-sheet.is-open .klt-sheet-bg { opacity: 1 }
  .klt-sheet-panel {
    position: absolute; left: 0; right: 0; bottom: 0; max-height: 82vh; overflow-y: auto; background: #fff;
    border-radius: 18px 18px 0 0; padding: 10px 20px calc(20px + env(safe-area-inset-bottom, 0px));
    transform: translateY(100%); transition: transform .45s cubic-bezier(.16, 1, .3, 1);
  }
  .klt-sheet.is-open .klt-sheet-panel { transform: none }
  .klt-grip { width: 40px; height: 4px; border-radius: 2px; background: #D5DAE5; margin: 0 auto 14px }
  .klt-sheet-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px }
  .klt-sheet-head h2 { margin: 0; font-size: 1.15rem; font-weight: 600 }
  .klt-sheet-close { width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--kl-bg-soft, #F6F7FA); cursor: pointer; display: grid; place-items: center; color: inherit }
  .klt-sheet-close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8 }
  .klt-sheet-list a, .klt-sheet-list button {
    display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 16px 2px;
    border: 0; border-bottom: 1px solid var(--kl-line, #E3E6EE); background: none; text-align: left;
    font: inherit; font-size: 16px; font-weight: 500; color: var(--kl-ink, #111A33); text-decoration: none; cursor: pointer;
  }
  .klt-sheet-list a:last-child, .klt-sheet-list button:last-child { border-bottom: 0 }
  .klt-sheet-list .is-active { color: var(--kl-blue, #1E2F65); font-weight: 600 }
  .klt-sheet-list .is-active::after { content: ""; width: 18px; height: 18px; flex: 0 0 auto;
    background: no-repeat center/18px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231E2F65' stroke-width='2.4'%3E%3Cpath d='M5 12l4 4 10-10'/%3E%3C/svg%3E") }
}
@media (min-width: 761px) { .klt-mbtn, .klt-current { display: none } .klt-mrow { display: contents } }

/* ── Protection : l'ancien style des boutons du site ne doit JAMAIS colorer les onglets
      (pas de fond noir au clic, au survol, au focus ou sur l'onglet actif) ── */
.klt .klt-tabs a, .klt .klt-tabs button,
.klt .klt-tabs a:hover, .klt .klt-tabs button:hover,
.klt .klt-tabs a:focus, .klt .klt-tabs button:focus,
.klt .klt-tabs a:active, .klt .klt-tabs button:active,
.klt .klt-tabs .is-active, .klt .klt-tabs .active {
  background: transparent !important; background-color: transparent !important;
  border: 0 !important; border-radius: 0 !important; box-shadow: none !important;
  padding: 14px 0 15px !important; outline: none;
}
.klt .klt-tabs .is-active, .klt .klt-tabs .active { color: var(--kl-ink, #111A33) !important }
.klt .klt-tabs .active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--kl-blue, #1E2F65); border-radius: 2px }
.klt .klt-tabs a:focus-visible, .klt .klt-tabs button:focus-visible { outline: 2px solid var(--kl-blue, #1E2F65) !important; outline-offset: 4px; border-radius: 4px !important }
.klt .klt-tabs a, .klt .klt-tabs button { -webkit-tap-highlight-color: transparent; transition: color .2s }
