/* ============================================================
   BizMe — Cartes experts · v2026-11-12
   Pass beauté : relief, hover lift, badges pilules, score affiné.
   Scope : page /experts uniquement (chargée par expert_item).
   ============================================================ */

/* ---------- Carte ---------- */
.expert-card {
    border-radius: 14px;
    border: 1px solid #e8edf4;
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05), 0 4px 14px rgba(15, 23, 42, 0.05);
    transition: box-shadow .22s ease, transform .18s ease, border-color .22s ease;
    overflow: hidden;
}
.expert-card:hover {
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.10), 0 14px 34px rgba(37, 99, 235, 0.14);
    transform: translateY(-3px);
    border-color: #c9dbfb;
}

/* ---------- Avatar ---------- */
.expert-avatar-wrap {
    position: relative;
    flex-shrink: 0;
    padding: 2px;
    border-radius: 50%;
    background: linear-gradient(135deg, #60a5fa, #2563EB 55%, #1e40af);
}
.expert-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    display: block;
}
.expert-avatar-fallback {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563EB, #1d4ed8);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    border: 2px solid #fff;
    flex-shrink: 0;
}
.expert-availability-dot {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    border: 2.5px solid #fff;
}

/* ---------- Nom ---------- */
.expert-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 170px;
}
.expert-name-link {
    color: #0f172a;
    text-decoration: none;
}
.expert-name-link:hover {
    color: #2563EB;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.expert-fav-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #cbd5e1;
    padding: 0;
    flex-shrink: 0;
    font-size: 0.9rem;
    transition: transform .15s ease, color .15s ease;
}
.expert-fav-btn:hover {
    color: #f43f5e;
    transform: scale(1.18);
}

/* ---------- Badges (pilules) ---------- */
.expert-badges {
    margin-top: 4px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}
.expert-badge {
    font-size: 0.63rem;
    font-weight: 700;
    padding: 1px 7px;
    border-radius: 999px;
    line-height: 1.5;
    white-space: nowrap;
}
.expert-badge--available {
    color: #0f7a43;
    background: #e9f9f0;
    border: 1px solid #c4ecd4;
}
.expert-badge--soon {
    color: #92600a;
    background: #fdf6e3;
    border: 1px solid #f3e3b3;
}
.expert-badge--unavailable {
    color: #5b6b7f;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
}
.expert-badge--premium {
    background: linear-gradient(135deg, #eab308, #f59e0b);
    color: #fff;
    border: 1px solid #f59e0b;
}
.expert-badge--rating {
    background: #fffbeb;
    color: #92400e;
    border: 1px solid #fde68a;
}

/* ---------- Présentation ---------- */
.expert-presentation {
    font-size: 0.78rem;
    color: #5b6b7f;
    line-height: 1.5;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.4em;
}

/* ---------- Preuves (LinkedIn / Top profil) ---------- */
.expert-proofs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 8px;
}
.expert-proof {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.66rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 999px;
    white-space: nowrap;
}
.expert-proof i { font-size: 0.6rem; }
.expert-proof--premium { background: #fff8e5; color: #8a5f00; border: 1px solid #ead9a8; }
.expert-proof--available { background: #f0faf4; color: #116149; border: 1px solid #d7eadf; }
.expert-proof--soon { background: #fefce8; color: #854d0e; border: 1px solid #fde047; }
.expert-proof--top {
    background: linear-gradient(135deg, #eff6ff, #e0edff);
    color: #1e40af;
    border: 1px solid #bfdbfe;
}
.expert-proof--proof { background: #f8fafc; color: #475569; border: 1px solid #e2e8f0; }

/* ---------- Score ---------- */
.expert-score {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    padding: 7px 10px;
    background: linear-gradient(135deg, #f8fafc, #f1f6fc);
    border: 1px solid #e8edf4;
    border-radius: 10px;
}
.expert-score-value {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 46px;
}
.expert-score-value strong {
    font-size: 1.18rem;
    font-weight: 800;
    background: linear-gradient(135deg, #1e293b, #2563EB);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
}
.expert-score-value span {
    font-size: 0.58rem;
    color: #64748b;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}
.expert-score-bar {
    flex: 1;
    height: 6px;
    border-radius: 999px;
    background: #e5eaf2;
    overflow: hidden;
}
.expert-score-bar b {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #2563EB, #22c55e);
    transition: width .6s ease;
}

/* ---------- TJM + localisation ---------- */
.expert-tjm {
    font-size: 1.02rem;
    font-weight: 800;
    color: #2563EB;
}
.expert-tjm-unit {
    font-size: 0.7rem;
    color: #94a3b8;
}
.expert-tjm-na {
    font-size: 0.75rem;
    color: #8fa0b3;
    font-style: italic;
}
.expert-location {
    font-size: 0.72rem;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 110px;
}
.expert-location i { color: #2563EB; font-size: 0.62rem; }

/* ---------- Compétences ---------- */
.expert-skills {
    min-height: 26px;
    margin-bottom: 6px;
}
.expert-skill {
    display: inline-block;
    font-size: 0.68rem;
    background: #eef4ff;
    color: #1d4ed8;
    border: 1px solid #d3e2fc;
    padding: 1px 8px;
    border-radius: 20px;
    margin: 1px 1px 1px 0;
    font-weight: 600;
    transition: background .15s ease, border-color .15s ease;
}
.expert-skill:hover {
    background: #dbeafe;
    border-color: #bfdbfe;
}
.expert-skill-more {
    font-size: 0.68rem;
    color: #94a3b8;
    font-weight: 600;
}

/* ---------- Boutons ---------- */
.expert-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: none;
    padding: 7px 10px;
    min-height: 34px;
    transition: background .15s ease, box-shadow .15s ease, transform .12s ease;
}
body.bizme-app-shell .expert-btn--primary,
body.bizme-app-shell .expert-btn--primary:link,
body.bizme-app-shell .expert-btn--primary:visited {
    flex: 1;
    background: linear-gradient(135deg, #2563EB, #1d4ed8);
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    text-decoration: none !important;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.28);
}
body.bizme-app-shell .expert-btn--primary:hover,
body.bizme-app-shell .expert-btn--primary:focus,
body.bizme-app-shell .expert-btn--primary:active {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}
body.bizme-app-shell .expert-btn--primary:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.28);
    outline-offset: 2px;
}
.expert-btn--secondary {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
}
.expert-btn--secondary:hover {
    background: #e2e8f0;
    color: #1e293b;
    border-color: #cbd5e1;
}

/* ---------- Mobile ---------- */
@media (max-width: 575.98px) {
    .expert-card { border-radius: 12px; }
    .expert-name { max-width: none; }
    .expert-presentation { -webkit-line-clamp: 3; }
}
