        @font-face{
            font-family: Raleway;
            src: url(../fonts/Raleway/static/Raleway-Regular.ttf)
        }

        :root{
            --navbar        : #f7f7f7;
            --hover-fg      : #0000FF;
            --hover-bg      : #E0E0E0;
            --bar-fg        : #120A81;
            --bar-bg        : #F7F7F7;
            --separation    : #D7D7D7;
            --line-height   : 1.3;
        }
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            /*font-family: Arial, sans-serif;*/
            font-family: Raleway;

        }

        body {
            overflow-x: hidden;
            padding-top: 60px; /* Espace pour la barre en haut */
        }

        #wrapper {
            display: flex;
            flex-direction: column;
            min-height: 100vh;
        }

        #footer {
            text-align: center;
            background-color: rgb(0, 0, 70);
            color:#e4e4e4;
            padding: 10px;
            margin-top: auto;
        }
        #footer a {
            color: wheat;
        }

        /* Barre en haut */
        .header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            background-color: var(--bar-bg);
            color: var(--bar-fg);
            box-shadow: 0 0 15px 0 rgba(0, 0, 0, .4);
            padding: 2px;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            z-index: 1000;
        }

        .header-left, .header-right {
            display: flex;
            align-items: center;
            gap: 1rem;
        }

        /* Conteneur pour le hamburger et le menu */
        .hamburger-container {
            position: relative;
            display: inline-block;
        }

        .hamburger {
            background: none;
            border: none;
            color: var(--bar-fg);
            font-size: 1rem;
            cursor: pointer;
            padding: 0.5rem;
        }

        .social-icons a {
            color: white;
            font-size: 1.2rem;
        }

        .login-link {
            color: white;
            text-decoration: none;
        }

        /* Menu principal */
        .sidebar {
            position: absolute;
            box-shadow: 3px 3px 10px 0 rgba(0, 0, 0, .4);
            top: 100%;
            left: 0;
            width: 150px;
            color: var(--bar-fg);
            background-color: var(--bar-bg);
            z-index: 1000;
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.3s, visibility 0.3s;
            padding: 0 0;
        }

        /* Afficher le menu au survol du conteneur (desktop) */
        .hamburger-container:hover .sidebar {
            opacity: 1;
            visibility: visible;
        }

        /* Style des listes */
        .menu, .submenu {
            list-style: none;
            position: relative;
        }

        .menu li, .submenu li {
            border-top: 1px solid var(--separation);
            position: relative;
            margin: 0; /* Supprime les marges par défaut */
            line-height: var(--line-height); /* Alignement vertical du texte */
        }

        /* Supprime la bordure du premier élément pour éviter un espace en haut */
        .menu li:first-child, .submenu li:first-child {
            border-top: none;
        }
        
        .menu a, .submenu a {
            color: var(--bar-fg);
            text-decoration: none;
            display: block;
            padding: 0.5rem 1rem;
            transition: background-color 0.2s;
            line-height: var(--line-height); /* Alignement cohérent avec le li */
        }

        .menu a:hover, .submenu a:hover {
            /*color: var(--hover-fg);*/
            background-color: var(--hover-bg);
        }

        /* Icône de sous-menu */
        .submenu-icon {
            position: absolute;
            right: 1rem;
            top: 50%;
            transform: translateY(-50%);
            font-size: 0.8rem;
        }

        /* Sous-menus (niveau 1 et +) */
        .submenu {
            position: absolute;
            box-shadow: 3px 3px 10px 0 rgba(0, 0, 0, .4);
            left: 100%;
            top: 0;
            background-color: var(--bar-bg);
            min-width: 200px;
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.3s, visibility 0.3s;
            padding-left: 0;
            border-left: 2px solid var(--separation);
        }
        
        /* Afficher le sous-menu au survol du parent */
        .has-submenu:hover > .submenu {
            opacity: 1;
            visibility: visible;
        }

        /* Mobile : désactiver le hover, utiliser la classe 'active' */
        @media (max-width: 768px) {
            .hamburger-container:hover .sidebar {
                opacity: 0;
                visibility: hidden;
            }
            .sidebar.active {
                opacity: 1;
                visibility: visible;
            }
            /* Pour les sous-menus sur mobile, on utilise aussi le clic */
            .has-submenu > .submenu {
                display: none;
            }
            .has-submenu.active > .submenu {
                display: block;
                opacity: 1;
                visibility: visible;
            }
        }
