* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

main {
    min-height: calc(100vh - 193px);
    padding: 50px;

}
nav{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    height: 50px;
    padding: 1em;
    position: fixed;
    background-color: #1e9e6b;
    width: 100%;
    margin: 0;
    z-index: 98;
}

nav ul {
    list-style: none;
    text-align: center;
    display: flex;
    justify-content: center;
    position: relative;
}
nav ul li a {
    text-decoration: none;
    color: #000;
    font-weight: 700;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

nav ul li a:hover {
    color: #86b3f7;
}

h3 {
    margin: 20px;
}

.suggestion {
    background-color: #fff;
    color: #000;
    border: 1px solid #ccc;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}


.menu>li {
    margin: 0 1rem;
    overflow: hidden;
    z-index: 1000;
}

.menu-button-container {
    display: none;
    height: 100%;
    width: 30px;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#menu-toggle {
    display: none;
}

.menu-button,
.menu-button::after,
.menu-button::before {
    display: block;
    background-color: #000;
    position: absolute;
    height: 4px;
    width: 30px;
    transition: transform 0.4s cubic-bezier(0.2, 1, 1, 1);
    border-radius: 2px;
}

.menu-button::before {
    content: "";
    margin-top: -8px;
}

.menu-button::after {
    content: "";
    margin-top: 8px;
}

#menu-toggle:checked+.menu-button-container .menu-button::before {
    margin-top: 0;
    transform: rotate(140deg);
}

#menu-toggle:checked+.menu-button-container .menu-button {
    background: rgba(255, 255, 255, 0);
}

#menu-toggle:checked+.menu-button-container .menu-button::after {
    margin-top: 0;
    transform: rotate(-140deg);
}

nav .menu-item{
    display: flex;
    flex-direction: column;
    padding: 4px;
}

.menu .menu-item:hover{
    background: #6d9886;
    border-radius: 10px;
}
@media (max-width: 700px) {
    .menu-button-container {
        display: flex;
    }

    .menu {
        position: absolute;
        top: 0;
        margin-top: 50px;
        left: 0;
        flex-direction: column;
        width: 100%;
        justify-content: center;
        align-items: center;
    }

    #menu-toggle~.menu li {
        display: none;
        transition: height 0.4s cubic-bezier(0.23, 1, 0.32, 1);
        border: 1px solid #fff;
    }

    #menu-toggle:checked~.menu li {
        display: flex;
        flex-direction: column;
        padding: 0.5em;
        transition: height 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    }

    .menu>li {
        justify-content: center;
        margin: 0;
        padding: 0.5em 0;
        width: 100%;
        color: #fff;
        background-color: #fff;
    }
}

.product img {
    max-width: 100%;
    height: auto;
}

.product h3 {
    margin-top: 0;
}

.product form {
    margin-top: 10px;
}

.product {
    border: 1px solid #ccc;
    padding: 10px;
    margin: 20px 0;
    width: 300px;
    display: inline-block;
    vertical-align: top;
    border-radius: 10px;
    background-color: #4f675d;
    color: #fff;
    height: 460px;
    text-align: center;
}

.name_prod {
    height: 25px;
}

.submit-prod {
    margin: 10px;
    background-color: #7fb69f;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
    text-transform: uppercase;
    font-weight: 700;
}

.submit-prod:hover {
    background-color: #3b544a;
}

.submit-prod:focus {
    outline: 0;
    box-shadow: 0 0 0 2px rgba(79, 103, 93, 0.5);
}

