<!DOCTYPE html>
<html lang="fr">
    <head>
        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <title>Projet Ecurie</title>
        <link rel="shortcut icon" type="image/png" href="./images/autres/favicon.png">
        <link rel="stylesheet" media="all" href="./css/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css">
        <link rel="stylesheet" media="all" href="./css/style.css" type="text/css">
        <?php include('./config/init.php'); ?>
    </head>
    <body class="bg1">
        <header>
            <div class="container">
                <div class="text-center"><a href="index.php"><img src="./images/autres/logo.png"></a></div>
                <nav class="navbar navbar-expand-lg navbar-dark bg-transparent">
                    <a class="navbar-brand" href="index.php">Accueil</a>
                    <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
                        <span class="navbar-toggler-icon"></span>
                    </button>
                    <div class="collapse navbar-collapse" id="navbarSupportedContent">
                        <ul class="navbar-nav me-auto">
                            <li class="nav-item"><a class="nav-link" href="centre.php">Centre/Tarifs</a></li>
                            <li class="nav-item"><a class="nav-link" href="activite.php">Activités</a></li>
                            <li class="nav-item"><a class="nav-link" href="pension.php">Pensions</a></li>                            
                            <li class="nav-item"><a class="nav-link" href="actualite.php">Actualités</a></li>
                            <li class="nav-item"><a class="nav-link" href="evenement.php">Evénements</a></li>
                            <li class="nav-item"><a class="nav-link" href="vitrine.php">Vitrine</a></li>                            
                            <li class="nav-item dropdown">
                                <a class="nav-link dropdown-toggle" href="#" id="navbarDropdownCompte" role="button" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false">Compte</a>
                                <div class="dropdown-menu" aria-labelledby="navbarDropdownCompte">
                                    <a class="dropdown-item" href="./espace_membre.php">Espace membre</a>
                                    <div class="dropdown-divider"></div>
                                    <?php if(isset($_SESSION['pseudo'])) { ?>
                                    <a class="dropdown-item">Connecter en tant que <?php echo ' '.htmlentities($_SESSION['pseudo'], ENT_QUOTES, 'UTF-8'); ?></a>
                                    <a class="dropdown-item" href="./profil.php?action=modifier">Modifier mes informations</a>
                                    <a class="dropdown-item" href="./deconnexion.php">Déconnexion</a>
                                  <?php } else { ?>                            
                                    <a class="dropdown-item" href="./inscription.php">Inscription</a>
                                    <a class="dropdown-item" href="./connexion.php">Connexion</a>
                                  <?php } ?>
                                </div>
                            </li>
                        </ul>
                    </div>
                </nav>
            </div>
        </header>
