@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:ital,wght@0,100..900;1,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Zhi+Mang+Xing&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body.intro-page {
    height: 100vh;
    overflow: hidden;

    display: flex;
    justify-content: center;
    align-items: center;

    padding: 20px;

    background: radial-gradient(
        circle,
        #161633 0%,
        #050505 75%
    );

    font-family: Arial, Helvetica, sans-serif;
}

/* Conteneur principal (balise <main class="intro">) */
.intro {
    position: relative;
    z-index: 2;

    display: flex;
    flex-direction: column;
    align-items: center;

    text-align: center;

    width: 100%;
    max-width: 900px;
}

/* Logo */
.intro-logo img {
    width: 450px;

    filter:
        drop-shadow(
            0 0 25px
            rgba(80, 180, 255, 0.45)
        );

    animation:
        floatLogo 4s ease-in-out infinite;
}

/* Petite phrase */
.intro-subtitle {
    margin-top: 10px;

    color: #59C4E6;

    font-size: clamp(0.85rem, 2.2vw, 1rem);

    text-shadow:
        0 0 20px
        rgba(255, 255, 255, 0.15);
    padding: 0 10px;
}

/* Bouton */
.enter-button {
    margin-top: 40px;

    padding: 18px 60px;

    border: 4px solid #B580FF;

    border-radius: 60px;

    background: #B580FF;

    color: white;

    font-family: "Zhi Mang Xing", cursive;

    font-size: clamp(1rem, 3vw, 1.4rem);

    font-weight: bold;

    letter-spacing: 4px;

    text-decoration: none;

    display: inline-block;

    cursor: pointer;

    transition: 0.3s;

    max-width: 90vw;
}

.enter-button:hover {
    background: #dcb2ff;

    border: 4px solid #dcb2ff;

    color: black;

    box-shadow:
        0 0 20px #dcb2ff;
}

/* Étoiles animées (si tu ajoutes un <div class="stars"> dans le HTML) */
.stars {
    position: fixed;

    width: 100%;
    height: 100%;

    top: 0;
    left: 0;

    overflow: hidden;

    z-index: 1;
}

.star {
    position: absolute;

    background: white;

    border-radius: 50%;

    opacity: 0.8;

    animation:
        moveStar linear infinite;
}

@keyframes moveStar {
    from {
        transform: translateY(100vh);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    to {
        transform: translateY(-10vh);
        opacity: 0;
    }
}

/* Animation du logo */
@keyframes floatLogo {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0px);
    }
}

/* ========================= */
/* RESPONSIVE MOBILE */
/* ========================= */

@media screen and (max-width: 768px) {

    .intro-name {
        margin-top: 20px;
        letter-spacing: 1px;
    }

    .enter-button {
        padding: 16px 40px;
        border-width: 3px;
        letter-spacing: 2px;
    }
}

@media screen and (max-width: 480px) {

    body.intro-page {
        padding: 15px;
    }

    .intro-logo img {
        width: 120px;
        max-width: 60vw;
    }

    .intro-name {
        font-size: 1.2rem;
        margin-top: 15px;
    }

    .intro-subtitle {
        font-size: 0.8rem;
    }

    .enter-button {
        width: auto;
        padding: 15px 30px;
        font-size: 1rem;
        border-radius: 40px;
    }
}

