/* ====== FIX GLOBAL BOITES ====== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* Styles généraux */
body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f9;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    overflow-x: hidden; /* empêche le scroll horizontal */
}

/* Container pour centrer les formulaires */
.container {
    background: #ffffff;
    padding: 20px 30px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    text-align: center;
}

/* Titre */
h1 {
    margin-bottom: 20px;
    font-size: 24px;
    color: #333;
}

/* Champs de formulaire */
input[type="email"],
input[type="password"],
input[type="text"],
button {
    width: 100%;
    padding: 12px 15px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

/* Style des champs au focus */
input:focus {
    border-color: #007BFF;
    outline: none;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

/* Bouton */
button {
    background-color: #007BFF;
    color: #ffffff;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #0056b3;
}

/* Lien */
a {
    display: block;
    margin-top: 10px;
    color: #007BFF;
    text-decoration: none;
    font-size: 14px;
}

a:hover {
    text-decoration: underline;
}

/* Messages d'erreur ou de succès */
.alert {
    margin-top: 15px;
    padding: 10px;
    border-radius: 5px;
    font-size: 14px;
}

.alert.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.taille {
    text-align: right;
    white-space: nowrap;
}

.nombre {
    text-align: right;
}

/* ====== MOBILE RESPONSIVE ====== */
@media (max-width: 768px) {

    body {
        display: block;
        height: auto;
        margin: 0;
        padding: 0;
    }

    .container {
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 20px 16px;
        border-radius: 0;
        box-shadow: none;
    }

    input[type="email"],
    input[type="password"],
    input[type="text"],
    button {
        font-size: 18px;
        padding: 18px;
        min-height: 56px;
        border-radius: 8px;
    }
}
