/* Menu public — Le Kechmara */

@font-face { font-family: "Big Shoulders"; src: url("fonts/big-shoulders-display-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Big Shoulders"; src: url("fonts/big-shoulders-display-latin-800-normal.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("fonts/manrope-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("fonts/manrope-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("fonts/manrope-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("fonts/manrope-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("fonts/manrope-latin-800-normal.woff2") format("woff2"); font-weight: 800; font-display: swap; }

:root {
  --bg: #0e0c0a;
  --surface: #1a1612;
  --surface-2: #241e19;
  --line: #262019;
  --line-2: #3a3129;
  --text: #f4ede4;
  --muted: #a89b8c;
  --gold: #e9b872;
  --accent: #ff6b2c;
  --on-accent: #0e0c0a;
  --dur: 2.6s;
  --banner-h: 0px;
  --display: "Big Shoulders", "Arial Narrow", sans-serif;
  --body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--banner-h) + 64px); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}

body.has-banner { --banner-h: 40px; }

button { font: inherit; color: inherit; }

.page { max-width: 560px; margin: 0 auto; }

/* ---------- Bannière défilante ---------- */

.banner {
  position: sticky;
  top: 0;
  z-index: 20;
  height: var(--banner-h);
  overflow: hidden;
  background: var(--accent);
  color: var(--on-accent);
  display: flex;
  align-items: center;
}

.banner-track {
  display: flex;
  width: max-content;
  white-space: nowrap;
  will-change: transform;
}

.banner-track.is-running { animation: marquee var(--marquee-dur, 30s) linear infinite; }

.banner-group { display: flex; flex: none; }

.banner-msg {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding-right: 18px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(var(--marquee-shift, -50%)); } }

/* ---------- En-tête ---------- */

.hero { padding: 28px 22px 18px; display: flex; flex-direction: column; gap: 6px; }

.eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); }

.hero h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: 48px;
  line-height: 0.95;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.city { font-size: 13px; color: var(--muted); }

.count { font-size: 12px; color: var(--muted); }

.price {
  font-family: var(--display);
  font-weight: 700;
  font-size: 21px;
  line-height: 1.1;
  color: var(--gold);
  white-space: nowrap;
}

/* ---------- Nouveautés ---------- */

.news { padding: 6px 0 18px; }

.news-head { padding: 0 22px; display: flex; align-items: center; justify-content: space-between; }

.news-head h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: 30px;
  text-transform: uppercase;
  color: var(--accent);
}

.news-row {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 14px 22px 16px;
  scroll-snap-type: x mandatory;
  scroll-padding-left: 22px;
  scrollbar-width: none;
}
.news-row::-webkit-scrollbar { display: none; }

.news-card {
  position: relative;
  overflow: hidden;
  flex: none;
  width: 188px;
  scroll-snap-align: start;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid #2e2720;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
  cursor: pointer;
}

.news-photo {
  position: relative;
  height: 124px;
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.news-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

.news-initial { font-family: var(--display); font-weight: 800; font-size: 56px; color: var(--accent); }

.badge-new {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.news-info { display: flex; flex-direction: column; gap: 3px; padding: 0 4px 4px; }

.news-cat { font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }

.news-name { font-size: 15px; font-weight: 700; line-height: 1.25; }

.news-card .price { font-size: 22px; }

/* ---------- Animations des nouveautés ---------- */

@keyframes kmShake {
  0%, 60%, 100% { transform: translateX(0) rotate(0); }
  64% { transform: translateX(-5px) rotate(-2deg); }
  68% { transform: translateX(5px) rotate(2deg); }
  72% { transform: translateX(-4px) rotate(-1.5deg); }
  76% { transform: translateX(4px) rotate(1.5deg); }
  80% { transform: translateX(-2px) rotate(-0.5deg); }
  84% { transform: translateX(2px) rotate(0.5deg); }
  88% { transform: translateX(0) rotate(0); }
}
@keyframes kmPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }
@keyframes kmGlow { 0%, 100% { box-shadow: 0 0 0 0 rgba(0, 0, 0, 0); } 50% { box-shadow: 0 0 26px 2px var(--accent); } }
@keyframes kmBounce {
  0%, 55%, 100% { transform: translateY(0); }
  65% { transform: translateY(-10px); }
  75% { transform: translateY(0); }
  83% { transform: translateY(-4px); }
  90% { transform: translateY(0); }
}
@keyframes kmShine { 0%, 50% { transform: translateX(-130%); } 85%, 100% { transform: translateX(130%); } }

.anim-shake { animation: kmShake var(--dur) ease-in-out infinite; }
.anim-pulse { animation: kmPulse var(--dur) ease-in-out infinite; }
.anim-glow { animation: kmGlow var(--dur) ease-in-out infinite; }
.anim-bounce { animation: kmBounce var(--dur) ease-in-out infinite; }
.anim-shine::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(255,255,255,0) 35%, rgba(255,255,255,0.32) 50%, rgba(255,255,255,0) 65%);
  transform: translateX(-130%);
  animation: kmShine var(--dur) ease-in-out infinite;
  pointer-events: none;
}

