/* ============================================================
   Category Chips — tuiles catégories cliquables
   Inclus par viewer/index.php et admin/catalogue.php
   ============================================================ */

.category-chips {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.category-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: var(--surface);
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 500;
    font-family: var(--font-body);
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
    line-height: 1;
}

.category-chip:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.category-chip-active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.category-chip-active:hover {
    opacity: 0.85;
    color: #fff;
}

.category-chip-active .chip-count {
    opacity: 0.85;
}

.chip-count {
    font-size: 11px;
    font-weight: 600;
    font-family: var(--font-mono);
    opacity: 0.6;
}

.chips-selection-info {
    font-size: 12px;
    color: var(--text-muted);
    font-style: italic;
    margin-left: 4px;
}

/* Responsive : chips plus compacts sur mobile */
@media (max-width: 600px) {
    .category-chip {
        padding: 5px 10px;
        font-size: 12px;
    }
    .chip-count {
        font-size: 10px;
    }
}
