#main-content {
    display: none;
}

#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(255, 255, 255, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

#loading-box {
    text-align: center;
}

#loading-box img {
    width: 100px;
    height: 100px;
    margin-bottom: 10px;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
}

.login-container {
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

h2 {
    margin-bottom: 1.5rem;
    text-align: center;
}

.form-group {
    margin-bottom: 1rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
}

input[type="email"], input[type="password"] {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
}

input[type="checkbox"] {
    margin-right: 0.5rem;
}

.checkbox-group {
    display: flex;
    align-items: center;
}

.button-group {
    display: grid;
    grid-template-columns: repeat(2, 1fr);  /* Définit 2 colonnes de taille égale */
    gap: 10px;
    justify-items: center;
    max-height: 400px;  /* Hauteur maximale du conteneur des boutons */
    overflow-y: auto;  /* Ajoute un ascenseur vertical si le contenu dépasse la hauteur */
    padding: 10px;
    border: 1px solid #ccc;
    background-color: #fff;
    margin: 0 auto;  /* Centre le conteneur horizontalement */
    width: 90%;  /* Largeur du conteneur (ajustable) */
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);  /* Ajoute une ombre légère */

}

.action-group {
    display: flex;
}
button {
    width: 100%;
    padding: 0.75rem;
    background-color: #007bff;
    border: none;
    color: white;
    font-size: 1rem;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 1rem;
}

button:hover {
    background-color: #0056b3;
}

.active {
    background-color: #0056b3;
}

/* Bandeau supérieur */
.header {
    width: 100%;
    background-color: #007BFF;
    color: white;
    padding: 10px 20px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
}

.nav-menu {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: space-between;
}

.nav-menu li {
    display: inline-block;
    margin-right: 20px;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-size: 16px;
}

.nav-menu a:hover {
    text-decoration: underline;
}
/* Utilisateur et menu déroulant */
.user-menu {
    position: relative;
}

.user-name {
    font-size: 16px;
    cursor: pointer;
    margin-right: 40px;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 30px;
    right: 0;
    background-color: white;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    overflow: hidden;
    z-index: 1001;
    margin-right: 40px;
}

.dropdown-menu.show {
    display: block;
}

.dropdown-menu button {
    padding: 10px 20px;
    width: 100%;
    background-color: white;
    color: black;
    border: none;
    text-align: left;
    cursor: pointer;
    margin-right: 40px;
}

.dropdown-menu button:hover {
    background-color: #f4f4f4;
}

#error-message {
    color: red;
    margin-top: 1rem;
    text-align: center;
}

.form-container {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 90%;
    height: 400px; /* Hauteur fixe pour le conteneur du formulaire */
    overflow-y: auto; /* Active l'ascenseur vertical */
}

.form-group {
    margin-bottom: 5px;
}

select, input[type="text"],
input[type="number"],
input[type="select"],
input[type="date"] {
    width: 90%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
}

/* Style de base pour le tableau */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

th, td {
    padding: 10px;
    border: 1px solid #ccc;
    text-align: center;
}



