/* Levain & Torréfaction — thème chaleureux : crème, brun torréfié, terracotta.
   Contrastes vérifiés AA : texte #2b1d14 sur crème ≈ 15:1, blanc sur terracotta ≈ 5,9:1. */
:root {
  --primary: #a2401c;        /* terracotta */
  --on-primary: #fff;
  --accent: #d99a3d;         /* miel / croûte dorée */
  --bg: #fbf6ee;             /* crème */
  --bg-alt: #f2e8d8;
  --surface: #fffdf9;
  --text: #2b1d14;           /* brun torréfié */
  --muted: #5e4a3b;
  --line: #e4d6c1;
  --radius: 18px;
  --font-title: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --shadow: 0 1px 2px rgba(60, 35, 15, .06), 0 10px 28px rgba(60, 35, 15, .09);
}
h1, h2, h3 { font-weight: 600; letter-spacing: -.01em; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.brand__mark { background: var(--text); color: #f6d9a8; border-radius: 50%; }
.brand__mark .ico { width: 21px; height: 21px; }
.btn--small { min-height: 42px; padding: .45rem .95rem; font-size: .9rem; background: var(--text); color: #fff; }
.btn--small:hover { background: var(--primary); }
.btn--lg { min-height: 56px; padding: .8rem 1.5rem; font-size: 1.04rem; }

/* --- Hero plein écran ------------------------------------------------------ */
.hero { position: relative; display: grid; align-items: end; min-height: calc(100svh - var(--header-h)); color: #fff; overflow: hidden; isolation: isolate; }
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; animation: slowzoom 18s var(--ease) both; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(25, 14, 6, .25) 0%, rgba(25, 14, 6, .55) 45%, rgba(25, 14, 6, .88) 100%); }
@keyframes slowzoom { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero__content { padding: 4rem 0 clamp(3rem, 8vh, 6rem); max-width: 50rem; margin-left: max(1.25rem, (100% - var(--container)) / 2); }
.hero h1 { font-size: clamp(2.3rem, 6vw, 4.4rem); margin: .4rem 0 1rem; }
.hero__kicker { margin: 0; font-size: .82rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #f6d9a8; }
.hero__lead { font-size: clamp(1.05rem, 1.8vw, 1.25rem); max-width: 40rem; color: #f5ece0; }
.hero__rating { display: flex; align-items: center; gap: .6rem; margin: 1.5rem 0 0; font-size: .92rem; color: #f5ece0; }
.hero .btn--light { color: var(--text); }

/* Statut ouvert / fermé */
.status { display: inline-flex; align-items: center; gap: .55rem; margin: 0 0 1rem; padding: .45rem .95rem; border-radius: 999px; font-weight: 700; font-size: .92rem; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .35); backdrop-filter: blur(6px); }
.status__dot { width: 10px; height: 10px; border-radius: 50%; background: #e2675a; }
.status.is-open .status__dot { background: #5fd38a; box-shadow: 0 0 0 0 rgba(95, 211, 138, .7); animation: breathe 2s infinite; }
@keyframes breathe { 70% { box-shadow: 0 0 0 9px rgba(95, 211, 138, 0); } 100% { box-shadow: 0 0 0 0 rgba(95, 211, 138, 0); } }
.status--inline { background: var(--surface); border-color: var(--line); color: var(--text); backdrop-filter: none; }
.status--inline .status__dot { background: #b3261e; }
.status--inline.is-open .status__dot { background: #1e8a4c; }

/* --- Carte -------------------------------------------------------------------- */
.menu__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.diets { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; }
.diets__label { display: inline-flex; align-items: center; gap: .35rem; font-weight: 600; font-size: .9rem; color: var(--muted); }
.chip--diet[aria-pressed="true"] { background: #2f6b3a; border-color: #2f6b3a; color: #fff; }
.products { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
@media (min-width: 860px) { .products { grid-template-columns: 1fr 1fr; } }
.product { display: flex; flex-direction: column; gap: .4rem; padding: 1.2rem 1.3rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .2s, box-shadow .2s; }
.product:hover { border-color: #cdb595; box-shadow: var(--shadow); }
.product__head { display: flex; align-items: baseline; gap: 1rem; }
.product__head h4 { flex: 1; margin: 0; font-family: var(--font-title); font-size: 1.15rem; font-weight: 600; }
.product__head::after { content: none; }
.product__price { font-weight: 800; color: var(--primary); white-space: nowrap; }
.product__desc { margin: 0; color: var(--muted); font-size: .95rem; }
.product__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-top: auto; padding-top: .4rem; }
.product__allergens { display: flex; gap: .35rem; align-items: center; margin: .35rem 0 0; font-size: .8rem; color: var(--muted); }
.product__allergens .ico { width: 1rem; height: 1rem; }
.product__onsite { font-size: .8rem; font-weight: 600; color: var(--muted); white-space: nowrap; }
.tags { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .3rem; }
.tag { padding: .12rem .55rem; border-radius: 999px; font-size: .74rem; font-weight: 700; background: #e7efe2; color: #2a5a32; }
.tag--sans-gluten { background: #fbead0; color: #7a4708; }
.tag--vegan { background: #dcefe3; color: #1d5a35; }
.products__empty { padding: 1.5rem; text-align: center; color: var(--muted); background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); }

/* --- Commande & réservation ---------------------------------------------------- */
.order { display: grid; gap: 1.5rem; align-items: start; }
@media (min-width: 980px) { .order { grid-template-columns: 1.05fr .95fr; } }
.order h3 { display: flex; align-items: center; gap: .5rem; margin: 0; font-size: 1.35rem; }
.cart { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.cart__line { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: .75rem; padding: .6rem 0; border-bottom: 1px solid var(--line); }
.cart__name small { display: block; color: var(--muted); font-size: .8rem; }
.cart__sub { font-weight: 700; min-width: 4.5rem; text-align: right; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; }
.qty__btn { width: 40px; height: 40px; border: 0; background: transparent; font-size: 1.2rem; font-weight: 700; cursor: pointer; border-radius: 50%; }
.qty__btn:hover { background: var(--bg-alt); }
.qty output { min-width: 1.6rem; text-align: center; font-weight: 700; }
.cart__empty { display: flex; gap: .6rem; align-items: center; margin: 0; padding: 1rem; border-radius: 12px; background: var(--bg-alt); color: var(--muted); }
.cart__total { display: flex; justify-content: space-between; align-items: baseline; margin: 0; font-size: 1.05rem; }
.cart__total strong { font-size: 1.5rem; font-family: var(--font-title); color: var(--primary); }

.cart-fab { position: fixed; right: 1rem; bottom: 1.25rem; z-index: 44; display: none; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: var(--primary); color: #fff; box-shadow: 0 10px 26px rgba(120, 45, 15, .4); }
.cart-fab .ico { width: 1.5rem; height: 1.5rem; }
.cart-fab__n { position: absolute; top: -4px; right: -4px; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 999px; background: var(--text); color: #fff; font-size: .8rem; font-weight: 800; display: grid; place-items: center; }
@media (min-width: 960px) { .cart-fab { display: grid; } }

.toast { position: fixed; left: 50%; bottom: 6rem; z-index: 60; transform: translate(-50%, 20px); margin: 0; padding: .7rem 1.1rem; border-radius: 999px; background: var(--text); color: #fff; font-weight: 600; opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
@media (min-width: 960px) { .toast { bottom: 2rem; } }

/* --- Savoir-faire ------------------------------------------------------------------ */
.pledge { padding: 1.4rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.pledge__icon { display: grid; place-items: center; width: 50px; height: 50px; margin-bottom: .9rem; border-radius: 50%; background: #f6e3c6; color: var(--primary); }
.pledge p { margin: 0; color: var(--muted); font-size: .95rem; }
.gallery { list-style: none; padding: 0; margin: 2.5rem 0 0; columns: 2 220px; column-gap: 1rem; }
.gallery li { break-inside: avoid; margin-bottom: 1rem; }
.gallery a { position: relative; display: block; overflow: hidden; border-radius: var(--radius); }
.gallery img { width: 100%; transition: transform .6s var(--ease); }
.gallery a:hover img { transform: scale(1.05); }
.gallery__cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 2rem .9rem .8rem; color: #fff; font-size: .9rem; font-weight: 600; background: linear-gradient(transparent, rgba(25, 14, 6, .8)); }
@media (min-width: 900px) { .gallery { columns: 3; } }
.quotes { display: grid; gap: 1rem; margin-top: 2.5rem; }
@media (min-width: 900px) { .quotes { grid-template-columns: repeat(3, 1fr); } }
.quote-card { margin: 0; padding: 1.4rem; border-radius: var(--radius); background: var(--bg-alt); }
.quote-card p { font-family: var(--font-title); font-size: 1.08rem; margin: .6rem 0; }
.quote-card footer { color: var(--muted); font-size: .9rem; }

/* --- Accès --------------------------------------------------------------------- */
.access { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 960px) { .access { grid-template-columns: 1fr 1fr; } }
.access__addr { display: flex; gap: .7rem; margin: 1.5rem 0; font-style: normal; }
.access__addr .ico { color: var(--primary); margin-top: .2rem; }
.access__list { margin-top: 1.5rem; }

.site-footer { background: #24170f; }
.footer-brand { font-family: var(--font-title); font-size: 1.4rem; color: #fff; }

/* Mobile : les colonnes de grille et la barre d'onglets restent dans la largeur de l'écran */
.order > *, .menu__bar > * { min-width: 0; max-width: 100%; }
.order .form > * { min-width: 0; }
.order h3 { flex-wrap: wrap; }
