/* Navbar - Liquid Glass Style */
.navbar {
    position: fixed;
    bottom: 20px;
    left: 12px;
    right: 12px;
    background:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.12) 0%,
            rgba(255, 255, 255, 0.05) 20%,
            rgba(20, 20, 20, 0.85) 100%
        );
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border: 1.5px solid rgba(255, 255, 255, 0.18);
    border-radius: 50px;
    padding: 4px 4px calc(4px + env(safe-area-inset-bottom));
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2px;
    z-index: 1000;
    box-shadow:
        0 4px 32px rgba(0, 0, 0, 0.5),
        0 -1px 0 rgba(255, 255, 255, 0.1) inset,
        0 1px 2px rgba(0, 0, 0, 0.2) inset;
    overflow: visible;

    /* Animation slide */
    transform: translateY(0);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 1;
}

/* Cacher navbar quand modal ouvert */
body.modal-open .navbar {
    transform: translateY(120px); /* Descendre en dessous de l'Ã©cran */
    opacity: 0;
    pointer-events: none; /* DÃ©sactiver les clics */
}

.navbar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.4) 20%,
        rgba(255, 255, 255, 0.6) 50%,
        rgba(255, 255, 255, 0.4) 80%,
        transparent 100%
    );
    opacity: 0.8;
}

.nav-item {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    padding: 6px 10px;
    border-radius: 30px;
    background: transparent;
    max-width: 80px;
    position: relative;
    overflow: hidden;
}

.nav-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(
        circle at center,
        rgba(255, 255, 255, 0.15) 0%,
        transparent 70%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.nav-item.active {
    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.25) 0%,
            rgba(255, 255, 255, 0.1) 100%
        );
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow:
        0 2px 8px rgba(255, 255, 255, 0.10),
        0 2px 8px rgba(255, 255, 255, 0.12) inset,
        0 -1px 4px rgba(0, 0, 0, 0.2) inset;
}

.nav-item.active::after {
    opacity: 1;
    animation: shimmer 2s ease-in-out infinite;
}

.nav-item:active {
    transform: scale(0.92);
    background: rgba(255, 255, 255, 0.08);
}

.nav-item:active::after {
    opacity: 1;
    animation: ripple 0.6s ease-out;
}

.nav-item svg {
    width: 24px;
    height: 24px;
    stroke: #fff;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.nav-item.active svg {
    stroke: #fff;
    filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.25));
}

.nav-item span {
    font-size: 11px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.nav-item.active span {
    color: #fff;
    text-shadow: 0 0 4px rgba(255, 255, 255, 0.2);
}

/* Liquid Glass Animations */
@keyframes shimmer {
    0%, 100% {
        opacity: 0.3;
        transform: translateY(0);
    }
    50% {
        opacity: 0.6;
        transform: translateY(-2px);
    }
}

@keyframes ripple {
    0% {
        opacity: 0;
        transform: scale(0);
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: scale(2.5);
    }
}

/* Content */
.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

.page {
    display: none;
}

.page.active {
    display: block;
    min-height: calc(100vh - 160px);
}

/* Home Page */
.hero {
    text-align: center;
    padding: 0 20px 10px;
}

.hero-logo {
    width: 50%;
    max-width: 300px;
    height: auto;
    margin: 15px auto 10px;
    display: block;
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.3));
}

@media (max-width: 400px) {
    .hero-logo {
        width: 45%;
    }
}

@media (max-width: 350px) {
    .hero-logo {
        width: 40%;
    }
}