/* Le rebond et le halo ont besoin de place autour des cartes */
.news-row { padding-top: 22px; padding-bottom: 24px; }
.news { padding-bottom: 6px; }

/* ---------- Catégories ---------- */

.chips {
  position: sticky;
  top: var(--banner-h);
  z-index: 10;
  background: var(--bg);
  border-bottom: 1px solid #221c17;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 12px 22px;
  scrollbar-width: none;
}
.chips::-webkit-scrollbar { display: none; }

.chip {
  flex: none;
  height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: transparent;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.chip.is-active { background: var(--accent); color: var(--on-accent); border-color: transparent; }

.sections { padding: 4px 22px 0; display: flex; flex-direction: column; gap: 18px; }

.cat[hidden] { display: none; }

.cat-head { display: flex; align-items: baseline; justify-content: space-between; padding: 18px 0 4px; }

.cat-head h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: 30px;
  text-transform: uppercase;
}

.items { list-style: none; margin: 0; padding: 0; }

.item {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: none;
  text-align: left;
}

.item.is-clickable { cursor: pointer; }
.item.is-clickable:active { opacity: 0.75; }

.item-text { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 5px; }

.item-name { font-size: 15px; font-weight: 700; line-height: 1.3; }

.tag-new {
  display: inline-block;
  vertical-align: 2px;
  margin-left: 4px;
  padding: 1px 7px;
  border-radius: 999px;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.item-desc {
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.item-photo {
  flex: none;
  width: 88px;
  height: 88px;
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface-2);
}

.item-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- Pied de page ---------- */

.footer {
  margin-top: 28px;
  padding: 26px 22px calc(40px + env(safe-area-inset-bottom));
  border-top: 1px solid #221c17;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}

.footer strong { color: var(--text); }
.footer a { color: var(--muted); }
.footer a:hover { color: var(--text); }

/* ---------- Fiche produit ---------- */

.sheet { position: fixed; inset: 0; z-index: 50; display: flex; align-items: flex-end; justify-content: center; }
.sheet[hidden] { display: none; }

.sheet-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.6); animation: fadeIn 0.2s ease-out; }

.sheet-panel {
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: 88vh;
  overflow-y: auto;
  background: var(--surface);
  border-radius: 24px 24px 0 0;
  padding-bottom: env(safe-area-inset-bottom);
  animation: slideUp 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
  outline: none;
}

.sheet-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 0;
  background: rgba(14, 12, 10, 0.72);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.sheet-photo { background: var(--surface-2); }
.sheet-photo:empty { height: 64px; background: none; }
.sheet-photo img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

.sheet-body { padding: 18px 22px 30px; display: flex; flex-direction: column; gap: 8px; }

.sheet-cat { font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }

.sheet-body h3 { margin: 0; font-family: var(--display); font-weight: 800; font-size: 32px; line-height: 1; text-transform: uppercase; }

.sheet-desc { margin: 0; font-size: 14px; line-height: 1.55; color: #d6cbbd; }
.sheet-desc:empty { display: none; }

.sheet-price { font-size: 28px; margin-top: 4px; }

@keyframes slideUp { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

body.sheet-open { overflow: hidden; }

@media (min-width: 600px) {
  .sheet { align-items: center; }
  .sheet-panel { border-radius: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .anim-shake, .anim-pulse, .anim-glow, .anim-bounce { animation: none; }
  .anim-shine::after { animation: none; }
  .banner-track.is-running { animation-duration: calc(var(--marquee-dur, 30s) * 2); }
  .sheet-panel, .sheet-backdrop { animation: none; }
}
