/* Reset de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Style global */
body {
    font-family: Arial, sans-serif;
    background: #ffffff;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* Container principal */
.container {
    background-color: #03A9E1;
    padding: 40px 30px;
    border-radius: 35px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.2);
    text-align: center;
    filter: drop-shadow(0 0 0.75rem black);
}

/* Titre de bienvenue */
.container p.bon {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    margin-bottom: 30px;
    text-shadow: 1px 1px #00000015;
}

/* Champs de saisie */
input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    border: none;
    border-radius: 40px;
    background-color: #e9f1ff;
    font-size: 1rem;
    text-align: center;
}

/* Bouton de connexion */
input[type="submit"] {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 40px;
    font-size: 1rem;
    font-weight: bold;
    background: linear-gradient(to right, #22b5dd, #0f8fb7);
    color: white;
    cursor: pointer;
    transition: 0.3s ease;
}

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

/* Liens sous les boutons */
.btn {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
    margin-top: 25px;
}

.btn a {
    flex: 1 1 45%;
    padding: 10px;
    text-align: center;
    border-radius: 15px;
    text-decoration: none;
    border: 1px solid #6a006a;
    color: #6a006a;
    font-weight: bold;
    transition: 0.3s ease;
}

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

/* Message d'erreur */
.incorrect {
    margin-top: 20px;
    color: #ff0000;
    font-weight: bold;
}

/* ------------------- */
/* MEDIA QUERIES */
/* ------------------- */

/* Smartphones petits (jusqu'à 400px) */
@media (max-width: 400px) {
    .container {
        padding: 30px 20px;
        border-radius: 25px;
        filter: drop-shadow(0 0 0.3rem black);
    }

    .container p.bon {
        font-size: 1.3rem;
    }

    input[type="submit"],
    input[type="text"],
    input[type="password"] {
        font-size: 0.95rem;
    }

    .btn a {
        font-size: 0.9rem;
    }
}

/* Tablettes et petits laptops */
@media (max-width: 768px) {
    .container {
        max-width: 90%;
    }
}
