// =====================================================
// RÉCUPÉRATION DES ALBUMS
// =====================================================
try {
$stmtAlbums = $pdo->query("
SELECT
id,
titre,
description,
couverture,
statut
FROM albums
WHERE statut = 'Publié'
ORDER BY date_creation DESC
");
$albums = $stmtAlbums->fetchAll(PDO::FETCH_ASSOC);
} catch (PDOException $e) {
$albums = [];
}