* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--dark-bg);
    color: var(--light-text);
    line-height: 1.6;
}

main {
    padding-top: 80px;
}

/* ===================================
   PROTECTION DES VIDÉOS
   =================================== */
video {
    pointer-events: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Empêcher le clic droit sur les vidéos */
video::-webkit-media-controls {
    display: none !important;
}

video::-webkit-media-controls-enclosure {
    display: none !important;
}

video::-webkit-media-controls-panel {
    display: none !important;
}

video::-moz-media-controls {
    display: none !important;
}

/* Masquer les contrôles natifs */
video::-webkit-media-controls-download-button {
    display: none !important;
}

video::-webkit-media-controls-fullscreen-button {
    display: none !important;
}

/* ===================================
   NAVIGATION ULTRA MODERNE
   =================================== */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 1rem 2rem;
    margin: 0;
    border-radius: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg,
            rgba(11, 22, 44, 0.85),
            rgba(0, 20, 50, 0.85));
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

@keyframes navLineGlow {

    0%,
    100% {
        width: 0;
        left: 0;
    }

    50% {
        width: 100%;
        left: 0;
    }
}

/* État scrollé - Design encore plus premium */
nav.nav-scrolled {
    background: linear-gradient(135deg,
            rgba(11, 22, 44, 0.98),
            rgba(0, 20, 50, 0.98));
    backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(149, 193, 31, 0.2);
}

@keyframes navLineGlowActive {

    0%,
    100% {
        opacity: 0.5;
        box-shadow: 0 0 10px rgba(149, 193, 31, 0.5);
    }

    50% {
        opacity: 1;
        box-shadow: 0 0 20px rgba(149, 193, 31, 0.8);
    }
}

@media screen and (min-width: 769px) {
    nav.nav-scrolled {
        margin: 1rem 2rem;
        border-radius: 50px;
        border-bottom: none;
    }
}

/* ===================================
   LOGO CONTAINER AMÉLIORÉ
   =================================== */
.logo-container {
    display: flex;
    align-items: center;
    z-index: 1001;
    position: relative;
}

.nav-logo {
    height: 40px;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    cursor: pointer;
    margin-right: auto;
    filter: drop-shadow(0 2px 5px rgba(149, 193, 31, 0.3));
}

/* ===================================
   MENU HAMBURGER ULTRA MODERNE
   =================================== */
.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, rgba(149, 193, 31, 0.1), rgba(0, 48, 130, 0.1));
    border: 2px solid rgba(149, 193, 31, 0.3);
    border-radius: 12px;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.hamburger-btn:hover {
    background: linear-gradient(135deg, rgba(149, 193, 31, 0.2), rgba(0, 48, 130, 0.2));
    border-color: var(--primary-green);
    box-shadow: 0 6px 20px rgba(149, 193, 31, 0.3);
    transform: scale(1.05);
}

.hamburger-btn:active {
    transform: scale(0.95);
}

.hamburger-btn::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary-green), var(--primary-blue));
    opacity: 0;
    z-index: -1;
    filter: blur(10px);
    transition: opacity 0.4s ease;
}

.hamburger-btn:hover::before {
    opacity: 0.5;
}

.hamburger-btn {
    gap: 5px;
}

.hamburger-btn span {
    width: 26px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-green), var(--light-text));
    border-radius: 10px;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    transform-origin: center;
    box-shadow: 0 2px 5px rgba(149, 193, 31, 0.2);
}

.hamburger-btn:hover span:nth-child(1) {
    width: 22px;
    transform: translateX(-2px);
}

.hamburger-btn:hover span:nth-child(3) {
    width: 22px;
    transform: translateX(2px);
}

.hamburger-btn.open {
    background: linear-gradient(135deg, rgba(149, 193, 31, 0.3), rgba(0, 48, 130, 0.3));
    border-color: var(--primary-green);
    box-shadow: 0 0 30px rgba(149, 193, 31, 0.4);
    transform: rotate(180deg);
}

.hamburger-btn.open span {
    background: var(--primary-green);
    box-shadow: 0 0 10px rgba(149, 193, 31, 0.6);
}

