/* ==========================================================================
   Liste des orateurs  (préfixe kl-ol)
   Dépend de orator.slider.css (cartes kl-os__*, flag kl-mflag) et de style.css
   (--orange, --orange-hight, --white, --black). Même cadre que le slider.
   ========================================================================== */

.kl-ol { padding-bottom: 40px; }

/* ----------------------------------------------------- titres de section */
.kl-ol__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin: 6px 0 0;
    padding: 0 20px;
}
.kl-ol__title {
    position: relative;
    padding-left: 14px;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: .02em;
    color: var(--black);
    text-decoration: none;
    transition: color .3s ease;
}
.kl-ol__title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 4px;
    height: 1.1em;
    border-radius: 4px;
    background: linear-gradient(var(--orange), var(--orange-hight));
    transform: translateY(-50%);
}
.kl-ol__title:hover,
.kl-ol__title:focus-visible { color: var(--orange-hight); }

/* ------------------------------------------------------------------ grille */
.kl-ol .kl-list-orator { min-height: 0; }
.kl-ol .kl-ol__sec--other.kl-list-orator { min-height: 40vh; }

.kl-ol__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 22px 18px;
    margin: 0;
    padding: 18px 20px 8px;
    list-style: none;
}
.kl-ol__item {
    min-width: 0;
    margin: 0;
    padding: 0;
    animation: kl-ol-rise .6s cubic-bezier(.2, .8, .2, 1) both;
    animation-delay: calc(var(--ol-i, 0) * 45ms);
}
.kl-ol__item > .kl-os__card { height: 100%; }
@keyframes kl-ol-rise {
    from { opacity: 0; transform: translateY(18px) scale(.96); }
    to   { opacity: 1; transform: none; }
}

/* en liste, la photo suit la largeur de la carte */
.kl-ol__grid .kl-os__media { height: auto; aspect-ratio: 8 / 7; }
.kl-ol__grid .kl-os__info { flex: 1 1 auto; justify-content: center; }

/* --------------------------------------------------------------- recherche */
.kl-ol .kl-form-search {
    display: flex;
    justify-content: flex-end;
    margin: 20px 0 6px !important;
    padding: 0 20px;
}
.kl-ol .kl-input-search {
    position: static;
    float: none;
    right: auto;
    top: auto;
    display: flex;
    align-items: center;
    width: min(380px, 100%) !important;
    padding: 4px 4px 4px 16px;
    border: 1.5px solid var(--black);
    border-radius: 999px;
    background: var(--white);
    transition: border-color .3s ease, box-shadow .3s ease;
}
.kl-ol .kl-input-search:focus-within {
    border-color: var(--orange);
    box-shadow: 0 0 0 4px rgba(255, 60, 0, .15);
}
.kl-ol .kl-input-search input.form-control {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    padding: 6px 4px;
    border: 0;
    border-radius: 0;
    background: transparent;
    font-size: .9rem;
    box-shadow: none;
    outline: 0;
}
.kl-ol .kl-input-search button {
    position: static;
    float: none;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: var(--white);
    background: var(--orange);
    transition: background .3s ease, transform .3s cubic-bezier(.2, .8, .2, 1);
}
.kl-ol .kl-input-search button:hover,
.kl-ol .kl-input-search button:focus-visible { color: var(--white); background: var(--black); transform: scale(1.08); }

/* ------------------------------------------------------ filtre par lettre */
.kl-ol__letters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 14px 0 0;
    padding: 0 20px;
}
.kl-ol__letters .kl-ol__title { margin-right: 6px; }
.kl-ol__letter {
    display: grid;
    place-items: center;
    min-width: 36px;
    height: 36px;
    padding: 0 8px;
    border: 1.5px solid var(--black);
    border-radius: 10px;
    font-size: .9rem;
    font-weight: 700;
    color: var(--orange-hight);
    background: var(--white);
    text-decoration: none;
    transition: background .25s ease, color .25s ease, border-color .25s ease, transform .3s cubic-bezier(.2, .8, .2, 1), box-shadow .3s ease;
}
.kl-ol__letter:hover,
.kl-ol__letter:focus-visible {
    color: var(--white);
    border-color: var(--orange);
    background: var(--orange);
    transform: translateY(-2px);
    box-shadow: 0 8px 14px -8px rgba(255, 60, 0, .8);
}
.kl-ol__letter.is-active {
    color: var(--white);
    border-color: var(--orange);
    background: var(--orange);
    box-shadow: 0 8px 14px -8px rgba(255, 60, 0, .8);
}
.kl-ol__letter:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }

/* ------------------------------------------------------------------- vide */
.kl-ol__empty {
    margin: 18px 20px;
    padding: 22px;
    border: 2px dashed var(--orange);
    border-radius: 14px;
    font-weight: 600;
    text-align: center;
    color: var(--black);
}

