/* =========================================================
   Maison Léontine
   Charte reprise de la carte papier et de l'Instagram :
   crème, terracotta, titres en capitales espacées, texte serif.
   ========================================================= */

:root {
  --terra: #CC553D;
  --terra-dark: #A9412C;
  --cream: #FAF8D1;
  --paper: #FBF9E4;
  --ink: #2E1D16;
  --ink-soft: #6B4E43;
  --rule: #CC553D;
  --serif: "EB Garamond", Garamond, Georgia, serif;
  --sans: "Jost", "Futura", "Century Gothic", system-ui, sans-serif;
  --max: 1160px;
  --gutter: clamp(16px, 4.5vw, 48px);
  --header: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(17px, 1.1vw + 12px, 19px);
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* pas de curseur de texte qui clignote quand on clique sur le site, sauf dans les champs à remplir */
body { caret-color: transparent; }
input, textarea, select, [contenteditable] { caret-color: auto; }
img { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; color: inherit; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Typo de marque ---------- */
.label {
  font-family: var(--sans); font-weight: 500;
  font-size: .82rem; letter-spacing: .32em; text-transform: uppercase;
  color: var(--terra);
  padding-bottom: 10px; margin-bottom: 22px;
  border-bottom: 1px solid var(--rule);
}
.lead { font-size: clamp(1.6rem, 3.2vw, 2.3rem); line-height: 1.2; margin-bottom: 18px; color: var(--terra); }
.section p + p { margin-top: .9em; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 46px; padding: 0 1.5em;
  border: 1.5px solid transparent; border-radius: 3px;
  font-family: var(--sans); font-weight: 500; font-size: .8rem; letter-spacing: .2em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; background: none;
  transition: background .2s, color .2s, border-color .2s;
}
.btn--cream { background: var(--cream); color: var(--terra); border-color: var(--cream); }
.btn--cream:hover { background: transparent; color: var(--cream); }
.btn--line { border-color: rgba(250,248,209,.7); color: var(--cream); }
.btn--line:hover { background: var(--cream); color: var(--terra); }
.btn--terra { background: var(--terra); color: var(--cream); border-color: var(--terra); }
.btn--terra:hover { background: var(--terra-dark); border-color: var(--terra-dark); }
.btn--outline { border-color: var(--terra); color: var(--terra); }
.btn--outline:hover { background: var(--terra); color: var(--cream); }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: wait; }

/* ---------- En-tête ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--header); padding: 0 var(--gutter);
  padding-top: env(safe-area-inset-top);
  display: flex; align-items: center; justify-content: space-between;
  color: var(--cream);
  transition: background .3s;
}
.header.is-scrolled { background: var(--terra); }
.header__brand { display: block; }
.header__mono { height: 48px; width: auto; }
.nav { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 34px); }
.nav a:not(.btn) {
  font-family: var(--sans); font-size: .78rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase;
  text-decoration: none; padding: 6px 0; border-bottom: 1px solid transparent;
}
.nav a:not(.btn):hover { border-color: currentColor; }
.nav__cta { min-height: 38px; padding: 0 1.1em; font-size: .72rem; }
.burger { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  padding: calc(var(--header) + 24px) var(--gutter) 40px;
  background: var(--terra); color: var(--cream); text-align: center;
}
.hero__inner { position: relative; z-index: 1; width: 100%; display: flex; flex-direction: column; align-items: center; }
.hero__logo {
  /* le logo reste toujours dans l'écran, en largeur comme en hauteur */
  width: min(640px, 84vw, calc((100svh - 300px) * 1.68));
  min-width: 220px;
  animation: rise 1s cubic-bezier(.2,.7,.2,1) both;
}
.hero__tag {
  margin-top: clamp(14px, 2.5vh, 26px);
  font-family: var(--sans); font-size: clamp(.7rem, 1.6vw, .85rem); letter-spacing: .32em; text-transform: uppercase;
  animation: rise 1s .12s cubic-bezier(.2,.7,.2,1) both;
}
.hero__tag span { white-space: nowrap; }
.hero__ctas {
  margin-top: clamp(20px, 4vh, 36px);
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px;
  animation: rise 1s .24s cubic-bezier(.2,.7,.2,1) both;
}
.hero__live {
  margin-top: clamp(18px, 3.5vh, 30px);
  display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px;
  font-family: var(--sans); font-size: .82rem; letter-spacing: .04em;
  animation: rise 1s .36s cubic-bezier(.2,.7,.2,1) both;
}
.hero__rating { text-decoration: none; }
.hero__rating:hover { text-decoration: underline; }
.hero__open::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: currentColor; margin-right: 8px; vertical-align: 2px; }
.hero__hours {
  margin-top: 10px; max-width: 34em; text-align: center;
  font-family: var(--sans); font-size: .82rem; letter-spacing: .04em; /* comme la ligne note Google / ouvert-fermé */
  animation: rise 1s .42s cubic-bezier(.2,.7,.2,1) both;
}
.hero__hours span { white-space: nowrap; }
.hero__hours .is-today { font-weight: 600; }
.stars { color: #F3C04B; letter-spacing: 1px; }
/* Arabesques : uniquement quand il y a la place, jamais par-dessus le contenu */
.hero__orn { position: absolute; width: clamp(90px, 9vw, 150px); pointer-events: none; display: none; }
.hero__orn--tr { top: calc(var(--header) + 16px); right: var(--gutter); }
.hero__orn--bl { bottom: 28px; left: var(--gutter); transform: rotate(180deg); }
@media (min-width: 1100px) and (min-height: 640px) { .hero__orn { display: block; } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 120px) var(--gutter); }
/* moins de vide entre « La Maison » et « La carte » */
.section.maison { padding-bottom: clamp(40px, 5vw, 64px); }
.section.carte { padding-top: clamp(48px, 6vw, 80px); }

