.bodyContainer {
    width: min(var(--container-width), calc(100% - 2rem));
    margin-inline: auto;
    padding: var(--space-4);
    display: flex;
    flex-direction: column;
    min-height: 0;
}

header,
footer,
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(24px);
    z-index: 20;
}

header,
.header {
    min-height: 95px;
    height: auto;
    padding: 0 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    position: relative;
    z-index: 2100;
}

footer {
    height: auto;
    min-height: 32px;
    padding: 0.2rem 0.75rem;
    font-size: 0.78rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    opacity: 0.85;
}

footer .mascot {
    gap: 0.25rem;
}

footer .mascot svg {
    width: 1.4rem;
}

.footer-brand .mascot h1,
footer .mascot h1 {
    font-size: 0.8rem;
    line-height: 1;
}
.git {
    height: 1.5rem;

}
.footer-nav ul {
    gap: 0.2rem;
    flex-wrap: nowrap;
}

.footer-nav a {
    min-height: 24px;
    padding: 0.1rem 0.35rem;
    font-size: 0.72rem;
}

.footer-infos {
    flex: 0 1 auto;
    margin-right: 0;
    font-weight: 600;
}

.footer-infos p {
    margin: 0;
    font-size: 0.72rem;
    line-height: 1.1;
}
.footer-infos p a img {
   display: inline-flex;
    /*justify-content: center;*/
    padding-top: 0.2rem;
}

header h1,
footer h1,
.brand-gradient,
.event-header h1,
.titre2 {
    background: linear-gradient(to right, #7c3aed, #fb923c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.brand-link {
    flex: 0 1 auto;
    min-width: 0;
}

.mascot {
    margin: 0;
    gap: 0.6rem;
}

.mascot svg {
    width: 3.25rem;
}

.mascot h1 {
    margin: 0;
    font-size: 1.5rem;
    white-space: nowrap;
}

.menu {
    min-width: 0;
}

.menu ul,
.footer-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.menu ul {
    justify-content: flex-end;
    flex-wrap: wrap;
}

.footer-nav ul {
    justify-content: flex-start;
    flex-wrap: wrap;
}

.menu ul li a,
.menu a,
.footer-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 0.2rem 0.5rem;
    font-size: 0.8rem;
    border-radius: var(--radius-pill);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast);
    white-space: nowrap;
}

.menu a:hover,
.footer-nav a:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-pill);
    background: var(--color-surface);
    box-shadow: var(--shadow-sm);
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    z-index: 2200;
}

.nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 0 auto;
    background: var(--color-heading);
    border-radius: 999px;
}

.footer-brand .mascot h1 {
    font-size: 1.15rem;
}


.mobile-events,
.mobile-message {
    display: none;
}

@media (max-width: 980px) {
    header,
    .header {
        min-height: 80px;
        height: auto;
        padding: 0.75rem 1rem;
        flex-wrap: wrap;
        align-items: center;
    }

    .nav-toggle {
        display: inline-flex;
        margin-left: auto;
        flex: 0 0 auto;
    }

    .menu .btn-create-event.hide-mobile {
        display: none !important;
    }

    .menu {
        position: fixed;
        top: 80px;
        right: 1rem;
        width: min(82vw, 320px);
        max-width: calc(100vw - 2rem);

        height: auto;
        max-height: fit-content;
        overflow: hidden;

        display: none;
        transform: translateX(120%);
        transition: transform 0.3s ease;

        z-index: 2000;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(12px);
        border: 1px solid rgba(0, 0, 0, 0.08);
        border-radius: 20px;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
        padding: 0.75rem;
        box-sizing: border-box;
    }


    .nav-toggle.hide-mobile {
        display: none !important;
    }

    .menu.is-open {
        display: block;
        transform: translateX(0);
    }

    .menu ul {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
        margin: 0;
        padding: 0;
        width: 100%;
        overflow-y: hidden;
        overflow-x: hidden;
    }
    .menu,
    .menu ul {
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .menu::-webkit-scrollbar,
    .menu ul::-webkit-scrollbar {
        display: none;
    }
    .menu ul li {
        width: 100%;
        min-width: 0;
        list-style: none;
    }

    .menu ul li a,
    .menu a {
        display: flex;
        width: 100%;
        min-width: 0;
        min-height: 44px;
        padding: 0.75rem 1rem;
        justify-content: flex-start;
        align-items: center;
        box-sizing: border-box;
        overflow: hidden;
    }

    .menu ul li a:hover,
    .menu a:hover {
        background: linear-gradient(
            135deg,
            rgba(139, 92, 246, 0.2),
            rgba(251, 146, 60, 0.2)
        );
        transform: translateX(4px);
        box-shadow: var(--shadow-md);
    }

    .menu a.active {
        background: linear-gradient(135deg, #8b5cf6, #fb923c);
        color: white;
        border-color: transparent;
    }

}
