body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(to right, #6a11cb, #2575fc);
    color: #fff;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 90vh;
    flex-direction: column;
    text-align: center;
}

h1 {
    font-size: 35px;
    margin-bottom: 40px;
    font-weight: bold;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
}

p {
    font-size: 17px;
}

.form {
    background-color: rgba(255, 255, 255, 0.1); /* Fond semi-transparent */
    border-radius: 20px;
    padding: 10px;
    width: 85%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Cache les flèches dans les inputs number */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none; /* Chrome, Safari, Edge */
    margin: 0; /* Pour éviter tout décalage */
}

input[type="number"] {
    width: 90%;
    padding: 10px;
    margin: 10px 0;
    border: none;
    border-radius: 20px;
    font-size: 20px;
    color: #333;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    outline: none;
    text-align: center;
}

input[type="button"] {
    padding: 12px;
    width: 100%;
    background: linear-gradient(to right, #6a11cb, #2575fc);
    color: white;
    border: none;
    border-radius: 40px;
    font-size: 20px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 10px;
    margin-bottom: 20px;
}

#counter {
    margin-top: 20px;
    font-size: 15px;
    font-weight: bold;
    transition: opacity 0.3s ease;
}

#indice {
    margin-top: 20px;
    font-size: 20px;
    font-weight: bold;
    transition: opacity 0.3s ease;
    margin-bottom: 20px;
}

#indice.success {
    color: #28a745;
}

#indice.warning {
    color: #ffc107;
}

#indice.error {
    color: #dc3545;
}

@media (min-width: 425px) {
    p {
        font-size: 20px;
    }
    
    .form {
        width: 70%;
        max-width: 450px;
    }

    input[type="number"] {
        width: 90%;
        font-size: 20px;
    }
    
    input[type="button"] {
        padding: 12px;
        width: 100%;
        background: linear-gradient(to right, #6a11cb, #2575fc);
        color: white;
        border: none;
        border-radius: 40px;
        font-size: 20px;
        cursor: pointer;
        transition: background-color 0.3s ease;
        margin-top: 10px;
        margin-bottom: 20px;
    }
}

@media (min-width: 550px) {
    p {
        font-size: 23px;
    }

    #counter {
        font-size: 20px;
    }
    
    #indice {
        font-size: 25px;
    }
}

@media (min-width: 768px) {
    h1 {
        font-size: 43px;
    }
}

@media (min-width: 780px) {
    input[type="button"]:hover {
        background: linear-gradient(to right, #4e3b9e, #1c64c1);
    }
}