/* Ferme du Ponceau (BRAND.md) : lait crème, brique de la façade, vert de la cour, taches pie noir. */
:root {
  --lait: #FAF6EE; --lait-2: #F1E9DA; --brique: #A9472F; --brique-f: #8A3824; --prairie: #2F5A2E; --encre: #221D19; --doux: #5B524A; --ligne: rgb(34 29 25 / .14);
  --f-titre: "Alfa Slab One", Rockwell, Georgia, serif; --f-texte: "Karla", system-ui, sans-serif;
  --r: 14px; --haut: 60px;
}
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--haut) + 12px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { font: 400 1.0625rem/1.55 var(--f-texte); color: var(--encre); background: var(--lait); -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
fieldset { min-width: 0; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
button, a { touch-action: manipulation; }
:focus-visible { outline: 3px solid var(--brique); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--encre); color: #fff; padding: 10px 14px; z-index: 99; }
.skip:focus { left: 8px; }
.seo-h1, .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: min(100% - 36px, 1080px); margin: 0 auto; }
h1, h2, h3 { font-family: var(--f-titre); font-weight: 400; line-height: 1.02; letter-spacing: -.005em; }
h2 { font-size: clamp(2rem, 8.4vw, 3.4rem); }
.sur { font-weight: 700; text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; color: var(--brique); margin-bottom: 10px; }
.chapo { margin-top: 14px; max-width: 56ch; color: var(--doux); }

/* En-tête */
.top { position: sticky; top: 0; z-index: 20; height: var(--haut); padding: 0 18px; padding-top: env(safe-area-inset-top); display: flex; align-items: center; justify-content: space-between; gap: 16px; background: rgb(250 246 238 / .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--ligne); }
.logo { text-decoration: none; display: flex; flex-direction: column; line-height: .92; }
.logo-a { font: 700 .66rem/1 var(--f-texte); letter-spacing: .2em; text-transform: uppercase; color: var(--brique); }
.logo-b { font-family: var(--f-titre); font-size: 1.45rem; }
.nav { display: none; gap: 26px; font-weight: 600; }
.nav a { text-decoration: none; }
.top-tel { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 44px; min-height: 44px; border-radius: 999px; background: var(--encre); color: var(--lait); text-decoration: none; font-weight: 700; padding: 0 12px; }
.top-tel svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.top-tel span { display: none; }

/* Héros : titre court, photo tout de suite, un bouton */
.hero { padding: 18px 18px 26px; display: grid; gap: 14px; }
.ouvert { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .9rem; color: var(--prairie); }
.ouvert::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
.ouvert.clos { color: var(--doux); }
.hero h1 { font-size: clamp(2.15rem, 10.4vw, 4.6rem); margin-top: 6px; }
.hero-img { position: relative; border-radius: var(--r); overflow: hidden; background: var(--lait-2); }
.hero-img img { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; object-position: 50% 40%; animation: entre .6s ease-out both; }
@keyframes entre { from { opacity: 0; transform: scale(1.04); } }
.etiquette { position: absolute; left: 12px; bottom: 12px; background: var(--lait); border: 2px solid var(--encre); border-radius: 10px; padding: 8px 12px; display: grid; line-height: 1.2; box-shadow: 4px 4px 0 var(--encre); max-width: calc(100% - 24px); }
.etiquette b { font-family: var(--f-titre); font-weight: 400; font-size: 1.02rem; }
.etiquette span { font-size: .86rem; color: var(--doux); }
.hero-bas { display: grid; gap: 8px; justify-items: start; }
.hero-sous { color: var(--doux); font-size: .95rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 24px; border-radius: 999px; background: var(--brique); color: #fff; font-weight: 700; text-decoration: none; border: 0; cursor: pointer; transition: background .2s, transform .15s; }
.btn:active { transform: scale(.98); }
@media (hover: hover) { .btn:hover { background: var(--brique-f); } }

/* Comptoir */
.comptoir { background: var(--encre); color: var(--lait); padding: 56px 0 64px; position: relative; overflow: hidden; }
.comptoir .sur { color: #F0B9A6; }
.comptoir .chapo { color: #D9CFC2; }
.rayons { display: grid; gap: 14px; margin-top: 26px; }
.rayon { border: 0; padding: 18px 16px 8px; border-radius: var(--r); background: var(--lait); color: var(--encre); position: relative; }
.rayon legend { float: left; width: 100%; font-family: var(--f-titre); font-size: 1.35rem; display: flex; align-items: center; gap: 10px; }
.tache { width: 26px; height: 20px; background: var(--encre); border-radius: 58% 42% 55% 45% / 60% 48% 52% 40%; flex: none; }
.rayon-glace .tache { background: var(--brique); }
.rayon-viande .tache { background: var(--prairie); }
.rayon-note { clear: both; font-size: .92rem; color: var(--doux); padding: 4px 0 6px; }
.ligne { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px dashed var(--ligne); min-height: 60px; }
.ligne .nom { font-weight: 700; }
.ligne small { font-weight: 400; color: var(--doux); }
.pas { display: inline-flex; align-items: center; gap: 4px; flex: none; }
.pas button { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--encre); background: transparent; font-size: 1.4rem; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.pas button[data-d="1"] { background: var(--encre); color: var(--lait); }
.pas button:disabled { opacity: .3; cursor: default; }
.pas output { min-width: 28px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; font-size: 1.1rem; }
.ligne.pris { background: linear-gradient(90deg, rgb(169 71 47 / .08), transparent); margin: 0 -16px; padding-left: 16px; padding-right: 16px; }
.err { color: #E7835F; font-weight: 700; font-size: .92rem; }
.err:empty { display: none; }
.rayon .err, .retrait .err { color: var(--brique); }
.comptoir > .wrap > form > .err { margin-top: 10px; }

.retrait { margin-top: 18px; background: var(--lait-2); color: var(--encre); border-radius: var(--r); padding: 22px 16px; display: grid; gap: 14px; }
.retrait h3 { font-size: 1.6rem; }
.retrait fieldset { border: 0; padding: 0; }
.retrait > * { min-width: 0; }
.choix { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 6px; scroll-snap-type: x mandatory; }
.choix button { flex: none; scroll-snap-align: start; min-height: 48px; border-radius: 12px; border: 2px solid var(--encre); background: var(--lait); padding: 6px 12px; cursor: pointer; font-weight: 700; font-variant-numeric: tabular-nums; }
.jours button { display: grid; justify-items: center; min-width: 64px; line-height: 1.15; }
.jours button span { font-weight: 400; font-size: .78rem; text-transform: capitalize; }
.jours button b { font-size: 1.3rem; }
.heures { flex-wrap: wrap; overflow: visible; }
.choix button[aria-pressed="true"] { background: var(--brique); border-color: var(--brique); color: #fff; }
.vide { color: var(--doux); font-size: .95rem; }
.champs { display: grid; gap: 12px; }
.champs label { display: grid; gap: 6px; font-weight: 700; font-size: .95rem; }
.champs small { font-weight: 400; color: var(--doux); }
.champs input, .champs textarea { font-size: 16px; min-height: 48px; border: 2px solid var(--ligne); border-radius: 12px; background: #fff; padding: 10px 12px; width: 100%; }
.champs input:focus, .champs textarea:focus { border-color: var(--encre); outline: none; }
.pot { position: absolute; left: -9999px; }
.recap { font-weight: 700; color: var(--prairie); }
.recap:empty { display: none; }
.mention { font-size: .88rem; color: var(--doux); }
.merci { margin-top: 18px; background: var(--lait); color: var(--encre); border-radius: var(--r); padding: 26px 18px; display: grid; gap: 12px; justify-items: start; border: 3px solid var(--prairie); }
.merci h3 { font-size: 1.8rem; color: var(--prairie); }

/* La ferme */
.ferme { padding: 64px 0; }
.ferme-grille { display: grid; gap: 28px; }
.ferme-txt p:not(.sur) { margin-top: 14px; max-width: 58ch; }
.mosaique { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mosaique img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; }
.m1 { grid-row: span 2; } .m1 img { aspect-ratio: 3 / 4.6; }
.m2 img, .m3 img { aspect-ratio: 4 / 3; }
.m4 { display: none; }

/* Avis */
.avis { background: var(--lait-2); padding: 60px 0; }
.note { display: inline-grid; grid-template-columns: auto auto; align-items: center; column-gap: 10px; margin-bottom: 14px; }
.note b { font-family: var(--f-titre); font-weight: 400; font-size: 3.2rem; line-height: 1; grid-row: span 2; color: var(--brique); }
.note span { color: #C98A1B; letter-spacing: 2px; }
.note p { font-weight: 700; font-size: .9rem; }
.avis h2 { font-size: clamp(1.7rem, 6.6vw, 2.6rem); max-width: 20ch; }
.cartes { display: grid; gap: 12px; margin-top: 24px; }
.cartes blockquote { background: var(--lait); border-radius: var(--r); padding: 18px; border-left: 6px solid var(--encre); }
.cartes cite { display: block; margin-top: 10px; font-style: normal; font-weight: 700; color: var(--doux); font-size: .92rem; }

/* Horaires */
.horaires-bloc { padding: 60px 0 80px; }
.horaires-grille { display: grid; gap: 28px; }
.horaires { width: 100%; margin-top: 18px; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.horaires th, .horaires td { padding: 12px 4px; border-bottom: 1px solid var(--ligne); text-align: left; }
.horaires td { text-align: right; }
.horaires tr.auj { background: var(--lait-2); font-weight: 700; }
.horaires tr.auj th::after { content: " · aujourd’hui"; font-weight: 400; color: var(--brique); font-size: .85rem; }
.acces { display: grid; gap: 14px; }
.acces img { border-radius: var(--r); aspect-ratio: 16 / 11; object-fit: cover; width: 100%; }
.acces-btns { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.lien { font-weight: 700; min-height: 44px; display: inline-flex; align-items: center; }

.pied { background: var(--encre); color: #D9CFC2; padding: 36px 18px calc(110px + env(safe-area-inset-bottom)); display: grid; gap: 8px; font-size: .95rem; }
.pied-nom { font-family: var(--f-titre); color: var(--lait); font-size: 1.4rem; }
.pied a { min-height: 44px; display: inline-flex; align-items: center; }

/* Barre panier (mobile) */
.barre { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 30; display: flex; justify-content: space-between; align-items: center; min-height: 56px; padding: 0 20px; border-radius: 999px; background: var(--brique); color: #fff; text-decoration: none; font-weight: 700; box-shadow: 0 8px 24px rgb(34 29 25 / .25); transition: transform .3s ease-out, opacity .3s; }
.barre b { background: #fff; color: var(--brique); border-radius: 999px; padding: 4px 12px; font-variant-numeric: tabular-nums; }
.barre.cache { transform: translateY(140%); opacity: 0; pointer-events: none; }

@media (min-width: 760px) {
  .top { padding: 0 32px; } .top-tel span { display: inline; } .nav { display: flex; }
  .hero { width: min(100% - 64px, 1160px); margin: 0 auto; padding: 40px 0 56px; grid-template-columns: 1fr 1.05fr; grid-template-areas: "txt img" "bas img"; align-items: end; column-gap: 48px; }
  .hero-txt { grid-area: txt; } .hero-img { grid-area: img; } .hero-bas { grid-area: bas; align-self: start; }
  .hero-img img { aspect-ratio: 4 / 4.4; }
  .rayons { grid-template-columns: 1fr 1fr; }
  .retrait { padding: 30px; } .champs { grid-template-columns: 1fr 1fr; } .champs .large { grid-column: span 2; }
  .ferme-grille { grid-template-columns: .9fr 1.1fr; align-items: center; }
  .m4 { display: block; } .m4 img { aspect-ratio: 4 / 3; }
  .cartes { grid-template-columns: 1fr 1fr; }
  .horaires-grille { grid-template-columns: 1fr 1fr; align-items: start; }
  .barre { display: none; }
  .pied { padding: 40px 32px; }
}
