<div class="folder-item">
    <div class="folder-icon"><i class="fas fa-folder"></i></div>
    <div><strong>{{ folder.name }}</strong></div>
    <div>{{ folder.subfolder_count }} sous-dossier(s)</div>
    {% if folder.subfolder_count %}
        <div class="toggle-btn" onclick="toggleSubfolders({{ folder.id }})">
            <i class="fas fa-chevron-down"></i> Voir sous-dossiers
        </div>
        <div class="subfolders" id="children-{{ folder.id }}">
            <div class="folder-grid">
                {% for child in folder.children.all %}
                    {% include "admin/partials/folder_recursive.html" with folder=child %}
                {% endfor %}
            </div>
        </div>
    {% endif %}
</div>
