@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&family=Open+Sans:ital,wght@0,300..800;1,300..800&family=Roboto+Slab:wght@100..900&display=swap');

body {
    font-family: "Open Sans", sans-serif;
    background-color: #EAEAEA;
}

.header {
    position: fixed;
    left: 0;
    right: 0;
    background-color: #333333;
    z-index: 2;
}

.menus {
    text-align: center;
}

.menus a {
    font-family: "Roboto Slab", serif;
    color: #FFFFFF;
    display: inline-block;
    text-align: center;
    padding: 10px 20px;
    text-transform: uppercase;
    font-weight: bold;
    font-size: 15px;
}

.menus a.active {
    text-decoration: underline;
}

.section {
    padding: 100px 0;
}

/* MENUS */

.menus-categories {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    margin: 0 auto;
    scroll-snap-type: x mandatory;
}

.categorie-box {
    scroll-snap-align: start;
    background-color: #Ffff;
    padding: 10px 20px;
    border-radius: 20px;
    min-width: 300px;
    text-align: center;
    height: fit-content;
}

.categorie-nom {
    color: #000000;
    font-weight: bold;
    font-family: "Roboto Slab", serif;
    font-size: 15px;
}

.categorie-nom:hover {
    color: #2ECC71;
    text-decoration: none;
}

.produits-box {
    padding-top: 10px;
}

.circle {
    background-color: black;
    border-radius: 100%;
    width: 5px;
    height: 5px;
    position: absolute;
    top: 10px;
    left: -10px;
}

.circle-green {
    background-color: #2ECC71;
}

.circle-red {
    background-color: #c82333;
}

.produit-box {
    display: block;
    justify-content: space-between;
    border-top: solid 1px #d7d7d7;
    padding: 20px 10px;
    color: black;
}

.produit-infos {
    display: flex;
    justify-content: space-between;
    position: relative;
}

.produit-box:hover {
    color: black;
    text-decoration: none;
    background-color: #d4d4d4;
}

.supplement-box {
    color: #333333;
}

.supplement-box:hover {
    color: #333333;
    text-decoration: none;
    background-color: #d4d4d4;
}

.supplement-infos {
    display: flex;
    justify-content: space-between;
    padding: 0 10px;
}

.section-menus {
    overflow: scroll;
    width: 100%;
}

.section-categories-edit {
    margin: 0 auto;
    max-width: 500px;
}

.form-titre {
    text-align: center;
    padding-bottom: 100px;
}

.form-titre input {
    text-align: center;
    border: none;
    border-bottom: solid 1px #d4d4d4;
    background-color: #eaeaea;
    font-size: 25px;
    font-weight: bold;
    font-family: "Roboto Slab", serif;
}

.form-radio-group {
    text-align: center;
    margin: 30px 0;
}

.form-radio {
    display: inline-block;
    margin-right: 10px;
}

.form-radio input[type=radio] {
    display: none;
}

.form-radio label {
    cursor: pointer;
}

.form-radio span {
    display: block;
    background-color: #FAFAFA;
    border-radius: 5px;
    border: 1px solid #eee;
    font-size: 14px;
    padding: 5px 20px;
    transition: all 0.3s ease;
    color: #333;
}

.form-radio input[type="radio"]:checked + label span {
    border-color: #3292E0;
    color: #3292E0;
    font-weight: bold;
    background-color: #E6F4FF;
}

.buttonRetour, .buttonValider {
    display: block;
    text-align: center;
    color: #000;
    padding: 10px 0;
    border-radius: 20px;
    border: none;
    width: 100%;
    transition: all 0.5s;
}

.buttonRetour:hover, .buttonValider:hover {
    text-decoration: none;
    color: #000000;
}

.buttonRetour {
    background-color: #e4e4e4;
}

.buttonRetour:hover {
    background-color: #bdbdbd;
}

.buttonValider {
    background-color: #2ECC71;
    color: #FFFFFF;
}

.buttonValider:hover {
    background-color: #28bc67;
    color: #FFFFFF;
}

