@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@500;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --color-bg: #FAFAFA;
  --color-surface: #FFFFFF;
  --color-dark: #111111;
  --color-dark-2: #1C1C1C;
  --color-text: #111111;
  --color-text-muted: #6B6B6B;
  --color-border: #D9D9D9;
  --color-accent: #111111;
  --color-accent-dark: #000000;
  --color-accent-light: #EDEDED;
  --color-success: #111111;
  --color-danger: #111111;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 6px 18px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 20px 48px rgba(0, 0, 0, 0.22);
  --radius-sm: 0px;
  --radius-md: 0px;
  --radius-lg: 0px;
  --radius-pill: 0px;
  --font-display: 'Manrope', sans-serif;
  --font-body: 'Inter', sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
#sticky-top {
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header {
  background: #111111;
  color: #fff;
  border-bottom: 1px solid #000;
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: 1180px;
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  color: #fff;
}
.brand__mark {
  width: 38px;
  height: 38px;
  border-radius: 0;
  background: #000;
  border: 1.5px solid #fff;
  display: grid;
  place-items: center;
  font-size: 19px;
  overflow: hidden;
}
.header-actions { display: flex; align-items: center; gap: 12px; }
.btn-track {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: 0;
  background: transparent;
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}
.btn-track:hover { background: rgba(255, 255, 255, 0.1); border-color: #fff; }
.cart-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 0;
  background: #fff;
  color: #111;
  font-weight: 700;
  font-size: 14px;
  border: 1.5px solid #fff;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease);
}
.cart-toggle:hover { transform: translateY(-2px); background: #EDEDED; }
.cart-toggle__count {
  background: #111;
  color: #fff;
  border-radius: 0;
  width: 20px; height: 20px;
  display: grid; place-items: center;
  font-size: 12px; font-weight: 800;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 62vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  background: linear-gradient(180deg, rgba(10, 10, 10, 0.6), rgba(5, 5, 5, 0.88)), var(--hero-img, linear-gradient(135deg, #2b2b2b, #0a0a0a)) center/cover no-repeat;
  overflow: hidden;
  border-bottom: 1px solid #000;
}
.hero__content { position: relative; z-index: 1; padding: 80px 24px; animation: hero-in 0.9s var(--ease) both; }
@keyframes hero-in { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px; border-radius: 0;
  background: transparent; border: 1.5px solid rgba(255, 255, 255, 0.5);
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  margin-bottom: 22px;
}
.hero h1 { font-size: clamp(38px, 6vw, 64px); font-weight: 800; line-height: 1.05; }
.hero p.tagline { margin-top: 18px; font-size: clamp(16px, 2vw, 20px); color: rgba(255, 255, 255, 0.75); max-width: 560px; margin-left: auto; margin-right: auto; }
.hero__cta { margin-top: 34px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 15px 30px; border-radius: 0;
  background: #111; color: #fff; font-weight: 700; font-size: 15px;
  border: 1.5px solid #111;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease);
}
.btn-primary:hover { transform: translateY(-2px); background: #333; }
/* Sur le fond sombre de la bannière d'accueil, il faut l'inverse pour rester lisible. */
.hero .btn-primary { background: #fff; color: #111; border-color: #fff; }
.hero .btn-primary:hover { background: #EDEDED; }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 15px 28px; border-radius: 0;
  background: transparent; color: #fff; font-weight: 600; font-size: 15px;
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.1); border-color: #fff; }

/* ---------- Quick access bar ---------- */
.quick-access {
  background: #000000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.quick-access__inner {
  max-width: 1180px; margin: 0 auto; padding: 0 24px;
  display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none;
}
.quick-access__inner::-webkit-scrollbar { display: none; }
.quick-access__link {
  flex: 0 0 auto; padding: 10px 16px; font-size: 13px; font-weight: 600;
  color: rgba(255, 255, 255, 0.55); border-bottom: 2px solid transparent;
  transition: all 0.2s var(--ease); white-space: nowrap;
}
.quick-access__link:hover { color: #fff; }
.quick-access__link.active { color: #fff; border-bottom-color: #fff; }
.quick-access__link--ghost { margin-left: auto; color: rgba(255, 255, 255, 0.4); }
.quick-access__link--ghost:hover { color: #fff; }

/* ---------- Category tabs ---------- */
.category-nav { position: sticky; top: var(--sticky-offset, 104px); z-index: 90; background: var(--color-bg); padding: 18px 0 8px; border-bottom: 1px solid var(--color-border); }
.category-nav__scroll { display: flex; gap: 0; overflow-x: auto; padding: 4px 24px 10px; scrollbar-width: none; max-width: 1180px; margin: 0 auto; }
.category-nav__scroll::-webkit-scrollbar { display: none; }
.category-tab {
  flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 12px 22px; border-radius: 0; border: 1.5px solid #111;
  background: #fff; box-shadow: none; margin-left: -1.5px;
  font-weight: 600; font-size: 13px; color: #111;
  transition: background .15s, color .15s; position: relative; z-index: 1;
}
.category-tab:first-child { margin-left: 0; }
.category-tab__icon { display: inline-flex; align-items: center; justify-content: center; }
.category-tab:hover { background: #F0F0F0; z-index: 2; }
.category-tab.active { color: #fff; background: #111; z-index: 3; }

/* ---------- Product grid ---------- */
.menu-section { padding: 36px 0 10px; }
.menu-section__title { font-size: 26px; margin-bottom: 4px; }
.menu-section__count { color: var(--color-text-muted); font-size: 14px; margin-bottom: 22px; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; padding-bottom: 40px; }
.product-card {
  display: flex; gap: 16px; align-items: center;
  background: var(--color-surface); border-radius: 0;
  padding: 16px; box-shadow: none; border: 1.5px solid var(--color-border);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
  cursor: pointer; animation: card-in 0.5s var(--ease) both;
}
@keyframes card-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
.product-card:hover { box-shadow: var(--shadow-md); border-color: #111; }
.product-card__photo {
  width: 76px; height: 76px; border-radius: 0; object-fit: cover; flex-shrink: 0;
  background: #F0F0F0; border: 1.5px solid #111;
}
.product-card__photo--placeholder { display: grid; place-items: center; overflow: hidden; }
.product-card__body { flex: 1; min-width: 0; }
.product-card__name { font-family: var(--font-display); font-weight: 700; font-size: 16px; margin-bottom: 3px; }
.product-card__desc { font-size: 13px; color: var(--color-text-muted); overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.price-badge {
  flex-shrink: 0; background: #111; color: #fff; font-weight: 800; font-size: 14px;
  padding: 7px 14px; border-radius: 0; box-shadow: none;
}
.product-card.is-unavailable { opacity: 0.5; filter: grayscale(1); cursor: not-allowed; }
.product-card.is-unavailable:hover { box-shadow: none; border-color: var(--color-border); }

/* ---------- Pills nav (generic) ---------- */
.pill-nav { display: inline-flex; background: var(--color-surface); border-radius: 0; border: 1.5px solid #111; padding: 4px; gap: 4px; }
.pill-nav a, .pill-nav button {
  border: none; background: transparent; padding: 9px 20px; border-radius: 0;
  font-weight: 600; font-size: 14px; color: var(--color-text-muted); transition: all 0.2s var(--ease);
}
.pill-nav a.active, .pill-nav button.active { background: #111; color: #fff; }

/* ---------- Modal / cart drawer ---------- */
.overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(2px); z-index: 200; opacity: 0; pointer-events: none; transition: opacity 0.3s var(--ease); }
.overlay.open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100vw);
  background: var(--color-surface); z-index: 201; transform: translateX(100%);
  transition: transform 0.35s var(--ease); display: flex; flex-direction: column; box-shadow: var(--shadow-lg);
  border-left: 1.5px solid #111;
}
.drawer.open { transform: translateX(0); }
.drawer__header { padding: 20px 22px; border-bottom: 1.5px solid #111; display: flex; align-items: center; justify-content: space-between; }
.drawer__close { background: #fff; border: 1.5px solid #111; width: 34px; height: 34px; border-radius: 0; font-size: 16px; }
.drawer__close:hover { background: #111; color: #fff; }
.drawer__body { flex: 1; overflow-y: auto; padding: 18px 22px; }
.drawer__footer { padding: 20px 22px; border-top: 1.5px solid #111; }

.modal {
  position: fixed; top: 5vh; bottom: 5vh; left: 50%;
  transform: translateX(-50%) translateY(8px); z-index: 202;
  width: min(480px, calc(100vw - 32px));
  overflow-y: auto; -webkit-overflow-scrolling: touch;
  background: var(--color-surface); border-radius: 0; box-shadow: var(--shadow-lg);
  border: 1.5px solid #111;
  opacity: 0; pointer-events: none; transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.modal.open { opacity: 1; transform: translateX(-50%) translateY(0); pointer-events: auto; }
/* Sur mobile, "vh" ne suit pas toujours la barre d'adresse qui apparaît/disparaît
   (bug connu en portrait). "dvh" reflète la hauteur réellement visible. */
@supports (height: 1dvh) {
  .modal { top: 5dvh; bottom: 5dvh; }
}

.cart-line { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--color-border); }
.cart-line__info { flex: 1; }
.cart-line__name { font-weight: 700; font-size: 14px; }
.cart-line__opts { font-size: 12px; color: var(--color-text-muted); margin-top: 2px; }
.qty-stepper { display: flex; align-items: center; gap: 8px; }
.qty-stepper button { width: 26px; height: 26px; border-radius: 0; border: 1.5px solid #111; background: #fff; font-weight: 700; }
.qty-stepper button:hover { background: #111; color: #fff; }

/* ---------- Forms ---------- */
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: 13px; margin-bottom: 6px; color: var(--color-text); }
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 14px; border-radius: 0; border: 1.5px solid var(--color-border);
  font-family: inherit; font-size: 14px; background: var(--color-bg); transition: border-color 0.2s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: #111; background: #fff; }
/* Choix du moyen de paiement (panier) */
.pay-choices { display: grid; gap: 8px; }
.field .pay-choice { display: flex; align-items: center; gap: 12px; margin: 0; padding: 12px 14px; border: 1.5px solid var(--color-border); background: var(--color-bg); font-size: 14px; font-weight: 600; line-height: 1.3; cursor: pointer; }
.field .pay-choice input[type="radio"] { flex: 0 0 auto; width: 20px; height: 20px; min-width: 20px; margin: 0; padding: 0; accent-color: #111; }
.field .pay-choice span { flex: 1; min-width: 0; }
.field .pay-choice small { display: block; margin-top: 2px; font-weight: 500; font-size: 12px; color: var(--color-text-muted); }
.field .pay-choice:has(input:checked) { border-color: #111; background: #fff; box-shadow: inset 0 0 0 1px #111; }
.option-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; font-size: 14px; }
.option-row .delta { margin-left: auto; color: var(--color-text-muted); font-size: 13px; }

/* ---------- Track page ---------- */
.track-card { max-width: 520px; margin: 60px auto; background: var(--color-surface); border-radius: 0; box-shadow: var(--shadow-md); border: 1.5px solid #111; padding: 40px; text-align: center; }
.status-pill { display: inline-flex; align-items: center; gap: 8px; padding: 10px 22px; border-radius: 0; font-weight: 700; font-size: 15px; margin: 18px 0; border: 1.5px solid #111; background: #fff; color: #111; }
.status-pill.en_attente, .status-pill.en_preparation { background: #fff; color: #111; border-style: solid; }
.status-pill.prete { background: #111; color: #fff; }
.status-pill.servie { background: #F0F0F0; border-color: #BBB; color: #666; }
.status-pill.annulee { background: #fff; border-style: dashed; border-color: #999; color: #777; }

/* ---------- Footer ---------- */
.site-footer { background: #000000; color: rgba(255, 255, 255, 0.65); padding: 50px 0 30px; margin-top: 60px; border-top: 1px solid #222; }
.site-footer .container { display: flex; flex-wrap: wrap; gap: 30px; justify-content: space-between; }
.site-footer h4 { color: #fff; font-size: 15px; margin-bottom: 12px; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin-top: 16px; }
.gallery-grid img { border-radius: 0; border: 1.5px solid #111; aspect-ratio: 1; object-fit: cover; transition: opacity 0.2s var(--ease); }
.gallery-grid img:hover { opacity: 0.75; }

/* ---------- Toast ---------- */
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px); background: #111; color: #fff; padding: 14px 24px; border-radius: 0; font-weight: 600; font-size: 14px; z-index: 300; opacity: 0; transition: all 0.3s var(--ease); box-shadow: var(--shadow-lg); border: 1.5px solid #000; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  .site-header__inner { padding: 12px 16px; }
  .container { padding: 0 16px; }
  .brand { font-size: 17px; }
  .brand__mark { width: 32px; height: 32px; font-size: 16px; }
  .btn-track { font-size: 13px; padding: 8px 13px; }
  .cart-toggle { font-size: 13px; padding: 8px 14px; }

  .hero { min-height: 46vh; }
  .hero__content { padding: 48px 16px; }
  .hero__eyebrow { font-size: 11px; padding: 5px 12px; margin-bottom: 16px; }
  .hero h1 { font-size: clamp(28px, 9vw, 40px); }
  .hero p.tagline { font-size: 14.5px; margin-top: 12px; }
  .hero__cta { margin-top: 22px; gap: 10px; }
  .btn-primary, .btn-ghost { padding: 10px 16px; font-size: 12.5px; }

  .track-card h1 { font-size: 19px !important; }

  .quick-access__link { font-size: 12px; padding: 9px 12px; }

  .category-tab { padding: 9px 14px; font-size: 12px; }
  .category-tab__icon span { font-size: 18px !important; }
  .category-tab__icon img { width: 18px !important; height: 18px !important; }

  .menu-section { padding: 26px 0 6px; }
  .menu-section__title { font-size: 20px; }
  .menu-section__count { font-size: 12.5px; margin-bottom: 16px; }
  .product-card { padding: 12px; gap: 12px; }
  .product-card__photo { width: 60px; height: 60px; }
  .product-card__name { font-size: 14.5px; }
  .product-card__desc { font-size: 12px; }
  .price-badge { font-size: 12.5px; padding: 6px 11px; }

  .track-card { padding: 26px 20px; margin: 30px auto; }
  .status-pill { font-size: 13.5px; padding: 9px 18px; }

  .site-footer h4 { font-size: 14px; }
  .site-footer p { font-size: 13px; }
}

.skeleton { background: linear-gradient(90deg, #eee 25%, #f5f5f5 50%, #eee 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: 0; }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