.hamburger-btn.open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
    width: 26px;
}

.hamburger-btn.open span:nth-child(2) {
    opacity: 0;
    transform: translateX(-30px) rotate(360deg);
}

.hamburger-btn.open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
    width: 26px;
}

/* ===================================
   NAVIGATION DESKTOP ULTRA MODERNE
   =================================== */
@media screen and (min-width: 769px) {
    nav ul {
        display: flex;
        gap: 0.5rem;
        list-style: none;
        margin: 0;
        padding: 0;
        background: rgba(255, 255, 255, 0.03);
        border-radius: 25px;
        padding: 0.5rem;
        backdrop-filter: blur(10px);
        box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.2);
    }

    nav a {
        color: var(--light-text);
        text-decoration: none;
        font-weight: 600;
        font-size: 0.95rem;
        position: relative;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        padding: 0.75rem 1.5rem;
        border-radius: 20px;
        overflow: hidden;
        letter-spacing: 0.3px;
    }

    /* Effet de fond dégradé au hover */
    nav a::before {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(135deg,
                rgba(149, 193, 31, 0.2),
                rgba(0, 48, 130, 0.2));
        opacity: 0;
        transition: opacity 0.4s ease;
        z-index: -1;
        border-radius: 20px;
    }

    nav a:hover::before {
        opacity: 1;
    }

    /* Ligne indicatrice moderne */
    nav a::after {
        content: '';
        position: absolute;
        bottom: 8px;
        left: 50%;
        transform: translateX(-50%);
        width: 0;
        height: 3px;
        background: linear-gradient(90deg,
                var(--primary-green),
                var(--primary-blue));
        border-radius: 2px;
        transition: width 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        box-shadow: 0 0 10px var(--primary-green);
    }

    nav a:hover::after {
        width: calc(100% - 2rem);
    }

    nav a.active::after {
        width: calc(100% - 2rem);
        animation: activeLinePulse 2s ease-in-out infinite;
    }

    @keyframes activeLinePulse {

        0%,
        100% {
            box-shadow: 0 0 10px var(--primary-green);
        }

        50% {
            box-shadow: 0 0 20px var(--primary-green),
                0 0 30px var(--primary-blue);
        }
    }

    nav a.active {
        color: var(--primary-green);
        background: linear-gradient(135deg,
                rgba(149, 193, 31, 0.15),
                rgba(0, 48, 130, 0.15));
        box-shadow: 0 4px 15px rgba(149, 193, 31, 0.2),
            inset 0 1px 3px rgba(149, 193, 31, 0.1);
    }

    /* Effet de brillance au hover */
    nav a:hover {
        color: var(--primary-green);
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(149, 193, 31, 0.3);
    }

    /* Animation de particules */
    @keyframes particleFloat {

        0%,
        100% {
            transform: translateY(0) translateX(0);
            opacity: 0;
        }

        50% {
            opacity: 1;
        }
    }

    nav a:hover {
        animation: subtle-shake 0.5s ease;
    }

    @keyframes subtle-shake {

        0%,
        100% {
            transform: translateY(-2px) rotate(0deg);
        }

        25% {
            transform: translateY(-2px) rotate(0.5deg);
        }

        75% {
            transform: translateY(-2px) rotate(-0.5deg);
        }
    }
}

/* ===================================
   MENU MOBILE ULTRA MODERNE
   =================================== */
