@font-face {
    font-family: 'eurostile';
    src: url(./asset/font/eurostile.TTF);
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'eurostile';
    background: radial-gradient(circle at 10% 30%, #0f0f1a, #03030a);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: #f0f0f0;
    padding-bottom: 0;
}

/* Padding pour desktop avec footer fixe */
@media (min-width: 769px) {
    body {
        padding-bottom: 130px;
    }
}

.main-content {
    flex: 1;
    min-height: 50vh;
}

/* ========== VERSION DESKTOP ========== */
.desktop-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(10, 10, 10, 0.65);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 0.5px solid rgba(255, 255, 255, 0.1);
    padding: 0.7rem 2rem;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

/* Logo desktop - sans style ajouté */
.nav-logo {
    display: flex;
    align-items: center;
    line-height: 0;
}

.logo-img {
    width: 80px;
    height: 80px;
    display: block;
}

.nav-links {
    display: flex;
    justify-content: flex-end;
    gap: 2.5rem;
    list-style: none;
    flex-wrap: wrap;
}

.nav-links li a {
    text-decoration: none;
    color: #f5f5f7;
    font-weight: 500;
    font-size: 1rem;
    padding: 0.5rem 0;
    transition: 0.3s;
    position: relative;
    letter-spacing: -0.2px;
}

.nav-links li a:hover {
    color: #00c6ff;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #00c6ff, #0072ff);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.nav-links li a:hover::after {
    width: 80%;
}

/* Desktop Footer */
.desktop-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: rgba(8, 8, 12, 0.7);
    backdrop-filter: blur(10px);
    border-top: 0.5px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 2rem;
    z-index: 99;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    font-size: 0.85rem;
}

.social-icons {
    display: flex;
    gap: 1.5rem;
}

.social-icons a {
    color: #ccc;
    font-size: 1.2rem;
    transition: 0.3s;
}

.social-icons a:hover {
    color: #00c6ff;
    transform: translateY(-2px);
}

.legal-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.legal-links a {
    color: #aaa;
    text-decoration: none;
    transition: 0.3s;
    font-size: 0.8rem;
}

.legal-links a:hover {
    color: #00c6ff;
}

.copyright {
    color: #888;
    font-size: 0.8rem;
}

/* Masquer version mobile par défaut */
.mobile-nav-wrapper {
    display: none;
}

/* ========== RESPONSIVE MOBILE ========== */
@media (max-width: 768px) {
    body {
        padding-top: 0;
    }
    
    .desktop-nav {
        display: none;
    }

    .desktop-footer {
        display: none;
    }

    .mobile-nav-wrapper {
        display: block;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        z-index: 200;
    }

    /* Barre inférieure réduite */
    .bottom-bar {
        background: rgba(10, 10, 10, 0.85);
        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);
        border-top: 0.5px solid rgba(255, 255, 255, 0.15);
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 8px 0;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    }

    .menu-button {
        background: linear-gradient(135deg, #00c6ff, #0072ff);
        border: none;
        width: 52px;
        height: 52px;
        border-radius: 26px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        box-shadow: 0 4px 15px rgba(0, 114, 255, 0.4);
        transition: all 0.2s ease;
    }

    .menu-button i {
        font-size: 1.6rem;
        color: white;
        transition: 0.2s;
    }

    .menu-button:active {
        transform: scale(0.94);
    }

    /* Menu flottant avec espace suffisant */
    .floating-menu {
        position: fixed;
        bottom: 70px;
        left: 50%;
        transform: translateX(-50%) translateY(20px);
        width: calc(100% - 32px);
        max-width: 380px;
        background: rgba(20, 20, 28, 0.95);
        backdrop-filter: blur(30px);
        -webkit-backdrop-filter: blur(30px);
        border-radius: 28px;
        padding: 0;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(0, 198, 255, 0.2);
        transition: all 0.3s cubic-bezier(0.34, 1.2, 0.64, 1);
        opacity: 0;
        visibility: hidden;
        z-index: 199;
        overflow-y: auto;
        max-height: calc(100vh - 100px);
    }

    .floating-menu.show {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(0);
    }

    /* Header du menu avec logo - sans style ajouté */
    .menu-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 1rem 1rem 0.8rem 1rem;
        border-bottom: 0.5px solid rgba(0, 198, 255, 0.15);
        position: sticky;
        top: 0;
        background: rgba(20, 20, 28, 0.98);
        backdrop-filter: blur(10px);
        z-index: 1;
        border-radius: 28px 28px 0 0;
    }

    .menu-header-icon {
        display: flex;
        align-items: center;
        justify-content: center;
        line-height: 0;
    }

    .menu-logo-img {
        width: 60px;
        height: 60px;
        display: block;
    }

    .menu-close {
        background: rgba(255, 255, 255, 0.08);
        border: none;
        width: 34px;
        height: 34px;
        border-radius: 17px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.2s;
        color: white;
    }

    .menu-close i {
        font-size: 1.1rem;
    }

    .menu-close:active {
        background: rgba(255, 255, 255, 0.15);
        transform: scale(0.95);
    }

    /* Liens du menu avec icônes - compact mais lisible */
    .menu-links {
        display: flex;
        flex-direction: column;
        gap: 0.3rem;
        list-style: none;
        padding: 0.8rem 1rem;
        margin: 0;
    }

    .menu-links li a {
        display: flex;
        align-items: center;
        gap: 1rem;
        padding: 10px 14px;
        font-size: 0.95rem;
        font-weight: 500;
        color: #eee;
        text-decoration: none;
        border-radius: 14px;
        transition: all 0.2s;
        background: rgba(255, 255, 255, 0.02);
    }

    .menu-links li a i {
        width: 22px;
        font-size: 1.1rem;
        color: #00c6ff;
        transition: 0.2s;
    }

    .menu-links li a span {
        flex: 1;
    }

    .menu-links li a:active {
        background: linear-gradient(135deg, rgba(0, 198, 255, 0.15), rgba(0, 114, 255, 0.08));
        transform: translateX(4px);
    }

    .menu-links li a:active i {
        transform: scale(1.05);
    }

    /* Divider plus fin */
    .menu-divider {
        height: 1px;
        background: linear-gradient(90deg, transparent, rgba(0, 198, 255, 0.4), rgba(0, 114, 255, 0.4), transparent);
        margin: 0.3rem 1rem;
    }

    /* Footer compact - réduit pour mieux voir le menu */
    .mobile-footer-compact {
        padding: 0.5rem 1rem 1rem;
    }

    .mobile-social {
        display: flex;
        justify-content: center;
        gap: 1.5rem;
        margin-bottom: 0.6rem;
    }

    .mobile-social a {
        color: #ccc;
        font-size: 1.1rem;
        transition: all 0.2s;
    }

    .mobile-social a:active {
        color: #00c6ff;
        transform: scale(1.05);
    }

    .mobile-legal {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.8rem;
        margin-bottom: 0.5rem;
    }

    .mobile-legal a {
        color: #aaa;
        text-decoration: none;
        transition: 0.2s;
        font-size: 0.65rem;
        padding: 0.2rem 0.4rem;
        border-radius: 10px;
        background: rgba(255, 255, 255, 0.03);
    }

    .mobile-legal a:active {
        color: #00c6ff;
        background: rgba(0, 198, 255, 0.1);
    }

    .mobile-copyright {
        text-align: center;
        font-size: 0.6rem;
        color: #777;
        margin-top: 0.3rem;
    }

    .main-content {
        min-height: 100vh;
        padding-bottom: 80px;
    }

    /* Personnalisation du scroll pour le menu flottant */
    .floating-menu::-webkit-scrollbar {
        width: 3px;
    }

    .floating-menu::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.05);
        border-radius: 10px;
    }

    .floating-menu::-webkit-scrollbar-thumb {
        background: linear-gradient(135deg, #00c6ff, #0072ff);
        border-radius: 10px;
    }
}

