/* --- STYLE GÉNÉRAL --- */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #e6eef5;
    font-size: calc(12px + 0.4vw); /* taille de texte adaptative */
}

.container {
    background-color: #10a0d3;
    border-radius: 2vw;
    width: 60vw;
    max-width: 600px;
    margin: 5vh auto;
    padding: 4vh 2vw;
    box-shadow: 0 0.5vw 2vw rgba(0, 0, 0, 0.2);
    text-align: center;
}

.bon {
    color: white;
    font-size: calc(18px + 0.6vw);
    font-weight: bold;
    text-shadow: 1px 1px 2px #00000050;
    margin-bottom: 3vh;
}

form input[type="text"],
form input[type="password"] {
    width: 70%;
    padding: 1.2em;
    margin: 1vh 0;
    border-radius: 5vw;
    border: none;
    background-color: #f1f1f1;
    font-size: 1em;
    text-align: center;
    transition: 0.3s ease;
}

form input[type="text"]:focus,
form input[type="password"]:focus {
    outline: none;
    background-color: #e0e0e0;
}

form input[type="submit"] {
    width: 70%;
    padding: 1.2em;
    margin-top: 2vh;
    background: linear-gradient(to bottom right, #2cb6e4, #128bb0);
    border: none;
    border-radius: 5vw;
    color: white;
    font-weight: bold;
    font-size: 1em;
    cursor: pointer;
    transition: 0.3s ease;
}

form input[type="submit"]:hover {
    background: linear-gradient(to bottom right, #1da4cc, #0f7b99);
}

.btn {
    display: flex;
    justify-content: space-around;
    margin-top: 3vh;
    flex-wrap: wrap;
}

.btn a {
    text-decoration: none;
    padding: 1em 2em;
    border: 1px solid #990033;
    border-radius: 1em;
    color: #990033;
    font-size: 0.9em;
    margin: 1vh 0.5vw;
    transition: background 0.3s, color 0.3s;
}

.btn a:hover {
    background-color: #990033;
    color: white;
}

/* --- PETITS ÉCRANS (jusqu’à 768px) --- */
@media (max-width: 768px) {
    .container {
        width: 85vw;
        padding: 6vh 4vw;
    }

    .bon {
        font-size: calc(16px + 1vw);
    }

    form input[type="text"],
    form input[type="password"],
    form input[type="submit"] {
        width: 90%;
        font-size: 1.1em;
    }

    .btn {
        flex-direction: column;
        align-items: center;
    }

    .btn a {
        width: 80%;
        text-align: center;
    }
}

/* --- TRÈS PETITS ÉCRANS (téléphones < 480px) --- */
@media (max-width: 480px) {
    .container {
        width: 95vw;
        padding: 5vh 5vw;
    }

    .bon {
        font-size: calc(14px + 1vw);
    }

    form input[type="text"],
    form input[type="password"],
    form input[type="submit"] {
        width: 95%;
        font-size: 1.2em;
    }

    .btn a {
        font-size: 1em;
        padding: 1em;
    }
}
