/* The Panaderia : crème du livret, brun du logo, serif fine, angles droits. */
:root {
  --bg: #f2e6cc; --band: #e8d9b9; --surface: #f8efdb; --line: #dccba8; --line-strong: #a8977a;
  --ink: #2e2420; --muted: #5e5040; --subtle: #6a5a45; --brand: #511701; --brand-dark: #3b1000;
  --night: #2b2926; --night-ink: #f2e6cc; --night-muted: #c9bfb2; --good: #56643f; --bad: #8c3b2e;
  --serif: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --sans: Mulish, "Helvetica Neue", Arial, sans-serif;
  --shell: 1240px; --gutter: clamp(16px, 4vw, 40px);
  --safe-b: env(safe-area-inset-bottom, 0px);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: 3px; }
a:hover { color: var(--brand); }
:focus-visible { outline: 1px solid var(--ink); outline-offset: 4px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.15; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(36px, 5vw, 48px); }
h2 { font-size: clamp(30px, 3.6vw, 40px); margin-top: 16px; }
h3 { font-size: 26px; font-weight: 500; margin-top: 8px; }
.h-md { font-size: clamp(26px, 3vw, 32px); font-weight: 500; }
p { margin: 0; }
p + p { margin-top: 1em; }
.serif { font-family: var(--serif); }
.eyebrow { font: 700 11px/1.4 var(--sans); text-transform: uppercase; letter-spacing: .24em; color: var(--muted); margin: 0; }
.eyebrow a { text-decoration: none; }
.lead { font-size: clamp(19px, 2vw, 22px); line-height: 1.6; color: var(--muted); margin-top: 24px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.mt-m { margin-top: 16px; } .mt-l { margin-top: 32px; } .mt-xl { margin-top: 40px; }
.plain { list-style: none; margin: 0; padding: 0; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: var(--bg); padding: 10px 16px; z-index: 100; }
.skip:focus { left: 8px; }

.shell { max-width: var(--shell); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 680px; margin: 0 auto; padding: 0 var(--gutter); }
.form-shell { max-width: 560px; }
.section { padding: clamp(72px, 9vw, 112px) 0; }
.section-sm { padding: clamp(40px, 6vw, 72px) 0; }
.band { background: var(--band); }
.dark { background: var(--night); color: var(--night-ink); }
.center { text-align: center; }
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(40px, 6vw, 72px); align-items: center; }
.two.top { align-items: start; }
.three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.5vw, 32px); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 48px; }
.text-col { max-width: 460px; }
.two > .framed { max-width: 440px; justify-self: end; width: 100%; }
.text-col .muted { margin-top: 22px; line-height: 1.75; }

/* Boutons et liens */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 30px; border: 0; background: var(--brand); color: var(--night-ink);
  font: 700 11px/1 var(--sans); text-transform: uppercase; letter-spacing: .22em; text-decoration: none; cursor: pointer; transition: background-color .3s ease-out; }
