body {
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #ffe259, #ffa751);
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    overflow: hidden;
    font-family: "Comic Sans", "Comic Sans MS", "Chalkboard", "ChalkboardSE-Regular", sans-serif;
    cursor: none;
    transition: background 0.5s;
}

.bouncy-text {
    font-size: 2.5rem;
    font-weight: bold;
    text-shadow: 2px 2px 4px #000;
    z-index: 2;
    transition: color 0.2s;
    color: white;
}

.bounce-normal {
    animation: bounce 1s ease-in-out infinite alternate;
}

.bounce-rainbow {
    animation: bounceRave 0.4s ease-in-out infinite alternate, rainbowText 2s infinite;
}

@keyframes bounce {
    from { transform: translateY(0); }
    to { transform: translateY(-20px); }
}

@keyframes bounceRave {
    from { transform: translateY(0); }
    to { transform: translateY(-50px); }
}

@keyframes rainbowText {
    0% { color: red; }
    16% { color: orange; }
    33% { color: yellow; }
    50% { color: limegreen; }
    66% { color: cyan; }
    83% { color: violet; }
    100% { color: red; }
}

.button-container {
    display: flex;
    gap: 20px;
    margin-top: 100px;
    z-index: 2;
}

button {
    padding: 15px 20px;
    font-size: 1rem;
    background-color: #ffffffcc;
    border: none;
    border-radius: 12px;
    cursor: none;
    font-weight: bold;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: background 0.3s, color 0.3s, scale 0.3s;
}

button:hover {
    background-color: #fff;
    scale: 1.05;
}

button:active {
    scale: 0.95;
}

.start-button {
    padding: 20px 30px;
    font-size: 1.5rem;
    color: #fff;
    background-color: #ff5722;
    border: none;
    border-radius: 8px;
    cursor: none;
    font-weight: bold;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2), 0 0 10px #ff5722, 0 0 20px #ff5722, 0 0 30px #ff5722;
    transition: background 0.3s, color 0.3s, box-shadow 0.3s, scale 0.3s;
}

.start-button:hover {
    background-color: #e64a19;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2), 0 0 15px #e64a19, 0 0 25px #e64a19, 0 0 35px #e64a19;
    scale: 1.05;
}

.start-button:active {
    scale: 0.95;
}


.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    background-color: red;
    opacity: 0.8;
    animation: fall 3s linear forwards;
    z-index: 1;
}

@keyframes fall {
    0% { transform: translateY(0) rotate(0deg); opacity: 1; }
    100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}

.banana-cursor {
    position: absolute;
    width: 64px;
    height: 64px;
    background: url(../assets/images/curseur-banane.png) no-repeat center center;
    background-size: contain;
    pointer-events: none;
    z-index: 9999;
    rotate: -15deg;
}

.star {
    position: absolute;
    width: 10px;
    height: 10px;
    background: white;
    border-radius: 50%;
    opacity: 0.7;
    animation: twinkle 2s infinite ease-in-out;
    z-index: 0;
}

@keyframes twinkle {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.5); opacity: 1; }
}

.particle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.6;
    z-index: 0;
    animation: float 10s linear infinite;
}

@keyframes float {
    0% { transform: translateY(0) scale(1); }
    100% { transform: translateY(-100vh) scale(0.5) rotate(360deg); }
}

.intro-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000000ee; /* Fond sombre */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000; /* Au-dessus de tout */
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.intro-screen.hidden {
    opacity: 0;
    visibility: hidden;
}