@media (max-width: 700px) {
    .all_product {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .product {
        width: 90%;
        margin: 10px 0;
        height: auto;
    }

    .product img {
        max-width: 80%;
        height: auto;
        border-radius: 20px 20px;
    }

    .product-form {
        max-width: 100%;
    }
}

main.home {
    display: flex;
    flex-direction: column;
}

h1 {
    font-size: 50px;
}

.h1_accueil {
    color: white;
}

h2 {
    color: #ffb44e;
    font-size: 30px;
}

.about_btn {
    background-color: #1e9e6b;
    color: #fff;
    border: none;
    font-size: 20px;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 5px;
    margin-top: 500px;
    cursor: pointer;
}

.all_product {
    margin-top: 50px;
    justify-content: center;
    text-align: center;
}

input.qty {
    width: 20%;
    height: auto;
}

.banner {
    color: #fff;
    background-image: url(../img/banniere/Bann.jpg);
    background-repeat: no-repeat;
    font-size: 50px;
    text-align: center;
    background-size: cover;
    width: 100%;
    padding-bottom: 10%;
    padding-top: 10%;
    background-position: center;
}

p {
    color: #000;
}

footer {
    bottom: 0;
    width: 100%;
    display: flex;
    justify-content: space-around;
    background-color: #4f675d;
    padding: 20px;
    margin-top: auto;
}

footer ul {
    list-style: none;
}

footer ul li {
    font-weight: 700;
}

footer ul a {
    text-decoration: none;
    color: #333;
    display: block;
    margin-bottom: 5px;
}
a.a_footer {
    align-items: center;
    justify-content: center;
    display: flex;
}

@media (max-width: 700px) {
    footer {
        flex-direction: column;
    }

    footer ul {
        margin-bottom: 10px;
        align-items: center;
        margin-left: 10%;
    }
}

.full_page_tablette {
    background-color: #4f675d;
    color: #fff;
    text-transform: uppercase;
    display: flex;
    flex-direction: row-reverse;
    font-weight: 700;
}

.info_client_produit {
    margin-top: 1%;
    font-size: 20px;
}

.page_tablette {
    height: 100vh;
    min-height: calc(100vh - 193px);
}

.full_page_tablette form {
    height: 100vh;
}

.page_tablette {
    width: 75%;
}

.container_search {
    display: flex;
    flex-direction: column;
}

.selected-row {
    background-color: red;
    color: #fff;
}

.recherche_produit {
    background-color: #9e7a26;
    border-radius: 10px;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
}

.bouton_suivant {
    background-color: #9e7a26;
    border-radius: 10px;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
}

.menu_lateral {
    background-color: #9e7a26;
    border-radius: 10px;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
}

.page_tablette {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-right: 2%;
}

.page_tablette a {
    display: flex;
    justify-content: center;
    width: 100%;
}

.recherche_produit input[type="text"] {
    text-align: center;
    background-color: #fff;
    border: 2px solid #9e7a26;
    border-radius: 20px;
    padding: 10px;
    width: 200px;
    color: #000;
    font-weight: 700;
    font-size: 16px;
}

.recherche_produit {
    display: flex;
    padding: 5px;
    align-items: center;
}

.bouton_suivant {
    display: flex;
}

.page_tablette a img {
    justify-content: center;
}

.bouton_suivant {
    background-color: #9e7a26;
    border-radius: 10px;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    padding: 10px;
    margin: 1% 0;
    cursor: pointer;
}

.tableau_tablette {
    width: 100%;
}

.menu_lateral {
    width: 25%;
    margin: 2%;
    text-align: center;
    padding: 1%;
    flex-direction: column;
}

.menu_lateral img {
    width: 62%;
    margin: 3%;
}

.menu_lateral h3 {
    margin: 0;
}

.img_produit {
    display: block;
    margin: auto;
    max-width: 25%;
    height: auto;
}

.weight-input-section {
    display: flex;
    flex-direction: column;
    width: 100%;
    align-items: center;
    justify-content: space-around;
    margin: 20px 0;
}

.saisi_poid {
    width: 200px;
    padding: 15px;
    margin: 10px 0;
    font-size: 1.5rem;
    border-radius: 5px;
    border: 2px solid #9e7a26;
    text-align: center;
    min-height: 367px;
}
.saisi_poid_viewOrder{
    min-height: 20px;
    margin: 0;
    font-size: 15px;
    font-weight: bold;
}

.prev-next-buttons {
    display: flex;
    width: 100%;
    justify-content: space-between;
    margin-top: 20px;
    height: 60%;

}

.prev-next-buttons input[type="submit"] {
    padding: 15px 30px;
    font-size: 1.5rem;
    width: 48%;
    border-radius: 10px;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
    border: none;
    background-color: #9e7a26;
    color: #fff;
    cursor: pointer;
    transition: background-color 0.3s;
    margin: 30px;

}

.prev-next-buttons input[type="submit"]:hover {
    background-color: #a58e30;
}

.enregistrer_poids {
    width: 100%;
    padding: 20px;
    font-size: 1.5rem;
    border-radius: 10px;
    background-color: #9e7a26;
    color: #fff;
    border: none;
    margin-top: 20px;
    cursor: pointer;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease;
    height: 30%;
}

@media (min-width: 768px) {
    .weight-input-section {
        flex-direction: row;
        justify-content: space-between;
    }

    #saisi_poid {
        width: 50%;
    }
}

