/* Style global pour le body */
body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Assure que le body prend toute la hauteur de la fenêtre */
    font-family: Georgia, 'Times New Roman', Times, serif;
}

/* Conteneur pour centrer le contenu */
.container {
    flex: 1; /* Le container prend tout l'espace disponible */
    display: flex;
    justify-content: center; /* Centrer horizontalement */
    align-items: center; /* Centrer verticalement */
    padding: 20px;
}

/* Header */
.header-container {
    background-color: #333;
    color: white;
    padding: 10px 0;
    width: 100%;
    box-sizing: border-box;
    position: relative;
}

/* Logo et navigation */
.header-container .logo a {
    font-size: 1.8rem;
    color: white;
    text-decoration: none;
    font-weight: bold;
}

.header-container nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.header-container nav ul li {
    margin: 0 10px;
}

.header-container nav ul li a {
    color: white;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.header-container nav ul li a:hover {
    background-color: #555;
}


/* Login container */
.login-container {
    max-width: 500px;
    width: 100%; /* Full width within max-width constraint */
    padding: 20px;
    background-color: #fff;
    border: solid 1px black;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
    text-align: center;
}

/* Titre */
h1 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 20px;
}

/* Message d'erreur */
.error-message {
    color: red;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

/* Champs du formulaire */
.form-group {
    margin-bottom: 15px;
    text-align: left;
}

label {
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
}

input {
    width: 100%; /* Correction pour que l'input ne soit pas trop large */
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

/* Bouton */
button {
    width: 100%;
    max-width: 400px;
    padding: 10px;
    background-color: #333;
    color: #fff;
    border: none;
    border-radius: 4px; 
    font-size: 1rem;
    cursor: pointer;
}

button:hover {
    background-color: #575757;
}

/* Footer */
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 10px 0;
    width: 100%;
    box-sizing: border-box;
    margin-top: auto; /* Assure que le footer se place toujours en bas */
}

.header-buttons {
    margin-bottom: 20px;
}

.header-buttons .btn-group a {
    margin: 5px;
}

.search-form {
    max-width: 600px;
    margin: 0 auto;
}

.search-form .form-group {
    margin-bottom: 15px;
}

.search-form button {
    margin-top: 20px;
}
