/* ----------------------------------------------------------------------------
   4. RELATED CATEGORIES - 8 fichiers
   Fichier cible: 04-components/categories.css
   ---------------------------------------------------------------------------- */

.related-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 12px;
}

.related-categories h3 {
    grid-column: 1 / -1;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 1.4rem;
}

.related-categories a {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem;
    background: white;
    border-radius: 8px;
    text-decoration: none;
    color: #2c3e50;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.related-categories a:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.related-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 0.5rem;
    opacity: 0.8;
    color: #3498db;
}

.related-icon svg {
    width: 100%;
    height: 100%;
}

@media (max-width: 768px) {
    .related-categories {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        padding: 1.5rem;
        gap: 0.75rem;
    }
    
    .related-icon {
        width: 32px;
        height: 32px;
    }
}

/* Related Categories */
.related-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.related-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 0.5rem;
    opacity: 0.8;
}