/* Enlève le centrage global du body */
body {
    background: url('/images/background.jpg') no-repeat center center fixed;
    background-size: cover;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    color: white;
}

/* Centre uniquement le contenu du formulaire (login) */
.container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    /*min-height: 100vh;*/
    text-align: center;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 30px 30px 50px 30px;
    border-radius: 10px;
    width: 100%;
    max-width: 500px;
    box-sizing: border-box;
    margin: 10vh auto;
}


h1 {
    margin-bottom: 30px;
    font-size: 36px;
}

.actions a {
    display: block;
    margin: 10px auto;
    padding: 12px;
    width: 200px;
    text-decoration: none;
    background-color: #28a745;
    border-radius: 5px;
    color: white;
    text-align: center;
    font-size: 16px;
    font-weight: bold;
}

.actions a:hover {
    background-color: #1e7e34;
}

/* Styles ajoutés pour le formulaire de login */

form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    color: white;
    margin-top: 20px;
}

label {
    text-align: left;
    font-weight: bold;
    font-size: 16px;
}

input[type="text"],
input[type="password"] {
    padding: 10px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    box-sizing: border-box;
    width: 100%;
}

button[type="submit"] {
    background-color: #28a745;
    color: white;
    font-weight: bold;
    padding: 12px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 10px;
    transition: background-color 0.3s ease;
}

button[type="submit"]:hover {
    background-color: #1e7e34;
}

.error-message {
    color: red;
    margin-bottom: 15px;
}

/* Taille de police plus grande pour le menu */
nav a {
    font-size: 28px;
    font-weight: bold;
}

/* 📱 Version tablette & mobile */
@media (max-width: 1024px) {
    .container {
        padding: 50px;
        font-size: 18px;
    }

    h1 {
        font-size: 42px;
    }

    .actions a {
        width: 90%;
        font-size: 20px;
        padding: 16px;
    }

    input[type="text"],
    input[type="password"],
    button[type="submit"] {
        font-size: 80px;
        padding: 16px;
    }
}

/* 🔄 Style responsive du menu navigation */
@media (max-width: 768px) {
    nav {
        display: flex;
        flex-wrap: wrap; /* permet d’aller à la ligne proprement si nécessaire */
        justify-content: center;
        align-items: center;
        gap: 15px;
        background: #111;
        padding: 10px;
        text-align: center;
    }

    nav a {
        color: white;
        margin: 0 10px;
        text-decoration: none;
        font-size: 40px;
        font-weight: bold;
        padding: 8px 12px;
    }

    .container {
        width: 90%; /* plus large que les 500px max en desktop */
        padding: 30px 20px 40px 20px;
        font-size: 18px;
    }

    h1 {
        font-size: 28px;
    }

    input[type="text"],
    input[type="password"],
    button[type="submit"] {
        font-size: 42px;
        padding: 14px;
    }

    .actions a {
        font-size: 18px;
        padding: 14px;
        width: 100%;
    }

    label {
        font-size: 42px;
    }

    h1 {
        margin-bottom: 30px;
        font-size: 50px;
    }

    .actions a {
        width: 90%;             /* plus large en mobile */
        font-size: 42px;        /* texte plus gros */
        padding: 20px;          /* bouton plus haut */
    }

}
