/* P'tit Sucré v5 — page Carte : hero photo, barre de filtres, catégories, fiches produits, tableaux */

/* ---------- Hero ---------- */
.hero--carte { padding-bottom: clamp(56px, 7vw, 90px); }
.hero--carte .hero-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
.hero-photo .arch { max-width: 440px; margin-left: auto; }
.hero-photo img { object-fit: cover; }

/* ---------- Barre de recherche & filtres ---------- */
.site-header.no-hide.is-hidden { transform: none; }
.menu-toolbar {
  position: sticky; top: calc(var(--header-h) + 34px); z-index: 20;
  display: grid; gap: 12px; padding: 14px; margin-bottom: clamp(36px, 5vw, 60px);
  background: var(--blanc); border: var(--line) solid var(--cacao); border-radius: var(--r-lg); box-shadow: var(--pop);
}
.search-bar { display: flex; align-items: center; gap: 10px; min-height: 50px; padding: 0 18px; border-radius: 999px; background: var(--barbe-clair); border: 2px solid var(--cacao); }
.search-bar svg { width: 20px; height: 20px; flex: none; color: var(--framboise); }
.search-bar input { flex: 1; min-width: 0; border: 0; background: transparent; font: 600 1rem var(--font-body); color: var(--cacao); outline: none; }
.search-bar input::placeholder { color: var(--cacao-doux); opacity: .8; }
.search-bar:focus-within { box-shadow: 0 0 0 3px var(--lagon); }
.filter-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-filter {
  flex: none; min-height: 44px; padding: 0 16px; border-radius: 999px; cursor: pointer;
  border: 2px solid var(--cacao); background: var(--blanc); color: var(--cacao);
  font: 800 .92rem/1 var(--font-body); box-shadow: 0 3px 0 var(--cacao);
  transition: background-color .2s, transform .2s var(--ease-out), box-shadow .2s var(--ease-out);
}
.chip-filter:hover { background: var(--barbe-clair); }
.chip-filter:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--cacao); }
.chip-filter.active { background: var(--bonbon); }
.menu-count { margin: 0; padding-left: 6px; font-size: .88rem; font-weight: 700; color: var(--cacao-doux); }

/* ---------- Catégories ---------- */
.menu-stack { display: grid; gap: clamp(56px, 7vw, 96px); }
.cat-block { position: relative; }
.cat-block.highlight { padding: clamp(22px, 4vw, 44px); background: var(--ciel-clair); border: var(--line) solid var(--cacao); border-radius: var(--r-xl); box-shadow: 10px 10px 0 var(--ciel); }
.cat-head { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 16px; margin-bottom: 24px; padding-bottom: 16px; border-bottom: 3px dashed rgba(59, 30, 20, .25); }
.cat-head h3 { font-family: var(--font-display); font-weight: 900; font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144; font-size: clamp(1.9rem, 3.6vw, 3rem); letter-spacing: -.02em; }
.cat-head svg { width: 30px; height: 30px; color: var(--framboise); }
.cat-sub { display: flex; align-items: center; gap: 10px; margin: 36px 0 18px; font-family: var(--font-display); font-weight: 900; font-variation-settings: "SOFT" 100, "WONK" 1; font-size: 1.5rem; }
.cat-sub svg { width: 24px; height: 24px; color: var(--lagon); }
.cat-note { display: flex; align-items: center; gap: 8px; margin-top: 18px; font-weight: 700; }
.cat-note svg { width: 18px; height: 18px; color: var(--framboise); }

