@import url('https://fonts.googleapis.com/css2?family=Inknut+Antiqua:wght@300;400;500;600;700;800;900&display=swap');

.fond {
    background-color: #292929;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}



body {
    font-family: "Inknut Antiqua", serif;
    overflow-x: hidden;
    margin: 0;
    display: flex;
    justify-content: flex-start;
    align-items: stretch;
}

main {
    display: flex;
    flex-direction: row;
    width: 100%;
}

.container {
    position: relative;
    width: 60px;
    height: calc(100vh - 60px);
    background-color: #292929;
    border-radius: 0px 15px 15px 0px;
    transition: width 0.3s;
    overflow: hidden;
    margin-top: 145px;


}

.content-section {
    display: none;
    flex: 1;
    padding: 20px;
    background-color: rgb(228, 220, 220);
    color: #fff;
    overflow-y: auto;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.content-section h2 {
    text-align: center;
    color: rgb(255, 255, 255);
    font-weight: bold;
    text-shadow: #292929 2px 2px 2px;
}

.content-section.active {
    display: flex;
    justify-content: center;
    flex-direction: column;
    /* Centrage horizontal */
    align-items: center;
    /* Centrage vertical */
    text-align: center;
    background-color: rgb(228, 220, 220);
    padding: 80px;
    flex: 1;
}

.displbtn {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    height: 125px;
    justify-content: center;
    border: none;
    align-items: center;
}

h1 {
    margin-left: 20px;
    color: rgb(255, 255, 255);
    font-weight: bold;
    text-shadow: rgb(236, 34, 31) 2px 2px 2px;
}

header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    background-color: #292929;
    padding: 10px;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10;
}

header ul {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

header ul li {
    position: relative;
}

header ul li a {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-content: space-around;
    gap: 40px;
    padding-right: 50px;
    font-size: 1.3rem;
    color: #fff;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
}

header ul li a:hover {
    color: #EC221F;
}

.sousMenu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #292929;
    display: none;
    min-width: 190px;
    border-radius: 15px;
}

.sousMenu li {
    margin: 0;
}

.sousMenu a {
    color: white;
    text-decoration: none;
    padding: 10px;
    display: block;
}

li:hover .sousMenu {
    display: block;
}

.nav-bar {
    position: absolute;
    top: 0;
    left: 7px;
    background-color: #292929;
    list-style-type: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

.nav-bar li {
    padding: 10px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    /* changement ici */
    margin-bottom: 30px;
}

.nav-bar i {
    font-size: 2rem;
    width: 40px;
    text-align: center;
}

.nav-bar li:hover {
    background-color: #EC221F;
    border-radius: 0px 50px 50px 0px;
}

.container:hover {
    width: 200px;
}

.nav-bar li span {
    margin-left: 10px;
    opacity: 0;
    transition: opacity 0.3s;
}

.container:hover .nav-bar li span {
    opacity: 1;
}

.connexionApp {
    background-image: url("../assets/image/fondmnsgarage.png");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1;
}

.connexionApp h1 {
    text-align: center;
    color: #fff;
    font-weight: bold;
    text-shadow: 2px 2px 2px #EC221F;
    margin-bottom: 30px;
}

.login-form {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;

    width: 300px;
    padding: 30px;
    background-color: rgba(20, 20, 20, 0.9);
    /* fond sombre mais lisible */
    border-radius: 12px;
    box-shadow: 0 0 20px#EC221F;

    color: #fff;
    font-weight: bold;
    z-index: 2;
}

.titreConnexion {
    text-align: center;
    color: #fff;
    font-weight: bold;
    text-shadow: 2px 2px 2px #EC221F;
}

.login-form input {
    margin-bottom: 10px;
    padding: 10px;
    border-radius: 5px;
    border: none;
    color: black;
    font-weight: bold;
}

.login-form button[type="submit"] {
    background-color: #EC221F;
    color: #fff;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
    border-radius: 15px;
    margin-top: 5px;
}

.password-container {
    position: relative;
    width: 100%;
}

.password-container input {
    width: 100%;
    padding-right: 40px;
    /* espace pour l'icône */
    box-sizing: border-box;
}

.toggle-password {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 18px;
    color: #999;
    user-select: none;
}

.login-form a {
    color: #EC221F;
    text-decoration: none;
    margin-top: 10px;
    font-weight: bold;
}

.modal-clients {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.modal-content {
    background: #fff;
    padding: 30px 20px 20px;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    transform: scale(0.95);
    opacity: 0;
    transition: all 0.2s ease;
}

.modal-clients.show .modal-content {
    transform: scale(1);
    opacity: 1;
}

.modal-content .close-clients {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    font-weight: bold;
    color: #EC221F;
    cursor: pointer;
}

.modal-content .close-clients:hover {
    color: #c3120f;
}

.modal-content label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
}

.modal-content input {
    width: 100%;
    padding: 8px;
    margin-bottom: 15px;
    border-radius: 15px;
    border: 1px solid #EC221F;
    background-color: #e7e5e5;
}

.modal-content button[type="submit"] {
    width: 100%;
    padding: 10px;
    margin-top: 10px;
    background-color: #EC221F;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.modal-content button[type="submit"]:hover {
    background-color: #c3120f;
}

.ajoutPiece {
    text-decoration: none;
    margin: 5px;
    padding: 4px 8px;
    font-size: 18px;
    cursor: pointer;
    background-color: #EC221F;
    color: white;
    border-radius: 10px;
    position: absolute;
    top: 164px;
    right: 50px;
}

.ajoutPiece:hover {
    background-color: #c3120f;
}

/* Centrer le titre h2 */
#pieces h2 {
    text-align: center;
    margin-bottom: 20px;
    position: absolute;
    top: 0;
    margin-top: 240px;
    z-index: 9999;
    /* margin-top: -463px;
    /* Un peu d'espace sous le titre */
}

.form-piece {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    text-align: left;
}

.form-piece input {
    width: 100%;
    margin: 5px;
    border-radius: 15px;
    border: 1px solid #EC221F;
    background-color: #e7e5e5;
    font-size: 20px;
}

.form-piece select {
    width: 100%;
    margin: 5px;
    border-radius: 15px;
    border: 1px solid #EC221F;
    background-color: #e7e5e5;
    font-size: 20px;
}

.form-content-piece {
    background: #292929;
    padding: 20px;
    border-radius: 5px;
    width: 30%;
    align-items: center;
    text-align: center;
    margin: 0 auto;
    color: #fff;
    height: auto;
}

.btn_ajout_piece {
    background-color: #4CAF50;
    color: white;
    border-radius: 10px;
    cursor: pointer;
    margin-top: 10px;
    padding: 10px 20px;
    border: none;
    font-size: 16px;
    font-weight: bold;
}

.btn_ajout_piece:hover {
    background-color: #3e8e41;
}

.piecesContent {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 40%;
    width: 80%;
    margin-top: 200px;
}

/* Centrer la table */
.tablePieces {
    width: 85%;
    height: 30%;
    margin: 0 auto;
    margin-top: 100px;
    /* Centrer la table horizontalement */
    border-collapse: collapse;
}

/* Bordures et style des cellules de la table */
.tablePieces,
.tablePieces th,
.tablePieces td {
    border: 1px solid black;
}

/* Mise en forme des cellules */
.tablePieces th,
.tablePieces td {
    padding: 8px;
    text-align: center;

}

/* Style pour les en-têtes */
.tablePieces th {
    background-color: #292929;
    color: white;
}

.tablePieces td {
    background-color: #e7e5e5;
    color: black;
}

.btn-modifierPiece {
    background-color: green;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
}

.btn-modifierPiece:hover {
    background-color: rgb(1, 102, 1);
}

.btn-supprimerPiece {
    background-color: #EC221F;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
}

.btn-supprimerPiece:hover {
    background-color: #c3120f;
}

/* Style des actions (boutons) */
.actions {
    display: flex;
    justify-content: center;
}

.reservations h2 {
    text-align: center;
    margin-bottom: 20px;
    margin-top: 70px;

}

.reservations th {
    background-color: #292929;
    color: white;
}

.reservations td {
    background-color: #e7e5e5;
    color: black;
    padding: 1px;
}

button {
    margin: 2px;
    padding: 4px 8px;
    font-size: 12px;
    cursor: pointer;
}

.btn-edit {
    background-color: #4CAF50;
    color: white;
    border-radius: 10px;
}

.btn-edit:hover {
    background-color: #45a049;
}

.btn-delete {
    background-color: #f44336;
    color: white;
    border-radius: 10px;
}

.btn-delete:hover {
    background-color: #da190b;
}

.modalRdv {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999999;
}

.modal-content-rdv {
    background: white;
    padding: 20px;
    border-radius: 5px;
    width: 30%;
    color: #292929;
    position: relative;
    box-sizing: border-box;
}

.modal-content-rdv h2 {
    text-align: center;
    margin-bottom: 15px;
    border-radius: 15px;
    background-color: #e7e5e5;
    color: #292929;
    padding: 10px 0;
}

.modal-content-rdv label {
    font-weight: bold;
    color: #292929;
    margin-bottom: 5px;
    display: block;
}

.modal-content-rdv input {
    width: 80%;
    margin: 5px 0;
    padding: 8px 12px;
    border-radius: 15px;
    border: 1px solid #EC221F;
    background-color: #e7e5e5;
    color: #292929;
    font-size: 16px;
    box-sizing: border-box;
}

.modal-content-rdv button[type="submit"] {
    width: 100%;
    padding: 10px;
    margin-top: 10px;
    background-color: #EC221F;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
}

.modal-content-rdv button[type="submit"]:hover {
    background-color: #c3120f;
}

.closeInterface {
    float: right;
    cursor: pointer;
    color: #EC221F;
    font-size: 2.2em;
    position: relative;
    top: -38px;
    font-weight: bold;
}

.modalRdv {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999999;
}

.modal-content-rdv {
    background: white;
    padding: 20px;
    border-radius: 5px;
    width: 30%;
    color: #292929;
    position: relative;
    box-sizing: border-box;
    overflow-y: scroll;
    height: 100vh;
}

.modal-content-rdv h2 {
    text-align: center;
    margin-bottom: 15px;
    border-radius: 15px;
    background-color: #e7e5e5;
    color: #292929;
    padding: 10px 0;
}

.modal-content-rdv label {
    font-weight: bold;
    color: #292929;
    margin-bottom: 5px;
    display: block;
}

.modal-content-rdv input {
    width: 80%;
    margin: 5px 0;
    padding: 8px 12px;
    border-radius: 15px;
    border: 1px solid #EC221F;
    background-color: #e7e5e5;
    color: #292929;
    font-size: 16px;
    box-sizing: border-box;
}

.modal-content-rdv button[type="submit"] {
    width: 100%;
    padding: 10px;
    margin-top: 10px;
    background-color: #EC221F;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
}

.modal-content-rdv button[type="submit"]:hover {
    background-color: #c3120f;
}

.closeInterface {
    float: right;
    cursor: pointer;
    color: #EC221F;
    font-size: 2.2em;
    position: relative;
    top: -38px;
    font-weight: bold;
}

/* Page employé dans interaface admin */
#employes h2 {
    text-align: center;
    margin-bottom: 20px;
}