.search-container {
    margin-bottom: 20px;
    text-align: center;
}

#searchInput {
    padding: 10px;
    margin-right: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.search-container button {
    padding: 10px 15px;
    background-color: #1e9e6b;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.search-container button:hover {
    background-color: #3b544a;
}

.search-container button {
    padding: 8px 12px;
    margin-left: 5px;
}

.admin-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

.admin-button,.admin-info{
    width: 800px;
    /* Largeur fixe pour chaque div */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    margin: 10px 0;
    background-color: #4caf50;
    color: #000;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 700;
    transition: background-color 0.3s;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
.admin-warning{
    background-color: red;
}
.admin-text {
    color: #000000;
    margin: 10px;
    text-decoration: none;
}

.admin-button:hover {
    background-color: #b3b9b3;
}

.admin-button img {
    width: 50px;
    height: auto;
    margin-left: 20px;
}

.product-name {
    font-weight: bold;
    flex-basis: 100%;
}

.product-name a{
    text-decoration: none;
    color: black;
    display: flex;
    width: 100%;
    padding: 10px;
}
#category-form {
    text-align: right;
}

#category-form select {

    background-color: #1e9e6b;
    color: #fff;
    padding: 10px;
    border: none;
    font-size: 16px;
    border-radius: 5px;
    margin-right: 10px;
    -webkit-appearance: button;
    appearance: button;
    cursor: pointer;
}

#category-form button {
    background-color: #1e9e6b;
    color: #fff;
    padding: 10px 5px;
    border: none;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
}

#category-form button:hover {
    background-color: #4f675d;
}

#category-form label {
    color: #4caf50;
    margin-right: 10px;
    font-size: 16px;
}

@media (max-width: 700px) {
    .category-and-recovery-container {
        flex-direction: column;
        align-items: center;
        margin: auto;
    }

    .category-and-recovery-container #category-form,
    .category-and-recovery-container .recovery-button {
        width: 100%;
        margin: 10px 0;
    }

    #category-form button,
    .recovery-button {
        width: auto;
    }
}

.recovery-button {
    background-color: #1e9e6b;
    color: #fff;
    padding: 10px 5px;
    border: none;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
}

.recovery-button:hover {
    background-color: #4f675d;
}

.category-and-recovery-container {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.category-and-recovery-container .recovery-button {
    margin-left: 2px;
}

.category-and-recovery-container #category-form {
    margin-right: 2px;
}

.login-container {
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
    padding: 30px;
    background: #6d9886;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.login-form {
    display: flex;
    flex-direction: column;
}

.input-group {
    margin-bottom: 15px;
    display: flex;
    /* Add display property */
    flex-direction: column;
}

.input-group label {
    display: block;
    margin-bottom: 5px;
    color: #000;
    font-size: 0.9em;
    text-transform: uppercase;
}

.input-group input[type="password"],
.input-group input[type="text"] {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 5px;
    margin-bottom: 10px;
    background-color: #ffffff;
    /* Add flex-direction property */
}

.login-button {
    background: #f2c14e;
    color: #fff;
    text-transform: uppercase;
    border: none;
    border-radius: 5px;
    padding: 15px;
    cursor: pointer;
    margin-top: 15px;
}