/* ---------- Fiches produits ---------- */
.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.product-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.product-card {
  display: flex; align-items: center; gap: 18px; padding: 14px;
  background: var(--blanc); border: var(--line) solid var(--cacao); border-radius: var(--r-md); box-shadow: var(--pop);
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.product-card:hover { transform: translateY(-3px); box-shadow: 0 8px 0 var(--cacao); }
.product-card:not(:has(.product-visual)) { padding: 18px 20px; border-left-width: 10px; border-left-color: var(--bonbon); }
.product-visual { flex: none; width: 132px; aspect-ratio: 1; overflow: hidden; border-radius: 12px; border: 2px solid var(--cacao); background: var(--barbe-clair); isolation: isolate; }
.product-grid.cols-3 .product-visual { width: 104px; }
.product-visual { position: relative; }
.product-visual img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; transition: scale .6s var(--ease-out); }
.product-card, .product-body { min-width: 0; }
@media (hover: hover) and (pointer: fine) { .product-card:hover .product-visual img { scale: 1.07; } }
.product-body { flex: 1; min-width: 0; }
.product-body h4 { font-family: var(--font-display); font-weight: 900; font-variation-settings: "SOFT" 100, "WONK" 1; font-size: 1.35rem; margin-bottom: .3em; }
.product-body p { font-size: .95rem; color: var(--cacao-doux); margin-bottom: .6em; }
.product-body .note { font-weight: 700; color: var(--framboise); }
.price-tags { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- Tableaux (suppléments, boissons) ---------- */
.supplements { margin-top: 26px; padding: clamp(22px, 3vw, 34px); background: var(--barbe-clair); border: var(--line) solid var(--cacao); border-radius: var(--r-lg); }
.supp-title { display: flex; align-items: center; gap: 10px; margin: 0 0 .5em; font-family: var(--font-sign); font-size: .9rem; letter-spacing: .02em; text-transform: uppercase; }
.supp-title svg { width: 18px; height: 18px; color: var(--framboise); }
.supp-list { margin: 0 0 1.4em; line-height: 1.85; color: var(--cacao-doux); font-weight: 600; }
.supp-list:last-child { margin-bottom: 0; }
.drinks-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 18px; }
.drinks-cat { padding: clamp(22px, 3vw, 32px); background: var(--blanc); border: var(--line) solid var(--cacao); border-radius: var(--r-lg); box-shadow: var(--pop); }
.drinks-cat h4 { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; font-family: var(--font-display); font-weight: 900; font-variation-settings: "SOFT" 100, "WONK" 1; font-size: 1.5rem; }
.drinks-cat h4 svg { width: 22px; height: 22px; color: var(--framboise); }
.drinks-list { display: grid; gap: 4px; }
.drink-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; padding: 6px 0; font-weight: 600; }
.drink-row > span:first-child { flex: 1; display: flex; align-items: baseline; min-width: 0; }
.drink-row > span:first-child::after { content: ""; flex: 1; min-width: 20px; margin: 0 6px 0 10px; border-bottom: 2px dotted rgba(59, 30, 20, .35); }
.drink-row .price { font-family: var(--font-sign); font-size: .92rem; color: var(--framboise); }
.drink-extra { display: inline-flex; padding: 3px 10px; border-radius: 999px; background: var(--citron); border: 2px solid var(--cacao); font-size: .8rem; font-weight: 800; }
.drinks-flat { margin-top: 14px; padding-top: 14px; border-top: 2px dashed rgba(59, 30, 20, .25); line-height: 1.8; }

/* Ordinateur : recherche à gauche, filtres à droite, la barre collante reste compacte. */
@media (min-width: 1001px) {
  .menu-toolbar { grid-template-columns: minmax(260px, 340px) minmax(0, 1fr); align-items: start; column-gap: 16px; padding: 12px; }
  .search-bar { min-height: 44px; }
  .menu-count { grid-column: 1; }
  .filter-chips { grid-column: 2; grid-row: 1 / span 2; gap: 6px; }
  .chip-filter { min-height: 40px; padding: 0 13px; font-size: .86rem; }
}
@media (max-width: 1000px) {
  .product-grid.cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .hero--carte .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-photo .arch { max-width: none; margin: 8px 0 var(--skirt); aspect-ratio: 16 / 10; border-radius: var(--r-lg); }
  .hero-photo .arch img { border-radius: calc(var(--r-lg) - var(--line)); }
  .drinks-grid, .product-grid { grid-template-columns: minmax(0, 1fr); }
  .menu-toolbar { padding: 10px; gap: 10px; }
  .filter-chips { flex-wrap: nowrap; overflow-x: auto; padding: 2px 2px 6px; scrollbar-width: none; -webkit-mask: linear-gradient(90deg, #000 85%, transparent); mask: linear-gradient(90deg, #000 85%, transparent); }
  .filter-chips::-webkit-scrollbar { display: none; }
  .menu-count { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}
@media (max-width: 560px) {
  .product-grid.cols-3 { grid-template-columns: minmax(0, 1fr); }
  .product-visual, .product-grid.cols-3 .product-visual { width: 96px; }
  .product-card .ticket { font-size: .8rem; padding: .5em 1.1em; white-space: normal; }
}
/* Quand l'en-tête se masque au défilement, la barre de filtres remonte au lieu de flotter sous un vide. */
.menu-toolbar { transition: top .5s var(--ease-out); }
.site-header.is-hidden ~ main .menu-toolbar { top: 12px; }
