/* ============================================================
   sources.css — Cartes de résultats (sources identifiées)
   Utilisé par interface.html via <link rel="stylesheet">
   ============================================================ */

/* ── Conteneur de la liste ─────────────────────────────────── */
.src-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 4px;
}

/* ── Carte individuelle ────────────────────────────────────── */
.src-card {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    background: #ffffff;
    border: 1px solid #e4e2f0;
    border-left: 4px solid #667eea;
    border-radius: 10px;
    padding: 16px 18px;
    transition: box-shadow 0.18s, border-left-color 0.18s;
}

.src-card:hover {
    box-shadow: 0 4px 18px rgba(102, 126, 234, 0.13);
    border-left-color: #764ba2;
}

/* ── Logo ──────────────────────────────────────────────────── */
.src-card__logo-wrap {
    flex: 0 0 72px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.src-card__logo-link {
    display: block;
    width: 64px;
    height: 64px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #ececf4;
    background: #f8f8fc;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.15s, box-shadow 0.15s;
}

.src-card__logo-link:hover {
    opacity: 0.85;
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.22);
}

.src-card__logo-link--empty {
    background: linear-gradient(135deg, #e8e4f8 0%, #d8d2f0 100%);
}

.src-card__logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 6px;
}

/* ── Corps ─────────────────────────────────────────────────── */
.src-card__body {
    flex: 1;
    min-width: 0;
}

/* ── En-tête : [type] + nom cliquable ─────────────────────── */
.src-card__header {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 7px;
}

.src-card__type {
    font-size: 0.72em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #8b7fd4;
    background: #f0eeff;
    padding: 2px 8px;
    border-radius: 20px;
    white-space: nowrap;
}

.src-card__name {
    font-size: 1.05em;
    font-weight: 700;
    color: #333;
    text-decoration: none;
    transition: color 0.15s;
    word-break: break-word;
}

.src-card__name:hover {
    color: #667eea;
    text-decoration: underline;
}

/* ── Description ───────────────────────────────────────────── */
.src-card__description {
    font-size: 0.9em;
    color: #555;
    line-height: 1.55;
    margin: 0 0 7px;
}

/* ── Mots-clés ─────────────────────────────────────────────── */
.src-card__keywords {
    font-size: 0.78em;
    color: #aaa;
    margin: 0;
    line-height: 1.5;
    word-break: break-word;
}

.src-card__kw-label {
    font-weight: 700;
    color: #bbb;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 0.9em;
}

/* ── Message vide ──────────────────────────────────────────── */
.src-empty {
    color: #888;
    font-style: italic;
    padding: 16px 0;
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 520px) {
    .src-card {
        flex-direction: column;
        gap: 12px;
    }
    .src-card__logo-wrap {
        flex: none;
        width: 100%;
        justify-content: flex-start;
    }
}