.forgot-password {
    display: block;
    text-align: center;
    color: #fff;
    margin-top: 15px;
    text-decoration: none;
    font-size: 0.8em;
}

.input-group input[type="checkbox"] {
    margin-right: 5px;
}

input[type="checkbox"],
input[type="password"],
input[type="text"] {
    outline: 0;
    box-shadow: none;
}

input[type="password"]:focus,
input[type="text"]:focus {
    border: none;
    outline: 0;
}

.input-group label[for="remember"] {
    display: inline;
    font-size: 0.8em;
}

.reset-password-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 50px 0;
}

.reset-password-container .form-container {
    background-color: #6d9886;
    padding: 2rem;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    width: 100%;
    margin: 8%;
}

.reset-password-container h1 {
    color: #333;
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 30px;
    margin-bottom: 20px;
}

.reset-password-container label {
    display: block;
    margin-bottom: 0.5rem;
    color: #666;
}

.reset-password-container input[type="text"] {
    width: calc(100% - 20px);
    height: 40px;
    margin-bottom: 1rem;
    padding: 0 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.reset-password-container .reset-button {
    display: block;
    width: 100%;
    padding: 10px;
    border: none;
    background-color: #f2c14e;
    color: #fff;
    border-radius: 4px;
    cursor: pointer;
    text-transform: uppercase;
}

.reset-password-container .reset-button:hover {
    background-color: #eeb328;
}

.order-container {
    width: 95%;
    margin: 0 auto;
}

.page-title {
    text-align: center;
    font-size: 24px;
    margin-bottom: 1em;
}

.client-name {
    text-align: center;
    font-weight: 700;
    margin-top: 2em;
    font-size: 20px;
    margin-bottom: 20px;
}

.headers {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5em;
}

.client-order {
    margin-bottom: 2em;
}

.product-header:first-child {
    text-align: left;
    font-weight: 700;
    margin-bottom: 0.5em;
}

.product-header:nth-child(2) {
    text-align: right;
    font-weight: 700;
    margin-bottom: 0.5em;
}

.product-item {
    background-color: #1e9e6b;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #747373;
    margin-bottom: 5px;
    border-radius: 5px 5px;
}

.product-list {
    margin-right: 2%;
    margin-left: 2%;
}

.cart-h1 {
    text-align: center;
}

.submit-cart, .modify-cart{
    display: block;
    width: 96%;
    padding: 10px;
    border: none;
    background-color: #0e3f34;
    color: #fff;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    text-align: center;
    margin-left: 2%;
    margin-bottom: 10px;
}

.submit-cart:hover {
    background-color: #28612a;
}

.product-quantity {
    flex-basis: 30%;
    text-align: right;
}

.action-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 2em;
}

.action-button,
.generate-pdf {
    padding: 10px 20px;
    margin: 5px;
    background-color: #f2c14e;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-transform: uppercase;
}

.action-button:hover,
.generate-pdf:hover {
    background-color: #9e7a26;
}

button:disabled {
    cursor: not-allowed;
}

