@import url('../lib/open-iconic/font/css/open-iconic-bootstrap.min.css');
@import url('fonts/OpenSans.css');
@import url('fonts/NotoSansJP.css');
@import url('fonts/BrownStd.css');

/* Webfonts des skins (self-hostées, sous-ensemble latin, variable) */
@font-face {
    font-family: 'Fraunces';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('fonts/Fraunces.woff2') format('woff2');
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('fonts/Inter.woff2') format('woff2');
}

html, body {
    font-family: 'BrownStd Light', Helvetica, Arial, sans-serif;
    font-size: 0.9rem;
    color: #3a3a3a;
    -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
    -moz-user-select: none; /* Old versions of Firefox */
    -ms-user-select: none; /* Internet Explorer/Edge */
    user-select: none; /* Non-prefixed version, currently
                                  supported by Chrome, Opera and Firefox */
}

body {
    height: 100vh;
    margin: 30px 0px 140px 0px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'BrownStd Regular', Helvetica, Arial, sans-serif;
}

.h1, h1 {
    font-size: 1.8rem;
}

.h2, h2 {
    font-size: 1.5rem;
}

.h3, h3 {
    font-size: 1.2rem;
}

.h4, h4 {
    font-size: 1rem;
}

.h5, h5 {
    font-size: 0.95rem;
}