/* La Maison */
.maison__grid { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 6vw, 80px); align-items: center; }
.maison__photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.maison__sign { margin-top: 26px !important; font-style: italic; color: var(--terra); }

/* ---------- La carte ---------- */
.carte { background: var(--cream); }
.carte__head { text-align: center; max-width: 560px; margin: 0 auto clamp(40px, 6vw, 64px); }
.carte__logo { width: min(220px, 55vw); margin: 0 auto 12px; }
.carte__title { font-family: var(--sans); font-weight: 500; font-size: .95rem; letter-spacing: .5em; text-transform: uppercase; color: var(--terra); padding-left: .5em; }
.carte__sub { margin-top: 8px; font-style: italic; color: var(--ink-soft); }

.tartines { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 3.5vw, 48px) clamp(18px, 2.5vw, 32px); }
.tartine { display: flex; flex-direction: column; }
.tartine__img { position: relative; aspect-ratio: 1; overflow: hidden; background: var(--terra); }
.tartine__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.tartine:hover .tartine__img img { transform: scale(1.04); }
.tartine__badge { position: absolute; top: 12px; left: 12px; background: var(--cream); color: var(--terra); font-family: var(--sans); font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; padding: 4px 9px; }
.tartine__row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 14px; padding-bottom: 6px; border-bottom: 1px solid var(--rule); }
.tartine__name { font-size: 1.3rem; font-weight: 400; }
.tartine__price { white-space: nowrap; }
.tartine__desc { margin-top: 8px; font-style: italic; color: var(--ink-soft); flex: 1; }
.tartine .add { margin-top: 14px; align-self: flex-start; }
.carte__note { max-width: var(--max); margin: -8px auto 28px; text-align: center; font-style: italic; color: var(--terra); }
.carte__note:empty { display: none; }
.carte__extras { max-width: var(--max); margin: 28px auto 0; text-align: center; font-style: italic; color: var(--ink-soft); }

/* bouton "ajouter" */
.add {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  min-height: 40px; padding: 0 14px;
  border: 1px solid var(--terra); border-radius: 3px; background: transparent; color: var(--terra);
  font-family: var(--sans); font-size: .72rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase;
  transition: background .2s, color .2s;
}
.add:hover { background: var(--terra); color: var(--cream); }
.add--icon { width: 34px; height: 34px; min-height: 0; padding: 0; justify-content: center; font-size: 1.1rem; letter-spacing: 0; border-radius: 50%; }

