/* Style général de la page */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
}

/* Style du conteneur de bienvenue */
.container {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: 400px;
    margin: 20px;
}

.header {
    background-color: white;
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

.logo-container {
    margin-left: 20px;
}

.logo {
    max-height: 40px;
}

h1 {
    flex-grow: 1;
    text-align: center;
}

main {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

section {
    width: 80%;
}

aside {
    top: 100px;
    position: sticky;
    height: auto;
}

.reference {
    font-size: 0.6em;
    color: grey;
    text-align: left;
    font-style: italic;
}

fieldset {
    max-width: 800px;
    display: block;
    text-align: left;
    padding: 20px;
    margin: 20px auto 20px auto;
    border: 1px solid #ccc;
    border-radius: 8px;
    background-color: white;
}

legend {
    font-size: 1.5em;
    margin-bottom: 20px;
}

.formgroup {
    display: flex;
    align-items: flex-start;
    margin-bottom: 10px;
}

.formgroup label {
    flex: 0 0 auto;
    margin-right: 10px;
    margin-bottom: 5px;
    width: 300px;
    color: #555;
    font-weight: bold;
}

.formgroup input,
.formgroup select,
.formgroup textarea,
.formgroup date,
.formgroup email {
    flex: 1;
}

/* Style du titre */
h2 {
    margin-bottom: 20px;
    color: #333;
}

/* Style des labels */
label {
    display: block;
    margin-bottom: 5px;
    color: #555;
    font-weight: bold;
}

/* Style des champs de saisie */
input[type="text"],
input[type="password"],
input[type="date"],
input[type="email"],
select,
textarea {
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #007BFF;
    border-radius: 4px;
    font-size: 16px;
}

input[type="date"] {
    max-width: 150px;
}

input[type="date"], select {
    max-width: 250px;
}

/* Style du bouton de soumission */
button {
    padding: 10px;
    background-color: #007BFF;
    border: none;
    border-radius: 4px;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

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

header button {
    margin-right: 50px;
}

.disabled {
    background-color: #CCC;
    cursor: not-allowed;
}

.disabled:hover {
    background-color: #CCC;
    cursor: not-allowed;
}

/* Style des messages d'erreur */
.error-message {
    color: red;
    margin-top: 10px;
}

/* Style de la colonne latérale */
.sidebar {
    background-color: white;
    padding: 20px;
    width: 25%;
    height: calc(100vh - 60px); /* Ajusté pour tenir compte de la hauteur du header */
    overflow-y: auto;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
}

#demandList {
    margin-top: 20px;
}

#demandList h3 {
    margin-bottom: 10px;
}

#demandList ul {
    list-style-type: none;
    padding: 0;
}

#demandList ul li {
    padding: 10px;
    border-bottom: 1px solid #aaa;
}

/* Styles pour la liste des demandes */
#demandItems li {
    margin-bottom: 10px;
}

#demandItems li a {
    text-decoration: none;
    color: #007bff;
}

#demandItems li a:hover {
    text-decoration: underline;
}

/* Style du contenu principal */
.content {
    width: 75%;
    padding: 20px;
    overflow-y: auto;
}
