body {
    font-family: Arial, sans-serif;
    text-align: center;
    background-color: #ffcccb;
    margin: 0 1rem;
}

.container {
    margin-top: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

#title {
    text-decoration: none;
}

h1 {
    font-size: 2em;
    color: #ff5733;
}

input {
    padding: 10px;
    margin: 10px;
    width: 80%;
    max-width: 300px; /* limitation largeur sur grand écran */
    box-sizing: border-box; /* pour inclure padding dans la largeur */
}

button {
    background-color: #ff5733;
    color: white;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    font-size: 1em;
}

.confetti {
    position: absolute;
    width: 10px;
    height: 5px;
    background-color: red;
    opacity: 1;
    transform: rotate(45deg);
    animation: fall 3s linear infinite;
    transition: opacity 1s ease-out;
}

/* Animation */
@keyframes fall {
    0% { transform: translateY(0) rotate(0deg); }
    100% { transform: translateY(100vh) rotate(720deg); }
}

/* Media query pour petits écrans */
@media (max-width: 480px) {
    h1 {
        font-size: 1.5em;
    }

    input {
        width: 100%;
        margin: 10px 0;
    }

    button {
        width: 100%;
        padding: 15px 0;
        font-size: 1.2em;
    }
}
