
<ul class="navbar-nav bg-gradient-primary sidebar sidebar-dark accordion" id="accordionSidebar">
    <a class="sidebar-brand d-flex align-items-center justify-content-center" href="index.php">
        <div class="sidebar-brand-icon rotate-n-15">
            <i class="fas fa-gamepad"></i>
        </div>
        <div class="sidebar-brand-text mx-3">Mahjong</div>
    </a>

    <hr class="sidebar-divider">

    <li class="nav-item active">
        <a class="nav-link" href="index.php">
            <i class="fas fa-fw fa-home"></i>
            <span>Accueil</span></a>
    </li>
    
    <li class="nav-item">
        <a class="nav-link collapsed" href="#" data-toggle="collapse" data-target="#game"
            aria-expanded="true" aria-controls="game">
            <i class="fas fa-fw fa-play"></i>
            <span>Jeu</span>
        </a>
        <div id="game" class="collapse" aria-labelledby="game" data-parent="#accordionSidebar">
            <div class="bg-white py-2 collapse-inner rounded">
                <a class="collapse-item" href="gameCreate.php">Créer une partie</a>
                <a class="collapse-item" href="gameJoin.php">Rejoindre une partie</a>
            </div>
        </div>
    </li>
    
    <li class="nav-item">
        <a class="nav-link collapsed" href="#" data-toggle="collapse" data-target="#stats"
            aria-expanded="true" aria-controls="stats">
            <i class="fas fa-fw fa-star"></i>
            <span>Statistiques</span>
        </a>
        <div id="stats" class="collapse" aria-labelledby="stats" data-parent="#accordionSidebar">
            <div class="bg-white py-2 collapse-inner rounded">
                <a class="collapse-item" href="#">Mes statistiques</a>
                <a class="collapse-item" href="#">Meilleurs scores</a>
                <a class="collapse-item" href="#">Classement</a>
            </div>
        </div>
    </li>
    
    <li class="nav-item">
        <a class="nav-link collapsed" href="#" data-toggle="collapse" data-target="#account"
            aria-expanded="true" aria-controls="account">
            <i class="fas fa-fw fa-user"></i>
            <span>Compte</span>
        </a>
        <div id="account" class="collapse" aria-labelledby="account" data-parent="#accordionSidebar">
            <div class="bg-white py-2 collapse-inner rounded">
                <a class="collapse-item" href="#">Profil</a>
                <a class="collapse-item" onclick="window.location.href = confirm('Etes-vous sûr de vouloir vous déconnecter ?') ? 'index.php' : '#';">Déconnexion</a>
            </div>
        </div>
    </li>
    
    <hr class="sidebar-divider d-none d-md-block">

    <div class="text-center d-none d-md-inline">
        <button class="rounded-circle border-0" id="sidebarToggle"></button>
    </div>
</ul>