.employesContent {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 40%;
    width: 80%;
}

/* Centrer la table */
.tableEmployes {
    width: 85%;
    height: 30%;
    margin: 0 auto;
    /* Centrer la table horizontalement */
    border-collapse: collapse;
}

/* Bordures et style des cellules de la table */
.tableEmployes,
.tableEmployes th,
.tableEmployes td {
    border-bottom: 1px solid black;
}

/* Mise en forme des cellules */
.tableEmployes th,
.tableEmployes td {
    padding: 8px;
    text-align: center;

}

/* Style pour les en-têtes */
.tableEmployes th {
    background-color: #292929;
    color: white;
}

.tableEmployes td {
    background-color: #e7e5e5;
    color: black;
}

.ajoutEmploye {
    text-decoration: none;
    margin: 5px;
    padding: 4px 8px;
    font-size: 18px;
    cursor: pointer;
    background-color: #EC221F;
    color: white;
    border-radius: 10px;
    position: absolute;
    top: 164px;
    right: 50px;
}

.ajoutEmploye:hover {
    background-color: #c3120f;
}

.form-employes {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    text-align: left;
}

.form-employes input {
    width: 100%;
    margin: 5px;
    border-radius: 15px;
    border: 1px solid #EC221F;
    background-color: #e7e5e5;
    font-size: 20px;
}

