/* ==========================================================================
   Le Magasin Général d'Hochlag — styles du site
   Une seule feuille de style. Palette rétro 70 (Tarte à la lime), Joe le cowboy.
   ========================================================================== */

@font-face { font-family: "Shrikhand"; src: url(../fonts/shrikhand-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Work Sans"; src: url(../fonts/work-sans-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Work Sans"; src: url(../fonts/work-sans-latin-600-normal.woff2) format("woff2"); font-weight: 500 600; font-display: swap; }
@font-face { font-family: "Work Sans"; src: url(../fonts/work-sans-latin-700-normal.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "DM Mono"; src: url(../fonts/dm-mono-latin-500-normal.woff2) format("woff2"); font-weight: 500; font-display: swap; }

:root {
	--bg: #FFF4E6; --surface: #FFFFFF; --sunk: #F7E7D2; --fg: #2D2418; --muted: #6F5E4C; --line: #E9D6BD;
	--orange: #E8552E; --amber: #F5A623; --teal: #2D7561; --on-accent: #FFF8EE;
	--display: "Shrikhand", "Cooper Black", Georgia, serif;
	--body: "Work Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
	--mono: "DM Mono", ui-monospace, monospace;
	--r: 14px;
	color-scheme: light;
}
@media (prefers-color-scheme: dark) {
	:root { --bg: #1D1610; --surface: #2A2119; --sunk: #231B14; --fg: #F7EBDC; --muted: #BCA990; --line: #43362A; --orange: #F06A45; --amber: #F7B547; --teal: #4BA389; --on-accent: #1D1610; color-scheme: dark; }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 400 16px/1.55 var(--body); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; text-wrap: balance; line-height: 1.1; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }
[hidden] { display: none !important; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 50; background: var(--fg); color: var(--bg); padding: 8px 12px; border-radius: 8px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }

/* Structure ---------------------------------------------------------------- */
.wrap { max-width: 1080px; margin: 0 auto; padding-inline: 16px; padding-block: 28px 64px; }
.stack { display: grid; gap: 40px; }
.center { text-align: center; justify-items: center; }
.row { display: flex; flex-wrap: wrap; gap: 10px; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--teal); margin: 0; }
.muted { color: var(--muted); }
.note { font-size: 14px; color: var(--muted); }
.lede { font-size: 18px; max-width: 62ch; }
.h1-sm { font-family: var(--display); font-weight: 400; font-size: clamp(30px, 6vw, 44px); }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; display: grid; gap: 12px; align-content: start; }

/* En-tête ------------------------------------------------------------------ */
.banner { background: var(--teal); color: var(--on-accent); text-align: center; font-weight: 600; font-size: 14px; padding: 8px 16px; }
.stripes { height: 12px; background: linear-gradient(var(--orange) 0 33%, var(--amber) 33% 66%, var(--teal) 66%); }
.top { position: sticky; top: 0; z-index: 10; background: var(--bg); border-bottom: 1px solid var(--line); }
.bar { max-width: 1080px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 12px 16px; flex-wrap: wrap; }
.brand { font-family: var(--display); font-size: 22px; line-height: 1; color: var(--orange); text-decoration: none; white-space: nowrap; }
.top nav { display: flex; gap: 4px; overflow-x: auto; margin-left: auto; max-width: 100%; scrollbar-width: none; }
.top nav a { text-decoration: none; font-weight: 600; font-size: 14px; padding: 8px 12px; border-radius: 999px; white-space: nowrap; }
.top nav a:hover { background: var(--sunk); }
.top nav a[aria-current="page"] { background: var(--fg); color: var(--bg); }
.top nav a.joe { color: var(--orange); }
.top nav a.joe[aria-current="page"] { background: var(--orange); color: var(--on-accent); }
@media (max-width: 560px) { .top nav { margin-left: 0; width: 100%; } }

/* Boutons ------------------------------------------------------------------ */
.btn { display: inline-flex; align-items: center; gap: 8px; border: 2px solid var(--fg); background: var(--fg); color: var(--bg); padding: 11px 18px; border-radius: 999px; font: 700 15px var(--body); text-decoration: none; cursor: pointer; }
.btn--alt { background: transparent; color: var(--fg); }
.btn--orange { background: var(--orange); border-color: var(--orange); color: var(--on-accent); }
.btn--amber { background: var(--amber); border-color: var(--amber); color: #2D2418; }
.btn--dark { background: #2D2418; border-color: #2D2418; color: #FFF4E6; }
.btn--sm { padding: 7px 12px; font-size: 13px; }

/* Accueil ------------------------------------------------------------------ */
.hero { display: grid; grid-template-columns: 1.2fr .8fr; gap: 28px; align-items: center; }
.hero-txt { display: grid; gap: 18px; min-width: 0; }
.hero h1 { font-family: var(--display); font-weight: 400; font-size: clamp(38px, 7vw, 64px); line-height: 1.02; }
.hero-joe { aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 50% 60%, var(--amber) 0 48%, transparent 49%), repeating-conic-gradient(var(--sunk) 0 10deg, var(--bg) 10deg 20deg); }
.hero-joe img { height: 86%; width: auto; }
.open-now { font-size: 14px; font-weight: 600; }
.open-now.is-open span { color: var(--teal); }
.open-now.is-closed span { color: var(--orange); }

.rush { position: relative; overflow: hidden; display: grid; grid-template-columns: 220px 1fr; gap: 28px; align-items: center; padding: 28px; border-radius: 20px; text-decoration: none; color: #2D2418; background: repeating-linear-gradient(135deg, #F5A623 0 26px, #F2B13E 26px 52px); border: 3px solid var(--fg); }
.rush-joe { width: 100%; aspect-ratio: 1; object-fit: contain; padding: 10%; background: #FFF4E6; border-radius: 50%; border: 3px solid #2D2418; position: relative; z-index: 1; }
.rush-txt { display: grid; gap: 12px; position: relative; z-index: 1; min-width: 0; }
.rush-title { font-family: var(--display); font-size: clamp(30px, 5vw, 46px); line-height: 1.05; }
.rush-tag { justify-self: start; background: #2D2418; color: #F5A623; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; }
.rush-steps { display: flex; flex-wrap: wrap; gap: 8px; }
.rush-steps > span { background: #FFF4E6; border: 2px solid #2D2418; border-radius: 999px; padding: 5px 12px 5px 6px; font-size: 14px; display: flex; align-items: center; gap: 6px; }
.rush-steps i { font-style: normal; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #E8552E; color: #FFF4E6; font-weight: 700; font-size: 12px; }
.rush .btn { justify-self: start; transition: transform .15s; }
.rush:hover .btn { transform: translateY(-2px); }
.nug { position: absolute; width: 22px; height: 18px; border-radius: 45% 55% 50% 40%; background: radial-gradient(circle at 35% 35%, #FFF3B0 0 18%, #E9B020 40%, #B07A10 100%); opacity: .9; }
.nug--s { width: 14px; height: 12px; }

.offers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.offer { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; display: grid; gap: 6px; align-content: start; text-decoration: none; min-width: 0; }
.offer:hover { border-color: var(--fg); }
.offer b { font-size: 17px; }
.tag { justify-self: start; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; background: var(--sunk); color: var(--muted); }
.tag--new { background: var(--teal); color: var(--on-accent); }

.soon { display: grid; gap: 12px; }
.soon-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.soon-card { border: 2px dashed var(--fg); border-radius: var(--r); padding: 18px; display: grid; gap: 8px; align-content: start; background: var(--sunk); }
.soon-card h3 { font-family: var(--display); font-weight: 400; font-size: 22px; }
.soon-card p { color: var(--muted); font-size: 15px; }
.soon-tag { justify-self: start; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; background: var(--fg); color: var(--bg); padding: 3px 9px; border-radius: 999px; }

.promo { background: var(--fg); color: var(--bg); border-radius: var(--r); padding: 24px; display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: center; }
.promo-txt { display: grid; gap: 10px; }
.promo h2 { font-family: var(--display); font-weight: 400; font-size: clamp(26px, 4.5vw, 34px); color: var(--amber); }
.cups { display: flex; gap: 10px; align-items: flex-end; color: var(--bg); }

/* Infolettre / formulaires -------------------------------------------------- */
.news { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; padding: 28px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.news-txt { display: grid; gap: 8px; }
.news h2 { font-family: var(--display); font-weight: 400; font-size: clamp(24px, 4vw, 32px); }
.form { display: grid; gap: 12px; }
.field { display: grid; gap: 4px; }
.field label { font-weight: 600; font-size: 14px; }
.field input { font: inherit; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--fg); width: 100%; }
.check { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; font-size: 14px; padding: 12px; border-radius: 10px; background: var(--sunk); }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--teal); }
.err { color: var(--orange); font-size: 14px; font-weight: 600; }
.hp { position: absolute; left: -9999px; }
.form .btn { justify-self: start; }

/* Menus -------------------------------------------------------------------- */
.title-joe { display: flex; gap: 18px; align-items: center; }
.title-joe > div { display: grid; gap: 10px; min-width: 0; }
.badge-joe { flex: none; width: 110px; height: 110px; object-fit: contain; padding: 12px; border-radius: 50%; background: #FFF4E6; border: 3px solid var(--fg); }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; position: sticky; top: 58px; z-index: 5; background: var(--bg); padding-block: 8px; }
.tabs a { border: 1.5px solid var(--line); background: var(--surface); padding: 8px 14px; border-radius: 999px; font-weight: 600; font-size: 14px; text-decoration: none; }
.tabs a[aria-current="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.menu-block { display: grid; gap: 14px; scroll-margin-top: 130px; }
.js .menu-block[hidden] { display: none; }
.menu-title { font-family: var(--display); font-weight: 400; font-size: clamp(26px, 4.5vw, 36px); color: var(--teal); }
.menu-desc { color: var(--muted); max-width: 70ch; }
.menu { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 32px; }
.item { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.item b { font-weight: 600; }
.item small { grid-column: 1 / -1; color: var(--muted); font-size: 14px; }
.price { font-family: var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.is-out b, .is-out h3, .chip.is-out { text-decoration: line-through; opacity: .6; }
.badge { display: inline-block; margin-left: 8px; font: 700 10px var(--body); letter-spacing: .08em; text-transform: uppercase; padding: 2px 7px; border-radius: 999px; background: var(--teal); color: var(--on-accent); vertical-align: 2px; text-decoration: none; }
.badge--out { background: var(--orange); }
.smoothies { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.sm { border-radius: var(--r); padding: 16px; display: grid; gap: 8px; align-content: start; min-height: 200px; color: #2D2418; background: var(--c, #F5A623); }
.sm h3 { font-family: var(--display); font-weight: 400; font-size: 21px; }
.sm p { font-size: 14px; line-height: 1.4; }
.sm .price { margin-top: auto; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; align-items: start; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; display: grid; gap: 8px; min-width: 0; }
.step h3 { font-size: 17px; display: flex; align-items: center; gap: 8px; }
.step h3 i { font-style: normal; width: 26px; height: 26px; border-radius: 50%; background: var(--teal); color: var(--on-accent); display: grid; place-items: center; font-size: 13px; flex: none; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { border: 1.5px solid var(--line); background: var(--bg); border-radius: 999px; padding: 4px 11px; font-size: 14px; }
.plist .item { padding: 6px 0; font-size: 15px; }

/* Épicerie ----------------------------------------------------------------- */
.page-head { display: grid; gap: 12px; }
.aisles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.aisle { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; display: grid; gap: 6px; align-content: start; min-width: 0; }
.aisle h2 { font-size: 18px; }
.picks { list-style: none; margin: 6px 0 0; padding: 0; }
.picks li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-top: 1px dashed var(--line); font-size: 15px; }

/* Nous trouver / jeu ------------------------------------------------------- */
.find { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.find h2 { font-size: 20px; }
address { font-style: normal; }
.hours { display: grid; grid-template-columns: auto 1fr; gap: 6px 20px; margin: 0; font-variant-numeric: tabular-nums; }
.hours dd { margin: 0; }
.notice { background: var(--sunk); padding: 10px 12px; border-radius: 10px; font-weight: 600; }
.how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.how-step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; display: grid; gap: 8px; align-content: start; }
.how-step i { font-style: normal; width: 34px; height: 34px; border-radius: 50%; background: var(--orange); color: var(--on-accent); display: grid; place-items: center; font-weight: 700; }
.how-step h2 { font-size: 20px; }

/* Texte libre -------------------------------------------------------------- */
.prose { max-width: 720px; display: grid; gap: 16px; }
.prose p, .prose li { max-width: 68ch; }

/* Pied de page ------------------------------------------------------------- */
.foot { border-top: 1px solid var(--line); margin-top: 24px; }
.foot-in { max-width: 1080px; margin: 0 auto; padding: 28px 16px calc(28px + env(safe-area-inset-bottom, 0px)); display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; font-size: 14px; color: var(--muted); }
.foot-in > div { display: grid; gap: 4px; align-content: start; }
.foot-brand { font-family: var(--display); color: var(--orange); font-size: 18px; }
.foot-h { font-weight: 700; color: var(--fg); }

/* Responsive --------------------------------------------------------------- */
@media (max-width: 860px) {
	.hero, .rush, .news, .find, .promo { grid-template-columns: 1fr; }
	.hero-joe { max-width: 320px; width: 100%; justify-self: center; }
	.rush-joe { max-width: 160px; }
	.offers, .aisles { grid-template-columns: repeat(2, 1fr); }
	.menu, .how, .foot-in { grid-template-columns: 1fr; }
	.tabs { top: 96px; }
}
@media (max-width: 480px) {
	.offers, .aisles { grid-template-columns: 1fr; }
	.badge-joe { width: 80px; height: 80px; }
}
