/* polices hébergées sur le site (licence SIL Open Font License), sous-ensemble latin */
@font-face { font-family: "Alfa Slab One"; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/alfa-slab-one-400.woff2) format("woff2"); }
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 400 700; font-display: swap; src: url(fonts/archivo-variable.woff2) format("woff2"); }
@font-face { font-family: "Kalam"; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/kalam-400.woff2) format("woff2"); }
@font-face { font-family: "Kalam"; font-style: normal; font-weight: 700; font-display: swap; src: url(fonts/kalam-700.woff2) format("woff2"); }

:root {
  --paper: #f4ead8;
  --paper-2: #ebdec6;
  --ink: #2a1d14;
  --brown: #6b3a22;
  --navy: #1e2a44;
  --navy-2: #2a3a5c;
  --brick: #b23a2a;
  --green: #4f6b2e;
  --fry: #f2b632;
  --line: #d6c6a8;
  --top-h: 56px;
  --dock-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--top-h) + 56px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.5 "Archivo", system-ui, sans-serif;
  padding-bottom: calc(var(--dock-h) + env(safe-area-inset-bottom));
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 400; }
h2 { font-family: "Alfa Slab One", Georgia, serif; font-size: 2rem; line-height: 1.1; color: var(--brown); }
.wrap { max-width: 720px; margin: 0 auto; padding: 0 16px; }
.small { font-size: .875rem; color: #6d5b4b; }

/* barre du haut */
.top {
  position: sticky; top: 0; z-index: 20;
  height: var(--top-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 16px;
  background: var(--navy); color: var(--paper);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: "Alfa Slab One", Georgia, serif; font-size: 1.25rem; }
.mark { width: 36px; height: 36px; color: var(--paper); }
.status { margin: 0; display: flex; align-items: center; gap: 8px; font-size: .8125rem; font-weight: 500; }
.status i { width: 9px; height: 9px; border-radius: 50%; background: #8a8a8a; flex: none; }
.status.open i { background: #5fd17a; box-shadow: 0 0 0 0 rgba(95,209,122,.6); animation: pulse 2s infinite; }
.status.soon i { background: var(--fry); }
.status.closed i { background: #e2665a; }
@keyframes pulse { 70% { box-shadow: 0 0 0 7px rgba(95,209,122,0); } 100% { box-shadow: 0 0 0 0 rgba(95,209,122,0); } }

/* hero */
.hero img { width: 100%; aspect-ratio: 800 / 520; object-fit: cover; }
.hero-txt { max-width: 720px; margin: 0 auto; padding: 22px 16px 30px; }
.kicker { display: block; margin: 0 0 8px; line-height: 1.3; font-family: "Kalam", cursive; font-size: 1.15rem; color: var(--brick); }
.hero h1 { font-family: "Alfa Slab One", Georgia, serif; font-size: clamp(2rem, 9vw, 3.4rem); line-height: 1.02; color: var(--brown); }
.lede { margin: 14px 0 22px; font-size: 1.0625rem; max-width: 34ch; }
.hero-cta { display: flex; flex-direction: column; gap: 10px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 0 20px;
  border-radius: 6px; text-decoration: none; font-weight: 700; font-size: 1rem;
  border: 2px solid var(--navy);
  transition: transform .12s ease, background .2s;
}
.btn:active { transform: scale(.98); }
.btn-main { background: var(--navy); color: var(--paper); }
.btn-ghost { background: transparent; color: var(--navy); }

/* bandeau frites */
.band {
  margin: 0; padding: 18px 16px;
  background: var(--navy); color: var(--paper);
  font-family: "Kalam", cursive; font-size: 1.25rem; line-height: 1.3; text-align: center;
}
.band span { color: var(--fry); }

/* carte */
.carte { padding: 44px 0 30px; }
.sub { margin: 6px 0 18px; font-family: "Kalam", cursive; font-size: 1.15rem; color: #6d5b4b; }

.tabs {
  position: sticky; top: var(--top-h); z-index: 10;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.tabs-in {
  max-width: 720px; margin: 0 auto;
  display: flex; gap: 6px; overflow-x: auto; padding: 10px 16px;
  scrollbar-width: none; scroll-snap-type: x proximity;
}
.tabs-in::-webkit-scrollbar { display: none; }
.tabs button {
  flex: none; scroll-snap-align: start;
  font: 500 .9375rem "Archivo", sans-serif;
  padding: 9px 14px; border-radius: 99px;
  border: 1.5px solid var(--line); background: transparent; color: var(--ink);
  cursor: pointer;
}
.tabs button[aria-selected="true"] { background: var(--brown); border-color: var(--brown); color: var(--paper); }

.panels { padding-top: 20px; }
.panel { animation: rise .25s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.hint { margin: 0 0 14px; font-size: .9375rem; color: #6d5b4b; }
.base { font-family: "Alfa Slab One", Georgia, serif; font-size: 1.15rem; margin: 22px 0 4px; }
.base-tomate { color: var(--brick); }
.base-creme { color: var(--green); }
.base:not(.base-tomate):not(.base-creme) { color: var(--brown); }
.tag { display: inline-block; vertical-align: 2px; margin-left: 4px; padding: 2px 7px; border-radius: 4px; background: var(--brick); color: #fff; font-size: .6875rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.panel > .base:first-of-type { margin-top: 0; }

.howto {
  margin: 0 0 22px; padding: 12px 14px;
  background: #fff7e3; border: 1.5px dashed var(--fry); border-radius: 8px;
  font-size: .9375rem;
}
.list { list-style: none; margin: 0; padding: 0; }
.list li {
  display: grid; grid-template-columns: 1fr auto; column-gap: 12px; align-items: start;
  padding: 14px 0; border-bottom: 1px dashed var(--line);
}
.it-name { font-weight: 700; font-size: 1.0625rem; padding-top: 6px; }
.base-tomate + .list .it-name { color: var(--brick); }
.base-creme + .list .it-name { color: var(--green); }
.it-desc { grid-column: 1 / -1; grid-row: 2; font-size: .9375rem; color: #5b4a3c; margin-top: 2px; }
.picks { display: grid; gap: 8px; }
.picks-1 { grid-column: 2; grid-row: 1; }
.picks-2, .picks-3 { grid-column: 1 / -1; grid-row: 3; margin-top: 10px; }
.picks-2 { grid-template-columns: 1fr 1fr; }
.picks-3 { grid-template-columns: 1fr 1fr 1fr; }

/* bouton prix = ajouter au panier */
.pick {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 44px; padding: 6px 30px 6px 12px;
  border: 2px solid var(--navy); border-radius: 8px;
  background: #fff; color: var(--navy);
  font: inherit; cursor: pointer; line-height: 1.15;
  -webkit-tap-highlight-color: transparent;
  transition: transform .1s ease, background .15s, color .15s;
}
.picks-2 .pick, .picks-3 .pick { padding: 7px 24px 7px 8px; min-height: 54px; }
.pick small { font-size: .75rem; font-weight: 500; text-transform: uppercase; letter-spacing: .04em; opacity: .75; }
.pick span { font-size: 1.1875rem; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pick i {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--brick); color: #fff;
  font: 700 15px/20px "Archivo", sans-serif; font-style: normal; text-align: center;
}
.pick:active { transform: scale(.95); }
.pick-nc span { font-size: .8125rem; font-weight: 500; }
.pick.in { background: var(--navy); color: var(--paper); }
.pick.in i { background: var(--fry); color: var(--navy); }
.pick.in::after {
  content: attr(data-q); position: absolute; top: -8px; left: -6px;
  min-width: 20px; height: 20px; padding: 0 5px; border-radius: 99px;
  background: var(--brick); color: #fff; font: 700 12px/20px "Archivo", sans-serif;
}
@media (hover: hover) { .pick:hover { background: #eef0f5; } .pick.in:hover { background: var(--navy-2); } }

.inline-pic { margin: 22px 0 0; }
.inline-pic img { border-radius: 6px; width: 100%; }
.inline-pic figcaption { font-family: "Kalam", cursive; font-size: 1.05rem; color: var(--brown); margin-top: 6px; }
.note { margin: 16px 0 0; font-size: .875rem; color: #6d5b4b; }
.euro { margin: 26px 0 0; font-size: .8125rem; color: #8a7663; }


/* photos */
.photos { padding: 30px 0 40px; background: var(--paper-2); }
.photos h2 { margin-bottom: 4px; }
.swipe { margin: 0 0 14px; font-family: "Kalam", cursive; font-size: 1.05rem; color: #6d5b4b; }
.strip {
  display: flex; gap: 10px; overflow-x: auto; padding: 0 16px 6px;
  scroll-snap-type: x mandatory; scrollbar-width: none;
}
.strip::-webkit-scrollbar { display: none; }
.strip img { flex: none; width: 82%; max-width: 440px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; scroll-snap-align: center; }

/* à propos + questions */
.about { padding: 40px 0 10px; border-top: 1px solid var(--line); }
.about h2, .faq h2 { margin-bottom: 14px; }
.about p { margin: 0 0 12px; font-size: 1.0625rem; max-width: 62ch; }
.about a { font-weight: 700; color: var(--brick); }
.faq { padding: 24px 0 48px; }
.faq details { border-bottom: 1px dashed var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 15px 34px 15px 0; position: relative;
  font-weight: 700; font-size: 1.0625rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 11px; font: 400 1.6rem/1 "Archivo", sans-serif; color: var(--brick); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 16px; color: #4a3b2f; max-width: 62ch; }
address { font-style: normal; }

/* infos */
.infos { padding: 44px 0 50px; }
.infos h2 { margin-bottom: 20px; }
.grid { display: grid; gap: 14px; }
.shopfront { margin: 0 0 16px; }
.shopfront img { width: 100%; border-radius: 8px; aspect-ratio: 4 / 3; object-fit: cover; }
.shopfront figcaption { font-family: "Kalam", cursive; font-size: 1.05rem; color: var(--brown); margin-top: 6px; }
.card { background: #fbf5ea; border: 1px solid var(--line); border-radius: 8px; padding: 18px; }
.card h3 { font-family: "Alfa Slab One", Georgia, serif; font-size: 1.15rem; color: var(--brown); margin-bottom: 10px; }
.hours { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.hours th, .hours td { padding: 7px 0; text-align: left; vertical-align: top; border-bottom: 1px solid #eadfcb; font-size: .9375rem; }
.hours th { font-weight: 500; }
.hours td { text-align: right; }
.hours tr.today th, .hours tr.today td { font-weight: 700; color: var(--brick); }
.hours tr.today th::after { content: " · aujourd'hui"; font-weight: 400; font-family: "Kalam", cursive; }
.addr { font-size: 1.25rem; font-weight: 700; margin: 0 0 6px; }
.row-btn { display: flex; gap: 10px; margin-top: 14px; }
.row-btn .btn { flex: 1; }
.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li { padding: 6px 0 6px 26px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 13px; width: 12px; height: 6px; border-left: 2.5px solid var(--green); border-bottom: 2.5px solid var(--green); transform: rotate(-45deg); }

.map { margin-top: 14px; border-radius: 8px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--paper-2); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-consent { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 20px; text-align: center; }
.map-consent p { margin: 0; max-width: 40ch; font-size: .9375rem; }
.foot-legal { margin-top: 18px !important; }
.foot-legal a { color: inherit; }

/* page des mentions légales */
.legal { padding: 34px 0 40px; }
.legal h1 { font-family: "Alfa Slab One", Georgia, serif; font-size: 2rem; line-height: 1.1; color: var(--brown); margin-bottom: 18px; }
.legal h2 { font-size: 1.35rem; margin: 28px 0 8px; }
.legal p, .legal li { max-width: 62ch; }
.legal a:not(.btn) { color: var(--brick); font-weight: 700; }
.legal .todo { background: var(--fry); color: var(--navy); padding: 0 4px; border-radius: 3px; }

/* pied */
.foot { background: var(--navy); color: var(--paper); padding: 34px 0 30px; }
.foot p { margin: 0 0 8px; }
.foot .small { color: #b7bfd0; }
.foot-big { font-family: "Alfa Slab One", Georgia, serif; font-size: 2.2rem; line-height: 1; margin-bottom: 14px !important; }
.foot-big span { display: block; font-family: "Kalam", cursive; font-size: 1.2rem; color: var(--fry); margin-top: 4px; }

/* barre d'actions mobile */
.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr;
  height: calc(var(--dock-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: var(--paper); border-top: 1px solid var(--line);
  box-shadow: 0 -4px 18px rgba(42,29,20,.08);
}
.dock a, .dock button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; text-decoration: none; font-size: .78rem; font-weight: 700; color: var(--navy); }
.dock svg { width: 22px; height: 22px; }
.dock button { border: 0; background: none; font-family: inherit; cursor: pointer; padding: 0; }
.dock .dock-cart { background: var(--navy); color: var(--paper); font-size: .85rem; }
.cart-ico { position: relative; display: block; }
.cart-count {
  position: absolute; top: -6px; right: -12px;
  min-width: 19px; height: 19px; padding: 0 5px; border-radius: 99px;
  background: var(--fry); color: var(--navy); font: 700 11px/19px "Archivo", sans-serif;
}
.bump { animation: bump .35s ease; }
@keyframes bump { 40% { transform: scale(1.08); } }
.dock .dock-call { background: var(--brick); color: #fff; font-size: .9rem; flex-direction: row; gap: 8px; }

/* bouton commande sur ordinateur */
.fab { display: none; }

/* tiroir de commande */
.sheet { position: fixed; inset: 0; z-index: 50; }
.sheet-bg { position: absolute; inset: 0; background: rgba(20,16,12,.5); opacity: 0; transition: opacity .2s; }
.sheet-box {
  position: absolute; left: 0; right: 0; bottom: 0;
  max-height: 88vh; display: flex; flex-direction: column;
  background: var(--paper); border-radius: 16px 16px 0 0;
  transform: translateY(100%); transition: transform .22s ease;
  padding-bottom: env(safe-area-inset-bottom);
}
.sheet.on .sheet-bg { opacity: 1; }
.sheet.on .sheet-box { transform: none; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 16px 10px; }
.sheet-head h2 { font-size: 1.6rem; }
.sheet-x { width: 44px; height: 44px; border: 0; background: var(--paper-2); border-radius: 50%; font-size: 1.6rem; line-height: 1; color: var(--ink); cursor: pointer; }
.sheet-body { overflow-y: auto; padding: 0 16px; flex: 1; overscroll-behavior: contain; }
.sheet-empty { color: #6d5b4b; margin: 8px 0 18px; }
.cart-list { list-style: none; margin: 0; padding: 0; }
.cart-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.cl-txt b { display: block; font-size: 1rem; }
.cl-txt span { font-size: .9375rem; color: #5b4a3c; font-variant-numeric: tabular-nums; }
.qty { display: flex; align-items: center; gap: 4px; flex: none; }
.qty button { width: 38px; height: 38px; border-radius: 50%; border: 2px solid var(--navy); background: #fff; color: var(--navy); font: 700 1.2rem/1 "Archivo", sans-serif; cursor: pointer; }
.qty output { min-width: 26px; text-align: center; font-weight: 700; font-size: 1.05rem; }
.sheet-foot { padding: 14px 16px 16px; border-top: 1px solid var(--line); background: #fbf5ea; }
.cart-total { display: flex; justify-content: space-between; align-items: baseline; margin: 0; }
.cart-total span { font-weight: 500; }
.cart-total b { font-family: "Alfa Slab One", Georgia, serif; font-weight: 400; font-size: 1.7rem; color: var(--brick); }
.cart-extra { margin: 2px 0 0; font-size: .875rem; color: #6d5b4b; text-align: right; }
.btn-call { width: 100%; margin-top: 12px; background: var(--brick); border-color: var(--brick); color: #fff; font-size: 1.05rem; }
.sheet-tools { display: flex; justify-content: space-between; margin-top: 8px; }
.sheet-tools button { border: 0; background: none; padding: 10px 2px; font: 500 .9375rem "Archivo", sans-serif; color: var(--navy); text-decoration: underline; cursor: pointer; }
.sheet-note { margin: 4px 0 0; font-size: .8125rem; color: #6d5b4b; }
.sheet-foot.is-empty .cart-total, .sheet-foot.is-empty .sheet-tools { display: none; }

/* message « ajouté » */
.toast {
  position: fixed; left: 50%; bottom: calc(var(--dock-h) + env(safe-area-inset-bottom) + 12px); z-index: 40;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  margin: 0; padding: 10px 16px; max-width: calc(100% - 32px);
  background: var(--ink); color: var(--paper); border-radius: 99px;
  font-size: .9375rem; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: opacity .2s, transform .2s;
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* écrans larges */
@media (min-width: 760px) {
  body { padding-bottom: 0; }
  .dock { display: none; }
  .fab:not([hidden]) {
    display: block; position: fixed; right: 24px; bottom: 24px; z-index: 40;
    padding: 16px 22px; border: 0; border-radius: 99px;
    background: var(--brick); color: #fff; font: 700 1rem "Archivo", sans-serif; cursor: pointer;
    box-shadow: 0 8px 24px rgba(42,29,20,.25);
  }
  .toast { bottom: 90px; }
  .sheet-box { left: auto; top: 0; width: 420px; max-height: none; border-radius: 0; transform: translateX(100%); }
  .hero { display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; max-width: 1180px; margin: 0 auto; padding: 40px 24px 50px; gap: 40px; }
  .hero img { border-radius: 8px; }
  .hero-txt { padding: 0; }
  .hero-cta { flex-direction: row; }
  .grid { grid-template-columns: repeat(3, 1fr); }
  .infos .wrap { max-width: 1080px; }
  .strip { padding: 0 max(24px, calc((100vw - 1080px) / 2)) 10px; scrollbar-width: thin; }
  .strip::-webkit-scrollbar { display: block; height: 6px; }
  .strip::-webkit-scrollbar-thumb { background: var(--line); border-radius: 3px; }
  .strip img { width: 300px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .panel, .status.open i { animation: none; }
}