/* Petits écrans - ajustement du logo */
@media (max-width: 480px) {
    .floating-menu {
        width: calc(100% - 24px);
        bottom: 65px;
        max-width: 340px;
        max-height: calc(100vh - 85px);
    }
    
    .menu-links {
        padding: 0.6rem 0.8rem;
        gap: 0.2rem;
    }
    
    .menu-links li a {
        padding: 8px 12px;
        font-size: 0.9rem;
    }
    
    .menu-links li a i {
        width: 20px;
        font-size: 1rem;
    }
    
    .menu-header {
        padding: 0.8rem 0.8rem 0.6rem 0.8rem;
    }
    
    .menu-logo-img {
        width: 50px;
        height: 50px;
    }
    
    .logo-img {
        width: 50px;
        height: 50px;
    }
    
    .mobile-social {
        gap: 1.2rem;
    }
    
    .mobile-social a {
        font-size: 1rem;
    }
    
    .mobile-legal {
        gap: 0.6rem;
    }
    
    .mobile-legal a {
        font-size: 0.6rem;
    }
    
    .bottom-bar {
        padding: 6px 0;
    }
    
    .menu-button {
        width: 48px;
        height: 48px;
    }
    
    .menu-button i {
        font-size: 1.4rem;
    }
}

/* Très petits écrans */
@media (max-width: 380px) {
    .floating-menu {
        max-height: calc(100vh - 80px);
        bottom: 62px;
    }
    
    .menu-links li a {
        padding: 7px 10px;
        font-size: 0.85rem;
    }
    
    .menu-logo-img {
        width: 45px;
        height: 45px;
    }
    
    .logo-img {
        width: 45px;
        height: 45px;
    }
}

/* Overlay pour fermer le menu */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 198;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Animation d'entrée pour les liens */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-15px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.floating-menu.show .menu-links li {
    animation: slideIn 0.25s ease forwards;
    opacity: 0;
}

.floating-menu.show .menu-links li:nth-child(1) { animation-delay: 0.03s; }
.floating-menu.show .menu-links li:nth-child(2) { animation-delay: 0.06s; }
.floating-menu.show .menu-links li:nth-child(3) { animation-delay: 0.09s; }
.floating-menu.show .menu-links li:nth-child(4) { animation-delay: 0.12s; }
.floating-menu.show .menu-links li:nth-child(5) { animation-delay: 0.15s; }
.floating-menu.show .menu-links li:nth-child(6) { animation-delay: 0.18s; }
.floating-menu.show .menu-links li:nth-child(7) { animation-delay: 0.21s; }

/* Scrollbar personnalisée pour le body */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #0a0a0a;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #00c6ff, #0072ff);
    border-radius: 10px;
}