/* Déclaration de la police perso */
@font-face {
    font-family: "HalloweenGrunge";
    src: url("font/HalloweenGrunge.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}

/* Fond ciel étoilé */
body {
    margin: 0;
    height: 100vh;
    overflow: hidden;
    background: #000;
    font-family: "Segoe UI", Arial, sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Etoiles (3 couches pour un effet de profondeur) */
#stars, #stars2, #stars3 {
    position: absolute;
    width: 100%;
    height: 100%;
    display: block;
    background-repeat: repeat;
    background-position: 0 0;
    top: 0;
    left: 0;
    z-index: 0;
}

#stars {
    background-image: url("https://www.transparenttextures.com/patterns/stardust.png");
    animation: moveStars 200s linear infinite;
}
#stars2 {
    background-image: url("https://www.transparenttextures.com/patterns/dark-matter.png");
    animation: moveStars 400s linear infinite;
}
#stars3 {
    background-image: url("https://www.transparenttextures.com/patterns/tiny-cross-hatch.png");
    animation: moveStars 600s linear infinite;
}

@keyframes moveStars {
    from {background-position: 0 0;}
    to {background-position: -10000px 5000px;}
}

/* Conteneur du texte */
.container {
    position: relative;
    z-index: 1;
}

/* Texte flottant */
.floating-text {
    font-family: "HalloweenGrunge", sans-serif;
    font-size: 5em;
    color: #fff;
    line-height: 1.2;
    /*
    text-shadow: 0 0 20px rgba(255,255,255,0.9),
                 0 0 40px rgba(0,150,255,0.6);
    */            
    animation: float 6s ease-in-out infinite;
    max-width: 90vw;
    word-wrap: break-word;
}


@keyframes float {
    0%   { transform: translateY(0px); }
    50%  { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}
