body {
    font-family: Arial, sans-serif;
}

nav {
    background-color: #f8f8f8;
    border-bottom: 1px solid #e7e7e7;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav form input {
    padding: 8px;
    margin: 0 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

#liste-pieces {
    margin: 20px;
    padding: 20px;
    border: 1px solid #ccc;
    max-width: 600px;
}

button {
    display: block;
    background-color: #007BFF;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 20px;
}

button:hover {
    background-color: #0056b3;
}
.formulaire {
    text-align: right;
    position: absolute;
    top: 50%;
    right: 15%;
    transform: translate(50%, -50%);
  }
  
  
  .formulaire button {
    margin: 5px;
    padding: 10px 20px;
    font-size: 16px;
    border: none;
    background-color: #007bff;
    color: #fff;
    cursor: pointer;
    border-radius: 5px;
  }
  
  .formulaire button:hover {
    background-color: #0056b3;
  }

 

.modal-content {
    background-color: #fefefe;
    margin: 15% auto; /* 15% from the top and centered */
    padding: 20px;
    border: 1px solid #888;
    width: 80%; /* Could be more or less, depending on screen size */
}

.close-button {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close-button:hover,
.close-button:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

#modalBackground {
    display: none;
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.5); /* Fond semi-transparent */
    z-index: 1; /* S'assurer que le fond est juste derrière les modals */
}
#sousPiecesContent {
    display: flex;
    flex-direction: column;
    align-items: center; /* Centrage horizontal des éléments */
    justify-content: center; /* Centrage vertical des éléments */
    text-align: center; /* Assure que le texte est centré */
    padding: 20px; /* Ajoute un peu d'espace autour du contenu */
    height: 100%; /* Assure que la div prend toute la hauteur du modal */
}


  