.soldout { font-family: var(--sans); font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-soft); border: 1px dashed rgba(107,78,67,.5); padding: 4px 8px; white-space: nowrap; }
.tartine .soldout { margin-top: 14px; align-self: flex-start; }
.is-soldout .tartine__img img, .is-soldout .menu__name { opacity: .55; }
/* commande en ligne en pause (depuis l'admin) */
.ordering-off .add, .ordering-off [data-open-order], .ordering-off .hero__ctas .btn--cream, .ordering-off .cartbar { display: none !important; }

/* carte papier */
.menu { max-width: 940px; margin: clamp(56px, 8vw, 96px) auto 0; columns: 2; column-gap: clamp(32px, 6vw, 80px); }
.menu__block { break-inside: avoid; margin-bottom: 40px; }
/* 2 colonnes équilibrées sur PC : les boissons chaudes commencent la colonne de droite */
@media (min-width: 861px) { .menu__block--col2 { break-before: column; } }
.menu__title { font-family: var(--sans); font-weight: 500; font-size: .8rem; letter-spacing: .3em; text-transform: uppercase; color: var(--terra); padding-bottom: 8px; border-bottom: 1px solid var(--rule); margin-bottom: 10px; }
.menu__note { font-style: italic; color: var(--ink-soft); font-size: .95rem; margin-bottom: 6px; }
.menu__item { display: grid; grid-template-columns: 1fr auto auto; align-items: center; column-gap: 12px; padding: 6px 0; }
.menu__name { font-size: 1.08rem; }
.menu__desc { grid-column: 1 / -1; font-style: italic; font-size: .95rem; color: var(--ink-soft); margin-top: -2px; }
.menu__soup { color: var(--terra); font-style: normal; font-family: var(--sans); font-size: .78rem; letter-spacing: .06em; margin-top: 4px; }
.menu__price { white-space: nowrap; }
.menu__block--box { border: 1px solid var(--rule); padding: 18px 20px 10px; }