.buttonSupplements {
    display: block;
    width: 100%;
    background-color: #e2e2e2;
    padding: 10px;
    border-radius: 20px;
    color: #000000;
    margin-top: 20px;
    transition: all 0.5s;
    text-align: center;
}

.buttonSupplements:hover {
    text-decoration: none;
    color: #000000;
    background-color: #bdbdbd;
}

.buttonIndex {
    width: 200px;
    margin: 10px auto;
}

.deleteForm {
    text-align: right;
}

.buttonDelete {
    border: none;
    background-color: #eaeaea;
    color: #c90303;
}

.copyright {
    text-align: center;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #333333;
    color: #FFFFFF;
}

/* COMMANDES */

.buttonsCommande {
    position: fixed;
    bottom: 20px;
    right: 20px;
}

.buttonCommandeFixed {
    border: none;
    border-radius: 100%;
    background-color: green;
    color: white;
    line-height: 40px;
    width: 40px;
    font-size: 18px;
    font-weight: bold;
    display: inline-block;
    text-align: center;
    transition: all 0.5s;
}

.buttonCommandeFixed:hover {
    text-decoration: none;
    color: white;
    box-shadow: 0 0 10px #a8a8a8;
}

#buttonImpression, #buttonPanier {
    position: relative;
}

.buttonCommandeFixed span {
    position: absolute;
    font-size: 10px;
    line-height: 15px;
    width: 15px;
    text-align: center;
    border-radius: 100%;
    background-color: #000;
    right: -5px;
    top: -5px;
}

#buttonImpression span {
    background-color: #ff0000;
}

.buttonBack {
    position: fixed;
    bottom: 20px;
    left: 20px;
}

.listCategories {
    color: white;
    position: fixed;
    background-color: #334;
    display: flex;
    left: 0;
    right: 0;
    top: 42px;
    justify-content: center;
    z-index: 2;
}

.listCatName {
    cursor: pointer;
    transition: all 0.5s;
    border-bottom: solid 5px #334;
    padding: 10px 10px 5px;
    white-space: nowrap;
}

.listProduits {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    width: 300px;
    max-height: 80vh;
    align-content: space-between;
}

.listCatName.active {
    border-bottom: solid 5px #ff0000;
}

.listCatName:hover {
    background-color: #333333;
}

.produit {
    width: 300px;
    padding: 10px;
    display: none;
    margin-right: 15px;
    cursor: pointer;
    background-color: #f4f4f4;
    border: solid 1px #dddddd;
    margin-bottom: 10px;
    position: relative;
}

.produit.active {
    display: inline-block;
}

.ongletInfos {
    max-width: 500px;
    margin: 10px auto;
}

.dropdownOptions {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    border: 1px solid #ccc;
    padding: 10px;
    z-index: 100;
    width: 100%;
}

.dropdownOptions a {
    display: block;
    padding: 5px;
    text-decoration: none;
    color: #333;
}

.dropdownOptions a:hover {
    background-color: #f5f5f5;
}

.commande {
    padding: 15px;
    border: 1px solid #ddd;
    margin-bottom: 20px;
    background-color: #fff;
    cursor: pointer;
    transition: all 0.5s;
    position: relative;
}

.commande:hover {
    border-radius: 20px;
    box-shadow: 0 0 10px #ccc;
}

.commandeValidee {
    background-color: #effff3;
    border-color: #c3e6cb;
}

.commandeAnnulee {
    background-color: #fff5f6;
    border-color: #f5c6cb;
}

.categorieNom {
    font-weight: bold;
    text-decoration: underline;
    margin-top: 10px;
}

.categorieTitle {
    cursor: pointer;
}

.dropdownIcon {
    transition: transform 0.3s;
}

.categorieTitle.open .dropdownIcon {
    transform: rotate(180deg);
}

.listSupplements {
    margin-left: 20px;
}

.commandeActions {
    margin-top: 15px;
}

.commandeActions button {
    width: 48%;
}

#panierContent {
    margin-top: 20px;
}

.categorieTitle {
    font-size: 1.2em;
    font-weight: bold;
    color: #333;
    margin-top: 20px;
    margin-bottom: 10px;
}

