/* Réinitialisation des marges et des paddings */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Corps de la page */
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
    padding: 0;
    margin: 0;
}

/* En-tête */
header {
    background: #333;
    color: #fff;
    padding: 1rem 0;
    text-align: center;
}

header .logo img {
    max-width: 150px;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    padding: 0;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    text-decoration: none;
    color: #fff;
    font-weight: bold;
}

nav ul li a:hover {
    text-decoration: underline;
}

/* Section héro */
#hero {
    background: #007BFF;
    color: #fff;
    text-align: center;
    padding: 2rem 0;
}

#hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

#hero p {
    font-size: 1.2rem;
}

/* Section à propos */
#about, #cryptext, #tuto, #enigme {
    background: #fff;
    padding: 2rem;
    margin: 1rem auto;
    max-width: 800px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

#about h2, #cryptext h2, #tuto h2, #enigme h2{
    margin-bottom: 1rem;
    font-size: 2rem;
    color: #007BFF;
}

/* Liste des cryptext */
#cryptext ul {
    list-style: none;
    padding: 0;
}

#cryptext ul li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

#cryptext ul li:before {
    content: "\2713"; /* Checkmark */
    position: absolute;
    left: 0;
    color: #007BFF;
}

#tuto img {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    border-radius: 5px;
}

#snow-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* Évite que la neige bloque les interactions */
    z-index: 9999; /* Place la neige au-dessus du contenu */
}

.snowflake {
    position: absolute;
    top: -10px;
    color: #fff;
    font-size: 1rem;
    animation: fall 10s linear infinite, sway 3s ease-in-out infinite;
    opacity: 0.8;
}

/* Animation de chute */
@keyframes fall {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(100vh);
    }
}

/* Animation de balancement */
@keyframes sway {
    0%, 100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(20px);
    }
}



/* Pied de page */
footer {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 1rem 0;
    margin-top: 2rem;
}

footer ul {
    list-style: none;
    display: flex;
    justify-content: center;
    padding: 0;
}

footer ul li {
    margin: 0 10px;
}

footer ul li a {
    text-decoration: none;
    color: #fff;
    font-size: 0.9rem;
}

footer ul li a:hover {
    text-decoration: underline;
}
