body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #1c1c1c;
    color: #ffffff;
    margin: 0;
    padding: 0;
    position: relative;
}

/* Canvas pour particules */
#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    opacity: 0.3;
}

/* Désactiver les particules sur mobile */
@media (max-width: 768px) {
    #particles-canvas {
        display: none !important;
    }
}

/* Navigation */
nav {
    background-color: #292929;
    display: flex;
    justify-content: center;
    padding: 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.5);
    z-index: 10;
}

nav a {
    color: #ffffff;
    padding: 15px 25px;
    display: inline-block;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
    border-bottom: 3px solid transparent;
}

nav a:hover {
    background-color: #333333;
    border-bottom: 3px solid #4CAF50;
}

.container {
    max-width: 800px;
    margin: auto;
    padding: 40px 20px;
    text-align: center;
}

.btn {
    display: inline-block;
    margin: 10px;
    padding: 12px 25px;
    background-color: #4CAF50;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #45a049;
}

/* Lightbox pour les images du tuto */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.lightbox img {
    max-width: 95%;
    max-height: 90%;
    border-radius: 10px;
    box-shadow: 0 0 25px rgba(0,0,0,0.8);
}

.lightbox:target {
    display: flex;
}

@media (max-width: 768px) {
    nav {
        position: static; /* Assure que la nav suit le flux normal */
    }
    .container {
        margin: 0 auto; /* Réduire les marges pour éviter les décalages */
        padding: 20px;
    }
}