.panierItem {
    padding: 10px 5px;
    background-color: #f2f2f2;
}

.panierItem:nth-child(odd) {
    background-color: #e8e8e8;
}

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

.produitNom {
    font-size: 1em;
    font-weight: bold;
}

.produitPrix {
    font-size: 0.9em;
    color: #666;
}

.produitSupplements {
    margin-top: 10px;
}

.supplementItem {
    display: flex;
    justify-content: space-between;
    padding: 5px;
    margin-bottom: 5px;
    border: solid 1px #dcdcdc;
}

.supplementItem button {
    padding: 2px 6px;
    font-size: 0.8em;
}

.produitCommentaire {
    margin-top: 10px;
}

.supplement {
    padding: 5px;
    margin: 10px 0;
    background-color: #f4f4f4;
    border-radius: 5px;
}

.addSupplement {
    line-height: 15px;
    border-radius: 100%;
    width: 25px;
}

.commandeImprimer {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 20px;
}

/* GESTION MODAL */

.modalCustom {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    transition: right 0.5s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.modal-dialog {
    max-width: 100%;
    width: 100%;
    height: 100%;
    margin: 0;
}

.modal-content {
    width: 100%;
    height: 100%;
    border-radius: 0;
    box-shadow: none;
}

.modal-body {
    overflow-y: auto;
    max-height: calc(100vh - 56px);
}

.modal-header,
.modal-footer {
    position: sticky;
    top: 0;
    z-index: 1;
}

.modal-footer {
    bottom: 0;
    width: 100%;
}

.modalCustom.show {
    right: 0;
}

/* CONNEXION */

.container-login {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100vh;
}

.container-login .box-login {
    background-color: white;
    border-radius: 10px;
    padding: 40px;
    width: 350px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    text-align: center;
}

.container-login h4 {
    font-size: 28px;
    margin: 0;
    padding-bottom: 20px;
    color: #333;
}

.container-login .alert {
    display: block;
    color: white;
    background: #f44336;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 20px;
    font-size: 14px;
}

.container-login .hidden {
    display: none;
}

.container-login .user-selection {
    display: flex;
    justify-content: center;
}

.container-login .user-list {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    max-width: 100%;
    padding: 15px;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    background: #f7f7f7;
    border-radius: 10px;
}

.container-login .user-item {
    background-color: #e0e0e0;
    padding: 10px 20px;
    border-radius: 15px;
    font-size: 14px;
    font-weight: bold;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 0.3s;
}

.container-login .user-item:hover {
    background-color: #4a90e2;
    color: white;
}

.container-login .user-item.selected {
    background-color: #4a90e2;
    color: white;
}

.container-login #selected-user {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    cursor: pointer;
    padding-bottom: 10px;
}

.container-login .input-field {
    width: 100%;
    padding: 12px 15px;
    margin: 15px 0;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    color: #333;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.container-login .input-field:focus {
    outline: none;
    border-color: #0093E9;
}

.container-login .btn-submit {
    width: 100%;
    padding: 12px 0;
    border: none;
    background-color: #0093E9;
    color: white;
    font-size: 18px;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.container-login .btn-submit:hover {
    background-color: #007bb5;
}

.hidden {
    display: none;
}

.container-login #selected-user {
    color: #333;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 10px;
}

.container-login .form-group {
    width: 100%;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* UTILISATEURS - INDEX */

.container-users h2 {
    text-align: center;
    font-size: 24px;
    margin-bottom: 20px;
}

.btn.btn-add {
    display: inline-block;
    margin-bottom: 20px;
    padding: 10px 15px;
    background-color: #4CAF50;
    color: white;
    text-decoration: none;
    border-radius: 5px;
}

.user-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 auto;
    font-family: Arial, sans-serif;
}

.user-table th, .user-table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: center;
}

.user-table th {
    background-color: #f2f2f2;
    font-weight: bold;
}

.user-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.user-table tr:hover {
    background-color: #ddd;
}

.btn-action {
    padding: 5px 10px;
    text-decoration: none;
    border-radius: 4px;
    color: white;
}