.form-employes select {
    width: 100%;
    margin: 5px;
    border-radius: 15px;
    border: 1px solid #EC221F;
    background-color: #e7e5e5;
    font-size: 20px;
}

.form-content-employes {
    background: #292929;
    padding: 20px;
    border-radius: 5px;
    width: 30%;
    align-items: center;
    text-align: center;
    margin: 0 auto;
    color: #fff;
    height: 115vh;
}

label span {
    color: red;
}

.ajouterEmployes {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    text-align: left;
    background-color: #EC221F;
    color: #fff;
    padding: 10px;
    border-radius: 15px;
    width: 50%;
    align-items: center;
    text-align: center;
    margin: 15px auto 0 auto;
    color: #fff;
    cursor: pointer;

}

.ajouterEmployes:hover {
    background-color: #c3120f;
}

.close-button {
    position: absolute;
    top: 20px;
    right: 36%;
    font-size: 36px;
    color: red;
    text-decoration: none;
    font-weight: bold;
    margin: 0 auto;
}

.close-button:hover {
    color: darkred;
    cursor: pointer;
}

.form-content-vo {
    background: #292929;
    padding: 20px;
    border-radius: 5px;
    width: 30%;
    align-items: center;
    text-align: center;
    margin: 0 auto;
    color: #fff;
    height: 115vh;
}

