<!DOCTYPE html>
<html lang="fr">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Wiki Fantasy</title>
    <link id="favicon" rel="icon" href="../images/iconeSombre.ico"> <!-- Par défaut sombre -->
    <link rel="stylesheet" href="../styles/style.css">
    <script defer src="../script/theme-toggle.js"></script>
    <script src="../script/auth-check.js"></script>
</head>
<body>
    <div class="header">
       <div class="nav">
           <a href="favorite.html"><img src="../images/coeur.svg" alt="coeur" width="67px" height="67px" onmousedown="return false"></a>
           <img id="theme-icon" src="../images/light.svg" alt="toggle theme" width="72px" height="37px" onmousedown="return false" onclick="toggleTheme()">
           <a href="quiz.html"><img src="../images/quizz.svg" alt="quizz" width="51px" height="82px" onmousedown="return false"></a>
       </div>
       <div class="logo">
           <a href="accueil.html"><img src="../images/WIKIFANTASY.png" alt="Logo" width="227px" height="106px" onmousedown="return false"></a>
       </div>
       <div class="user">
           <a href="profil.html"><img src="../images/user_dark.png" alt="user" width="70px" height="70px" onmousedown="return false"></a>
       </div>
    </div>

<div class="container">
  <div class="row">
      <div>
        <input class="searchBarre" type="text" value="" placeholder="Rechercher"/>
        <div>
          <?php

#session_start();
#require_once('../bd/connexionDB.php');
#
#if(isset($_GET['user'])){
#$user = (String) trim($_GET['user']);
#
#$req = $DB->query("SELECT *
#    FROM utilisateur
#    WHERE nom LIKE ?
#    LIMIT 10",
#    array("$user%"));
#
#$req = $req->fetchALL();
$req=array(array('nom'=>'nom1','prenom'=>'prenom1'),array('nom'=>'nom2','prenom'=>'prenom2'),array('nom'=>'nom3','prenom'=>'prenom3'));

foreach($req as $r){
    ?>   
    <div style="margin-top: 20px 0; border-bottom: 2px solid #ccc"><?= $r['nom'] . " " . $r['prenom'] ?></div><?php    
}

#}

?>
      </div>
    </div>
  </div>
</div>

</body>
</html>