.btn:hover { background: var(--brand-dark); color: var(--night-ink); }
.btn:disabled { opacity: .6; cursor: wait; }
.btn-sm { min-height: 44px; padding: 0 22px; }
.btn-light { background: var(--night-ink); color: var(--night); }
.btn-light:hover { background: #fff; color: var(--night); }
.btn-block { width: 100%; }
.tlink { display: inline-block; border-bottom: 1px solid var(--brand); padding-bottom: 4px; font: 700 11px/1.4 var(--sans); text-transform: uppercase; letter-spacing: .2em; text-decoration: none; color: var(--ink); }
.as-link { background: none; border-top: 0; border-left: 0; border-right: 0; cursor: pointer; min-height: 44px; }
.actions { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.icon-btn { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-size: 20px; cursor: pointer; }
.icon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* En-tête */
.site-header { position: relative; z-index: 10; }
.header-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 92px; }
.nav-main, .nav-side { display: flex; align-items: center; gap: 30px; }
.nav-side { justify-content: flex-end; gap: 24px; }
.nav-main a, .nav-account, .langs a { font: 700 11px/1 var(--sans); text-transform: uppercase; letter-spacing: .2em; text-decoration: none; padding: 16px 0; }
.nav-main a[aria-current] { border-bottom: 1px solid currentColor; }
.langs { display: flex; gap: 12px; }
.langs a { color: var(--subtle); }
.langs a[aria-current] { color: var(--ink); }
.brand img { height: 78px; width: auto; }
.page-home .site-header { position: absolute; left: 0; right: 0; top: 0; color: var(--night-ink); }
.on-dark .header-row { border-bottom: 1px solid rgba(242, 230, 204, .22); }
.on-dark .langs a { color: var(--night-muted); }
.on-dark .langs a[aria-current], .on-dark a:hover { color: #fff; }
.on-dark .btn { display: none; }
.nav-mobile { display: none; }

/* Haut de page « soirée » */
.hero { position: relative; background: var(--night); color: var(--night-ink); overflow: hidden; padding-top: 92px; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 55%; }
.hero::before { content: ""; position: absolute; inset: 0; background: rgba(28, 22, 18, .6); z-index: 1; }
.hero > :not(.hero-bg) { position: relative; z-index: 2; }
.hero-inner { text-align: center; padding: clamp(40px, 6vw, 64px) var(--gutter) clamp(48px, 6vw, 72px); }
.hero-inner h1 { margin-top: 20px; }
.hero-logo { height: clamp(200px, 30vw, 300px); width: auto; margin: 0 auto; }
.hero-tagline { margin: 26px auto 0; max-width: 560px; font-size: clamp(20px, 2.2vw, 24px); line-height: 1.45; }
.on-dark-muted { color: var(--night-muted); }
.on-dark-soft { color: #e0d6c6; }
.infobar { display: grid; grid-template-columns: 1.1fr 1.3fr 1fr auto; background: var(--surface); color: var(--ink); margin-bottom: 48px; }
.infobar > div { padding: 20px 28px; border-right: 1px solid var(--line); display: flex; flex-direction: column; justify-content: center; gap: 6px; }
.infobar a { text-decoration: none; }
.infobar-big { font-size: 21px; font-weight: 500; }
.infobar-btn { min-height: auto; padding: 0 36px; }
.status { display: flex; align-items: center; gap: 8px; }
.status span { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status.is-open { color: var(--good); }
.status.is-closed { color: var(--bad); }

/* Images encadrées (livret) */
.framed { display: block; border: 1px solid var(--line); background: var(--surface); padding: 14px; transition: border-color .3s ease-out; }
.framed:hover { border-color: var(--line-strong); }

/* Horaires et adresse */
table.hours { width: 100%; border-collapse: collapse; margin-top: 32px; font-size: 15px; font-variant-numeric: tabular-nums; }
.hours th, .hours td { padding: 15px 0; border-top: 1px solid var(--line); text-align: left; font-weight: 400; }
.hours td { text-align: right; }
.hours tr:last-child th, .hours tr:last-child td { border-bottom: 1px solid var(--line); }
.hours tr.today th, .hours tr.today td { font-weight: 700; background: var(--surface); padding-left: 12px; padding-right: 12px; }
.hours tr[data-closed] { color: var(--subtle); }
.visit-card { background: var(--surface); border: 1px solid var(--line); padding: clamp(24px, 4vw, 40px); }
.visit-card p + p { margin-top: 16px; }
.visit-address { font-size: 24px; line-height: 1.4; margin-top: 14px !important; }

/* Articles */
.postcard img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.postcard h3 a { text-decoration: none; }
.postcard .muted { margin-top: 12px; font-size: 15px; line-height: 1.7; }
.post-cover { width: 100%; aspect-ratio: 1200 / 630; object-fit: cover; }
.prose { font-size: 17px; line-height: 1.75; }
.prose p, .prose ul, .prose ol { margin: 0 0 1em; }
.prose h2, .prose h3 { margin: 1.4em 0 .5em; }
.prose img { margin: 1.5em 0; }

/* FAQ */
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 20px 0; font-family: var(--serif); font-size: 22px; font-weight: 500; list-style-position: outside; }
.faq .prose { padding-bottom: 20px; color: var(--muted); }

/* Livret */
.booklet { padding-bottom: 24px; }
.booklet-track { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 var(--gutter); scrollbar-width: none; }
.booklet-track::-webkit-scrollbar { display: none; }
.booklet-page { flex: 0 0 min(560px, 86vw); margin: 0; scroll-snap-align: center; border: 1px solid var(--line); background: var(--surface); padding: 12px; }
.booklet-controls { display: flex; align-items: center; justify-content: center; gap: 24px; margin-top: 20px; }
.booklet-count { font-variant-numeric: tabular-nums; min-width: 60px; text-align: center; }
.menu-text h3 { margin-top: 48px; }
.menu-text .menu-sub { margin-top: 6px; }
.menu-items { list-style: none; margin: 16px 0 0; padding: 0; }
.menu-items li { display: grid; grid-template-columns: 1fr auto; gap: 4px 24px; padding: 14px 0; border-top: 1px solid var(--line); }
.menu-items .price { font-variant-numeric: tabular-nums; white-space: nowrap; }
.menu-items .desc { grid-column: 1 / -1; font-size: 14px; color: var(--muted); }

/* Formulaires */
fieldset { border: 0; margin: 0 0 24px; padding: 0; }
legend { margin-bottom: 10px; }
.field { display: block; margin-top: 22px; }
.field input { display: block; width: 100%; margin-top: 6px; border: 0; border-bottom: 1px solid var(--line-strong); background: transparent; padding: 10px 0; font: 16px var(--sans); color: var(--ink); border-radius: 0; }
.field input:focus { outline: none; border-bottom-color: var(--ink); }
.field-row { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.stepper { display: flex; align-items: center; gap: 14px; }
.stepper output { font: 500 24px var(--serif); min-width: 24px; text-align: center; }
.chips { display: grid; gap: 6px; }
.chips-days { grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); max-height: 216px; overflow-y: auto; }
.chips-times { grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); }
.chip { min-height: 48px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: 14px var(--sans); cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 4px; }
.chip.on { background: var(--brand); border-color: var(--brand); color: var(--night-ink); }
.chip-sub { font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.form-error { color: var(--bad); margin-top: 16px; }
.panel { background: var(--surface); border: 1px solid var(--line); padding: 24px; }
.panel .actions { margin-top: 20px; }
.res-item { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; border-top: 1px solid var(--line); }
.res-when { font-size: 21px; font-weight: 500; }
.status-confirmed { color: var(--good); } .status-cancelled { color: var(--bad); }

/* Pied de page */
.site-footer { background: var(--night); color: var(--night-ink); padding: 72px 0 calc(32px + var(--safe-b)); font-size: 14px; line-height: 1.8; }
.site-footer .eyebrow { color: var(--night-muted); }
.site-footer a:hover { color: #fff; }
.footer-logo { width: 120px; height: auto; }
.footer-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.footer-grid .eyebrow { margin-bottom: 12px; }
.footer-grid a { text-decoration: none; }
.footer-bottom { margin-top: 56px; padding-top: 22px; border-top: 1px solid rgba(242, 230, 204, .2); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--night-muted); }
.footer-bottom nav { display: flex; gap: 8px 24px; flex-wrap: wrap; }

/* Barre d'onglets : seulement dans l'app installée */
.tabbar { display: none; }
@media (display-mode: standalone) {
  .tabbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: var(--surface); border-top: 1px solid var(--line); padding: 4px 8px calc(6px + var(--safe-b)); }
  .tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 56px; text-decoration: none; font: 700 10px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--subtle); }
  .tabbar a[aria-current] { color: var(--brand); }
  .tabbar svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
  body { padding-bottom: calc(66px + var(--safe-b)); }
  .site-header { padding-top: env(safe-area-inset-top, 0px); }
  .nav-mobile, .site-footer .footer-grid { display: none !important; }
}