/* All day brunch */
.brunch { max-width: var(--max); margin: 24px auto 0; display: grid; grid-template-columns: 1fr 1.6fr; background: var(--terra); color: var(--cream); }
.brunch__img { position: relative; min-height: 300px; }
.brunch__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.brunch__body { padding: clamp(28px, 4vw, 52px); }
.brunch__title { font-family: var(--sans); font-weight: 800; font-size: clamp(1.7rem, 4vw, 2.8rem); letter-spacing: .08em; text-transform: uppercase; line-height: 1.05; }
.brunch__note { margin-top: 10px; font-style: italic; opacity: .92; }
.brunch__items { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin-top: 28px; }
.brunch__item h3 { display: flex; justify-content: space-between; gap: 10px; font-weight: 400; font-size: 1.15rem; padding-bottom: 6px; border-bottom: 1px solid rgba(250,248,209,.5); }
.brunch__item p { margin-top: 8px; font-style: italic; }
.brunch .add { margin-top: 16px; border-color: var(--cream); color: var(--cream); }
.brunch .add:hover { background: var(--cream); color: var(--terra); }
/* pastilles végé / vegan */
.veg { display: inline-block; vertical-align: .18em; margin-left: 6px; padding: 2px 6px 1px; border: 1px solid currentColor; border-radius: 999px; font-family: var(--sans); font-style: normal; font-weight: 500; font-size: .56rem; line-height: 1.3; letter-spacing: .14em; text-transform: uppercase; color: #5B7A3A; white-space: nowrap; }
.veg--vegan { background: #5B7A3A; border-color: #5B7A3A; color: var(--cream); }
.carte__legend { margin-top: 26px; text-align: center; font-size: .9rem; color: var(--ink-soft); }
.carte__legend:empty { display: none; }
.carte__legend .veg { margin: 0 4px 0 0; }
.carte__legend + .carte__foot { margin-top: 8px; }
.carte__foot { margin-top: 30px; text-align: center; font-size: .9rem; font-style: italic; color: var(--ink-soft); }

/* ---------- Sur place ---------- */
.surplace__grid { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; grid-template-areas: "text a" "b a"; gap: clamp(20px, 3vw, 36px) clamp(28px, 5vw, 64px); align-items: start; }
.surplace__text { grid-area: text; }
.surplace__a { grid-area: a; }
.surplace__a img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: 30% 50%; }
.surplace__b { grid-area: b; }
.surplace__b img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.surplace__list { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 6px 22px; font-family: var(--sans); font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; color: var(--terra); }
.surplace__list li::before { content: "✦"; margin-right: 8px; font-size: .7em; }

/* ---------- Galerie ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; background: var(--paper); }
.g { aspect-ratio: 1; overflow: hidden; }
.g--wide { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.g img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.g:hover img { transform: scale(1.04); }

/* ---------- Avis ---------- */
.avis { background: var(--paper); }
.avis__head { text-align: center; max-width: 520px; margin: 0 auto clamp(36px, 5vw, 56px); }
.avis__head .label { display: inline-block; padding-left: .32em; }
.avis__score { display: flex; align-items: center; justify-content: center; gap: 14px; font-size: 3.4rem; line-height: 1; color: var(--terra); }
.avis__score .stars { font-size: 1.3rem; }
.avis__count { margin-top: 8px; font-style: italic; color: var(--ink-soft); }
.reviews { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 clamp(24px, 4vw, 56px); }
.review { padding: 22px 0; border-top: 1px solid var(--rule); }
.review__text { font-size: 1.12rem; font-style: italic; }
.review__who { margin-top: 12px; font-family: var(--sans); font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--terra); }
.review__who small { color: var(--ink-soft); letter-spacing: .08em; text-transform: none; font-size: .78rem; margin-left: 6px; }
.avis__ctas { margin-top: 40px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.avis__credit { text-align: center; margin-top: 14px; font-family: var(--sans); font-size: .7rem; color: var(--ink-soft); }

/* ---------- Infos : plan d'accès ---------- */
.infos { background: var(--terra); color: var(--cream); padding: clamp(48px, 7vw, 88px) var(--gutter) clamp(40px, 6vw, 72px); }
.is-open-now::before { background: #9BE3A5 !important; }
.infos__map { max-width: var(--max); margin: 0 auto; position: relative; height: clamp(280px, 38vw, 420px); border: 1px solid rgba(250,248,209,.75); }
.infos__map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: sepia(.25) saturate(.9); }

/* ---------- Footer ---------- */
.footer { background: var(--terra); color: var(--cream); text-align: center; padding: 10px var(--gutter) calc(32px + env(safe-area-inset-bottom)); }
.footer__logo { width: min(240px, 60vw); margin: 0 auto; }
.footer__links { margin: 22px 0 26px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px; font-family: var(--sans); font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; }
.footer__links a { text-decoration: none; }
.footer__links a:hover { text-decoration: underline; }
.footer__legal { font-size: .85rem; opacity: .75; }

/* ---------- Commande ---------- */
.cartbar {
  position: fixed; z-index: 40; left: 50%; transform: translateX(-50%);
  bottom: calc(16px + env(safe-area-inset-bottom));
  width: min(440px, calc(100% - 32px)); min-height: 56px; padding: 0 20px;
  display: flex; align-items: center; gap: 14px;
  background: var(--ink); color: var(--cream); border: 0; border-radius: 4px; cursor: pointer;
  box-shadow: 0 10px 30px -10px rgba(0,0,0,.5);
  font-family: var(--sans); font-size: .8rem; letter-spacing: .16em; text-transform: uppercase;
}
.cartbar[hidden] { display: none; }
.cartbar__count { display: grid; place-items: center; min-width: 26px; height: 26px; border-radius: 50%; background: var(--terra); font-size: .78rem; letter-spacing: 0; }
.cartbar__label { flex: 1; text-align: left; }
.cartbar__total { font-weight: 600; letter-spacing: .04em; }
.cartbar.bump { animation: bump .35s ease; }
@keyframes bump { 50% { transform: translateX(-50%) scale(1.05); } }

.sheet {
  border: 0; padding: 0; margin: auto; color: var(--ink); background: var(--paper);
  width: min(560px, 100%); max-height: min(92vh, 900px); max-height: min(92dvh, 900px);
  border-radius: 4px;
}
.sheet::backdrop { background: rgba(46, 29, 22, .55); }
.sheet__inner { position: relative; padding: 28px clamp(18px, 4vw, 32px) 24px; }
.sheet__close { position: absolute; top: 10px; right: 12px; width: 40px; height: 40px; border: 0; background: none; font-size: 1.8rem; line-height: 1; cursor: pointer; color: var(--terra); }
.sheet__close:focus:not(:focus-visible) { outline: none; }
.sheet__title { font-family: var(--sans); font-weight: 500; font-size: .9rem; letter-spacing: .26em; text-transform: uppercase; color: var(--terra); padding: 0 40px 10px 0; border-bottom: 1px solid var(--rule); }
.sheet__desc { margin-top: 10px; font-style: italic; color: var(--ink-soft); }
.sheet__foot {
  position: sticky; bottom: -24px; z-index: 2;
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  margin: 22px calc(-1 * clamp(18px, 4vw, 32px)) -24px; padding: 14px clamp(18px, 4vw, 32px) calc(16px + env(safe-area-inset-bottom));
  background: var(--paper); border-top: 1px solid rgba(204,85,61,.25);
}
.sheet__foot { flex-wrap: nowrap; }
.sheet__foot .btn { flex: 1; min-width: 0; white-space: nowrap; letter-spacing: .12em; padding: 0 1em; }
.sheet__close:focus { outline: none; }
.sheet__close:focus-visible { outline: 2px solid var(--terra); }
@media (max-width: 600px) {
  .sheet { width: 100%; max-width: 100%; margin: auto 0 0; border-radius: 10px 10px 0 0; max-height: 94dvh; }
  .sheet__inner { padding-bottom: calc(22px + env(safe-area-inset-bottom)); }
}

.choice { border: 0; padding: 0; margin: 18px 0 0; }
.choice legend, fieldset legend { font-family: var(--sans); font-size: .72rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--terra); margin-bottom: 8px; padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; min-height: 38px; padding: 0 12px; border: 1px solid rgba(204,85,61,.5); border-radius: 3px; font-size: .98rem; }
.chip input:checked + span { background: var(--terra); border-color: var(--terra); color: var(--cream); }
.chip input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }

.qty { display: inline-flex; align-items: center; border: 1px solid var(--terra); border-radius: 3px; }
.qty button { width: 40px; height: 40px; border: 0; background: none; color: var(--terra); font-size: 1.2rem; cursor: pointer; }
.qty output { min-width: 28px; text-align: center; font-family: var(--sans); }

.cart { list-style: none; padding: 0; margin: 10px 0 0; }
.cart li { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 12px 0; border-bottom: 1px solid rgba(204,85,61,.25); }
.cart__name { font-size: 1.05rem; }
.cart__opts { grid-column: 1; font-size: .9rem; font-style: italic; color: var(--ink-soft); }
.cart__price { text-align: right; white-space: nowrap; }
.cart__ctrl { grid-column: 2; grid-row: 2 / span 2; justify-self: end; align-self: center; display: flex; align-items: center; gap: 6px; }
.cart .qty button { width: 34px; height: 34px; }
.cart__del { display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 3px; background: none; color: var(--terra); cursor: pointer; opacity: .8; }
.cart__del:hover, .cart__del:focus-visible { opacity: 1; background: rgba(204,85,61,.1); }
.cart__clear { display: block; margin: 10px 0 0 auto; padding: 6px 0; border: 0; background: none; font-family: var(--sans); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--terra); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.cart__clear[hidden] { display: none; }
.cart__empty { margin: 18px 0; font-style: italic; color: var(--ink-soft); }
.cart__total { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 0 4px; font-family: var(--sans); letter-spacing: .14em; text-transform: uppercase; font-size: .85rem; }
.cart__total strong { font-size: 1.2rem; letter-spacing: .02em; color: var(--terra); }

