/* CHICKEN BBQ — design system statique (noir charbon, rouge braise, or) */

:root {
  --radius: 0.9rem;
  --background: oklch(0.15 0.008 60);
  --foreground: oklch(0.97 0.006 80);
  --surface: oklch(0.19 0.012 55);
  --card: oklch(0.2 0.014 50);
  --primary: oklch(0.58 0.216 27);
  --primary-foreground: oklch(0.99 0.005 90);
  --secondary: oklch(0.26 0.018 50);
  --muted: oklch(0.24 0.014 50);
  --muted-foreground: oklch(0.72 0.02 70);
  --accent: oklch(0.82 0.155 82);
  --accent-foreground: oklch(0.18 0.02 60);
  --success: oklch(0.68 0.16 150);
  --border: oklch(0.3 0.016 55);
  --ring: oklch(0.58 0.216 27);
  --gradient-ember: linear-gradient(135deg, oklch(0.58 0.216 27) 0%, oklch(0.72 0.19 55) 55%, oklch(0.82 0.155 82) 100%);
  --gradient-fade: linear-gradient(180deg, oklch(0.15 0.008 60 / 0) 0%, oklch(0.15 0.008 60 / 0.85) 65%, oklch(0.15 0.008 60) 100%);
  --shadow-glow: 0 18px 45px -18px oklch(0.58 0.216 27 / 0.75);
  --shadow-card: 0 12px 30px -18px oklch(0 0 0 / 0.9);
  --font-display: "Archivo Black", system-ui, sans-serif;
  --font-sans: "Barlow", system-ui, sans-serif;
}