@media (max-width: 900px) {
  .two, .three, .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .three { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .framed { padding: 6px; }
  .header-row { grid-template-columns: auto 1fr auto; min-height: 72px; }
  .nav-main, .nav-side { display: none; }
  .brand img { height: 56px; }
  .page-home .site-header .brand { display: none; }
  .hero { padding-top: 72px; }
  .infobar { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 24px; }
  .infobar > div { border-right: 0; border-bottom: 1px solid var(--line); padding: 14px 18px; }
  .infobar > div:nth-child(2) { grid-column: 1 / -1; order: 3; }
  .infobar > div:nth-child(3) { border-left: 1px solid var(--line); }
  .infobar-big { font-size: 19px; }
  .infobar-btn { min-height: 52px; grid-column: 1 / -1; order: 4; }
  .nav-mobile { display: block; grid-column: 3; }
  .nav-mobile summary { list-style: none; width: 44px; height: 44px; display: flex; flex-direction: column; justify-content: center; gap: 7px; cursor: pointer; }
  .nav-mobile summary::-webkit-details-marker { display: none; }
  .nav-mobile summary span { display: block; height: 1px; background: currentColor; }
  .nav-mobile-panel { position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); color: var(--ink); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 24px; display: flex; flex-direction: column; }
  .nav-mobile-panel > a { font-family: var(--serif); font-size: 24px; text-decoration: none; padding: 10px 0; border-bottom: 1px solid var(--line); }
  .nav-mobile-panel .langs { margin-top: 16px; }
  .nav-mobile-panel .langs a { color: var(--subtle); text-transform: none; letter-spacing: 0; font-size: 15px; padding: 10px 0; }
  .nav-mobile-panel .langs a[aria-current] { color: var(--ink); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
