diff --git a/js/admin.js b/js/admin.js
index 4ceebbe..b74857d 100644
--- a/js/admin.js
+++ b/js/admin.js
@@ -5,6 +5,18 @@ let currentPage = 1;
const itemsPerPage = 12;
let searchQuery = '';
+// ── GÉNÉRATEUR D'ÉTOILES (Supporte les demi-étoiles) ─
+function getStarsHTML(rating) {
+ const r = parseFloat(rating) || 0;
+ const full = Math.floor(r);
+ const hasHalf = (r - full) >= 0.5;
+ const empty = 5 - Math.ceil(r);
+ let html = '★'.repeat(full);
+ if (hasHalf) html += '★';
+ html += `${'☆'.repeat(empty)}`;
+ return html;
+}
+
// ── INITIALISATION ──
document.addEventListener('DOMContentLoaded', () => {
loadDashboardData();