/* --- Styles pour les catégories --- */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 20px;
    margin-top: 2em;
    padding: 0;
}

.category-box {
    background: white;
    padding: 24px 12px;
    border-radius: 18px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    transition: all 0.2s ease-in-out;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.category-box:hover {
    transform: translateY(-4px);
}

.cat-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 12px;
}

.cat-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.cat-name {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 6px;
}

.cat-count {
    font-size: 14px;
    color: #666;
}

/* --- Styles pour les tags --- */
.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 2em;
}

.tag-badge {
    display: inline-block;
    padding: 8px 14px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    font-size: 15px;
    text-decoration: none;
    color: #333;
    transition: all 0.2s ease-in-out;
}

.tag-badge:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transform: translateY(-2px);
}