<?php
require_once __DIR__ . '/../config/database.php';

try {
    $db = Database::getInstance();
    $result = $db->selectOne("SELECT NOW() as now");
    echo "<h1>Connexion OK via Database class - " . ($result['now'] ?? date('Y-m-d H:i:s')) . "</h1>";
} catch (Exception $e) {
    echo "<h1>Erreur: " . $e->getMessage() . "</h1>";
}
?>