* { box-sizing: border-box; border-color: var(--border); }
html { color-scheme: dark; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, .display { font-family: var(--font-display); letter-spacing: -0.01em; margin: 0; }
p { margin: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }

/* --- utilitaires --- */
.wrap { max-width: 72rem; margin: 0 auto; padding: 0 1rem; }
.wrap-sm { max-width: 42rem; margin: 0 auto; padding: 0 1rem; }
.wrap-md { max-width: 56rem; margin: 0 auto; padding: 0 1rem; }
.muted { color: var(--muted-foreground); }
.accent { color: var(--accent); }
.gold { color: var(--accent); }
.text-ember { background: var(--gradient-ember); -webkit-background-clip: text; background-clip: text; color: transparent; }
.section { padding: 2rem 0; }
.row { display: flex; align-items: center; gap: .75rem; }
.between { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.hidden { display: none !important; }
.no-scrollbar { scrollbar-width: none; }
.no-scrollbar::-webkit-scrollbar { display: none; }
.stack > * + * { margin-top: .75rem; }

.card { background: var(--card); border: 1px solid color-mix(in oklab, var(--border) 70%, transparent); border-radius: 1rem; box-shadow: var(--shadow-card); }
.panel { background: var(--surface); border: 1px solid color-mix(in oklab, var(--border) 70%, transparent); border-radius: 1.5rem; padding: 1.5rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  height: 3.25rem; padding: 0 1.75rem; border-radius: 999px;
  font-family: var(--font-display); font-size: .875rem; border: 1px solid transparent;
  background: var(--card); color: var(--foreground); border-color: var(--border);
}
.btn-primary { background: var(--gradient-ember); color: var(--primary-foreground); box-shadow: var(--shadow-glow); border-color: transparent; }
.btn-sm { height: 2.75rem; padding: 0 1rem; font-size: .8rem; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-full { width: 100%; }

.badge { display: inline-flex; align-items: center; gap: .25rem; border-radius: 999px; padding: .25rem .5rem; font-size: .7rem; font-weight: 700; }
.badge-primary { background: var(--primary); color: var(--primary-foreground); }
.badge-accent { background: var(--accent); color: var(--accent-foreground); }
.badge-muted { background: color-mix(in oklab, var(--background) 90%, transparent); color: var(--muted-foreground); }
.badge-success { background: color-mix(in oklab, var(--success) 18%, transparent); color: var(--success); }
.chip { border-radius: 999px; background: var(--secondary); padding: .25rem .75rem; font-size: .75rem; font-weight: 600; color: var(--muted-foreground); }

label.field { display: block; font-size: .8rem; font-weight: 700; margin-bottom: .35rem; }
.input, select.input, textarea.input {
  height: 3rem; width: 100%; border-radius: .9rem; border: 1px solid var(--border);
  background: var(--background); padding: 0 .9rem; font-size: .95rem; color: var(--foreground);
  font-family: var(--font-sans);
}
textarea.input { height: auto; min-height: 5rem; padding: .7rem .9rem; resize: vertical; }
.input::placeholder { color: var(--muted-foreground); }
.input:focus-visible { outline: 2px solid var(--ring); outline-offset: 1px; }
.grid-2 { display: grid; gap: .75rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* --- header --- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  border-bottom: 1px solid color-mix(in oklab, var(--border) 70%, transparent);
  background: color-mix(in oklab, var(--background) 85%, transparent);
  backdrop-filter: blur(16px);
}
.header-inner { display: flex; height: 4rem; align-items: center; justify-content: space-between; gap: .75rem; }
.logo { height: 2.5rem; width: auto; mix-blend-mode: screen; }
.nav-desktop { display: none; gap: .25rem; }
.nav-desktop a { border-radius: 999px; padding: .5rem 1rem; font-size: .875rem; font-weight: 600; color: var(--muted-foreground); }
.nav-desktop a:hover { background: var(--secondary); color: var(--foreground); }
.nav-desktop a.active, .nav-mobile a.active { background: var(--secondary); color: var(--foreground); }
.cart-btn { position: relative; display: inline-flex; height: 2.75rem; align-items: center; gap: .5rem; border-radius: 999px; background: var(--gradient-ember); padding: 0 1rem; font-size: .875rem; font-weight: 700; color: var(--primary-foreground); box-shadow: var(--shadow-glow); }
.cart-count { display: grid; place-items: center; min-width: 1.5rem; height: 1.5rem; border-radius: 999px; background: var(--background); padding: 0 .35rem; font-size: .75rem; color: var(--foreground); }
.burger { display: grid; place-items: center; height: 2.75rem; width: 2.75rem; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--foreground); }
.nav-mobile { border-top: 1px solid color-mix(in oklab, var(--border) 70%, transparent); }
.nav-mobile nav { display: flex; flex-direction: column; padding: .5rem; }
.nav-mobile a { border-radius: .75rem; padding: .75rem 1rem; font-size: 1rem; font-weight: 600; color: var(--muted-foreground); }
.label-cart { display: none; }

/* --- hero --- */
.hero { position: relative; overflow: hidden; }
.hero > img { position: absolute; inset: 0; height: 100%; width: 100%; object-fit: cover; opacity: .7; }
.hero .fade { position: absolute; inset: 0; background: var(--gradient-fade); }
.hero-content { position: relative; padding: 5rem 1rem 3.5rem; max-width: 72rem; margin: 0 auto; }
.eyebrow { display: inline-flex; align-items: center; gap: .5rem; border-radius: 999px; border: 1px solid color-mix(in oklab, var(--accent) 40%, transparent); background: color-mix(in oklab, var(--background) 60%, transparent); padding: .25rem .75rem; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); }
.hero h1 { margin-top: 1rem; max-width: 36rem; font-size: 2.25rem; line-height: 1.05; }
.hero p { margin-top: 1rem; max-width: 28rem; color: var(--muted-foreground); }
.hero-actions { margin-top: 1.75rem; display: flex; flex-wrap: wrap; gap: .75rem; }

.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.fact { border-radius: 1rem; border: 1px solid color-mix(in oklab, var(--border) 70%, transparent); background: var(--card); padding: .75rem; text-align: center; }
.fact .ico { font-size: 1.1rem; }
.fact small { display: block; margin-top: .35rem; font-size: .75rem; color: var(--muted-foreground); }
.fact strong { font-family: var(--font-display); font-size: .875rem; font-weight: 400; }

/* --- produits --- */
.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.product-card { display: flex; flex-direction: column; overflow: hidden; border-radius: 1rem; border: 1px solid color-mix(in oklab, var(--border) 70%, transparent); background: var(--card); box-shadow: var(--shadow-card); }
.product-card:active { transform: scale(.99); }
.product-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface); }
.product-media img { height: 100%; width: 100%; object-fit: cover; transition: transform .5s; }
.product-card:hover .product-media img { transform: scale(1.05); }
.product-badges { position: absolute; left: .5rem; top: .5rem; display: flex; gap: .25rem; }
.product-body { display: flex; flex: 1; flex-direction: column; gap: .25rem; padding: .75rem; }
.product-body .name { font-family: var(--font-display); font-size: .875rem; line-height: 1.2; }
.product-body .desc { font-size: .75rem; color: var(--muted-foreground); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-foot { margin-top: auto; padding-top: .5rem; display: flex; align-items: center; justify-content: space-between; }
.product-foot .price { font-family: var(--font-display); font-size: 1rem; color: var(--accent); }
.plus { display: grid; height: 2.25rem; width: 2.25rem; place-items: center; border-radius: 999px; background: var(--gradient-ember); color: var(--primary-foreground); box-shadow: var(--shadow-glow); }

.filters { display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .5rem; margin: 0 -1rem 1rem; padding-left: 1rem; padding-right: 1rem; }
.filters button { flex: none; border-radius: 999px; border: 1px solid var(--border); background: var(--card); color: var(--muted-foreground); padding: .5rem 1rem; font-size: .85rem; font-weight: 600; }
.filters button.active { background: var(--gradient-ember); color: var(--primary-foreground); border-color: transparent; box-shadow: var(--shadow-glow); }

/* --- promos --- */
.promo-scroller { display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -1rem; padding: 0 1rem .5rem; }
.promo-card { position: relative; width: 280px; flex: none; scroll-snap-align: start; overflow: hidden; border-radius: 1.5rem; border: 1px solid color-mix(in oklab, var(--border) 70%, transparent); background: var(--card); box-shadow: var(--shadow-card); }
.promo-card img { height: 10rem; width: 100%; object-fit: cover; }
.promo-body { padding: 1rem; }
.price-old { text-decoration: line-through; color: var(--muted-foreground); font-size: .85rem; }
.price-new { font-family: var(--font-display); font-size: 1.25rem; color: var(--accent); }
.promo-list { display: grid; gap: 1rem; }

/* --- panier --- */
.cart-line { display: flex; gap: .75rem; padding: .75rem; }
.cart-line img { height: 4.5rem; width: 4.5rem; border-radius: .75rem; object-fit: cover; }
.qty { display: inline-flex; align-items: center; gap: .5rem; border-radius: 999px; border: 1px solid var(--border); background: var(--card); padding: .25rem; }
.qty button { display: grid; height: 2.25rem; width: 2.25rem; place-items: center; border-radius: 999px; border: 0; background: var(--secondary); color: var(--foreground); font-size: 1.1rem; }
.qty span { min-width: 2rem; text-align: center; font-family: var(--font-display); }
.summary-row { display: flex; justify-content: space-between; font-size: .9rem; padding: .25rem 0; }
.summary-total { display: flex; justify-content: space-between; font-family: var(--font-display); font-size: 1.15rem; border-top: 1px solid var(--border); margin-top: .5rem; padding-top: .75rem; }
.link-remove { background: none; border: 0; color: var(--muted-foreground); font-size: .8rem; text-decoration: underline; padding: 0; }

/* --- checkout --- */
.mode-switch { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.mode-switch button { border-radius: .9rem; border: 1px solid var(--border); background: var(--card); color: var(--muted-foreground); padding: .85rem; font-weight: 700; font-size: .9rem; }
.mode-switch button.active { background: var(--gradient-ember); color: var(--primary-foreground); border-color: transparent; box-shadow: var(--shadow-glow); }
.notice { border-radius: .9rem; border: 1px solid var(--border); background: var(--surface); padding: .75rem; font-size: .8rem; color: var(--muted-foreground); }
.notice.error { border-color: var(--primary); color: var(--foreground); }
.notice.ok { border-color: var(--success); color: var(--foreground); }

/* --- FAQ / accordéon --- */
details.faq { border-radius: 1rem; border: 1px solid color-mix(in oklab, var(--border) 70%, transparent); background: var(--card); padding: .9rem 1rem; }
details.faq + details.faq { margin-top: .5rem; }
details.faq summary { cursor: pointer; font-weight: 700; font-size: .95rem; list-style: none; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq p { margin-top: .5rem; font-size: .875rem; color: var(--muted-foreground); }

/* --- assistant --- */
.chat-fab { position: fixed; right: 1rem; bottom: 1rem; z-index: 50; display: grid; height: 3.5rem; width: 3.5rem; place-items: center; border-radius: 999px; border: 0; background: var(--gradient-ember); color: var(--primary-foreground); box-shadow: var(--shadow-glow); font-size: 1.4rem; }
.chat-panel { position: fixed; right: 1rem; bottom: 5rem; z-index: 50; width: min(22rem, calc(100vw - 2rem)); border-radius: 1.25rem; border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow-card); overflow: hidden; }
.chat-head { display: flex; align-items: center; justify-content: space-between; padding: .85rem 1rem; border-bottom: 1px solid var(--border); font-family: var(--font-display); font-size: .9rem; }
.chat-body { max-height: 20rem; overflow-y: auto; padding: .85rem; display: flex; flex-direction: column; gap: .5rem; }
.msg { border-radius: .9rem; padding: .55rem .75rem; font-size: .85rem; max-width: 85%; }
.msg.bot { background: var(--card); color: var(--foreground); align-self: flex-start; }
.msg.user { background: var(--gradient-ember); color: var(--primary-foreground); align-self: flex-end; }
.chat-suggestions { display: flex; flex-wrap: wrap; gap: .35rem; padding: 0 .85rem .5rem; }
.chat-suggestions button { border-radius: 999px; border: 1px solid var(--border); background: var(--card); color: var(--muted-foreground); font-size: .72rem; padding: .3rem .6rem; }
.chat-form { display: flex; gap: .5rem; padding: .75rem; border-top: 1px solid var(--border); }
.chat-form input { flex: 1; height: 2.6rem; }

/* --- footer --- */
.site-footer { margin-top: 4rem; border-top: 1px solid color-mix(in oklab, var(--border) 70%, transparent); background: color-mix(in oklab, var(--surface) 60%, transparent); }
.footer-grid { display: grid; gap: 2rem; padding: 3rem 1rem; max-width: 72rem; margin: 0 auto; }
.footer-grid a { color: var(--muted-foreground); }
.footer-grid a:hover { color: var(--foreground); }
.footer-logo { height: 3rem; width: auto; mix-blend-mode: screen; }
.socials { display: flex; gap: .5rem; padding-top: .5rem; }
.socials a { display: grid; height: 2.5rem; width: 2.5rem; place-items: center; border-radius: 999px; border: 1px solid var(--border); background: var(--background); font-size: .75rem; font-weight: 700; }
.copyright { border-top: 1px solid color-mix(in oklab, var(--border) 70%, transparent); padding: 1.25rem 0; text-align: center; font-size: .75rem; color: var(--muted-foreground); }

/* --- toast --- */
#toast { position: fixed; left: 50%; bottom: 1.5rem; transform: translateX(-50%) translateY(1rem); z-index: 60; background: var(--card); border: 1px solid var(--border); border-radius: 999px; padding: .7rem 1.1rem; font-size: .85rem; box-shadow: var(--shadow-card); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* --- responsive --- */
@media (min-width: 640px) {
  .logo { height: 2.75rem; }
  .label-cart { display: inline; }
  .hero h1 { font-size: 3.5rem; }
  .hero-content { padding-top: 7rem; }
  .facts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .promo-card { width: 340px; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .promo-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 768px) {
  .nav-desktop { display: flex; }
  .burger, .nav-mobile { display: none; }
  .split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
}
@media (min-width: 1024px) {
  .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* --- icônes inline --- */
.ico-svg { display: inline-block; vertical-align: middle; flex: none; }
.icon-line { display: flex; align-items: flex-start; gap: .5rem; }
.icon-line .ico-svg { margin-top: .15rem; color: var(--accent); }
.fact .ico .ico-svg { color: var(--accent); }
.badge .ico-svg { vertical-align: -2px; }
.hide-mobile { display: none !important; }

/* --- barre de navigation mobile --- */
.bottom-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  border-top: 1px solid var(--border);
  background: color-mix(in oklab, var(--background) 92%, transparent);
  backdrop-filter: blur(16px);
  padding-bottom: env(safe-area-inset-bottom);
}
.bottom-nav-grid { display: grid; grid-template-columns: repeat(5, 1fr); height: 4rem; }
.bottom-nav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .15rem; color: var(--muted-foreground); }
.bottom-nav a.active { color: var(--accent); }
.bottom-nav .bn-ico { position: relative; display: grid; place-items: center; }
.bottom-nav .bn-label { font-size: .625rem; font-weight: 700; line-height: 1; }
.bn-badge { position: absolute; top: -.4rem; right: -.65rem; display: grid; place-items: center; min-width: 1rem; height: 1rem; padding: 0 .25rem; border-radius: 999px; background: var(--gradient-ember); color: var(--primary-foreground); font-size: .625rem; font-weight: 700; }
body { padding-bottom: 4.5rem; }

/* --- hero slider --- */
.hero-slider { position: relative; overflow: hidden; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .7s ease; pointer-events: none; }
.hero-slide.is-active { opacity: 1; }
.hero-slide img { position: absolute; inset: 0; height: 100%; width: 100%; object-fit: cover; opacity: .7; }
.hero-slide .fade { position: absolute; inset: 0; background: var(--gradient-fade); }
.hero-stage { position: relative; min-height: 30rem; }
.hero-copy { position: absolute; inset: 0; opacity: 0; transform: translateY(1rem); transition: opacity .7s ease, transform .7s ease; pointer-events: none; padding: 5rem 1rem 4.5rem; max-width: 72rem; margin: 0 auto; display: flex; flex-direction: column; justify-content: center; }
.hero-copy.is-active { opacity: 1; transform: none; pointer-events: auto; }
.hero-copy h1 { margin-top: 1rem; max-width: 36rem; font-size: 2.25rem; line-height: 1.05; }
.hero-copy p { margin-top: 1rem; max-width: 28rem; color: var(--muted-foreground); }
.slider-btn { position: absolute; top: 50%; transform: translateY(-50%); z-index: 10; display: grid; place-items: center; height: 2.5rem; width: 2.5rem; border-radius: 999px; border: 1px solid var(--border); background: color-mix(in oklab, var(--card) 80%, transparent); color: var(--foreground); box-shadow: var(--shadow-card); backdrop-filter: blur(8px); }
.slider-btn.prev { left: .75rem; }
.slider-btn.next { right: .75rem; }
.slider-dots { position: absolute; bottom: 1rem; left: 50%; transform: translateX(-50%); z-index: 10; display: flex; gap: .5rem; }
.slider-dots button { height: .5rem; width: .5rem; border: 0; border-radius: 999px; background: color-mix(in oklab, var(--foreground) 40%, transparent); transition: all .3s; }
.slider-dots button.is-active { width: 1.5rem; background: var(--gradient-ember); box-shadow: var(--shadow-glow); }

/* --- carrousel promos --- */
.promo-carousel { position: relative; }
.promo-carousel .slider-btn.is-off { opacity: 0; pointer-events: none; }
.promo-carousel .slider-btn.prev { left: -.25rem; }
.promo-carousel .slider-btn.next { right: -.25rem; }
.promo-scroller { scroll-behavior: smooth; }

/* --- comment commander --- */
.steps { display: grid; gap: .75rem; grid-template-columns: 1fr; }
.step-card { position: relative; overflow: hidden; border-radius: 1rem; border: 1px solid color-mix(in oklab, var(--border) 70%, transparent); background: var(--card); padding: 1.25rem; box-shadow: var(--shadow-card); }
.step-card .num { position: absolute; right: -.25rem; top: -.75rem; font-family: var(--font-display); font-size: 3.5rem; color: color-mix(in oklab, var(--primary) 18%, transparent); }
.step-card .step-ico { display: grid; height: 3rem; width: 3rem; place-items: center; border-radius: 1rem; background: var(--gradient-ember); color: var(--primary-foreground); box-shadow: var(--shadow-glow); }
.step-card h3 { margin-top: 1rem; font-family: var(--font-display); font-size: .95rem; line-height: 1.3; }
.step-card p { margin-top: .4rem; font-size: .875rem; color: var(--muted-foreground); line-height: 1.6; }

@media (min-width: 640px) {
  .hero-copy h1 { font-size: 3.5rem; }
  .hero-copy { padding-top: 7rem; }
  .hero-stage { min-height: 34rem; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .slider-btn.prev { left: 1.5rem; }
  .slider-btn.next { right: 1.5rem; }
}
@media (min-width: 768px) {
  .bottom-nav { display: none; }
  body { padding-bottom: 0; }
  .hide-mobile { display: inline-flex !important; }
}
@media (min-width: 1024px) {
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ajustements mobile */
.hero-copy .eyebrow { align-self: flex-start; }
@media (max-width: 767px) {
  .chat-fab { bottom: 5.25rem; }
  .chat-panel { bottom: 9.5rem; }
  .hero-slider .slider-btn { top: auto; bottom: .75rem; transform: none; height: 2.25rem; width: 2.25rem; }
  .hero-slider .slider-dots { bottom: 1.2rem; }
  .hero-slider .slider-btn.prev { left: 1rem; }
  .hero-slider .slider-btn.next { right: 1rem; }
}