.form-content-vo h1 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #fff;
    text-align: center;
}

.form-content-vo label {
    display: block;
    margin: 10px 0;
    text-align: left;
    color: #fff;
}

.form-content-vo label span {
    color: red;
}

.form-content-vo input,
.form-content-vo select,
.form-content-vo textarea {
    width: 100%;
    padding: 8px;
    margin-top: 5px;
    border-radius: 5px;
    border: none;
    box-sizing: border-box;
}

.form-content-vo textarea {
    resize: vertical;
    min-height: 60px;
}

.ajouterVehicule {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    text-align: center;
    background-color: #EC221F;
    color: #fff;
    padding: 10px;
    border-radius: 15px;
    width: 50%;
    align-items: center;
    margin: 20px auto 0 auto;
    cursor: pointer;
    font-weight: bold;
}

.ajouterVehicule:hover {
    background-color: #c3120f;
}

.retour-button {
    display: inline-block;
    background-color: #EC221F;
    color: white;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 10px;
    font-weight: bold;
    margin-bottom: 20px;
    transition: background-color 0.3s;
    border: none;
    font-size: 16px;
}

.retour-button:hover {
    background-color: #c3120f;
    cursor: pointer;
}

.form-success-msg {
    color: green;
    font-weight: bold;
    margin-bottom: 10px;
}

.form-error-msg {
    color: red;
    font-weight: bold;
    margin-bottom: 10px;
}


.btn-container {
    display: flex;
    gap: 10px;
    align-items: center;
}

.btn-modifier-employes {
    display: flex;
    justify-content: space-between;
    flex-direction: row;
    background-color: #4CAF50;
    color: white;
    border-radius: 10px;
}

.btn-modifier-employes:hover {
    background-color: #45a049;
}

button.btn-supprimer-employes {
    display: flex;
    justify-content: space-between;
    flex-direction: row;
    background-color: #f44336;
    color: white;
    border-radius: 10px;
}

.btn-supprimer-employes:hover {
    background-color: #da190b;
}

.valider-employes {
    background-color: #4CAF50;
    color: white;
    border-radius: 10px;
}

.valider-employes:hover {
    background-color: #45a049;
}

/* page clients */

.clientsContent {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 40%;
    width: 80%;
}