.checkout fieldset { border: 0; padding: 0; margin: 20px 0 0; }
.field { display: flex; flex-direction: column; gap: 4px; margin-top: 10px; flex: 1; min-width: 0; }
.field span { font-size: .92rem; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 46px; padding: 10px 12px;
  font: inherit; font-size: 16px; /* évite le zoom auto sur iPhone */
  color: var(--ink); background: #fff; border: 1px solid rgba(204,85,61,.45); border-radius: 3px;
}
.field textarea { min-height: 0; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--terra); outline-offset: 0; border-color: var(--terra); }
.field-row { display: flex; gap: 12px; flex-wrap: wrap; }
.field-row .field { min-width: 200px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.pay { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; margin-top: 8px; border: 1px solid rgba(204,85,61,.4); border-radius: 3px; cursor: pointer; }
.pay:has(input:checked) { border-color: var(--terra); background: rgba(204,85,61,.06); }
.pay input { margin-top: 5px; accent-color: var(--terra); }
.pay span { display: flex; flex-direction: column; }
.pay small { font-size: .88rem; color: var(--ink-soft); font-style: italic; line-height: 1.4; margin-top: 2px; }
.checkout__info { margin-top: 10px; padding: 10px 12px; background: var(--cream); border-left: 3px solid var(--terra); font-size: .95rem; }
.checkout__info a { color: var(--terra); font-weight: 500; }
.pay[hidden] { display: none; }
.checkout__error { margin-top: 14px; padding: 10px 12px; background: #F8E1DA; color: var(--terra-dark); border-radius: 3px; font-size: .95rem; }
.checkout .btn--block { margin-top: 18px; min-height: 52px; }
.checkout__legal { margin-top: 10px; font-size: .82rem; color: var(--ink-soft); text-align: center; }

/* ---------- Apparition au scroll ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__logo, .hero__tag, .hero__ctas, .hero__live, .hero__hours { animation: none; }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1024px) {
  .tartines { grid-template-columns: repeat(2, 1fr); }
  .reviews { grid-template-columns: 1fr 1fr; }
  .brunch { grid-template-columns: minmax(0, 1fr); }
  .brunch__img { min-height: 0; aspect-ratio: 16 / 9; }
}

@media (max-width: 860px) {
  :root { --header: 58px; }
  .header__mono { height: 42px; }
  .burger {
    display: grid; place-content: center; gap: 7px; z-index: 60;
    width: 44px; height: 44px; margin-right: -8px; background: none; border: 0; cursor: pointer;
  }
  .burger span { display: block; width: 24px; height: 1.5px; background: var(--cream); transition: transform .3s; }
  .burger[aria-expanded="true"] span:first-child { transform: translateY(4.25px) rotate(45deg); }
  .burger[aria-expanded="true"] span:last-child { transform: translateY(-4.25px) rotate(-45deg); }
  .nav {
    position: fixed; inset: 0; z-index: 55;
    flex-direction: column; justify-content: center; gap: 24px;
    background: var(--terra); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
  }
  .nav.is-open { opacity: 1; visibility: visible; }
  .nav a:not(.btn) { font-size: .95rem; }
  .nav__cta { min-height: 46px; font-size: .8rem; }

  .maison__grid { grid-template-columns: 1fr; }
  .maison__photo { order: 2; }
  .menu { columns: 1; }
  .surplace__grid { grid-template-columns: 1fr 1fr; grid-template-areas: "text text" "a b"; }
  .surplace__a img, .surplace__b img { aspect-ratio: 4 / 5; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .hero__ctas { flex-direction: column; width: 100%; max-width: 320px; }
  .hero__ctas .btn { width: 100%; }
  .tartines { grid-template-columns: 1fr; }
  .tartine__img { aspect-ratio: 4 / 3; }
  .brunch__items { grid-template-columns: 1fr; }
  .reviews { grid-template-columns: 1fr; }
  .surplace__grid { grid-template-columns: 1fr; grid-template-areas: "text" "a" "b"; }
  .surplace__a img, .surplace__b img { aspect-ratio: 4 / 3; }
  .field-row .field { min-width: 100%; }
}

@media (max-width: 380px) {
  .sheet__foot { gap: 8px; }
  .sheet__foot .btn { letter-spacing: .04em; font-size: .72rem; padding: 0 .6em; }
  .sheet__foot .qty button { width: 34px; }
}

@media (max-width: 360px) {
  .hero__tag { letter-spacing: .2em; }
  .label { letter-spacing: .24em; }
}

/* place pour la barre panier en bas */
body.has-cart .footer { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