@media screen and (max-width: 768px) {
    .hamburger-btn {
        display: flex;
    }

    nav ul {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 350px;
        height: 100vh;
        background: linear-gradient(135deg,
                rgba(11, 22, 44, 0.98),
                rgba(0, 20, 60, 0.98));
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        gap: 0;
        padding: 2rem;
        list-style: none;
        margin: 0;
        transition: right 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        box-shadow: -10px 0 50px rgba(0, 0, 0, 0.7);
        border-left: 2px solid rgba(149, 193, 31, 0.3);
        overflow-y: auto;
    }

    nav ul::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        width: 2px;
        height: 100%;
        background: linear-gradient(180deg,
                transparent 0%,
                var(--primary-green) 30%,
                var(--primary-blue) 70%,
                transparent 100%);
        animation: menuGlow 3s ease-in-out infinite;
    }

    @keyframes menuGlow {

        0%,
        100% {
            opacity: 0.5;
        }

        50% {
            opacity: 1;
        }
    }

    nav ul.open {
        right: 0;
    }

    nav li {
        width: 100%;
        opacity: 0;
        transform: translateX(50px) rotateY(30deg);
        transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    }

    nav ul.open li {
        opacity: 1;
        transform: translateX(0) rotateY(0deg);
    }

    nav ul.open li:nth-child(1) {
        transition-delay: 0.1s;
    }

    nav ul.open li:nth-child(2) {
        transition-delay: 0.15s;
    }

    nav ul.open li:nth-child(3) {
        transition-delay: 0.2s;
    }

    nav ul.open li:nth-child(4) {
        transition-delay: 0.25s;
    }

    nav ul.open li:nth-child(5) {
        transition-delay: 0.3s;
    }

    nav a {
        display: block;
        width: 100%;
        color: var(--light-text);
        text-decoration: none;
        font-weight: 600;
        font-size: 1.25rem;
        padding: 1.25rem 1.5rem;
        position: relative;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        border-radius: 12px;
        margin: 0.35rem 0;
        overflow: hidden;
    }

    nav a::before {
        content: '';
        position: absolute;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 4px;
        height: 0;
        background: linear-gradient(180deg, var(--primary-green), var(--primary-blue));
        border-radius: 0 2px 2px 0;
        transition: height 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    }

    nav a::after {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg,
                transparent,
                rgba(149, 193, 31, 0.2),
                transparent);
        transition: left 0.5s ease;
    }

    nav a:hover::after {
        left: 100%;
    }

    nav a:hover,
    nav a.active {
        background: linear-gradient(135deg,
                rgba(149, 193, 31, 0.15),
                rgba(0, 48, 130, 0.15));
        color: var(--primary-green);
        padding-left: 2.5rem;
        box-shadow: 0 4px 15px rgba(149, 193, 31, 0.2);
        transform: translateX(5px);
    }

    nav a:hover::before,
    nav a.active::before {
        height: 100%;
    }

    nav a.active {
        background: linear-gradient(135deg,
                rgba(149, 193, 31, 0.2),
                rgba(0, 48, 130, 0.2));
        border: 1px solid rgba(149, 193, 31, 0.3);
        box-shadow: 0 0 20px rgba(149, 193, 31, 0.3);
    }

    nav a.active::after {
        animation: sparkle 2s linear infinite;
    }

    @keyframes sparkle {

        0%,
        100% {
            left: -100%;
            opacity: 0;
        }

        50% {
            opacity: 1;
        }
    }
}

/* ===================================
   OVERLAY ULTRA MODERNE
   =================================== */
.nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center,
            rgba(11, 22, 44, 0.95),
            rgba(0, 0, 0, 0.98));
    backdrop-filter: blur(8px);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.nav-overlay.active {
    display: block;
    opacity: 1;
}

@keyframes overlayPulse {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

/* ===================================
   FOOTER
   =================================== */
.site-footer {
    width: 100%;
    background: var(--darker-bg);
    color: var(--gray-text);
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid var(--border-light);
    margin-top: 4rem;
    z-index: 10;
}

.footer-content {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-link {
    color: var(--primary-green);
    text-decoration: underline;
    font-weight: 500;
    transition: color 0.3s;
}

.footer-link:hover {
    color: var(--primary-blue);
}

.version-info {
    color: rgba(160, 160, 160, 0.4);
    font-size: 0.7rem;
    font-weight: 400;
}

.version-separator {
    margin: 0 0.4rem;
    color: rgba(160, 160, 160, 0.3);
}

.beta-link {
    color: rgba(149, 193, 31, 0.4);
    text-decoration: none;
    transition: color 0.3s ease;
}

.beta-link:hover {
    color: rgba(149, 193, 31, 0.6);
    text-decoration: underline;
}

/* ===================================
   ACCESSIBILITÉ
   =================================== */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}