/* Centrer la table */
.tableClients {
    width: 85%;
    height: 30%;
    margin: 0 auto;
    /* Centrer la table horizontalement */
    border-collapse: collapse;
}

/* Bordures et style des cellules de la table */
.tableClients,
.tableClients th,
.tableClients td {
    border: 1px solid black;
}

/* Mise en forme des cellules */
.tableClients th,
.tableClients td {
    padding: 8px;
    text-align: center;

}

/* Style pour les en-têtes */
.tableClients th {
    background-color: #292929;
    color: white;
}

.tableClients td {
    background-color: #e7e5e5;
    color: black;
}

.btn-container {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-direction: row;
    white-space: nowrap;
}

.btn-voir-clients {
    background-color: rgb(70, 70, 206);
    color: white;
    border-radius: 10px;
    cursor: pointer;
    margin: 5px;
}

.btn-voir-clients:hover {
    background-color: #1b66d6;
}

.btn-modifier-clients {
    background-color: #4CAF50;
    color: white;
    border-radius: 10px;
}

.btn-modifier-clients:hover {
    background-color: #45a049;
}

.btn-supprime-clients {
    background-color: #f44336;
    color: white;
    border-radius: 10px;
}

.btn-supprime-clients:hover {
    background-color: #da190b;
}

.form-clients {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    text-align: left;
}

.form-clients input {
    width: 100%;
    margin: 5px;
    border-radius: 15px;
    border: 1px solid #EC221F;
    background-color: #e7e5e5;
    font-size: 20px;
}

.form-clients select {
    width: 100%;
    margin: 5px;
    border-radius: 15px;
    border: 1px solid #EC221F;
    background-color: #e7e5e5;
    font-size: 20px;
}

.form-content-clients {
    background: #292929;
    padding: 20px;
    border-radius: 5px;
    width: 30%;
    align-items: center;
    text-align: center;
    margin: 0 auto;
    color: #fff;
    height: 115vh;
}

label span {
    color: red;
}

