/* ============================================================
   BizMe — Page /experts · v2026-11-12
   Hero + barre de filtres + pagination + helpers.
   Scope : page annuaire experts. Les styles inline d'origine ont
   été remplacés par ces classes (index.blade.php v20261112).
   ============================================================ */

/* ---------- Accessibilité ---------- */
.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* ---------- Hero recherche ---------- */
.experts-search-hero {
    background:
        radial-gradient(1100px 300px at 85% -40%, rgba(96, 165, 250, 0.28), transparent 60%),
        linear-gradient(135deg, #0b1220 0%, #16283f 55%, #1d4ed8 130%);
    padding: 26px 16px 20px;
    margin: -4px -4px 0;
    border-radius: 14px;
}
.experts-hero-title {
    color: #fff;
    font-size: 1.32rem;
    font-weight: 800;
    line-height: 1.28;
    margin: 0 0 2px;
    letter-spacing: -0.01em;
}
/* Le thème global force h1 en sombre !important (.bizme-app-shell h1) :
   on regagne par spécificité supérieure + !important, sinon titre illisible sur le dégradé. */
body.bizme-experts-page .experts-search-hero h1.experts-hero-title {
    color: #fff !important;
    font-weight: 800 !important;
}
body.bizme-experts-page .experts-hero-subtitle {
    color: #b9cbe6 !important;
}
.experts-hero-em { color: #7db2ff; }
.experts-hero-subtitle {
    color: #9fb6d4;
    font-size: 0.85rem;
    margin: 0 0 14px;
}
.experts-hero-form {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 4px;
}
.experts-hero-field {
    position: relative;
    flex: 1;
    min-width: 130px;
}
.experts-hero-field--grow { flex: 2; }
.experts-hero-ico {
    position: absolute;
    left: 11px;
    top: 50%;
    transform: translateY(-50%);
    color: #8fa8c7;
    font-size: 0.78rem;
    pointer-events: none;
}
.experts-hero-input {
    width: 100%;
    padding: 9px 12px 9px 32px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.10);
    color: #fff;
    font-size: 0.84rem;
    transition: background .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.experts-hero-input::placeholder { color: #8fa8c7; }
.experts-hero-input:focus {
    background: rgba(255, 255, 255, 0.17);
    border-color: rgba(125, 178, 255, 0.65);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.35);
    outline: none;
}
.experts-hero-submit {
    padding: 0 16px;
    background: linear-gradient(135deg, #2563EB, #1d4ed8);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: transform .12s ease, box-shadow .15s ease;
    box-shadow: 0 2px 10px rgba(37, 99, 235, 0.4);
}
.experts-hero-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.5);
}
.experts-hero-ai {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 0 12px;
    background: rgba(255, 255, 255, 0.08);
    color: #dbe7ff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    cursor: default;
}
.experts-hero-ai-beta {
    font-size: 0.6rem;
    background: #2563EB;
    padding: 1px 5px;
    border-radius: 5px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* ---------- Barre de filtres ---------- */
.experts-filter-bar {
    background: #fff;
    border: 1px solid #e5eaf2;
    border-radius: 12px;
    padding: 9px 0;
    margin: 10px 0 0;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: thin;
}
.experts-fbar {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
}
.fchip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border: 1.5px solid #e2e8f0;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
    background: #fff;
    cursor: pointer;
    white-space: nowrap;
    transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.fchip:hover { border-color: #b9c8da; color: #334155; }
.fchip-input { display: none; }
.fchip-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #cbd5e1;
    display: inline-block;
    transition: background .15s ease;
}
.fchip--green.is-on {
    border-color: #16a34a;
    color: #15803d;
    background: #f0faf4;
}
.fchip--green.is-on .fchip-dot { background: #16a34a; }
.fchip--gold.is-on {
    border-color: #ca8a04;
    color: #a16207;
    background: #fffbeb;
}
.fchip--gold.is-on .fchip-dot { background: #ca8a04; }

.frange {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border: 1.5px solid #e2e8f0;
    border-radius: 999px;
    background: #fff;
    white-space: nowrap;
    transition: border-color .15s ease;
}
.frange:focus-within { border-color: #93b4f8; }
.frange-label {
    font-size: 0.72rem;
    color: #64748b;
    font-weight: 700;
}
.frange-input {
    width: 48px;
    border: none;
    font-size: 0.75rem;
    padding: 0 2px;
    outline: none;
    color: #334155;
    background: transparent;
}
.frange-input::-webkit-outer-spin-button,
.frange-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.frange-input[type=number] { -moz-appearance: textfield; appearance: textfield; }
.frange-sep { color: #cbd5e1; font-size: 0.7rem; }
.frange-unit { font-size: 0.68rem; color: #94a3b8; }

.fsel-wrap { position: relative; display: inline-block; }
.fsel {
    appearance: none;
    -webkit-appearance: none;
    padding: 5px 26px 5px 11px;
    border: 1.5px solid #e2e8f0;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
    background: #fff;
    cursor: pointer;
    outline: none;
    white-space: nowrap;
    transition: border-color .15s ease, color .15s ease;
}
.fsel:hover { border-color: #b9c8da; }
.fsel.is-on { border-color: #2563EB; color: #1d4ed8; }
.fsel-caret {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.55rem;
    color: #94a3b8;
    pointer-events: none;
}
.fskill-wrap { display: inline-block; min-width: 110px; }

.fok {
    padding: 5px 16px;
    background: linear-gradient(135deg, #2563EB, #1d4ed8);
    color: #fff;
    border: none;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: transform .12s ease, box-shadow .15s ease;
}
.fok:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(37, 99, 235, 0.35);
}
.freset {
    font-size: 0.72rem;
    color: #94a3b8;
    text-decoration: none;
    white-space: nowrap;
}
.freset:hover { color: #475569; }

/* ---------- En-tête résultats ---------- */
.experts-results-count {
    font-size: 0.82rem;
    color: #64748b;
    margin: 0;
}
.experts-results-count strong { color: #0f172a; }

/* ---------- Pagination ---------- */
.pagination-wrapper nav { justify-content: center; }
.pagination-wrapper .pagination { gap: 4px; }
.pagination-wrapper .page-link {
    border-radius: 8px;
    font-size: 0.82rem;
    padding: 6px 12px;
    color: #334155;
    border: 1px solid #e2e8f0;
    transition: border-color .15s ease, color .15s ease;
}
.pagination-wrapper .page-link:hover { border-color: #93b4f8; color: #1d4ed8; }
.pagination-wrapper .page-item.active .page-link {
    background: #2563EB;
    border-color: #2563EB;
    color: #fff;
}
.pagination-wrapper .page-item.disabled .page-link { color: #cbd5e1; }

/* ---------- Responsive (reprend et étend les correctifs 20261013) ---------- */
.bizme-experts-page #contenu-principal { min-width: 0; }
/* XL : la sidebar droite flotte par-dessus la colonne de contenu — on réserve
   sa largeur pour que la 3e colonne de cartes ne passe plus dessous.
   !important requis : .p-1 Bootstrap force le padding en !important. */
@media (min-width: 1200px) {
    body.bizme-experts-page #contenu-principal { padding-right: 252px !important; }
}
@media (max-width: 767.98px) {
    .bizme-experts-page > .container > .row { margin-left: 0; margin-right: 0; }
    .bizme-experts-page #contenu-principal { width: 100%; max-width: 100%; }
    .experts-search-hero,
    .experts-filter-bar { margin-left: 0 !important; margin-right: 0 !important; border-radius: 0; }
    .experts-search-hero { padding: 20px 14px 16px; }
    .experts-hero-title { font-size: 1.12rem; }
    .experts-hero-form { gap: 7px; }
    .experts-hero-field { flex-basis: 100% !important; min-width: 0 !important; }
    .experts-hero-submit { flex: 1; padding: 9px 16px; }
    .experts-hero-ai { flex: 1; justify-content: center; padding: 9px 12px; }
    .experts-filter-bar { white-space: normal !important; }
    .experts-fbar {
        display: flex !important;
        flex-wrap: wrap;
        width: 100%;
        box-sizing: border-box;
    }
    .experts-fbar > * { max-width: 100%; }
    .experts-fbar .select2-container { max-width: 100%; }
    .bizme-experts-page #contenu-principal > .row { margin-left: 0; margin-right: 0; }
}
