/* Styles de base pour le menu burger */
.burger-menu {
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    width: 40px;
    height: 40px;
    color: #FCA311 !important;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    z-index: 1000;
}

.burger-icon {
    width: 20px;
    height: 2px;
    background-color: #FCA311 !important;
    position: relative;
    transition: all 0.3s ease;
}

.burger-icon::before,
.burger-icon::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: #FCA311 !important;
    transition: all 0.3s ease;
    left: 0;
}

.burger-icon::before {
    top: -8px;
}

.burger-icon::after {
    top: 8px;
}

.burger-menu.active .burger-icon {
    transform: rotate(45deg);
    background-color: transparent !important;
}

.burger-menu.active .burger-icon::before {
    top: 0;
    transform: rotate(180deg);
}

.burger-menu.active .burger-icon::after {
    top: 0;
    transform: rotate(90deg);
}

/* Styles pour le menu mobile */
@media (max-width: 768px) {
    .nav-container {
        position: relative;
        padding: 1rem;
    }

    .burger-menu {
        display: flex;
        position: absolute;
        right: 35px;
        top: 50%;
        transform: translateY(-50%);
        width: 40px;
        height: 40px;
        border-radius: 50%;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        height: 1000rem;
        background-color: rgb(255, 255, 255, 0.95);
        padding: 0;
        box-shadow: 0 4px 6px rgba(255, 255, 255, 0.1);
        z-index: 999;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out, padding 0.3s ease-out;
        z-index: 9999;
    }

    .nav-menu.active {
        max-height: 1000rem;
        width: 100%;
        padding: 1rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .nav-menu a {
        width: 100%;
        text-align: center;
        padding: 0.8rem;
        border-bottom: 1px solid rgb(255, 255, 255);
        font-weight: 700;
        color: #FCA311 !important;
        background-color: rgba(185, 185, 185, 0.154);
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
        transition: transform 0.2s ease;
        -webkit-tap-highlight-color: transparent;
        position: relative;
        border-radius: 120px;
    }

    .nav-menu a.clicked {
        transform: scale(0.95);
        opacity: 0.8;
    }

    .nav-menu a:last-child {
        border-bottom: none;
    }

    .nav-menu a:active {
        transform: scale(0.95);
    }
}


    .header {
        transition: transform 0.3s ease, opacity 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
    }
    @media (max-width: 768px) {
        .header.initial-hidden {
            transform: translateY(-100%);
        }
    }
    .header.hide {
        opacity: 0;
        pointer-events: none;
    }
    @media (max-width: 768px) {
        .header {
            position: fixed;
            width: 100%;
            top: 0;
            z-index: 1000;
            background-color: rgba(255, 255, 255, 0.95);
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
            transform: translateY(-100%);
        }
        main {
            margin-top: 0;
        }
    }