.modal_info_clients {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content_clients {
    background-color: #292929;
    margin: 10% auto;
    padding: 20px;
    border-radius: 8px;
    width: 50%;
    max-width: 600px;
    position: relative;
    color: #fff;
}

.modal-content_clients strong {
    color: red;
}

.close-btn_clients {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    cursor: pointer;
    color: #da190b
}

.close-btn_clients:hover {
    color: darkred;
}

.modal_modif_clients {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999999;
}

.modal-content_modif_clients {
    background: white;
    padding: 20px;
    border-radius: 5px;
    width: 30%;
    color: #292929;
    position: relative;
    box-sizing: border-box;
    margin: 0 auto;
}

.modal-content_modif_clients h2 {
    text-align: center;
    margin-bottom: 15px;
    border-radius: 15px;
    background-color: #e7e5e5;
    color: #292929;
    padding: 10px 0;
}

.modal-content_modif_clients label {
    font-weight: bold;
    color: #292929;
    margin-bottom: 5px;
    display: block;
}

.modal-content_modif_clients input {
    width: 80%;
    margin: 5px 0;
    padding: 8px 12px;
    border-radius: 15px;
    border: 1px solid #EC221F;
    background-color: #e7e5e5;
    color: #292929;
    font-size: 16px;
    box-sizing: border-box;
}

.modal-content_modif_clients button {
    width: 100%;
    padding: 10px;
    margin-top: 10px;
    background-color: #EC221F;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
}

.modal-content_modif_clients button:hover {
    background-color: #c3120f;
}

.close-btn_modif_clients {
    float: right;
    cursor: pointer;
    color: #EC221F;
    font-size: 2.2em;
    position: relative;
    top: -38px;
    font-weight: bold;
}

.close-btn_modif_clients:hover {
    color: darkred;
}

.voContent {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 40%;
    width: 80%;
}

/* Centrer la table */
.tableVo {
    width: 85%;
    height: 30%;
    margin: 0 auto;
    /* Centrer la table horizontalement */
    border-collapse: collapse;
}

/* Bordures et style des cellules de la table */
.tableVo,
.tableVo th,
.tableVo td {
    border: 1px solid black;
}

/* Mise en forme des cellules */
.tableVo th,
.tableVo td {
    padding: 8px;
    text-align: center;

}

/* Style pour les en-têtes */
.tableVo th {
    background-color: #292929;
    color: white;
}

.tableVo td {
    background-color: #e7e5e5;
    color: black;
}

.ajoutVo {
    text-decoration: none;
    margin: 5px;
    padding: 4px 8px;
    font-size: 18px;
    cursor: pointer;
    background-color: #EC221F;
    color: white;
    border-radius: 10px;
    position: absolute;
    top: 164px;
    right: 50px;
}

.ajoutVo:hover {
    background-color: #c3120f;
}

.btn-vendu-vo {
    background-color: green;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
}

.btn-vendu-vo:hover {
    background-color: rgb(1, 102, 1);
}

.btn-information-vo {
    background-color: #2196F3;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
}

.btn-information-vo:hover {
    background-color: #0b7dda;
}

.modal_info-vo {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content-vo {
    background-color: #292929;
    margin: 10% auto;
    padding: 20px;
    border-radius: 8px;
    width: 50%;
    max-width: 600px;
    position: relative;
    color: #fff;
}

.modal-content-vo strong {
    color: red;
}

.closeVo {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    cursor: pointer;
    color: #da190b;
}

.closeVo:hover {
    color: darkred;
}

.charts-container {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: nowrap;
}

.chart-box {
    width: 300px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

th,
td {
    padding: 8px;
    border: 1px solid #ccc;
    text-align: center;
}

#roleFilter {
    margin: 10px 0;
    padding: 5px;
    border-radius: 25px;
    border: none;
    background-color: #444;
    color: white;
}

.gestionContent {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 40%;
    width: 80%;
}

/* Centrer la table */
.hours-table {
    width: 85%;
    height: 30%;
    margin: 0 auto;
    /* Centrer la table horizontalement */
    border-collapse: collapse;
}

/* Bordures et style des cellules de la table */
.hours-table,
.hours-table th,
.hours-table td {
    border: 1px solid black;
}

/* Mise en forme des cellules */
.hours-table th,
.hours-table td {
    padding: 8px;
    text-align: center;

}

/* Style pour les en-têtes */
.hours-table th {
    background-color: #292929;
    color: white;
}

.hours-table td {
    background-color: #e7e5e5;
    color: black;
}

.filters {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    gap: 10px;
}

#monthFilter {
    margin: 10px 0;
    padding: 5px;
    border-radius: 25px;
    border: none;
    background-color: #444;
    color: white;
}


#openModalBtnOperations {
    text-decoration: none;
    margin: 5px;
    padding: 4px 8px;
    font-size: 18px;
    cursor: pointer;
    background-color: #EC221F;
    color: white;
    border-radius: 10px;
    position: absolute;
    top: 164px;
    right: 50px;
}

#openModalBtnOperations:hover {
    background-color: #c3120f;
}

.operationsContent {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 40%;
    width: 80%;
    margin-top: 200px;
}

/* Centrer la table */
.tableOperations {
    width: 85%;
    height: 30%;
    margin: 0 auto;
    margin-top: 100px;
    /* Centrer la table horizontalement */
    border-collapse: collapse;
}

/* Bordures et style des cellules de la table */
.tableOperations,
.tableOperations th,
.tableOperationstd {
    border: 1px solid black;
}

/* Mise en forme des cellules */
.tableOperationsth,
.tableOperations td {
    padding: 8px;
    text-align: center;

}

/* Style pour les en-têtes */
.tableOperations th {
    background-color: #292929;
    color: white;
}

.tableOperations td {
    background-color: #e7e5e5;
    color: black;
}


/* Overlay + modale */
.modal_operations {
    display: none;
    position: fixed;
    z-index: 999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
}

.modal-content_operations {
    background-color: #292929;
    margin: 10% auto;
    padding: 20px;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    position: relative;
}

.modal-overlay {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

/* Ta modale personnalisée */
.form-content-operations {
    max-width: 500px;
    padding-top: 30px;
    background-color: #292929;
    border-radius: 12px;
    border: 1px solid #ccc;
    height: auto;
    margin: 40px auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    font-family: Arial, sans-serif;
    position: relative;
}

.form-content-operations h1 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 24px;
    color: white;
}

