/* ----------------------- */
/* ------- RESET ---------*/
/* ----------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
/* ----------------------- */
body {
    display: flex;
    flex-direction: row;
    justify-content: center;
    height: 100vh;
    width: 100%;
}
h2 {
    text-transform: uppercase;
}
.sidebar {
    width: 250px;
    height: 100%;
    background-color: #242424;
    color: white;
    padding: 20px;
    display: flex;
    flex-direction: column;
    text-align: left;
}

.sidebar a{
    color: #ffffff;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 25px;
    font-weight: 600;
    text-align: center;
}
nav ul {

    display: flex;
    flex-direction: column;
    text-align: left;

    list-style: none;
    padding-top: 5rem;
}
nav ul li {
    padding: 1rem;
    font-size: 20px;
}
main {
    display: flex;
    flex-direction: column;
    width: 100%;
}
/*--- TITLE ---*/
.content .title {
    background-color: #F0515A;
    height: 64px;
    color: #ffffff;
    font-size: 16px;
    display: flex;
    align-items: center;
    padding-left: 2rem;
}
.content-produits .title {
    background-color: #F0515A;
    height: 64px;
    color: #ffffff;
    font-size: 16px;
    display: flex;
    align-items: center;
    padding-left: 2rem;
    display: flex;
    justify-content: space-between;
}
.search {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2rem;
}
#rechercher {
    margin-right: 12rem;
    width: 26rem;
    height: 2rem;
}
header {
    background: #242424;
    color: white;
    padding: 15px;
    height: 300%;
}
header input {
    padding: 8px;
    width: 200px;
    border: none;
    border-radius: 5px;
}
/*--- BUTTON AJOUTER ---*/
.ajouter {
    background: #E74C3C;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 5px;
}
/*--- CONTAINER TABLEAU ---*/
.table-container {
    margin-top: 20px;
    background: white;
    padding: 20px;
    border-radius: 10px;
}
/*--- COLONNE TABLEAU ---*/
.column-tableau {
    background-color: #323232;
    color: #ffffff;
    display: flex;
    height: 42px;
    width: 100%;
    justify-content: space-between;
    padding-right: 3rem;
    padding-left: 3rem;
    align-items: center;
}
/*--- TABLEAU ----*/
table {
    width: 100%;
}
thead {
    background: #ffffff;
    color: #000000;
}

th {
    padding: 1rem;
    font-size: 17px;
}

th, td {
    border: 1px solid #ddd;
    text-align: center;
}
/*--- CLASS JS LINE TR DU TABLEAU ---*/
#container-data .data img {
    height: 100px;
    width: 150px;
}
.data button {
    margin: 0 5px;
    padding: 5px 10px;
    border-radius: 5px;
}

.data .cta-one {
    background: #4CAF50;
    color: white;
}

.data .cta-two {
    background: #ff9d0a;
    color: white;
}

.data .cta-three {
    background: #ff1100;
    color: white;
}

.data td button:first-child {
    margin-left: 1rem;
}

.data td button:last-child {
    margin-right: 1rem;
}
/*-------- PAGE PRODUIT -----------*/
.content-produits {
    width: 100%;
    height: 100%;
}
/*---- CTA ----*/
.retour {
    background-color: #E74C3C;
    margin-right: 3rem;
    height: 2rem;
    width: 6rem;
    border: 1px solid #ffffff;
    color: #ffffff;
}
/*---- FORMULAIRES ----*/
form {
    display: flex;
    flex-direction: row;
    height: 35rem;
    width: 100%;
    gap: 7rem;
    align-items: center;
    justify-content: center;
}
/*---- COLONNE 1 ----*/
form .column:first-child {
    width: 30rem;
}
/*---- LINE ----*/
.line {
    display: flex;
    flex-direction: column;
}
.line-description {
    display: flex;
    flex-direction: column;
}
form .column .line{
    padding-bottom: 1rem;
}

form .column .line label{
    padding-bottom: 0.2rem;
}
/*---- COLONNE 2 ----*/
form .column:last-child {
    width: 500px;
}
/*---- SAISIE DESCRIPTION ----*/
#idDescription {
    height: 236px;
}
/*---- COCHE STOCK ----*/
form .stock {
    padding-top: 0.5rem;
    padding-bottom: 1.5rem;
}
/*---- CTA ENREGISTRER ----*/
.cta-enregistrer {
    display: flex;
    justify-content: flex-end;
}
.cta-enregistrer button {
    background-color: #F0515A;
    color: #ffffff;
    width: 7rem;
    height: 1.6rem;
}

/*---- MODAL ----*/
.modal {
    display: none; 
    position: fixed;
    z-index: 1;
    padding-top: 100px;
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%;
    overflow: auto; 
    background-color: #000000c9;
}
.modal-content {
    background-color: #fefefe;
    margin: auto;
    padding: 20px;
    border: 1px solid #888;
    width: 25%;
    height: 30rem;
    border-radius: 2%;
}
.btnclose {
    display: flex;
    justify-content: flex-end;
}

.dataModal {
    background-color: #ffffff;
    border: solid 1px #000000;
    display: flex;
    flex-direction: column;
    margin-top: 1rem;
    padding: 2rem;
    font-size: 18px;
    gap: 2rem;
}
.close {
    border: 1px solid black;
    padding: 0.1rem 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
/*----------------------------*/