.delete-button {
    background: 0 0;
    border: none;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.delete-button img {
    width: 20px;
    height: auto;
}

.quantity-input {
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    text-align: center;
    font-size: 16px;
    width: 80px;
    position: relative;
}

.quantity-input::-webkit-inner-spin-button,
.quantity-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.quantity-input {
    -moz-appearance: textfield;
}

.quantity-input::-webkit-calendar-picker-indicator {
    display: none;
}

.quantity-input:after {
    content: "+";
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 20px;
    color: #4caf50;
}

.quantity-input:before {
    content: "−";
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 20px;
    color: #4caf50;
}

.quantity-decrement,
.quantity-increment {
    padding: 4px 6px;
    margin: 0 5px;
    border-radius: 4px;
    background-color: #fff;
    cursor: pointer;
    font-size: 16px;
    color: #4caf50;
}

.quantity-decrement:hover,
.quantity-increment:hover {
    background-color: #f2f2f2;
}

.about-page {
    max-width: 80%;
    margin: 0 auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.about-title,
.elevage-title {
    color: #186754;
    text-align: center;
    margin-bottom: 20px;
}

.elevage-section {
    margin-bottom: 30px;
}

.elevage-section h3 {
    color: #333;
    margin-bottom: 10px;
}

.elevage-section p {
    color: #666;
    line-height: 1.6;
}

.password-creation-container {
    max-width: 400px;
    margin: 40px auto;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    background-color: #186754;
}

.password-form .form-group {
    margin-bottom: 20px;
}

.password-form label {
    display: block;
    margin-bottom: 5px;
    color: #eee;
}

.password-form input[type="password"],
.password-form input[type="text"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-sizing: border-box;
}

.submit-button {
    display: block;
    width: 100%;
    padding: 10px;
    border: none;
    background-color: #eeb328;
    color: #fff;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

.submit-button:hover {
    background-color: #9e7a26;
}

.user-addition-container {
    max-width: 500px;
    margin: 40px auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.user-instruction {
    margin-bottom: 20px;
    line-height: 1.6;
}

.user-form .form-group {
    margin-bottom: 20px;
}

.user-form label {
    display: block;
    margin-bottom: 5px;
    color: #333;
}

.user-form input[type="text"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-sizing: border-box;
}

.submit-button {
    display: block;
    width: 100%;
    padding: 10px;
    border: none;
    background-color: #186754;
    color: #fff;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

.submit-button:hover {
    background-color: #0e3f34;
}

.api-result {
    margin-top: 20px;
}

.first-client-row td {
    color: red;
}

.a_footer {
    color: #fff;
}

.qty {
    width: 50px;
}

.order-item {
    display: flex;
    flex-direction: row;
    background-color: #18675548;
    margin: 10px;
}

.product-details {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 20px 0;
    background-color: #4f675d;
    border-radius: 20px 20px;
    margin-left: 5%;
    margin-right: 5%;
}

.product-details img {
    max-width: 60%;
    height: 250px;
    border-radius: 20px 20px;
}

.product-details form {
    margin-top: 10px;
}

.product-add-to-cart label {
    color: #fff;
    font-size: 1.2em;
    margin: 10px 0;
    text-align: center;
}

@media (max-width: 700px) {
    .product-add-to-cart label {
        padding-left: 30%;
    }
}

.product-details input.qty {
    width: 20%;
    height: 40px;
    border: 2px solid #aaa;
    border-radius: 5px;
    padding: 5px 10px;
    font-size: 1em;
    color: #333;
    background-color: #f9f9f9;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.product-details input.qty:focus {
    border-color: #555;
    outline: 0;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

.product-details h1 {
    margin: 2%;
    color: #fff;
    text-align: center;
}

.product-details p {
    margin: 10px 0;
    color: #fff;
    font-size: 1.2em;
}

.product-description {
    padding-left: 2%;
    padding-right: 2%;
}

.email-container {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: 300px;
    text-align: center;
}

@media (min-width: 700px) {
    .product-details p {
        padding-left: 2%;
        padding-right: 2%;
    }

    .product-info {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        font-size: 1.2em;
    }
}

.img_produit {
    display: block;
    margin: auto;
    max-width: 25%;
    height: auto;
}

.liste-produits .produits-table,.produits-table-index{
    width: 100%;
    border-collapse: collapse;
}

.liste-produits td,
.liste-produits th {
    border: 1px solid #4f675d;
    padding: 1px;
    text-align: center;
}

tr.border-bottom td {
    border-bottom: 1pt solid #4f675d;
}

.liste-produits th {
    background-color: #1e9e6b;
    color: #fff;
}

.liste-produits input[type="number"],
.liste-produits select {
    width: 100%;
    padding: 8px;
    box-sizing: border-box;
}

.liste-produits img.img_produit {
    max-width: 80px;
    max-height: 80px;
}

.liste-produits button[type="submit"] {
    background-color: #1e9e6b;
    color: #fff;
    padding: 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin: auto 10px;
}
.edit{
    width: 80%;
    margin: auto;
}
button.submit-prod.add-to-cart-button{
    height: 100%;
}
.liste-produits button[type="submit"]:hover {
    background-color: #186754;
}

.liste-produits input[type="checkbox"] {
    transform: scale(1.2);
    margin-top: 2px;
}

.liste-produits form[method="post"] {
    margin-top: 20px;
}

.liste-produits td:nth-child(8) {
    text-align: center;
}

@media (max-width: 700px) {

    .liste-produits td,
    .liste-produits th {
        font-size: 14px;
    }

    .liste-produits img.img_produit {
        max-width: 60px;
        max-height: 60px;
    }

    .liste-produits button[type="submit"] {
        padding: 8px;
    }

    .liste-produits input[type="checkbox"] {
        transform: scale(1);
    }
}

.liste-produits .button-container {
    text-align: center;
}

.content {
    padding: 20px 0;
}

.code {
    font-size: 24px;
    color: #1e9e6b;
    margin-bottom: 20px;
}

.note {
    font-size: 14px;
    color: #777;
    margin-bottom: 20px;
}

.resetEmail {
    margin: 0;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f4f4f4;
}

body {
    background-color: #f5f5f5;
    font-family: Arial, sans-serif;
}

.container-failure {
    display: block;
    width: 80%;
    max-width: 400px;
    margin: 50px auto;
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    text-align: center;
}

.container-failure h1 {
    color: #a52c2c;
    margin-bottom: 20px;
}

.container-failure p {
    color: #333;
    margin-bottom: 30px;
    font-size: 1.2em;
}

.container-failure a.submit-prod {
    display: inline-block;
    background-color: #7fb69f;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    margin: 5px;
}

.container-failure a.submit-prod:hover {
    background-color: #3b544a;
}

.container-success {
    display: block;
    width: 80%;
    max-width: 400px;
    margin: 50px auto;
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    text-align: center;
}

.container-success h1 {
    color: #28612a;
    margin-bottom: 20px;
}

.container-success p {
    color: #333;
    margin-bottom: 30px;
    font-size: 1.2em;
}

.container-success a.submit-prod {
    display: inline-block;
    background-color: #7fb69f;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    margin: 5px;
}

.container-success a.submit-prod:hover {
    background-color: #3b544a;
}

.success-icon {
    width: 50px;
    height: auto;
    margin-bottom: 20px;
}
.container-showCart{
    width: 40%;
    display: flex;
    flex-direction: column;
    margin: auto;
}

.total-order{
    display: flex;
    justify-content: center;
    padding: 10px;
}
.empty-cart {
    text-align: center;
    margin-top: 50px;
    padding: 20px;
}

span.material-symbols-outlined.icon-panier, .no-invoice {
    font-size: 100px;
}
span.text-danger{
    color: red;
    font-weight: bold;
}

span.text-success{
    color: green;
    font-weight: bold;
}
.empty-cart h2 {
    color: #333;
    font-size: 2em;
    margin-bottom: 20px;
}

.empty-cart a.back-to-home {
    display: inline-block;
    background-color: #0e3f34;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 700;
    transition: background-color 0.3s;
}

.empty-cart a.back-to-home:hover {
    background-color: #186754;
}

.reset-form {
    max-width: 400px;
    margin: 0 auto;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background-color: #f9f9f9;
}

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

.form-label {
    display: block;
    margin-bottom: 5px;
    font-weight: 700;
}

.form-input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.reset-button {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 4px;
    background-color: #1e9e6b;
    color: #fff;
    cursor: pointer;
    font-size: 1em;
}

.reset-button:hover {
    background-color: #092922;
}

.email-confirmation-box {
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    text-align: center;
}

.email-confirmation-box p {
    margin: 0;
    color: #333;
    font-size: 1em;
    margin-bottom: 20px;
}

.message {
    padding: 10px;
    border: 1px solid;
    margin-bottom: 10px;
    position: absolute;
    top: 13vh;
    left: 50%;
    transform: translateX(-50%);
    z-index: 99;
    width: 80%;
}

.error {
    background-color: #f2dede;
    border-color: #ebccd1;
    color: #a94442;
}

table.table-bordered {
    width: 100%;
    border-collapse: collapse;
}

th.text-center,
td.text-center {
    text-align: center;
}

th.table-bordered {
    background-color: #f4f4f4;
    font-weight: bold;
    border: 1px solid #ddd;
}

td.table-bordered {
    border: 1px solid #ddd;
    padding: 10px;
}

tr.table-striped {
    background-color: #f2f2f2;
}

tr.table-striped td {
    background-color: #f4f4f4;
}

.downloadButton {
    align-items: center;
    appearance: none;
    background-color: #1e9e6b;
    background-image: linear-gradient(1deg, #4f675d, #1e9e6b 99%);
    background-size: calc(100% + 20px) calc(100% + 20px);
    border-radius: 100px;
    border-width: 0;
    box-shadow: none;
    box-sizing: border-box;
    color: #ffffff;
    cursor: pointer;
    display: inline-flex;
    font-family: CircularStd, sans-serif;
    font-size: 1rem;
    height: auto;
    justify-content: center;
    line-height: 1.5;
    padding: 6px 20px;
    position: relative;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.2s, background-position 0.2s;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
    vertical-align: top;
    white-space: nowrap;
    margin-bottom: 5%;
}

.downloadButton:active,
.downloadButton:focus {
    outline: none;
}

.downloadButton:hover {
    background-position: -20px -20px;
}

.downloadButton:focus:not(:active) {
    box-shadow: rgba(40, 170, 255, 0.25) 0 0 0 0.125em;
}

.success {
    background-color: #e5f2de;
    border-color: #ccebd0;
    color: #42a955;
}

.alert-warning {
    color: #333;
    padding: 10px;
    text-align: center;
}

.hidden {
    display: none !important;
}

#myProgress{
    display: flex;
    width: 40%;
    background-color: cadetblue;
    margin: auto;
    position: relative;
}

#myProgress span{
    position: absolute;
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 1%;
    font-weight: bold;
}

@keyframes backgroundColorPalette {
    0% {
        background: #008f39;
    }
    25% {
        background: #48a259;
    }
    50% {
        background: #70b578;
    }
    75% {
        background: #107631;
    }
    100% {
        background: #155e29;
    }
}
#myBar{
    width:1%;
    height: 30px;
    animation-name: backgroundColorPalette;
    animation-duration: 3s;
    animation-iteration-count: infinite;
    animation-direction: alternate;
}
.message.error {
    position: relative;
    justify-content: center;
    align-items: center;
    background-color: #f2dede;
    color: #a94442;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.message.error span.close {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 16px;
    color: #a94442;
    cursor: pointer;
}

.message.success span.close {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 16px;
    color: #04570b;
    cursor: pointer;
}

.import {
        display: flex;
        position: relative !important;
        justify-content: center !important;
}

.bold{
    font-weight: bold !important;
}

.import .importByRef{
    border: 5px solid green;
    padding: 1% ;
    background: #99ffbb;
}

.prev-next {
    padding: 15px 30px;
    font-size: 1.5rem;
    width: 48%;
    border-radius: 10px;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
    border: none;
    background-color: #9e7a26;
    color: #fff;
    text-decoration: none;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.3s;
    margin: 30px;
    min-width: 205px;
}

.prev-next-disabled {
    padding: 15px 30px;
    font-size: 1.5rem;
    width: 48%;
    border-radius: 10px;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
    border: none;
    background-color: #676051;
    color: #fff;
    text-decoration: none;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.3s;
    margin: 30px;
    min-height: 205px;
}
.input.number{
    margin: auto;
}

.category {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .delete-category-button {
    padding: 10px 20px;
    margin: 5px;
    margin-left: auto;
    background-color: #f2c14e;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-transform: uppercase;
  }
.category-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .category .category-content .delete-category-button{
    display: flex;
    justify-content: end;
  }

  /**
  Css of products-users/view order table
   */
*{
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
}
h2{
    text-align: center;
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: white;
    padding: 30px 0;
}

/* Table Styles */

.table-wrapper{
    margin: 10px 70px 70px;
    box-shadow: 0px 35px 50px rgba( 0, 0, 0, 0.2 );
    background-color: #4caf50;
}

.fl-table {
    border-radius: 5px;
    font-size: 12px;
    font-weight: normal;
    border: none;
    border-collapse: collapse;
    width: 100%;
    max-width: 100%;
    white-space: nowrap;
    background-color: white;
}

.fl-table td, .fl-table th {
    text-align: center;
    padding: 8px;
}
.weight.warning {
    background-color: #ffcccc; /* Rouge clair */
}
.fl-table td {
    font-weight: bold;
    border-right: 1px solid #f8f8f8;
    font-size: 12px;
    width: 25%;
}

.fl-table thead th {
    color: #ffffff;
    background: #324960;
}


.fl-table thead th:nth-child(odd) {
    color: #ffffff;
    background: #324960;
}

.fl-table tr:nth-child(even) {
    background: #F8F8F8;
}

.warning{
    background: red !important;
}
/* Responsive */

@media (max-width: 767px) {
    .fl-table {
        display: block;
        width: 100%;
    }
    .table-wrapper:before{
        content: "Scroll horizontally >";
        display: block;
        text-align: right;
        font-size: 11px;
        color: white;
        padding: 0 0 10px;
    }
    .fl-table thead, .fl-table tbody, .fl-table thead th {
        display: block;
    }
    .fl-table thead th:last-child{
        border-bottom: none;
    }
    .fl-table thead {
        float: left;
    }
    .fl-table tbody {
        width: auto;
        position: relative;
        overflow-x: auto;
    }
    .fl-table td, .fl-table th {
        width: 25%;
        padding: 20px .625em .625em .625em;
        height: 60px;
        vertical-align: middle;
        box-sizing: border-box;
        overflow-x: hidden;
        overflow-y: auto;
        font-size: 13px;
        text-overflow: ellipsis;
    }
    .fl-table thead th {
        text-align: left;
        border-bottom: 1px solid #f7f7f9;
    }
    .fl-table tbody tr {
        display: table-cell;
    }
    .fl-table tbody tr:nth-child(odd) {
        background: none;
    }
    .fl-table tr:nth-child(even) {
        background: transparent;
    }
    .fl-table tr td:nth-child(odd) {
        background: #F8F8F8;
        border-right: 1px solid #E6E4E4;
    }
    .fl-table tr td:nth-child(even) {
        width: 25%;
        border-right: 1px solid #E6E4E4;
    }
    .fl-table tbody td {
        display: block;
        text-align: center;
        width: 25%;
    }
}
.order-button{
    background-color: #4caf50;
    font-weight: bold;
}

.table-container-users,.table-container-produits{
    display: flex;
    flex-direction: row-reverse;
    justify-content: center;
}

td.liste-index a img{
    height: 60px;
    width: 60px;
}

.liste-users a,.liste-produits a{
    text-decoration: none;
    color: #000000;
}
.liste-produits form[method="post"] {
    margin-top: 20px !important;
    align-items: center !important;
    display: flex !important;
    flex-direction: column !important;
    text-align: center !important;
}
#btnTop {
    display: none; /* Hidden by default */
    position: fixed; /* Fixed/sticky position */
    bottom: 20px; /* Place the button at the bottom of the page */
    right: 30px; /* Place the button 30px from the right */
    z-index: 99; /* Make sure it does not overlap */
    border: none; /* Remove borders */
    outline: none; /* Remove outline */
    background-color: #186754; /* Set a background color */
    color: white; /* Text color */
    cursor: pointer; /* Add a mouse pointer on hover */
    padding: 15px; /* Some padding */
    border-radius: 10px; /* Rounded corners */
    font-size: 18px; /* Increase font size */
}

#btnTop:hover {
    background-color: #555; /* Add a dark-grey background on hover */
}