.form-operations {
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
}

.form-operations label {
    margin-bottom: 5px;
    font-weight: bold;
    color: #fff;
}

.form-operations input[type="text"],
.form-operations input[type="time"],
.form-operations input[type="file"],
.form-operations select {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
}

/* Bouton de fermeture X */
.close_operations {
    position: absolute;
    top: -2px;
    right: 20px;
    color: white;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close_operations:hover {
    color: #EC221F;
}

/* Boutons */
button[type="submit"].modifOp {
    display: block;
    width: 100%;
    padding: 12px;
    background-color: #EC221F;
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button[type="submit"].modifOp:hover {
    background-color: darkred;
}

.close_modifierOperation {
    position: absolute;
    top: -2px;
    right: 20px;
    color: white;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close_modifierOperation:hover {
    color: #EC221F;
}

.modalModifEmployes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999999;
}

.modal-content-employes {
    background: white;
    padding: 20px;
    border-radius: 5px;
    width: 30%;
    /* même largeur que modal-content-rdv */
    color: #292929;
    position: relative;
    box-sizing: border-box;
    margin: 0 auto;
    overflow-y: auto;
    height: 100vh;



}

.modal-content-employes h2 {
    text-align: center;
    margin-bottom: 15px;
    border-radius: 15px;
    background-color: #e7e5e5;
    color: #292929;
}

.modal-content-employes input,
.modal-content-employes select {
    width: 80%;
    margin: 5px 0;
    border-radius: 15px;
    border: 1px solid #EC221F;
    background-color: #e7e5e5;
    font-size: 20px;
    padding: 5px 10px;
    box-sizing: border-box;
}

.modal-content-employes button[type="submit"] {
    width: 100%;
    padding: 10px;
    margin-top: 10px;
    background-color: #EC221F;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
}

.modal-content-employes button[type="submit"]:hover {
    background-color: #c3120f;
}

.modal-content-employes label {
    font-weight: bold;
    color: #292929;
    margin-bottom: 5px;
    display: block;
}

.close-employes {
    float: right;
    cursor: pointer;
    color: #EC221F;
    font-size: 2.2em;
    position: relative;
    top: -38px;
    font-weight: bold;
}

.close-employes:hover {
    color: darkred;
}

.modalpiece {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    /* initialement cachée */
    align-items: center;
    justify-content: center;
    z-index: 9999999;
}

.modalpiece.active {
    display: flex;
    /* classe active pour afficher */
}

.modal-content-piece {
    background: white;
    padding: 20px;
    border-radius: 5px;
    width: 400px;
    /* largeur fixe plus lisible */
    max-width: 90%;
    /* responsive sur petits écrans */
    color: #292929;
    position: relative;
    box-sizing: border-box;
    margin: 0 auto;
}

/* Titre */
.modal-content-piece h2 {
    text-align: center;
    margin-bottom: 15px;
    border-radius: 15px;
    background-color: #e7e5e5;
    color: #292929;
    padding: 10px 0;
}

/* Labels */
.modal-content-piece label {
    font-weight: bold;
    color: #292929;
    margin-bottom: 5px;
    display: block;
}

/* Inputs */
.modal-content-piece input {
    width: 100%;
    /* Prend toute la largeur du conteneur */
    margin: 5px 0 15px 0;
    padding: 8px 12px;
    border-radius: 15px;
    border: 1px solid #EC221F;
    background-color: #e7e5e5;
    color: #292929;
    font-size: 16px;
    box-sizing: border-box;
}

/* Bouton */
.modal-content-piece button {
    width: 100%;
    padding: 10px;
    margin-top: 10px;
    background-color: #EC221F;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s ease;
}

.modal-content-piece button:hover {
    background-color: #c3120f;
}

/* Croix de fermeture */
.closepiece {
    position: absolute;
    top: -8px;
    right: 15px;
    color: #EC221F;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.closepiece:hover {
    color: darkred;
}