body {
    margin: 10px;
    font-family: 'Segoe UI', sans-serif;
    background-color: #ffffff;
    color: #333;
    transition: background-color 0.3s, color 0.3s;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background-color: #f8f8f8;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #007BFF;
}

.nav a, .dropdown-toggle {
    margin: 0 1rem;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 1.2rem;
}


.nav a:hover {
    color: #007BFF;
}

.actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.project-btn {
    margin-left: 1rem;
    background-color: #007BFF;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 7%;
    text-decoration: none;
    font-weight: bold;
}

.project-btn:hover {
    background-color: #0056b3;
}

.theme-toggle {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
}

/* Menu horizontal par défaut */
.nav {
    display: flex;
    gap: 1rem;
}

/* Bouton burger (caché en grand écran) */
.burger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Mode sombre */
.dark-mode {
    background-color: #121212;
    color: #eee;
}

.dark-mode .header {
    background-color: #1f1f1f;
}

.dark-mode .nav a {
    color: #eee;
}

.dark-mode .project-btn {
    background-color: #00BFFF;
}

.dark-mode .project-btn:hover {
    background-color: #0099cc;
}

.header {
    /*position: fixed;*/
    position: absolute;
    top: 40px;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background-color: #f8f8f8;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.firstbar {
    position: fixed;
    z-index: 1100;
    height: 40px;
}

/* Mode sombre fixe aussi */
.dark-mode .header {
    background-color: #1f1f1f;
}

/* Ajoute un padding en haut du body pour ne pas que le contenu soit masqué */
body {
    padding-top: 120px; /* à adapter selon la hauteur du header */
}

/* Responsive design */
@media screen and (max-width: 768px) {
    .nav {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: #f8f8f8;
        margin-top: 1rem;
    }

    .nav.active {
        display: flex;
    }

    .burger {
        display: block;
    }

    .actions {
        flex-direction: column;
        gap: 0.5rem;
        margin-top: 1rem;
    }

    .project-btn {
        width: 100%;
        text-align: center;
    }
}
