/* ============================================================
   La carte en ligne (vue convive). Le modèle choisi garde ses
   couleurs ; seule la barre du haut et le pied sont à nous, en
   tons neutres pour ne jamais jurer avec la carte.
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 118px; -webkit-text-size-adjust: 100%; }
body.carte-page {
    margin: 0; min-height: 100vh; display: flex; flex-direction: column;
    background: #efe6d3; color: #2b2426;
    font-family: 'Work Sans', ui-sans-serif, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    -webkit-font-smoothing: antialiased;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.carte-exemple {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .35rem .9rem;
    padding: .6rem 1rem; background: #b23a22; color: #fff9f3; font-size: .85rem; text-align: center;
}
.carte-exemple a { color: #fff9f3; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

.carte-barre {
    position: sticky; top: 0; z-index: 20;
    background: rgba(251, 246, 234, .92);
    -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
    border-bottom: 1px solid rgba(60, 40, 40, .1);
}
.carte-barre__haut { display: flex; align-items: center; justify-content: space-between; gap: 1rem; max-width: 860px; margin: 0 auto; padding: .7rem 16px .35rem; }
.carte-barre__nom { font-family: 'Young Serif', Georgia, serif; font-size: 1.45rem; line-height: 1.15; color: #1b2f55; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.carte-barre__action { flex-shrink: 0; width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; border: 1px solid rgba(60, 40, 40, .15); color: #1b2f55; }

.carte-rubriques { display: flex; gap: .45rem; max-width: 860px; margin: 0 auto; padding: .3rem 16px .7rem; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.carte-rubriques::-webkit-scrollbar { display: none; }
.carte-rubriques a {
    flex-shrink: 0; padding: .42rem .9rem; border-radius: 99px;
    background: #fff; border: 1px solid rgba(60, 40, 40, .12);
    color: #372d30; font-size: .85rem; font-weight: 600; text-decoration: none; white-space: nowrap;
    transition: background-color .2s, color .2s, border-color .2s;
}
.carte-rubriques a.is-active { background: #1b2f55; border-color: #1b2f55; color: #fbf7f1; }
.carte-rubriques:empty { display: none; }

.carte-feuille { flex: 1; width: 100%; max-width: 860px; margin: 0 auto; padding: 18px 12px 8px; }
.carte-rendu .menu-template { border-radius: 14px; box-shadow: 0 18px 50px -24px rgba(45, 25, 30, .45); animation: carte-entree .6s cubic-bezier(.22, 1, .36, 1) both; }
@keyframes carte-entree { from { opacity: 0; transform: translateY(12px); } }
@media (max-width: 560px) {
    .carte-feuille { padding: 0; }
    .carte-rendu .menu-template { border-radius: 0; box-shadow: none; }
}

/* Plats épuisés pendant le service */
.menu-item--epuise { opacity: .5; }
.menu-item--epuise .menu-item-name > span:first-child,
.menu-item--epuise .menu-item-price { text-decoration: line-through; text-decoration-thickness: 1.5px; }
.menu-item-epuise {
    display: inline-block; margin-left: .55em; padding: .1em .55em; border-radius: 99px;
    background: #b23a22; color: #fff9f3; text-decoration: none;
    font: 700 .62rem/1.5 'Work Sans', -apple-system, sans-serif; letter-spacing: .07em; text-transform: uppercase; vertical-align: middle;
}

.carte-pied { max-width: 860px; margin: 0 auto; padding: 18px 16px 34px; text-align: center; font-size: .82rem; line-height: 1.55; color: #5e5356; }
.carte-pied p { margin: 0 0 .7rem; }
.carte-pied__actions { display: flex; justify-content: center; gap: .6rem; }
.carte-pied__actions a { padding: .55rem 1.1rem; border-radius: 12px; background: #fff; border: 1px solid rgba(60, 40, 40, .15); color: #1b2f55; font-weight: 700; text-decoration: none; }
.carte-pied__mention a { color: #b23a22; font-weight: 700; }

.carte-pause { flex: 1; display: grid; place-items: center; padding: 24px 16px; }
.carte-pause__boite { max-width: 440px; text-align: center; background: #fffdf9; border: 1px solid #e6dccd; border-radius: 18px; padding: 34px 26px; }
.carte-pause__resto { margin: 0 0 .5rem; font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #8a5a0f; }
.carte-pause h1 { margin: 0 0 .7rem; font-family: 'Young Serif', Georgia, serif; font-weight: 400; font-size: 2rem; line-height: 1.15; color: #1b2f55; }
.carte-pause p { margin: 0; color: #4f4447; line-height: 1.6; }