b, strong {
    font-family: 'BrownStd Bold', Helvetica, Arial, sans-serif;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

app {
    position: relative;
    display: flex;
    flex-direction: column;
}

.top-row {
    height: 3.5rem;
    display: flex;
    align-items: center;
}

.main {
    flex: 1;
}

    .main .top-row {
        background-color: #f7f7f7;
        border-bottom: 1px solid #d6d5d5;
        justify-content: flex-end;
    }

        .main .top-row > a, .main .top-row .btn-link {
            white-space: nowrap;
            margin-left: 1.5rem;
        }

.main .top-row a:first-child {
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar {
    background-image: linear-gradient(180deg, rgb(5, 39, 103) 0%, #3a0647 70%);
}

    .sidebar .top-row {
        background-color: rgba(0,0,0,0.4);
    }

    .sidebar .navbar-brand {
        font-size: 1.1rem;
    }

    .sidebar .oi {
        width: 2rem;
        font-size: 1.1rem;
        vertical-align: text-top;
        top: -2px;
    }

    .sidebar .nav-item {
        font-size: 0.9rem;
        padding-bottom: 0.5rem;
    }

        .sidebar .nav-item:first-of-type {
            padding-top: 1rem;
        }

        .sidebar .nav-item:last-of-type {
            padding-bottom: 1rem;
        }

        .sidebar .nav-item a {
            color: #d7d7d7;
            border-radius: 4px;
            height: 3rem;
            display: flex;
            align-items: center;
            line-height: 3rem;
        }

            .sidebar .nav-item a.active {
                background-color: rgba(255,255,255,0.25);
                color: white;
            }

            .sidebar .nav-item a:hover {
                background-color: rgba(255,255,255,0.1);
                color: white;
            }

.content {
    padding-top: 1.1rem;
}

.navbar-toggler {
    background-color: rgba(255, 255, 255, 0.1);
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

@media (max-width: 767.98px) {
    .main .top-row:not(.auth) {
        display: none;
    }

    .main .top-row.auth {
        justify-content: space-between;
    }

    .main .top-row a, .main .top-row .btn-link {
        margin-left: 0;
    }
}

@media (min-width: 768px) {
    app {
        flex-direction: row;
    }

    .sidebar {
        width: 250px;
        height: 100vh;
        position: sticky;
        top: 0;
    }

    .main .top-row {
        position: sticky;
        top: 0;
    }

    .main > div {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }

    .navbar-toggler {
        display: none;
    }

    .sidebar .collapse {
        /* Never collapse the sidebar for wide screens */
        display: block;
    }
}

.btn-header {
    box-shadow: #020202 0px 0px 3px;
}

.btn-header-close {
    top: -30px;
    z-index: 100;
    right: 20px;
    position: absolute;
}

.med-fixed-navbar {
    top: 0;
    z-index: 10;
}

.med-sidebar {
    width: 100vw;
    height: 100vh;
    z-index: 11;
    position: absolute;
    background: #ededed;
    box-shadow: #969696 3px 5px 5px 0px;
    top: 100vh;
    padding-top: 50px;
    transition: 0.5s;
}

    .med-sidebar.opened {
        transition: 0.5s;
        top: 50px;
    }

    .med-sidebar > ul {
        display: table;
        width: 100%;
    }
        .med-sidebar > ul > li {
            display: table-cell;
            vertical-align: middle;
        }

.product-item {
    margin: 0 0 1.5em 0 !important;
}

    .product-item > .card-body {
        font-size: 12px;
    }

fieldset.item-fieldset {
    font-size: 12px;
    text-align: left;
    border: 1px groove #87b5dc !important;
    padding: 0.6em 1.4em 0 1.4em !important;
/*    -webkit-box-shadow: 0px 0px 3px 0px #87b5dc;
    box-shadow: 0px 0px 3px 0px #87b5dc;
*/    width: 100%;
    margin-top: 1em;
}

    fieldset.item-fieldset.item-fieldset-parent {
        border: none !important;
    }

legend.item-legend {
    font-family: 'NotoSansJP-Medium';
    font-size: 16px;
    width: auto;
    padding: 0 10px;
    margin-bottom: 20px !important;
    background: #ffffff;
}

.category-header {
    background: #d6d6d6;
    color: #313131;
    padding: 7px 5px;
    position: sticky;
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 5;
    height: 50px;
}

    .category-header > strong {
        width: 100vw;
        padding-top: 7px;
    }

.orders-btn {
    transition: all 0.5s;
    cursor: pointer;
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 80px;
    height: 80px;
    background: #ff8100;
    border-radius: 10px;
    box-shadow: 0 0 2px 0px #c7c7c7;
    z-index: 1000;
}
    .orders-btn > * {
        margin: auto;
        display: block;
        margin-top: 27px;
        font-size: 25px;
        text-align: center;
        font-weight: bold;
        color: white;
    }

.lock-btn {
    transition: all 0.5s;
    cursor: pointer;
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 80px;
    height: 80px;
    background: #007bff;
    border-radius: 10px;
    box-shadow: 0 0 2px 0px #c7c7c7;
    z-index: 1000;
}
    .lock-btn > * {
        margin: auto;
        display: block;
        margin-top: 27px;
        font-size: 25px;
        text-align: center;
        font-weight: bold;
        color: white;
    }

.menu-btn {
    transition: all 0.5s;
    cursor: pointer;
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 80px;
    height: 80px;
    background: #00b4ff;
    border-radius: 10px;
    box-shadow: 0 0 2px 0px #c7c7c7;
    z-index: 1000;
}
    .menu-btn > * {
        margin: auto;
        display: block;
        margin-top: 27px;
        font-size: 25px;
        text-align: center;
        font-weight: bold;
        color: white;
    }

.cart-btn {
    transition: all 0.5s;
    cursor: pointer;
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 80px;
    height: 80px;
    background: #007bff;
    border-radius: 10px;
    box-shadow: 0 0 2px 0px #c7c7c7;
    z-index: 1000;
    padding: 5px;
}
    .cart-btn > * {
        margin: auto;
        display: block;
        height: 35px;
        font-size: 24px;
        text-align: center;
        font-weight: bold;
        color: white;
    }

.search-input {
    padding:0;
    display: none;
    z-index: 101;
    background-color: #e1ecff;
    border-bottom: 2px solid lightgray !important;
    border-color: lightgray !important;
    border-radius: 0 !important;
    transition-property: border-color;
    transition-duration: 0.1s;
    transition-delay: 0.1s;
    top: 0;
    position: absolute;
    width: 100%;
}

    .search-input .input-group, .search-input .input-group > * {
        z-index: 1101;
        border-radius: 0;
    }

/*    .search-input:focus {
        display: block;
        box-shadow: none;
        border-color: black !important;
        background-color: white;
        color: #343a40;
        border: 0;
        height: 40px;
        z-index: 101;
    }
*/
.search-input-overlay {
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 1001;
    height: 100vh;
    background: rgba(0,0,0,0.78);
}

.search-results {
    position: absolute;
    top: 55px;
    width: 100%;
    z-index: 1002;
    text-align: center;
    /*    border-bottom: 2px ​#0360ff solid;
*/ box-shadow: 0 3px 3px -3px #cfcfcf;
    border: 1px solid #f0f0f1;
    border-left: none;
    border-right: none;
}

    .search-results tr {
        height: 40px;
        font-family: 'BROWNSTD BOLD';
        font-size: 14px;
    }

        .search-results tr > td {
            text-align: left;
            border: none;
        }

        .search-results tr > td.product-name {
            padding: 0px 8vw;
        }

/*            .search-results tr > td:first-child::before {
                font-family: "Font Awesome 5 Free";
                font-weight: 900;
                content: "\f002";
                padding: 0 30px;
            }
*/
            .search-results tr > td:last-child::after {
                font-family: "Font Awesome 5 Free";
                font-weight: 900;
                content: "\f054";
                padding: 0 30px;
                right: 0;
                position: absolute;
            }

.search-results-box {
    position: relative;
    width: 100%;
    height: 100px;
    overflow-y: auto;
    background: white;
    border-left: none;
    border-right: none;
}

.btn-add-to-cart, .btn-validate-order, .btn-back-to-menu, .btn-back-to-menu-icon, .btn-add-products, .btn-calculator, .btn-pay, .btn-delete-order {
    height: 60px;
    width: 100%;
    margin: 10px;
    align-content: center;
    background-color: #388da7;
    color: white;
    text-transform: uppercase;
    font-family: 'BrownStd Light';
    border-radius: 4px;
    box-shadow: 0 0 1px #767676 !important;
}

.btn-delete-order {
    background-color: #ea2020;
}

.btn-add-products {
    background-color: #249c3e;
}

.btn-calculator {
    background-color: black;
}

    .btn-calculator:hover {
        background-color: #333;
        color: whitesmoke;
    }

.btn-back-to-menu {
    background-color: #007bff;
}

.btn-back-to-menu-icon {
    background: white;
    color: #388da7;
    border-color: #388da7;
}

.btn-validate-order {
    background-color: #ff8100;
    color: white;
    text-transform: uppercase;
    font-family: 'BrownStd Light';
}

.product-page.product-item {
    margin: 0 auto !important;
}

.product-cart {
    padding: 15px 0;
    border-bottom: 1px #b9b9b9 solid;
}

.product-cart.hide {
    transition: 1s;
    padding: 0;
    border-bottom: none;
    height: 0;
    opacity: 0;
}
.cart-total {
    padding: 15px 0;
}

.blazored-toast {
    box-shadow: none;
}
.blazored-toast-container {
    z-index: 10000;
}

.blazored-toast-success {
    background-color: #a0e2b6;
    color: #3a3a3a;
}

.list-group-item {
    min-height: 60px;
    background: transparent;
    color: #3a3a3a;
    border-color: #d6d6d6;
}

a.disabled, a:disabled, .btn-link.disabled, .btn-link:disabled {
    color: #c7c7c7 !important;
}

.list-group .list-group-item-action:last-child {
    border-bottom: none;
}

.list-group .list-group-item-action {
    transition-property: background-color color;
    transition-duration: 0.05s;
    transition-delay: 0.05s;
    background-color: white;
    border-bottom: 1px solid lightgray;
}

.list-group-item-action:active {
    color: #406a71;
    background-color: #c1dfe4;
}

.list-group-item-action:focus, .list-group-item-action:hover {
    z-index: 1;
    color: #0082b9;
    text-decoration: none;
    background-color: #94e0ff;
}

.form-control {
    background-color: white;
    color: #343a40;
    border: 0;
    height: 40px;
    box-shadow: none;
}
    .form-control::placeholder {
        color: #343a40;
    }

.custom-sidebar {
    height: 60px;
    width: 100%;
    z-index: 10;
}
/*    .custom-sidebar > ul::-webkit-scrollbar {
        -webkit-appearance: none;
    }

        .custom-sidebar > ul::-webkit-scrollbar:vertical {
            width: 11px;
        }

        .custom-sidebar > ul::-webkit-scrollbar:horizontal {
            height: 11px;
        }

    .custom-sidebar > ul::-webkit-scrollbar-thumb {
        border: 4px solid white;
        background-color: rgb(211, 211, 211);
    }
*/
    .custom-sidebar > ul {
        background-image: linear-gradient(to right, white, white), linear-gradient(to right, white, white), linear-gradient(to right, rgba(0, 0, 0, 0.25), rgba(255, 255, 255, 0)), linear-gradient(to left, rgba(0, 0, 0, 0.25), rgba(255, 255, 255, 0));
        background-position: left center, right center, left center, right center;
        background-repeat: no-repeat;
        background-color: white;
        background-size: 20px 100%, 20px 100%, 10px 100%, 10px 100%;
        background-attachment: local, local, scroll, scroll;
        overflow: auto;
        width: 100%;
        max-height: 100px;
        display: flex;
        padding: 4px 0px;
        border-top: 1px solid lightgray !important;
        border-bottom: 1px solid lightgray !important;
    }

        .custom-sidebar > ul > li {
            display: inline-flex;
        }

button.accept-policy {
    font-size: 1rem;
    line-height: inherit;
}

.menu-body {
    padding-bottom: 100px;
}

.mat-autocomplete-list-popup {
    z-index: 1000;
}

button.btn.btn-outline-dark.cat-link {
    width: max-content;
    border: 0;
}

    button.btn.btn-outline-dark.cat-link:not([data-cat]) {
        border-radius: 0;
    }

.cat-link:not(.active):active, .cat-link:not(.active):hover {
    color: #343a40 !important;
    border-color: #343a40 !important;
    background-color: white !important;
}

.form-check {
    font-size: 16px;
}

.form-check-label {
    margin-left: 8px;
}

.med-fixed-navbar.btn-link {
    position: absolute;
    background: white;
    border-radius: 30px;
    width: 50px;
}

.btn-link, .btn-link:focus {
    color: #343a40;
}

.subitem-separator {
    background: #ededed;
    padding: 20px;
    width: 100%;
    text-align: left;
}

    .subitem-separator > i {
        float: right;
        position: relative
    }

.font-weight-bold {
    font-family: 'BrownStd Bold';
}

.form-group {
    margin-bottom: 1.5rem;
}

.search-input .form-control:focus {
    border: none;
    box-shadow: none;
}

.search-btn:focus {
    box-shadow: inset 0 0 11px 0px black;
    border-radius: 16px;
}

.search-btn-close:focus {
    box-shadow: none;
}

.btn-image {
    position: fixed;
    background: white;
    padding: 10px 12px;
    border-radius: 40px;
    z-index: 100;
    box-shadow: 0 0 7px black;
}

.pretty {
    font-size: 1.2rem;
}

.btn.btn-add-to-cart:hover,
.btn.btn-back-to-menu:hover,
.btn.btn-back-to-menu-icon:hover,
.cart-btn:hover,
.menu-btn:hover {
    color: white !important;
    background: #3895ff;
    box-shadow: 5px 5px 10px #bfc6cd, -5px -5px 10px #ffffff;
}

.btn.btn-delete-order:hover {
    color: white !important;
    background: darkred;
    box-shadow: 5px 5px 10px #bfc6cd, -5px -5px 10px #ffffff;
}

.btn.btn-add-products:hover {
    color: white !important;
    background: #2bc618;
    box-shadow: 5px 5px 10px #bfc6cd, -5px -5px 10px #ffffff;
}

.btn.btn-delete-order:focus {
    background: #b90000;
    box-shadow: inset 5px 5px 10px #b90000, inset -5px -5px 10px #d70202;
}

.btn.btn-add-products:focus {
    background: #00770f;
    box-shadow: inset 5px 5px 10px #006a2b, inset -5px -5px 10px #007f56;
}

.btn.btn-validate-order:hover, .orders-btn:hover {
    color: white !important;
    background: #d76e02;
    box-shadow: 5px 5px 10px #bfc6cd, -5px -5px 10px #ffffff;
}

.btn.btn-validate-order:focus, .orders-btn:focus {
    background: #b95d00;
    box-shadow: inset 5px 5px 10px #b95d00, inset -5px -5px 10px #d76e02;
}

.btn.btn-add-to-cart:focus, .btn.btn-back-to-menu:focus, .btn.btn-back-to-menu-icon:focus, .cart-btn:focus, .menu-btn:focus {
    background: #005dc7;
    box-shadow: inset 5px 5px 10px #1c497d, inset -5px -5px 10px #2a6bb7;
}

.fa-chevron-down.chevron-right {
    transition: all ease 0.5s;
    transform: rotate(-90deg);
}

.fa-chevron-down {
    transition: all ease 0.5s;
}

.product-quantity {
    border-radius: 4px;
    background: #3881ff;
    padding: 10px;
    color: white;
    font-weight: bold;
}
    .product-quantity.offered {
        background: #51e661;
    }

@media (prefers-color-scheme: dark) {
    .main .top-row {
        background-color: #343a40;
    }
}

@-webkit-keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        -webkit-transform: translateY(0);
    }

    40% {
        -webkit-transform: translateY(-15px);
    }

    60% {
        -webkit-transform: translateY(-5px);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }

    40% {
        -webkit-transform: translateY(-15px);
    }

    60% {
        -webkit-transform: translateY(-5px);
    }
}

.btn-success {
    background-color: #249c3e;
}

.overlay-spinner {
    z-index: 9999;
    background: rgba(255, 255, 255, 0.58);
}

.progresses {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 0 30px;
}

.line {
    width: 60px;
    height: 6px;
    background: #007bfe
}

    .line.not-yet {
        background: transparent;
        border: #007bfe 1px solid;
        border-left: none;
        border-right-color: transparent;
    }

.steps {
    display: flex;
    background-color: #007bfe;
    color: #fff;
    font-size: 14px;
    width: 70px;
    height: 70px;
    align-items: center;
    justify-content: center;
    border-radius: 50%
}

    .steps.not-yet {
        background-color: transparent;
        border: 1px#007bfe solid ;
        color: #007bfe;
    }

/*@media (prefers-color-scheme: dark) {
    html, body {
        background: #20202a;
        color: #efefef;
    }
}

*/

.my-reconnect-modal > div {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 10000;
    overflow: hidden;
    background-color: #fff;
    opacity: 0.8;
    text-align: center;
    font-weight: bold;
}

.components-reconnect-hide > div {
    display: none;
}

.components-reconnect-show > div {
    display: none;
}

.components-reconnect-show > .show {
    display: block;
}

.components-reconnect-failed > div {
    display: none;
}

.components-reconnect-failed > .failed {
    display: block;
}

.components-reconnect-rejected > div {
    display: none;
}

.components-reconnect-rejected > .rejected {
    display: block;
}

.center-screen {
    position: absolute;
    margin: 0 auto;
    text-align: center;
    text-align: -webkit-center;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* =========================================================================
   SKINS PAR RESTAURANT
   Piloté par StoreSettings.Theme -> body[data-skin="..."] (voir site.js).
   Couche 100% additive : sans data-skin, le rendu historique est inchangé.
   ========================================================================= */
body[data-skin="ardoise"] {
    --skin-bg:#20272A; --skin-ink:#ECE7D8; --skin-ink-dim:#A7A392;
    --skin-surface-2:#1A2023; --skin-line:#3A4245;
    --skin-accent:#E0B15A; --skin-accent-fg:#20272A;
    --skin-cat-bg:#1A2023; --skin-cat-fg:#ECE7D8;
}
body[data-skin="jardin"] {
    --skin-bg:#FAFAF7; --skin-ink:#2C302E; --skin-ink-dim:#8A908C;
    --skin-surface-2:#F2F2EC; --skin-line:#E9E9E2;
    --skin-accent:#6E8B6A; --skin-accent-fg:#FFFFFF;
    --skin-cat-bg:#F2F2EC; --skin-cat-fg:#2C302E;
}
body[data-skin="cave"] {
    --skin-bg:#22151A; --skin-ink:#EBE0D6; --skin-ink-dim:#A08D86;
    --skin-surface-2:#2B1B22; --skin-line:#3A2A30;
    --skin-accent:#C5824F; --skin-accent-fg:#22151A;
    --skin-cat-bg:#2B1B22; --skin-cat-fg:#EBE0D6;
}
body[data-skin="cote"] {
    --skin-bg:#F5F1E8; --skin-ink:#213039; --skin-ink-dim:#6E7B82;
    --skin-surface-2:#EDE7D8; --skin-line:#E5DECF;
    --skin-accent:#2C6E8F; --skin-accent-fg:#FFFFFF;
    --skin-cat-bg:#EDE7D8; --skin-cat-fg:#213039;
}

/* Fond & texte */
body[data-skin] { background: var(--skin-bg); color: var(--skin-ink); }
body[data-skin] h1, body[data-skin] h2, body[data-skin] h3,
body[data-skin] h4, body[data-skin] h5, body[data-skin] h6 { color: var(--skin-ink); }

/* Boutons d'action -> accent du skin (graisse plafonnée à 600, sans glow) */
body[data-skin] .btn-add-to-cart,
body[data-skin] .btn-validate-order,
body[data-skin] .btn-back-to-menu,
body[data-skin] .btn-pay {
    background: var(--skin-accent); color: var(--skin-accent-fg);
    font-weight: 600; box-shadow: none;
}
body[data-skin] .btn-back-to-menu-icon {
    background: var(--skin-surface-2); color: var(--skin-accent); border-color: var(--skin-accent);
}
/* "Ajouter des produits" en secondaire (contour) pour se distinguer de "Payer" (plein) */
body[data-skin] .btn-add-products {
    background: var(--skin-bg); color: var(--skin-accent);
    border: 1px solid var(--skin-accent);
    font-weight: 600; box-shadow: none;
}

/* En-tête de catégorie */
body[data-skin] .category-header { background: var(--skin-cat-bg); color: var(--skin-cat-fg); }

/* Lignes de liste (menu / produits) */
body[data-skin] .list-group-item { background: var(--skin-bg); color: var(--skin-ink); border-color: var(--skin-line); }
body[data-skin] .list-group .list-group-item-action { background: var(--skin-bg); border-bottom-color: var(--skin-line); }

/* Badge quantité + boutons flottants */
body[data-skin] .product-quantity { background: var(--skin-accent); color: var(--skin-accent-fg); }
body[data-skin] .cart-btn,
body[data-skin] .orders-btn,
body[data-skin] .menu-btn,
body[data-skin] .lock-btn { background: var(--skin-accent); box-shadow: none; }
body[data-skin] .cart-btn > *,
body[data-skin] .orders-btn > *,
body[data-skin] .menu-btn > *,
body[data-skin] .lock-btn > * { color: var(--skin-accent-fg); }

/* Champs de saisie */
body[data-skin] .form-control { background: var(--skin-surface-2); color: var(--skin-ink); }
body[data-skin] .form-control::placeholder { color: var(--skin-ink-dim); }

/* --- Typographie par skin (rappel des maquettes) : titre + corps --- */
body[data-skin="ardoise"] {
    --skin-font-title: 'Fraunces', Georgia, "Times New Roman", serif;
    --skin-font-body: 'Fraunces', Georgia, "Times New Roman", serif;
}
body[data-skin="jardin"],
body[data-skin="cave"] {
    --skin-font-title: 'Fraunces', Georgia, "Times New Roman", serif;
    --skin-font-body: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
body[data-skin="cote"] {
    --skin-font-title: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --skin-font-body: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
/* Corps de texte à la police du skin */
body[data-skin] {
    font-family: var(--skin-font-body);
}
/* Titres, noms, et montants (classes .h1-.h6, ex. "Total à payer" de la page Order) */
body[data-skin] h1,
body[data-skin] h2,
body[data-skin] h3,
body[data-skin] h4,
body[data-skin] h5,
body[data-skin] h6,
body[data-skin] .h1,
body[data-skin] .h2,
body[data-skin] .h3,
body[data-skin] .h4,
body[data-skin] .h5,
body[data-skin] .h6,
body[data-skin] .cat-title {
    font-family: var(--skin-font-title);
    font-variant-numeric: tabular-nums;
}

/* Poids des prix par thème */
body[data-skin="ardoise"] { --skin-price-weight: 600; }
body[data-skin="jardin"] { --skin-price-weight: 500; }
body[data-skin="cave"] { --skin-price-weight: 600; }
body[data-skin="cote"] { --skin-price-weight: 700; }

/* Prix du menu (strong) : accent + police & poids du thème + chiffres tabulaires */
body[data-skin] .list-group-item strong {
    color: var(--skin-accent);
    font-family: var(--skin-font-title);
    font-weight: var(--skin-price-weight, 600);
    font-variant-numeric: tabular-nums;
}

/* Titres de catégorie façon carte imprimée pour les skins serif, + filet ondulé Ardoise */
body[data-skin="ardoise"] .cat-title,
body[data-skin="cave"] .cat-title {
    font-style: italic;
    text-align: center;
}
body[data-skin="ardoise"] .cat-title::after {
    content: "";
    display: block;
    width: 90px;
    height: 7px;
    margin: 8px auto 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='90' height='7' fill='none' stroke='%23E0B15A' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M1 4 Q 11 1 22 4 T 45 4 T 68 4 T 89 4'/%3E%3C/svg%3E") no-repeat center;
}

/* Ligne de menu "carte imprimée" (Ardoise) : nom … pointillés … prix */
body[data-skin="ardoise"] .menu-line-head {
    display: flex;
    align-items: baseline;
    gap: 8px;
}
body[data-skin="ardoise"] .menu-line-head h4 {
    margin: 0;
    white-space: nowrap;
}
body[data-skin="ardoise"] .menu-line-head .menu-dots {
    flex: 1;
    border-bottom: 2px dotted var(--skin-line);
    transform: translateY(-5px);
}
body[data-skin="ardoise"] .menu-line-head strong {
    white-space: nowrap;
    color: var(--skin-accent);
    font-variant-numeric: tabular-nums;
}
body[data-skin="ardoise"] .menu-line-desc {
    font-style: italic;
    color: var(--skin-ink-dim);
    font-size: .9em;
}

/* Pilule panier ancrée (skins) : count + total, ancrée en bas à droite */
body[data-skin] .cart-bar {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    border-radius: 999px;
    background: var(--skin-accent);
    color: var(--skin-accent-fg);
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 6px 16px -8px rgba(0, 0, 0, 0.4);
    transition: transform 0.15s;
}
body[data-skin] .cart-bar:hover {
    transform: translateY(-2px);
}
body[data-skin] .cart-bar .cart-bar-count {
    background: rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    padding: 1px 9px;
    font-variant-numeric: tabular-nums;
}
body[data-skin] .cart-bar .cart-bar-total {
    font-variant-numeric: tabular-nums;
}

/* Écrans Commande / Paiement : code de sécurité mis en avant (accent + chiffres tabulaires) */
body[data-skin] .alert h1 {
    color: var(--skin-accent);
    letter-spacing: 0.1em;
    font-variant-numeric: tabular-nums;
}
/* Bandeaux "validé"/"terminé" cohérents avec le skin (le rouge d'annulation reste au défaut) */
body[data-skin] .alert-success,
body[data-skin] .alert-dark {
    background: var(--skin-surface-2);
    color: var(--skin-ink);
    border: 1px solid var(--skin-line);
    border-top: 3px solid var(--skin-accent);
}

/* Fiche produit : héros arrondi, prix en accent, catégorie en eyebrow */
body[data-skin] .product-hero-img {
    border-radius: 14px;
}
body[data-skin] .product-price {
    color: var(--skin-accent);
    font-variant-numeric: tabular-nums;
}
body[data-skin] .product-cat {
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--skin-accent);
}

/* Écran Commande : suivi de progression (Reçue -> En cuisine -> Servie) */
body[data-skin] .order-track {
    display: flex;
    align-items: center;
    padding: 28px 4px 18px;
}
body[data-skin] .order-track .order-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex: none;
    width: 72px;
}
body[data-skin] .order-track .dot {
    width: 26px;
    height: 26px;
    border-radius: 999px;
    border: 2px solid var(--skin-line);
    background: var(--skin-bg);
}
body[data-skin] .order-track .order-node.done .dot {
    background: var(--skin-accent);
    border-color: var(--skin-accent);
}
body[data-skin] .order-track .order-node.now .dot {
    border-color: var(--skin-accent);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--skin-accent) 22%, transparent);
}
body[data-skin] .order-track .order-node small {
    font-size: 0.66rem;
    color: var(--skin-ink-dim);
    text-align: center;
    line-height: 1.2;
}
body[data-skin] .order-track .order-node.done small,
body[data-skin] .order-track .order-node.now small {
    color: var(--skin-ink);
    font-weight: 600;
}
body[data-skin] .order-track .order-seg {
    flex: 1;
    height: 2px;
    background: var(--skin-line);
    margin-bottom: 20px;
}
body[data-skin] .order-track .order-seg.done {
    background: var(--skin-accent);
}

/* Fiche produit : groupes d'options (remplace les couleurs codées en dur, lisible sur skins sombres) */
body[data-skin] .subitem-separator {
    background: var(--skin-surface-2);
    color: var(--skin-ink);
}
body[data-skin] fieldset.item-fieldset {
    border-color: var(--skin-line) !important;
}
body[data-skin] legend.item-legend {
    background: var(--skin-bg);
    color: var(--skin-ink);
}
/* Séparateurs de sous-items */
body[data-skin] .subitem-separator > i {
    color: var(--skin-accent);
}

/* --- Éléments custom (barre catégories, cat-links, recherche, états) --- */
/* Barre de catégories horizontale : fond/dégradé blanc -> skin */
body[data-skin] .custom-sidebar > ul {
    background: var(--skin-surface-2);
    background-image: none;
    border-top-color: var(--skin-line) !important;
    border-bottom-color: var(--skin-line) !important;
}
/* Boutons de catégorie */
body[data-skin] .btn.cat-link,
body[data-skin] .btn.btn-outline-dark.cat-link {
    color: var(--skin-ink);
}
body[data-skin] .cat-link.active {
    color: var(--skin-accent) !important;
    border-color: var(--skin-accent) !important;
}
body[data-skin] .cat-link:not(.active):hover,
body[data-skin] .cat-link:not(.active):active {
    color: var(--skin-ink) !important;
    border-color: var(--skin-accent) !important;
    background-color: var(--skin-surface-2) !important;
}

/* Recherche : encart, résultats */
body[data-skin] .search-input {
    background-color: var(--skin-surface-2);
    border-color: var(--skin-line) !important;
}
body[data-skin] .search-results,
body[data-skin] .search-results-box {
    background: var(--skin-bg);
    border-color: var(--skin-line);
}
body[data-skin] .search-results tr > td {
    color: var(--skin-ink);
}

/* Menu latéral coulissant */
body[data-skin] .med-sidebar {
    background: var(--skin-surface-2);
    color: var(--skin-ink);
}

/* États hover / focus / active des lignes de menu (remplace les bleus clairs) */
body[data-skin] .list-group .list-group-item-action:hover,
body[data-skin] .list-group-item-action:focus,
body[data-skin] .list-group-item-action:active {
    background-color: var(--skin-surface-2);
    color: var(--skin-accent);
}

/* --- Utilitaires Bootstrap de fond/texte en dur (cassent le rendu sur skins) --- */
body[data-skin] .bg-light,
body[data-skin] .bg-white {
    background-color: var(--skin-surface-2) !important;
}
body[data-skin] .bg-secondary {
    background-color: var(--skin-surface-2) !important;
}
body[data-skin] .bg-secondary.text-white {
    color: var(--skin-ink) !important;
}

/* Tableaux (sections "Menus"/"Simples" du panier & de la commande) : texte lisible sur skins */
body[data-skin] .table {
    --bs-table-color: var(--skin-ink);
    --bs-table-bg: transparent;
    --bs-table-border-color: var(--skin-line);
    color: var(--skin-ink);
    border-color: var(--skin-line);
}
body[data-skin] .table > :not(caption) > * > * {
    color: var(--skin-ink);
    background-color: transparent;
    border-bottom-color: var(--skin-line);
}
body[data-skin] .text-muted {
    color: var(--skin-ink-dim) !important;
}

/* Calculatrice de paiement (fond noir en dur -> lisible sur skins) */
body[data-skin] .btn-calculator {
    background-color: var(--skin-surface-2);
    color: var(--skin-ink);
}
body[data-skin] .btn-calculator:hover {
    background-color: var(--skin-surface-2);
    color: var(--skin-accent);
}

/* Toasts : raccord avec le skin, liseré gauche sémantique conservé */
body[data-skin] .blazored-toast-success,
body[data-skin] .blazored-toast-info,
body[data-skin] .blazored-toast-warning,
body[data-skin] .blazored-toast-error {
    background-color: var(--skin-surface-2);
    color: var(--skin-ink);
}
body[data-skin] .blazored-toast-success,
body[data-skin] .blazored-toast-info {
    border-left: 4px solid var(--skin-accent);
}
body[data-skin] .blazored-toast-warning {
    border-left: 4px solid #d99a2b;
}
body[data-skin] .blazored-toast-error {
    border-left: 4px solid #c0392b;
}

/* --- Page Pay : boutons outline (choix/pourboire), liens steppers, inputs bordés, overlay --- */
body[data-skin] .btn-outline-dark:not(.cat-link) {
    color: var(--skin-ink);
    border-color: var(--skin-line);
}
body[data-skin] .btn-outline-dark:not(.cat-link):hover,
body[data-skin] .btn-outline-dark:not(.cat-link):focus,
body[data-skin] .btn-outline-dark:not(.cat-link).active {
    background-color: var(--skin-accent);
    border-color: var(--skin-accent);
    color: var(--skin-accent-fg);
}
/* Boutons-liens (steppers +/-) : accent pour rester visibles sur skins sombres */
body[data-skin] .btn-link,
body[data-skin] .btn-link:focus,
body[data-skin] .btn-link:hover {
    color: var(--skin-accent);
}
/* Inputs à bordure "dark" (montant, pourboire) */
body[data-skin] .border-dark {
    border-color: var(--skin-line) !important;
}
/* Voile de chargement */
body[data-skin] .overlay-spinner {
    background: color-mix(in srgb, var(--skin-bg) 72%, transparent);
}
/* Nav de la page Pay : "retour" secondaire (contour) vs "suivant" primaire (plein) */
body[data-skin] .pay-nav .btn-add-to-cart {
    background: var(--skin-bg);
    color: var(--skin-accent);
    border: 1px solid var(--skin-accent);
}
body[data-skin] .pay-nav .btn-add-to-cart:hover,
body[data-skin] .pay-nav .btn-add-to-cart:focus {
    background: var(--skin-surface-2);
    color: var(--skin-accent) !important;
    border-color: var(--skin-accent);
    box-shadow: none !important;
}
body[data-skin] .pay-nav .btn-add-products {
    background: var(--skin-accent);
    color: var(--skin-accent-fg);
    border: 1px solid var(--skin-accent);
}
body[data-skin] .pay-nav .btn-add-products:hover,
body[data-skin] .pay-nav .btn-add-products:focus {
    background: var(--skin-accent);
    color: var(--skin-accent-fg) !important;
    border-color: var(--skin-accent);
    filter: brightness(0.94);
    box-shadow: none !important;
}

/* --- Boutons : accent du skin, sans hover bleu ni glow néomorphique --- */
/* Boutons "primaires"/"dark" génériques (refresh statut, download facture, email) */
body[data-skin] .btn-primary,
body[data-skin] .btn-dark {
    background-color: var(--skin-accent);
    border-color: var(--skin-accent);
    color: var(--skin-accent-fg);
}
body[data-skin] .btn-primary:hover,
body[data-skin] .btn-primary:focus,
body[data-skin] .btn-dark:hover,
body[data-skin] .btn-dark:focus {
    background-color: var(--skin-accent);
    border-color: var(--skin-accent);
    color: var(--skin-accent-fg);
    filter: brightness(0.94);
    box-shadow: none;
}
/* Boutons d'action principaux : hover/focus -> accent, aucun glow */
body[data-skin] .btn.btn-add-to-cart:hover,
body[data-skin] .btn.btn-add-to-cart:focus,
body[data-skin] .btn.btn-validate-order:hover,
body[data-skin] .btn.btn-validate-order:focus,
body[data-skin] .btn.btn-back-to-menu:hover,
body[data-skin] .btn.btn-back-to-menu:focus,
body[data-skin] .btn-pay:hover,
body[data-skin] .btn-pay:focus {
    background: var(--skin-accent);
    color: var(--skin-accent-fg) !important;
    filter: brightness(0.94);
    box-shadow: none !important;
}
/* "Ajouter des produits" (secondaire) : hover en surface, reste distinct de "Payer" */
body[data-skin] .btn.btn-add-products:hover,
body[data-skin] .btn.btn-add-products:focus {
    background: var(--skin-surface-2);
    color: var(--skin-accent) !important;
    border-color: var(--skin-accent);
    box-shadow: none !important;
}
/* Bouton retour au menu (variante claire bordée) */
body[data-skin] .btn.btn-back-to-menu-icon:hover,
body[data-skin] .btn.btn-back-to-menu-icon:focus {
    background: var(--skin-surface-2);
    color: var(--skin-accent) !important;
    border-color: var(--skin-accent);
    box-shadow: none !important;
}
/* FABs (panier / commandes / menu / verrou) : hover sans glow */
body[data-skin] .cart-btn:hover,
body[data-skin] .orders-btn:hover,
body[data-skin] .menu-btn:hover,
body[data-skin] .lock-btn:hover {
    background: var(--skin-accent);
    filter: brightness(0.94);
    box-shadow: none;
}