/* ========== NAVBAR RÉTRACTABLE ========== */

.global-navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    background-color: transparent;
    transition: max-height 0.3s ease;
    z-index: 998;
}

.global-navbar.active {
    max-height: 100vh;
    background-color: #333;
}

#navToggle {
    position: fixed;
    top: 10px;
    left: 10px;
    width: 40px;
    height: 40px;
    background-color: rgba(51, 51, 51, 0.8);
    border: none;
    outline: none;
    cursor: pointer;
    z-index: 999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    padding: 0;
}

#navToggle span {
    width: 25px;
    height: 3px;
    background-color: #fff;
    transition: 0.3s;
    display: block;
}

#navToggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

#navToggle.active span:nth-child(2) {
    opacity: 0;
}

#navToggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.nav-brand {
    display: none;
    color: white;
    font-size: 24px;
    font-weight: bold;
    padding: 20px;
    border-bottom: 1px solid #555;
}

.nav-brand.active {
    display: block;
}

.nav-links {
    display: none;
    list-style: none;
    padding: 20px;
    flex-direction: column;
}

.nav-links.active {
    display: flex;
}

.nav-links li {
    list-style: none;
}

.nav-links a {
    display: block;
    color: white;
    text-decoration: none;
    padding: 12px 0;
    border-bottom: 1px solid #555;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #00bcd4;
}

@media (max-width: 768px) {
    header h1 {
        font-size: 24px;
    }

    nav {
        flex-direction: column;
        gap: 10px;
    }

    section {
        padding: 20px;
    }

    .content {
        padding: 20px;
    }

    .navigation {
        flex-direction: column;
        gap: 10px;
    }

    .navigation a {
        text-align: center;
    }
}

@media (min-width: 768px) {
    #navToggle {
        top: 15px;
        left: 15px;
    }
}