.btn-edit {
    background-color: #4a90e2;
}

.btn-delete {
    background-color: #f44336;
}

.table-overflow {
    overflow-x: scroll;
    max-width: 100%;
}

/* UTILISATEUR - MODIFIER */

.section-users-edit {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.blocUserEdit, .blocModulesEdit {
    width: 400px;
    background-color: white;
    border-radius: 20px;
    padding: 20px;
    text-align: center;
}

/* CONTROLLEUR */

.buttonControlleur {
    display: block;
    color: white;
    background-color: #333;
    text-align: center;
    margin: 10px;
    padding: 20px;
    border-radius: 20px;
    font-weight: bold;
    transition: all 0.5s;
}

.buttonControlleur:hover {
    color: white;
    text-decoration: none;
    border-radius: 0;
}

@media (max-width: 1200px) {
    .categorie-box {
        width: 460px;
    }
}

@media (max-width: 991px) {
    .categorie-box {
        width: 730px;
    }
}

@media (max-width: 767px) {
    .header {
        bottom: 0;
    }

    .menus {
        display: flex;
        width: 100%;
        overflow-y: scroll;
    }

    .listCategories {
        top: auto;
        bottom: 42px;
    }

    .listCatName.active {
        border-top: solid 5px #ff0000;
        border-bottom: none;
    }

    .section {
        padding: 30px 0 90px;
    }

    .section-commandes {
        padding-top: 60px;
    }

    .buttonBack {
        bottom: auto;
        top: 20px;
    }

    .buttonsCommande {
        bottom: auto;
        top: 20px;
    }

    .categorie-box {
        width: 550px;
    }

    .buttonRetour {
        margin-bottom: 20px;
    }

    .copyright {
        font-size: 10px;
    }

    .produit {
        width: 100%;
    }

    .modal-title {
        font-size: 15px;
    }

    #totalPanier {
        font-size: 15px;
    }

    #panierContent {
        margin-top: 0;
    }

    #panierContent {
        font-size: 15px;
    }

    .produitNom {
        font-size: 13px;
    }

    .produitPrix {
        font-size: 13px;
    }

    .supplementItem {
        font-size: 10px;
    }

    .produitCommentaire {
        font-size: 10px;
    }

    .container-login {
        padding: 20px;
    }

    .container-login .box-login {
        width: 100%;
        padding: 20px;
    }

    .container-login h4 {
        font-size: 22px;
        padding-bottom: 15px;
    }

    .container-login .alert {
        font-size: 12px;
        padding: 8px;
    }

    .container-login .user-item {
        padding: 8px 15px;
        font-size: 12px;
    }

    .container-login #selected-user {
        font-size: 14px;
    }

    .container-login .input-field {
        padding: 10px 12px;
        font-size: 14px;
    }

    .container-login .btn-submit {
        font-size: 16px;
        padding: 10px 0;
    }
}

@media (max-width: 575px) {
    .categorie-box {
        min-width: 100%;
    }

    .listCategories {
        justify-content: left;
        width: 100%;
        overflow-x: scroll;
    }

    .form-titre input {
        width: 100%;
    }

    .commande {
        margin-left: -15px;
        margin-right: -15px;
    }

    .container-login {
        padding: 0;
    }

    .container-login .box-login {
        width: 100%;
        padding: 15px;
        font-size: 14px;
    }

    .container-login h4 {
        font-size: 20px;
        padding-bottom: 10px;
    }

    .container-login .alert {
        font-size: 12px;
        padding: 6px;
    }

    .container-login .user-list {
        gap: 8px;
        padding: 10px;
    }

    .container-login .user-item {
        padding: 6px 12px;
        font-size: 12px;
    }

    .container-login #selected-user {
        font-size: 12px;
    }

    .container-login .input-field {
        padding: 8px 10px;
        font-size: 12px;
    }

    .container-login .btn-submit {
        font-size: 14px;
        padding: 8px 0;
    }

    .listProduits {
    	flex-direction: unset;
    	width: 100%;
    	max-height: none;
    	align-content: unset;
    }

    .produit {
    	margin-right: 0;
    }
}