/* ------------------------------------------------------------ responsive */
@media (max-width: 575.98px) {
    .kl-ol__head,
    .kl-ol__letters,
    .kl-ol .kl-form-search { padding: 0 14px; }
    .kl-ol .kl-input-search { width: 100% !important; }
    .kl-ol__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px 12px;
        padding: 14px 14px 6px;
    }
    .kl-ol__grid .kl-os__media { aspect-ratio: 1 / 1; }
    .kl-ol__letter { min-width: 34px; height: 34px; }
}

@media (prefers-reduced-motion: reduce) {
    .kl-ol__item,
    .kl-ol__letter,
    .kl-ol .kl-input-search,
    .kl-ol .kl-input-search button { animation: none !important; transition: none !important; }
}

/* ==========================================================================
   2 pages : orateurs MCTV / annuaire des pasteurs
   Même cadre que le reste : bordure 1.5px noire, rayon 10-14px, accent orange
   ========================================================================== */

/* ------------------------------------------------------------ intro + onglets */
.kl-ol__hero { margin: 14px 0 0; padding: 0 20px; }

.kl-ol__tabs { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 14px; }
.kl-ol__tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    border: 1.5px solid var(--black);
    border-radius: 999px;
    font-size: .92rem;
    font-weight: 700;
    color: var(--black);
    background: var(--white);
    text-decoration: none;
    transition: background .25s ease, color .25s ease, border-color .25s ease, transform .3s cubic-bezier(.2, .8, .2, 1), box-shadow .3s ease;
}
.kl-ol__tab svg { width: 14px; height: 14px; flex: 0 0 auto; }
.kl-ol__tab:hover,
.kl-ol__tab:focus-visible {
    color: var(--orange-hight);
    border-color: var(--orange);
    transform: translateY(-2px);
}
.kl-ol__tab:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
.kl-ol__tab.is-active,
.kl-ol__tab.is-active:hover {
    color: var(--white);
    border-color: var(--orange);
    background: var(--orange);
    box-shadow: 0 8px 14px -8px rgba(255, 60, 0, .8);
    transform: none;
}

.kl-ol__intro {
    max-width: 78ch;
    margin: 0;
    padding: 2px 0 2px 14px;
    border-left: 4px solid var(--orange);
    font-size: .95rem;
    line-height: 1.6;
    color: var(--black);
}

/* --------------------------------------------------- titre h2 + compteur */
h2.kl-ol__title { margin: 0; }
.kl-ol__count {
    padding: 3px 12px;
    border: 1.5px solid var(--black);
    border-radius: 999px;
    font-size: .8rem;
    font-weight: 700;
    color: var(--black);
    background: var(--white);
}
.kl-ol__sec--all { padding-bottom: 0; }
.kl-ol__sec--all .kl-ol__letters { margin-top: 12px; }

/* ----------------------------------- inscriptions / collaborations (CTA) */
.kl-ol__cta {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 18px 28px;
    margin: 28px 20px 0;
    padding: 24px 26px 24px 32px;
    border: 1.5px solid var(--black);
    border-radius: 14px;
    background: var(--white);
    overflow: hidden;
}
.kl-ol__cta::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 6px;
    background: linear-gradient(var(--orange), var(--orange-hight));
}
.kl-ol__cta-txt { flex: 1 1 320px; min-width: 0; }
.kl-ol__cta-title { margin: 0 0 6px; font-size: 1.15rem; font-weight: 700; color: var(--black); }
.kl-ol__cta-text { margin: 0; max-width: 70ch; font-size: .95rem; line-height: 1.55; color: var(--black); }
.kl-ol__cta-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.kl-ol__cta--soft { padding-top: 16px; padding-bottom: 16px; }

.kl-ol__btn {
    display: inline-grid;
    place-items: center;
    min-height: 42px;
    padding: 0 22px;
    border: 1.5px solid var(--orange);
    border-radius: 999px;
    font-size: .92rem;
    font-weight: 700;
    color: var(--white);
    background: var(--orange);
    text-decoration: none;
    transition: background .25s ease, color .25s ease, border-color .25s ease, transform .3s cubic-bezier(.2, .8, .2, 1);
}
.kl-ol__btn:hover,
.kl-ol__btn:focus-visible { color: var(--white); border-color: var(--black); background: var(--black); transform: translateY(-2px); }
.kl-ol__btn:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
.kl-ol__btn--ghost { color: var(--black); border-color: var(--black); background: var(--white); }
.kl-ol__btn--ghost:hover,
.kl-ol__btn--ghost:focus-visible { color: var(--white); border-color: var(--orange); background: var(--orange); }

@media (max-width: 575.98px) {
    .kl-ol__hero { padding: 0 14px; }
    .kl-ol__tab { flex: 1 1 auto; justify-content: center; padding: 9px 12px; }
    .kl-ol__cta { margin: 22px 14px 0; padding: 20px 18px 20px 24px; }
    .kl-ol__cta-actions, .kl-ol__btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    .kl-ol__tab,
    .kl-ol__btn { transition: none !important; transform: none !important; }
}
