@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&family=Noto+Sans:ital,wght@0,100..900;1,100..900&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');


/* Global Styles */
body {
    background-color: #ffffff;
    color: #000000;
    font-family: "Noto Sans", sans-serif;
    margin: 0;
    padding: 0;
    cursor: url("/images/pngegg.png"), auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    padding-bottom: 60px;
}

/* Footer */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #f8f9fa;
    padding: 10px 0;
    text-align: center;
    border-top: 1px solid #ddd;
    box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.1);
    margin-top: 50px;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.footer-logo {
    height: 30px;
    width: auto;
}

/* ***************************************
   NAVBAR (VERSION ORIGINALE DÉSACTIVÉE)
   *************************************** 
   .navbar {
       background-color: #ffffff;
       border-bottom: 1px solid #dddddd;
       padding: 10px;
       margin-bottom: 20px;
       display: flex;
       border-radius: 50%;
       box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
       justify-content: space-between;
   }
   .navbar.container {
       border-radius: 50%;
   }
   ...
   (On a remplacé par la version "sidebar" ci-dessous)
*******************************************/

/*******************************************/
/*           NAVBAR LATÉRALE GAUCHE        */
/*******************************************/

/* On transforme la navbar en sidebar fixe à gauche */
.navbar {
    /* positionnement fixe */
    position: fixed;
    top: 0;
    left: 0;
    width: 240px;
    height: 100vh;

    /* style de fond + bordure + ombre */
    background-color: #000000;
    border-right: 1px solid #dddddd; /* Remplace l'ancienne bordure du bas */
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);

    /* on annule margin-bottom et l'arrondi */
    margin-bottom: 0 !important;
    border-radius: 0 !important;

    /* on aligne en colonne */
    padding: 20px 10px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;

    /* on passe au-dessus du contenu */
    z-index: 999;
}

/* Empêche la classe .navbar.container d'arrondir la barre */
.navbar.container {
    border-radius: 0 !important;
}

/* La marque (logo) reste en haut */
.navbar-brand {
    margin-bottom: 20px;
    text-decoration: none;
    font-weight: 600;
    font-size: 18px;
    color: #fcfcfc;
}
.navbar-brand-image {
    height: 50px;
    width: auto;
}

/* Adaptation du conteneur de la navbar (on aligne verticalement) */
.navbar-collapse {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

/* Les liens de navigation passent en vertical */
.navbar-nav {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    /* Espacement vertical entre les liens */
}

.nav-item {
    margin: 0;
}

/* Un lien prend toute la largeur et est empilé */
.nav-link {
    display: block;
    width: 100%;
    text-decoration: none;
    color: #ffffff;
    font-weight: 500;
    font-size: 16px;
    padding: 8px 0;
    transition: color 0.3s;
}
.nav-link:hover {
    color: #666666;
}

/* Bouton hamburger (masqué en desktop, visible en mobile) */
.navbar-toggler {
    display: none; /* caché en desktop */
    background: none;
    border: none;
    font-size: 24px;
    color: #ffffff;
    cursor: pointer;
    align-items: center;
}

/* Dropdowns dans la sidebar (position statique pour s'afficher sous le parent) */
.dropdown-menu {
    position: static;
    display: none;
    background-color: #ffffff;
    border: 1px solid #dddddd;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
    margin-top: 10px;
    border-radius: 4px;
    width: auto;
}
.dropdown:hover .dropdown-menu {
    display: block;
}
.dropdown-item {
    padding: 10px 20px;
    text-decoration: none;
    color: #000000;
    display: block;
    transition: background-color 0.3s;
}
.dropdown-item:hover {
    background-color: #f1f1f1;
}

/*******************************************/
/*         DÉCALER LE CONTENU PRINCIPAL    */
/*******************************************/
/* Si vous avez un wrapper .main-content, utilisez-le pour décaler
   tout le contenu sur la droite (sinon, vous pouvez le faire 
   directement sur .container si désiré). 
*/
.main-content {
    margin-left: 240px; /* Laisse la place à la sidebar */
    padding: 20px 0; /* Ajustez à votre convenance */
}

/*******************************************/
/*         RESPONSIVE  (max-width: 768px)  */
/*******************************************/
@media (max-width: 950px) {
    /* Sur mobile : la navbar repasse en haut
       et le bouton toggle permet d'afficher ou masquer le menu */
    .navbar {
        position: relative;
        width: 100%;
        height: auto;
        border-right: none;
        border-bottom: 1px solid #dddddd;
        padding: 10px;
    }

    /* On affiche le toggle (hamburger) en mobile */
    .navbar-toggler {
        display: block;
    }

    /* Par défaut, on masque le menu si on ne clique pas sur le toggle */
    .navbar-collapse {
        display: none;
        flex-direction: column;
        gap: 10px;
        border-top: 1px solid #dddddd;
        padding-top: 10px;
    }
    /* Quand on clique sur le toggle, on ajoute la classe .show (gérée par JS) */
    .navbar-collapse.show {
        display: flex;
    }

    /* Les liens de nav en colonne */
    .navbar-nav {
        flex-direction: column;
        gap: 10px;
    }

    /* Le contenu revient en pleine largeur (sinon trop serré) */
    .main-content {
        margin-left: 0;
        padding: 10px;
    }
}
