/* ============================================================
   CBK v2 — Feuille de styles principale
   Design : chaleureux, moderne, mobile-first
   ============================================================ */

/* ============================================================
   DESIGN SYSTEM — tokens
   Breakpoints de référence (documentés ici, appliqués via @media
   plus bas — CSS ne permet pas de variabiliser une media query) :
   320 / 375 / 390 / 414 / 480 / 640 / 768 / 1024 / 1280 / 1440
   ============================================================ */
:root {
  /* — Couleur primaire : orange CBK (identité déjà reconnue) — */
  --cbk-orange:    #E8590A;
  --cbk-orange-dk: #B84208;
  --cbk-orange-lt: #FDF0E8;

  /* — Couleur secondaire : brun chaud (déjà présent dans le hero) — */
  --cbk-brown:     #2D1810;
  --cbk-brown-dk:  #1A0E08;
  --cbk-brown-lt:  #4A2E1C;

  /* — Accent : or chaud, réservé aux éléments de valorisation
       (badges, étoiles, fidélité) — jamais utilisé en masse — */
  --cbk-gold:      #E0A72E;
  --cbk-gold-dk:   #A5760F;
  --cbk-gold-lt:   #FBF0D9;

  --cbk-cream:     #F2DFB8;

  /* — Neutres (fond légèrement chaud, pas gris SaaS) — */
  --cbk-dark:      #201510;
  --cbk-gray-900:  #2D2D2D;
  --cbk-gray-700:  #57504B;
  --cbk-gray-400:  #9E948C;
  --cbk-gray-100:  #F7F4F1;
  --cbk-white:     #FFFFFF;

  /* — Statuts (fonctionnels, inchangés) — */
  --cbk-success:   #1A7A4A;
  --cbk-success-lt:#E8F5EE;
  --cbk-danger:    #C0392B;
  --cbk-danger-lt: #FDECEA;
  --cbk-warning:   #D97706;
  --cbk-warning-lt:#FEF3C7;
  --cbk-info:      #1D6FA4;
  --cbk-info-lt:   #E8F2FB;

  /* — Typographie — */
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Bricolage Grotesque', var(--font);
  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.375rem;
  --text-2xl:  1.75rem;
  --text-3xl:  2.25rem;
  --text-4xl:  3rem;
  --text-5xl:  3.75rem;

  /* — Espacement (échelle base 4px) — */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-8: 3rem;
  --space-10: 4rem;
  --space-12: 6rem;

  --radius-sm:  6px;
  --radius-md:  10px;
  --radius-lg:  16px;
  --radius-xl:  24px;
  --radius-2xl: 32px;
  --radius-full: 9999px;

  --shadow-sm:   0 1px 4px rgba(0,0,0,0.08);
  --shadow-md:   0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg:   0 8px 32px rgba(0,0,0,0.14);
  --shadow-warm: 0 16px 40px rgba(45,24,16,0.35);

  --transition-fast: 0.12s cubic-bezier(0.4,0,0.2,1);
  --transition:       0.18s cubic-bezier(0.4,0,0.2,1);
  --transition-slow:  0.32s cubic-bezier(0.4,0,0.2,1);

  --container-max:    1200px;
  --container-narrow: 720px;

  --z-nav:    100;
  --z-cart:   200;
  --z-modal:  300;
  --z-toast:  9999;
}

/* ── Reset & base ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font);
  color: var(--cbk-dark);
  background: var(--cbk-cream);
  line-height: 1.6;
  min-height: 100vh;
}
img { max-width: 100%; display: block; }
a { color: var(--cbk-orange); text-decoration: none; }
a:hover { text-decoration: underline; }
button { cursor: pointer; font-family: inherit; }
input, select, textarea { font-family: inherit; }

/* ── Typography ─────────────────────────────────────────── */
h1 { font-size: 2rem;   font-weight: 700; line-height: 1.2; }
h2 { font-size: 1.5rem; font-weight: 600; line-height: 1.3; }
h3 { font-size: 1.2rem; font-weight: 600; }
h4 { font-size: 1rem;   font-weight: 600; }
p  { color: var(--cbk-gray-700); }

/* ── Layout helpers ─────────────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.flex    { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-sm  { gap: 0.5rem; }
.gap-md  { gap: 1rem; }
.gap-lg  { gap: 1.5rem; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-2 { margin-bottom: 1rem; }
.text-center { text-align: center; }
.text-muted { color: var(--cbk-gray-400); font-size: 0.875rem; }
.hidden { display: none !important; }

/* ── Navbar ─────────────────────────────────────────────── */
.navbar {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  position: sticky;
  top: 0;
  z-index: var(--z-nav);
  transition: box-shadow var(--transition-slow), border-color var(--transition-slow);
}
.navbar.navbar-scrolled {
  border-bottom-color: #EEE7E1;
  box-shadow: var(--shadow-sm);
}
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 68px;
}
.navbar-logo {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--cbk-orange);
  letter-spacing: -0.5px;
  flex-shrink: 0;
}
.navbar-logo span { color: var(--cbk-dark); }
.navbar-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  flex: 1;
  justify-content: center;
}
.navbar-links a {
  color: var(--cbk-gray-700);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  position: relative;
  padding: 0.25rem 0;
  transition: color var(--transition);
}
.navbar-links a:hover { color: var(--cbk-orange); text-decoration: none; }
.navbar-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: -2px;
  height: 2px;
  background: var(--cbk-orange);
  transition: right var(--transition);
}
.navbar-links a:hover::after { right: 0; }
.navbar-actions { display: flex; align-items: center; gap: 0.75rem; flex-shrink: 0; }
.btn-navbar-order {
  background: var(--cbk-dark);
  color: var(--cbk-white);
  border: none;
  border-radius: var(--radius-full);
  padding: 0.55rem 1.25rem;
  font-weight: 700;
  font-size: 0.85rem;
  transition: background var(--transition);
}
.btn-navbar-order:hover { background: var(--cbk-orange); }
.navbar-burger {
  display: none;
  background: none;
  border: 1.5px solid #E5DCD3;
  border-radius: var(--radius-md);
  width: 40px; height: 40px;
  align-items: center;
  justify-content: center;
  color: var(--cbk-dark);
}
.navbar-mobile-menu {
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.5rem 1.25rem 1.25rem;
  background: var(--cbk-white);
  border-top: 1px solid #EEE7E1;
}
.navbar-mobile-menu.open { display: flex; }
.navbar-mobile-menu a {
  color: var(--cbk-dark);
  font-weight: 600;
  padding: 0.75rem 0.25rem;
  border-bottom: 1px solid var(--cbk-gray-100);
  text-decoration: none;
}
.navbar-mobile-menu .btn { margin-top: 0.75rem; }

/* Cart button */
.cart-btn {
  position: relative;
  background: var(--cbk-orange);
  color: var(--cbk-white);
  border: none;
  border-radius: var(--radius-md);
  padding: 0.5rem 1rem;
  font-weight: 600;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: background var(--transition);
}
.cart-btn:hover { background: var(--cbk-orange-dk); }
.cart-badge {
  background: var(--cbk-white);
  color: var(--cbk-orange);
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.9rem;
  border: 2px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--cbk-orange);
  color: var(--cbk-white);
  border-color: var(--cbk-orange);
}
.btn-primary:hover { background: var(--cbk-orange-dk); border-color: var(--cbk-orange-dk); }
.btn-secondary {
  background: transparent;
  color: var(--cbk-orange);
  border-color: var(--cbk-orange);
}
.btn-secondary:hover { background: var(--cbk-orange-lt); }
.btn-danger {
  background: var(--cbk-danger);
  color: var(--cbk-white);
  border-color: var(--cbk-danger);
}
.btn-danger:hover { background: #a93226; }
.btn-ghost {
  background: transparent;
  color: var(--cbk-gray-700);
  border-color: #DDDDDD;
}
.btn-ghost:hover { background: var(--cbk-gray-100); }
.btn-sm { padding: 0.35rem 0.75rem; font-size: 0.8rem; }
.btn-lg { padding: 0.85rem 2rem; font-size: 1rem; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-loading::after {
  content: "";
  width: 14px; height: 14px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  margin-left: 6px;
}

/* ── Cards ───────────────────────────────────────────────── */
.card {
  background: var(--cbk-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.card-body { padding: 1.25rem; }
.card-footer {
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--cbk-gray-100);
}

/* ── Product card ────────────────────────────────────────── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1.75rem;
}
.product-card {
  background: var(--cbk-white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow var(--transition-slow), transform var(--transition-slow);
}
.product-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.product-card.unavailable { opacity: 0.55; pointer-events: none; }
.product-img-wrap { position: relative; aspect-ratio: 1/1; overflow: hidden; background: var(--cbk-gray-100); }
.product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.product-card:hover .product-img { transform: scale(1.06); }
.product-img-placeholder {
  width: 100%;
  height: 100%;
  background: var(--cbk-orange-lt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}
.product-info { padding: 1.1rem 1.1rem 1.25rem; }
.product-name { font-family: var(--font-display); font-weight: 700; margin-bottom: 0.3rem; font-size: 1.05rem; color: var(--cbk-dark); }
.product-desc {
  font-size: 0.82rem;
  color: var(--cbk-gray-400);
  margin-bottom: 0.9rem;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-footer { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; }
.product-price { font-weight: 800; color: var(--cbk-orange); font-size: 1.05rem; }
.product-price-wrap, .featured-price-wrap, .featured-price-sm-wrap { display: inline-flex; align-items: baseline; gap: 0.4rem; flex-wrap: wrap; }
.price-original { text-decoration: line-through; color: var(--cbk-gray-400); font-size: 0.82em; font-weight: 500; }
.discount-badge { background: var(--cbk-danger); color: white; font-size: 0.7rem; font-weight: 800; padding: 2px 7px; border-radius: 20px; letter-spacing: 0.02em; }
.product-stock-badge {
  position: absolute;
  top: 0.65rem; right: 0.65rem;
  font-size: 0.7rem;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}
.stock-low      { background: var(--cbk-warning-lt); color: var(--cbk-warning); }
.stock-empty    { background: var(--cbk-danger-lt);  color: var(--cbk-danger); }
.btn-add-cart {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--cbk-dark);
  color: var(--cbk-white);
  border: none;
  border-radius: var(--radius-full);
  padding: 0.5rem 0.9rem;
  font-weight: 700;
  font-size: 0.82rem;
  flex-shrink: 0;
  transition: background var(--transition), transform var(--transition-fast);
}
.btn-add-cart:hover { background: var(--cbk-orange); transform: scale(1.04); }
.btn-add-cart:active { transform: scale(0.97); }
.btn-add-cart:disabled { background: var(--cbk-gray-400); cursor: not-allowed; transform: none; }

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  position: relative;
  background: linear-gradient(155deg, var(--cbk-brown) 0%, var(--cbk-brown-dk) 100%);
  color: var(--cbk-white);
  padding: 4rem 0 8rem;
  overflow: hidden;
  min-height: 640px;
  display: flex;
  align-items: center;
}
.hero-glow {
  position: absolute;
  top: -10%; right: 8%;
  width: 620px; height: 620px;
  background: radial-gradient(circle, rgba(232,89,10,0.45) 0%, transparent 70%);
  filter: blur(10px);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 2rem;
}
.hero-copy { position: relative; z-index: 2; max-width: 540px; }
.hero-eyebrow {
  display: inline-block;
  color: var(--cbk-gold);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
}
.hero-title {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--cbk-white);
  margin-bottom: 1.1rem;
}
.hero-title-accent { color: var(--cbk-orange); }
.hero-sub {
  color: rgba(255,255,255,0.68);
  font-size: 1.1rem;
  max-width: 440px;
  margin-bottom: 2rem;
  line-height: 1.55;
}
.hero-cta-row { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--cbk-orange);
  color: var(--cbk-white);
  border: none;
  border-radius: var(--radius-full);
  padding: 1rem 1.75rem;
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 12px 28px rgba(232,89,10,0.4);
  transition: transform var(--transition), background var(--transition), box-shadow var(--transition);
}
.btn-hero-primary:hover { background: var(--cbk-orange-dk); transform: translateY(-2px); box-shadow: 0 16px 34px rgba(232,89,10,0.5); }
.btn-hero-secondary {
  background: transparent;
  color: var(--cbk-white);
  border: 1.5px solid rgba(255,255,255,0.35);
  border-radius: var(--radius-full);
  padding: 1rem 1.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  transition: border-color var(--transition), background var(--transition);
}
.btn-hero-secondary:hover { border-color: var(--cbk-white); background: rgba(255,255,255,0.06); }

.hero-visual { position: relative; z-index: 1; display: flex; justify-content: center; }
.hero-photo-frame {
  position: relative;
  width: min(100%, 400px);
  aspect-ratio: 4/5;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  transform: rotate(-3deg);
  box-shadow: var(--shadow-warm);
  border: 6px solid rgba(255,255,255,0.06);
}
.hero-photo { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-photo-badge {
  position: absolute;
  top: 1rem; left: -0.75rem;
  background: var(--cbk-gold);
  color: var(--cbk-brown-dk);
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  transform: rotate(-3deg);
}
.product-badge {
  position: absolute;
  top: 1rem; left: -0.6rem;
  z-index: 2;
  background: var(--cbk-gold);
  color: var(--cbk-brown-dk);
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  transform: rotate(-3deg);
}
.hero-divider {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  width: 100%;
  height: 56px;
  display: block;
}
.hero-divider path { fill: var(--cbk-cream); }

/* ── Comment commander (canaux : livraison / retrait / speed) ──
   Cartes en photo plein cadre + dégradé sombre pour le texte, plutôt
   qu'une icône décorative sur fond dégradé — rendu plus "vrai
   restaurant", moins gabarit générique. */
.channels-section { padding: var(--space-12) 0; }
.channels-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.channel-card {
  position: relative;
  display: block;
  min-height: 240px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  text-decoration: none;
  box-shadow: var(--shadow-md);
  background-size: cover;
  background-position: center;
  transition: transform var(--transition), box-shadow var(--transition);
}
.channel-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); text-decoration: none; }
.channel-card::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(32,21,16,0.05) 0%, rgba(32,21,16,0.92) 100%);
}
.channel-card-body {
  position: relative;
  height: 100%;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.channel-card-body h3 { font-family: var(--font-display); font-size: 1.2rem; font-weight: 800; margin-bottom: 0.35rem; color: var(--cbk-white); }
.channel-card-body p { color: rgba(255,255,255,0.9); font-size: 0.85rem; line-height: 1.5; margin-bottom: 0.9rem; }
.channel-cta { font-size: 0.8rem; font-weight: 700; color: var(--cbk-white); }
@media (max-width: 768px) {
  .channels-row { grid-template-columns: 1fr; }
}

/* ── En-têtes de section (réutilisables) ─────────────────────── */
.section-heading { max-width: 560px; margin-bottom: 2.5rem; }
.section-heading-light { max-width: 620px; }
.section-kicker {
  display: block;
  color: var(--cbk-orange);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}
.section-title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--cbk-dark);
  line-height: 1.15;
}
.section-subtitle { color: var(--cbk-gray-700); font-size: 1rem; margin-top: 0.75rem; line-height: 1.55; }

/* ── Incontournables (composition éditoriale) ────────────────── */
.featured-section { background: var(--cbk-cream); padding: var(--space-12) 0; }
.featured-layout {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 1.5rem;
  align-items: stretch;
}
.featured-main {
  position: relative;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  min-height: 420px;
  box-shadow: var(--shadow-md);
}
.featured-main-img { position: absolute; inset: 0; }
.featured-main-img img { width: 100%; height: 100%; object-fit: cover; }
.featured-main::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(20,10,5,0.92) 0%, rgba(20,10,5,0.35) 55%, transparent 100%);
}
.featured-main-info { position: relative; z-index: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; padding: 2rem; color: var(--cbk-white); }
.featured-main-info h3 { font-family: var(--font-display); font-size: var(--text-2xl); margin-bottom: 0.5rem; }
.featured-main-info p { color: rgba(255,255,255,0.82); font-size: 0.95rem; max-width: 420px; margin-bottom: 1.25rem; }
.featured-main-footer { display: flex; align-items: center; gap: 1rem; }
.featured-price { font-weight: 700; font-size: 1.3rem; color: var(--cbk-white); }
.featured-main-footer .price-original { color: rgba(255,255,255,0.6); }

.featured-side { display: flex; flex-direction: column; gap: 1rem; }
.featured-side-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--cbk-gray-100);
  border-radius: var(--radius-lg);
  padding: 0.75rem;
  flex: 1;
  transition: box-shadow var(--transition), transform var(--transition);
}
.featured-side-item:hover { box-shadow: var(--shadow-sm); transform: translateX(2px); }
.featured-side-item img { width: 76px; height: 76px; border-radius: var(--radius-md); object-fit: cover; flex-shrink: 0; }
.featured-side-info { flex: 1; min-width: 0; }
.featured-side-info h4 { font-size: 0.95rem; font-weight: 700; margin-bottom: 0.2rem; }
.featured-price-sm { color: var(--cbk-orange); font-weight: 700; font-size: 0.85rem; }
.btn-add-cart-sm {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--cbk-orange);
  color: var(--cbk-white);
  border: none;
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
  transition: background var(--transition);
}
.btn-add-cart-sm:hover { background: var(--cbk-orange-dk); }

/* ── Promotions / CBK Club (paliers de fidélité réels) ───────── */
.loyalty-section-public {
  background: linear-gradient(155deg, var(--cbk-brown) 0%, var(--cbk-brown-dk) 100%);
  padding: var(--space-10) 0;
  color: var(--cbk-white);
}
.loyalty-section-public .section-kicker { color: var(--cbk-gold); }
.loyalty-section-public .section-title { color: var(--cbk-white); }
.loyalty-section-public .section-subtitle { color: rgba(255,255,255,0.68); }
.loyalty-ladder {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}
.loyalty-tier {
  background: rgba(255,255,255,0.06);
  border: 1.5px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-xl);
  padding: 1.5rem 1rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  transition: transform var(--transition);
}
.loyalty-tier:hover { transform: translateY(-3px); }
.loyalty-tier-badge {
  width: 44px; height: 44px;
  border-radius: var(--radius-full);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 0.35rem;
}
.loyalty-tier:nth-child(1) { background: linear-gradient(155deg, rgba(232,89,10,0.16) 0%, rgba(232,89,10,0.04) 100%); border-color: rgba(232,89,10,0.35); }
.loyalty-tier:nth-child(1) .loyalty-tier-badge { background: rgba(232,89,10,0.25); }
.loyalty-tier:nth-child(2) { background: linear-gradient(155deg, rgba(224,167,46,0.18) 0%, rgba(224,167,46,0.05) 100%); border-color: rgba(224,167,46,0.4); }
.loyalty-tier:nth-child(2) .loyalty-tier-badge { background: rgba(224,167,46,0.3); }
.loyalty-tier:nth-child(3) { background: linear-gradient(155deg, rgba(184,66,8,0.22) 0%, rgba(184,66,8,0.06) 100%); border-color: rgba(184,66,8,0.4); }
.loyalty-tier:nth-child(3) .loyalty-tier-badge { background: rgba(184,66,8,0.3); }
.loyalty-tier-top { background: linear-gradient(155deg, rgba(224,167,46,0.32) 0%, rgba(224,167,46,0.1) 100%) !important; border-color: var(--cbk-gold) !important; }
.loyalty-tier-top .loyalty-tier-badge { background: var(--cbk-gold); }
.loyalty-tier-points { color: var(--cbk-gold); font-weight: 700; font-size: 0.85rem; letter-spacing: 0.04em; }
.loyalty-tier-reward { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; }
.loyalty-tier-label { color: rgba(255,255,255,0.6); font-size: 0.8rem; }
.loyalty-note { margin-top: 1.75rem; color: rgba(255,255,255,0.55); font-size: 0.85rem; text-align: center; }

/* ── Parrainage entre amis (carte claire posée sur le fond sombre) ── */
.referral-invite {
  margin: 2.5rem auto 0;
  max-width: 480px;
  background: var(--cbk-white);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  text-align: left;
}
.referral-invite-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--cbk-dark);
  margin-bottom: 0.5rem;
}

/* ── Bandeau fidélité (accueil) ───────────────────────────────── */
.fidelity-teaser { background: linear-gradient(155deg, var(--cbk-brown) 0%, var(--cbk-brown-dk) 100%); padding: var(--space-10) 0; }
.fidelity-teaser-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-6); flex-wrap: wrap; }
.fidelity-teaser-copy { max-width: 560px; }
.fidelity-teaser-copy p { color: rgba(255,255,255,0.7); margin-top: var(--space-2); }
.fidelity-teaser .btn-hero-primary { flex-shrink: 0; }
@media (max-width: 768px) {
  .fidelity-teaser-inner { flex-direction: column; align-items: flex-start; }
}

/* ── Quoi de neuf (actu, style affiche) ───────────────────────── */
.highlights-section { background: var(--cbk-cream); padding: var(--space-12) 0; }
.highlights-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); }
.highlight-tile {
  display: block;
  border-radius: var(--radius-xl);
  padding: var(--space-6) var(--space-5);
  min-height: 180px;
  color: var(--cbk-white);
  text-decoration: none;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition), box-shadow var(--transition);
}
.highlight-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); text-decoration: none; }
.highlight-orange { background: var(--cbk-orange); }
.highlight-dark   { background: var(--cbk-brown-dk); }
.highlight-gold   { background: var(--cbk-gold-dk); }
.highlight-tag {
  display: inline-block;
  background: rgba(255,255,255,0.22);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-3);
}
.highlight-tile h3 { font-family: var(--font-display); font-size: var(--text-xl); font-weight: 800; margin-bottom: var(--space-4); line-height: 1.25; }
.highlight-tile p { font-weight: 700; text-decoration: underline; }
@media (max-width: 768px) {
  .highlights-row { grid-template-columns: 1fr; }
}

/* ── Bannière d'ambiance (rythme visuel, pas un produit précis) ── */
.atmosphere-banner {
  position: relative;
  min-height: 340px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.atmosphere-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.atmosphere-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(15,8,4,0.88) 0%, rgba(15,8,4,0.55) 55%, rgba(15,8,4,0.15) 100%);
}
.atmosphere-content { position: relative; z-index: 1; max-width: 520px; }
.atmosphere-content .section-title { max-width: 460px; }
.atmosphere-divider { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 56px; display: block; z-index: 1; }
.atmosphere-divider path { fill: var(--cbk-brown); }

/* ── Section Restaurant (À propos) ───────────────────────────── */
.about-section { background: var(--cbk-cream); padding: var(--space-10) 0; }
.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: var(--space-8);
  align-items: center;
}
.about-photo {
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 4/3;
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.about-copy p { color: var(--cbk-gray-700); font-size: 1rem; line-height: 1.7; margin-top: 1rem; max-width: 480px; }

/* ── Nos restaurants (carte) ──────────────────────────────────── */
.restaurants-section { background: var(--cbk-cream); padding: var(--space-10) 0; }
.restaurants-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: var(--space-5); margin-top: var(--space-6); }
.restaurant-map { height: 360px; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); z-index: 1; }
.restaurant-card { background: var(--cbk-white); border-radius: var(--radius-lg); padding: var(--space-5); box-shadow: var(--shadow-sm); }
.restaurant-card h3 { font-size: var(--text-lg); margin-bottom: var(--space-3); color: var(--cbk-dark); }
.restaurant-card .info-row { display: flex; gap: var(--space-2); margin-bottom: var(--space-2); align-items: flex-start; font-size: var(--text-sm); color: var(--cbk-gray-700); }
.restaurant-card .info-row strong { color: var(--cbk-dark); }
.restaurant-card .badge-open { display: inline-block; background: var(--cbk-success); color: var(--cbk-white); font-size: var(--text-xs); font-weight: 700; padding: 0.2rem var(--space-3); border-radius: var(--radius-full); margin-bottom: var(--space-3); }
@media (max-width: 768px) {
  .restaurants-layout { grid-template-columns: 1fr; }
  .restaurant-map { height: 280px; }
}

/* ── Avis clients ─────────────────────────────────────────────── */
.reviews-section { background: var(--cbk-cream); padding: var(--space-10) 0 var(--space-8); }
.reviews-placeholder {
  max-width: 420px;
  margin: 0 auto;
  text-align: center;
  color: var(--cbk-gray-400);
  padding: var(--space-6) 1rem;
  border: 1.5px dashed #E5DCD3;
  border-radius: var(--radius-xl);
}
.reviews-placeholder svg { color: var(--cbk-gold); margin-bottom: 0.75rem; }
.reviews-placeholder p { color: var(--cbk-gray-700); font-weight: 500; }
#reviews-summary { color: var(--cbk-gold); font-weight: 700; font-size: var(--text-lg); margin-top: var(--space-2); }
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--space-4); margin-top: var(--space-6); }
.review-card { background: var(--cbk-gray-100); border-radius: var(--radius-lg); padding: var(--space-5); }
.review-card-stars { color: var(--cbk-gold); letter-spacing: 0.15rem; margin-bottom: var(--space-2); }
.review-card-comment { color: var(--cbk-gray-700); font-size: var(--text-sm); line-height: 1.55; margin-bottom: var(--space-2); }
.review-card-author { color: var(--cbk-gray-400); font-size: var(--text-sm); font-weight: 600; }

/* ── Footer ───────────────────────────────────────────────────── */
.site-footer { background: var(--cbk-brown-dk); color: rgba(255,255,255,0.7); padding-top: var(--space-8); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--space-6);
  padding-bottom: var(--space-6);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand p { margin-top: 0.75rem; font-size: 0.9rem; max-width: 260px; line-height: 1.55; }
.footer-col h4 { color: var(--cbk-white); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 1rem; }
.footer-col a, .footer-link-btn {
  display: block;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  font-size: 0.92rem;
  margin-bottom: 0.65rem;
  background: none;
  border: none;
  padding: 0;
  text-align: left;
  cursor: pointer;
  transition: color var(--transition);
}
.footer-col a:hover, .footer-link-btn:hover { color: var(--cbk-white); text-decoration: none; }
.footer-pending { display: block; font-size: 0.88rem; color: rgba(255,255,255,0.35); font-style: italic; margin-bottom: 0.65rem; }
.footer-col span { display: block; font-size: var(--text-sm); color: rgba(255,255,255,0.55); margin-bottom: var(--space-2); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 1.25rem 0;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
}
.footer-legal { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.footer-legal .footer-pending { margin-bottom: 0; }

/* ── Recherche ────────────────────────────────────────────── */
.search-bar {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  max-width: 380px;
  background: var(--cbk-white);
  border: 1.5px solid #E5DCD3;
  border-radius: var(--radius-full);
  padding: 0.65rem 1.1rem;
  margin-bottom: 1.25rem;
  color: var(--cbk-gray-400);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.search-bar:focus-within { border-color: var(--cbk-orange); box-shadow: 0 0 0 3px rgba(232,89,10,0.12); }
.search-bar input {
  border: none;
  outline: none;
  flex: 1;
  font-family: inherit;
  font-size: 0.92rem;
  color: var(--cbk-dark);
  background: transparent;
}

/* ── Catégories du menu (cartes visuelles, façon "stories") ──── */
.category-tabs {
  display: flex;
  gap: var(--space-4);
  overflow-x: auto;
  padding: 0.25rem 0.25rem 1.5rem;
  scrollbar-width: none;
}
.category-tabs::-webkit-scrollbar { display: none; }
.cat-card {
  flex-shrink: 0;
  width: 84px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
}
.cat-card img, .cat-card-icon {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-full);
  object-fit: cover;
  border: 2.5px solid transparent;
  transition: border-color var(--transition), transform var(--transition);
}
.cat-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  background: var(--cbk-gray-100);
}
.cat-card-label {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--cbk-gray-700);
  white-space: nowrap;
}
.cat-card:hover img, .cat-card:hover .cat-card-icon { transform: scale(1.06); }
.cat-card.active img, .cat-card.active .cat-card-icon { border-color: var(--cbk-orange); }
.cat-card.active .cat-card-label { color: var(--cbk-orange); }

/* ── Écran de sélection des catégories, mobile uniquement ─────
   Priorité mobile : au lieu de charger toute la carte d'un coup au
   premier affichage de /menu (long à parcourir, décourageant sur petit
   écran), on force un choix de catégorie via de grandes tuiles. ── */
.category-picker { display: none; }
.category-picker.hidden { display: none !important; }
.cat-back-btn { display: none; }
@media (max-width: 768px) {
  .category-tabs.hidden { display: none; }
  .category-picker:not(.hidden) {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
    padding: 0.25rem 0 1.5rem;
  }
  .cat-tile {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 0.6rem; background: var(--cbk-gray-100); border: none; border-radius: var(--radius-xl);
    padding: 1.25rem 0.5rem; cursor: pointer; font-family: inherit; aspect-ratio: 1/1;
  }
  .cat-tile img, .cat-tile-icon { width: 60px; height: 60px; border-radius: var(--radius-full); object-fit: cover; }
  .cat-tile-icon { display: flex; align-items: center; justify-content: center; font-size: 1.7rem; background: var(--cbk-white); }
  .cat-tile-label { font-size: 0.88rem; font-weight: 700; color: var(--cbk-dark); text-align: center; }
  .cat-back-btn {
    display: inline-flex; align-items: center; gap: 0.3rem;
    background: none; border: none; color: var(--cbk-orange); font-weight: 700;
    font-size: 0.9rem; padding: 0.4rem 0.6rem 0.4rem 0; cursor: pointer; font-family: inherit;
    flex-shrink: 0;
  }
}

/* ── Forms ───────────────────────────────────────────────── */
.form-group { margin-bottom: 1rem; }
.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.35rem;
  color: var(--cbk-dark);
}
.form-control {
  width: 100%;
  padding: 0.6rem 0.875rem;
  border: 1.5px solid #DDDDDD;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  background: var(--cbk-white);
  color: var(--cbk-dark);
}
.form-control:focus {
  outline: none;
  border-color: var(--cbk-orange);
  box-shadow: 0 0 0 3px rgba(232, 89, 10, 0.12);
}
.form-control.input-error { border-color: var(--cbk-danger); }
.field-error { color: var(--cbk-danger); font-size: 0.8rem; margin-top: 0.25rem; }
.form-hint   { color: var(--cbk-gray-400); font-size: 0.78rem; margin-top: 0.2rem; }
textarea.form-control { resize: vertical; min-height: 80px; }

/* ── Commande en 2 étapes ─────────────────────────────────── */
.checkout-back {
  background: none;
  border: none;
  color: var(--cbk-gray-700);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0;
  margin-bottom: 1.25rem;
}
.checkout-back:hover { color: var(--cbk-orange); }
.checkout-total-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--cbk-gray-100);
  border-radius: var(--radius-lg);
  padding: 1.1rem 1.25rem;
  margin-bottom: 1.25rem;
}
.checkout-total-box span { font-weight: 500; color: var(--cbk-gray-700); }
.checkout-total-box strong { font-family: var(--font-display); font-size: 1.5rem; color: var(--cbk-orange); }

.payment-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; margin-bottom: 1.25rem; }
.payment-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.3rem;
  border: 1.5px solid #E5DCD3;
  border-radius: var(--radius-lg);
  padding: 1.25rem 0.75rem;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
}
.payment-card input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.payment-card-icon {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--cbk-gray-100);
  color: var(--cbk-gray-700);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 0.3rem;
  transition: background var(--transition), color var(--transition);
}
.payment-card-label { font-weight: 700; font-size: 0.92rem; color: var(--cbk-dark); }
.payment-card-sub { font-size: 0.75rem; color: var(--cbk-gray-400); }
.payment-card:has(input:checked), .payment-card.payment-card-active {
  border-color: var(--cbk-orange);
  background: var(--cbk-orange-lt);
}
.payment-card:has(input:checked) .payment-card-icon,
.payment-card.payment-card-active .payment-card-icon { background: var(--cbk-orange); color: var(--cbk-white); }
.payment-card:has(input:focus-visible) { outline: 2px solid var(--cbk-orange); outline-offset: 2px; }

#loyalty-section {
  background: var(--cbk-orange-lt);
  border-radius: var(--radius-md);
  padding: 1rem;
  margin-bottom: 1rem;
}
.loyalty-section-title { font-weight: 700; color: var(--cbk-orange-dk); margin-bottom: 0.25rem; }

/* ── Cart sidebar ────────────────────────────────────────── */
.cart-overlay {
  position: fixed; inset: 0;
  background: rgba(20,10,5,0.55);
  z-index: var(--z-cart);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-slow);
}
.cart-overlay.open { opacity: 1; pointer-events: all; }
.cart-sidebar {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(440px, 100%);
  background: var(--cbk-white);
  z-index: calc(var(--z-cart) + 1);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform var(--transition-slow);
  box-shadow: var(--shadow-lg);
}
.cart-sidebar.open { transform: translateX(0); }
.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  border-bottom: 1px solid var(--cbk-gray-100);
}
.cart-header h2 { font-family: var(--font-display); font-size: 1.35rem; }
.cart-close {
  background: var(--cbk-gray-100);
  border: none;
  border-radius: 50%;
  width: 34px; height: 34px;
  font-size: 1.1rem;
  color: var(--cbk-gray-700);
  line-height: 1;
  transition: background var(--transition), color var(--transition);
}
.cart-close:hover { background: var(--cbk-orange-lt); color: var(--cbk-orange); }
.cart-items { flex: 1; overflow-y: auto; padding: 0.5rem 1.5rem; }
.cart-item {
  display: flex;
  gap: 0.9rem;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid var(--cbk-gray-100);
}
.cart-item-img {
  width: 64px; height: 64px;
  border-radius: var(--radius-md);
  object-fit: cover;
  background: var(--cbk-gray-100);
  flex-shrink: 0;
}
.cart-item-img-placeholder {
  width: 64px; height: 64px;
  border-radius: var(--radius-md);
  background: var(--cbk-orange-lt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}
.product-admin-img-placeholder {
  width: 56px; height: 56px;
  border-radius: var(--radius-md);
  background: var(--cbk-orange-lt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}
.cart-item-info { flex: 1; }
.cart-item-name  { font-weight: 700; font-size: 0.92rem; margin-bottom: 0.2rem; }
.cart-item-price { color: var(--cbk-orange); font-weight: 700; font-size: 0.875rem; }
.qty-control { display: flex; align-items: center; gap: 0.6rem; }
.qty-btn {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: none;
  background: var(--cbk-gray-100);
  font-size: 1rem;
  font-weight: 700;
  color: var(--cbk-dark);
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
}
.qty-btn:hover { background: var(--cbk-orange); color: var(--cbk-white); }
.qty-num { font-weight: 700; min-width: 20px; text-align: center; }
.cart-footer { padding: 1.5rem; border-top: 1px solid var(--cbk-gray-100); background: var(--cbk-gray-100); }
.cart-total-row { display: flex; justify-content: space-between; margin-bottom: 1rem; }
.cart-total-label { color: var(--cbk-gray-700); font-weight: 500; }
.cart-total-amount { font-weight: 800; font-size: 1.3rem; color: var(--cbk-orange); }
.cart-empty-msg {
  text-align: center;
  color: var(--cbk-gray-400);
  padding: 4rem 1.5rem;
}
.cart-empty-msg svg { color: #E5DCD3; margin-bottom: 1rem; }
.cart-empty-msg p { font-weight: 700; color: var(--cbk-dark); font-size: 1.05rem; margin-bottom: 0.3rem; }
.cart-empty-sub { font-size: 0.85rem; color: var(--cbk-gray-400); }

/* ── Status badges ───────────────────────────────────────── */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}
.badge-pending    { background: var(--cbk-gray-100);    color: var(--cbk-gray-700); }
.badge-confirmed  { background: var(--cbk-info-lt);     color: var(--cbk-info); }
.badge-preparing  { background: var(--cbk-warning-lt);  color: var(--cbk-warning); }
.badge-ready      { background: #E8F5E9;                color: #2E7D32; }
.badge-delivering { background: #EDE7F6;                color: #512DA8; }
.badge-delivered  { background: var(--cbk-success-lt);  color: var(--cbk-success); }
.badge-cancelled  { background: var(--cbk-danger-lt);   color: var(--cbk-danger); }

/* ── Suivi de commande client ("Suivre ma commande" / "Mes commandes") ── */
.order-tracker { padding: 0.5rem 0 0.25rem; }
.tracker-step { display: flex; gap: 0.75rem; position: relative; padding-bottom: 1.1rem; }
.tracker-step:last-child { padding-bottom: 0; }
.tracker-step::before {
  content: ""; position: absolute; left: 11px; top: 24px; bottom: -2px; width: 2px;
  background: var(--cbk-gray-100);
}
.tracker-step:last-child::before { display: none; }
.tracker-step.done::before { background: var(--cbk-orange); }
.tracker-dot {
  flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--cbk-gray-100); color: var(--cbk-gray-400); font-size: 0.75rem; font-weight: 700;
  z-index: 1; transition: var(--transition);
}
.tracker-step.done .tracker-dot { background: var(--cbk-orange); color: var(--cbk-white); }
.tracker-step.current .tracker-dot { background: var(--cbk-orange); color: var(--cbk-white); box-shadow: 0 0 0 4px var(--cbk-orange-lt); }
.tracker-label { font-size: 0.85rem; font-weight: 600; color: var(--cbk-gray-400); padding-top: 2px; }
.tracker-step.done .tracker-label { color: var(--cbk-dark); }
.tracker-step.current .tracker-label { color: var(--cbk-orange); }
.tracker-banner {
  display: flex; align-items: center; gap: 0.6rem; font-size: 0.85rem; font-weight: 600;
  padding: 0.6rem 0.9rem; border-radius: var(--radius-md); margin: 0.25rem 0 0.5rem;
}
.tracker-banner.cancelled { background: var(--cbk-danger-lt); color: var(--cbk-danger); }
.tracker-banner.waiting-payment { background: var(--cbk-warning-lt); color: var(--cbk-warning); }

/* ── Stats cards ─────────────────────────────────────────── */
.stat-card {
  background: var(--cbk-white);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
}
.stat-label { font-size: 0.8rem; color: var(--cbk-gray-400); font-weight: 500; text-transform: uppercase; letter-spacing: 0.04em; }
.stat-value { font-size: 1.75rem; font-weight: 700; margin-top: 0.25rem; }
.stat-accent { color: var(--cbk-orange); }

/* ── Toast notifications ─────────────────────────────────── */
#toast-container {
  position: fixed;
  bottom: 1.5rem; right: 1.5rem;
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.toast {
  background: var(--cbk-dark);
  color: var(--cbk-white);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  box-shadow: var(--shadow-md);
  animation: slideInRight 0.25s ease;
  max-width: 320px;
}
.toast.success { background: var(--cbk-success); }
.toast.error   { background: var(--cbk-danger); }
.toast.warning { background: var(--cbk-warning); }

/* ── Table ───────────────────────────────────────────────── */
.table-wrapper { overflow-x: auto; }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
th {
  background: var(--cbk-gray-100);
  font-weight: 600;
  text-align: left;
  padding: 0.75rem 1rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--cbk-gray-700);
}
td { padding: 0.875rem 1rem; border-bottom: 1px solid var(--cbk-gray-100); }
tr:last-child td { border-bottom: none; }
tr:hover td { background: #FAFAFA; }

/* ── Modal ───────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(20,10,5,0.55);
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: fadeIn 0.2s ease;
}
.modal-overlay.hidden { display: none; }
.modal {
  background: var(--cbk-white);
  border-radius: var(--radius-xl);
  padding: 2rem;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  animation: modal-pop 0.25s cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes modal-pop {
  from { opacity: 0; transform: scale(0.96) translateY(8px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; }

/* ── Popup promotionnel : mini-affiche publicitaire, pas une fiche
   produit générique. Classes préfixées promo-popup- pour ne jamais
   entrer en collision avec .promo-card (les 3 tuiles fidélité/livraison/
   paiement sous le hero, un composant totalement différent). ── */
.promo-popup-overlay {
  position: fixed; inset: 0;
  background: rgba(15, 8, 4, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: var(--z-modal);
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
  animation: promo-popup-overlay-in 0.25s ease;
}
@keyframes promo-popup-overlay-in { from { opacity: 0; } to { opacity: 1; } }

.promo-popup-card {
  position: relative;
  width: 460px;
  max-width: calc(100vw - 24px);
  max-height: 90vh;
  overflow-y: auto;
  background: var(--cbk-white);
  border-radius: var(--radius-2xl);
  box-shadow: 0 32px 64px -12px rgba(0,0,0,0.5), 0 0 0 1px rgba(0,0,0,0.04);
  animation: promo-popup-card-in 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes promo-popup-card-in {
  from { opacity: 0; transform: scale(1.06); }
  to   { opacity: 1; transform: scale(1); }
}

.promo-popup-close {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.92);
  border: none; display: flex; align-items: center; justify-content: center;
  font-size: 1rem; color: var(--cbk-dark); cursor: pointer;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  transition: background var(--transition), transform var(--transition);
}
.promo-popup-close:hover { background: var(--cbk-white); transform: scale(1.08); }

.promo-popup-hero { position: relative; width: 100%; height: 280px; overflow: hidden; border-radius: var(--radius-2xl) var(--radius-2xl) 0 0; background: var(--cbk-gray-100); }
.promo-popup-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.promo-popup-hero-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 3rem; }
.promo-popup-badge {
  position: absolute; top: 16px; left: 16px;
  background: var(--cbk-orange); color: var(--cbk-white);
  font-weight: 800; font-size: 1.05rem;
  padding: 0.4rem 0.85rem; border-radius: 999px;
  box-shadow: 0 8px 18px -4px rgba(232,89,10,0.55);
  letter-spacing: 0.01em;
}

.promo-popup-body { padding: 1.5rem 1.75rem 1.75rem; }
.promo-popup-label { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--cbk-orange); margin-bottom: 0.45rem; }
.promo-popup-title { font-family: var(--font-display); font-size: 1.55rem; font-weight: 800; color: var(--cbk-dark); text-transform: uppercase; line-height: 1.15; margin-bottom: 0.55rem; }
.promo-popup-desc { font-size: 0.92rem; color: var(--cbk-gray-700); line-height: 1.5; margin-bottom: 1.15rem; }
.promo-popup-price-row { display: flex; align-items: baseline; gap: 0.65rem; margin-bottom: 1.35rem; }
.promo-popup-price-new { font-size: 1.65rem; font-weight: 900; color: var(--cbk-orange); }
.promo-popup-price-old { font-size: 1rem; font-weight: 500; color: var(--cbk-gray-400); text-decoration: line-through; }

.promo-popup-cta {
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  width: 100%; padding: 1rem; border: none; border-radius: 14px;
  background: var(--cbk-orange); color: var(--cbk-white);
  font-family: inherit; font-weight: 800; font-size: 0.95rem;
  text-transform: uppercase; letter-spacing: 0.03em;
  text-decoration: none; cursor: pointer;
  box-shadow: 0 12px 26px -8px rgba(232,89,10,0.55);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.promo-popup-cta:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -8px rgba(232,89,10,0.6); background: var(--cbk-orange-dk); text-decoration: none; color: var(--cbk-white); }
.promo-popup-cta:active { transform: translateY(0); }

@media (max-width: 480px) {
  .promo-popup-hero { height: 200px; }
  .promo-popup-body { padding: 1.25rem 1.25rem 1.5rem; }
  .promo-popup-title { font-size: 1.3rem; }
  .promo-popup-price-new { font-size: 1.4rem; }
  .promo-popup-cta { padding: 0.9rem; }
}
.modal-header h2 { font-family: var(--font-display); }
.modal-close {
  background: var(--cbk-gray-100);
  border: none;
  border-radius: 50%;
  width: 34px; height: 34px;
  font-size: 1.1rem;
  color: var(--cbk-gray-700);
  transition: background var(--transition), color var(--transition);
}
.modal-close:hover { background: var(--cbk-orange-lt); color: var(--cbk-orange); }

/* ── Sidebar admin ───────────────────────────────────────── */
.admin-layout {
  display: flex;
  min-height: 100vh;
}
.admin-sidebar {
  width: 240px;
  background: var(--cbk-dark);
  color: var(--cbk-white);
  display: flex;
  flex-direction: column;
  padding: 1.5rem 0;
  flex-shrink: 0;
}
.admin-sidebar .logo {
  padding: 0 1.5rem 1.5rem;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--cbk-orange);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 1rem;
}
.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 1.5rem;
  color: rgba(255,255,255,0.65);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all var(--transition);
}
.sidebar-nav a:hover, .sidebar-nav a.active {
  color: var(--cbk-white);
  background: rgba(232, 89, 10, 0.18);
  text-decoration: none;
}
.sidebar-nav a.active { border-left: 3px solid var(--cbk-orange); }
.admin-content { flex: 1; padding: 2rem; overflow-y: auto; }

/* ── États de chargement (skeleton) ──────────────────────── */
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skeleton-card {
  background: var(--cbk-white);
  border-radius: var(--radius-lg);
  padding: 0.875rem;
  box-shadow: var(--shadow-sm);
}
.skeleton-img { height: 160px; border-radius: var(--radius-md); margin-bottom: 0.75rem; }
.skeleton-img, .skeleton-line {
  background: linear-gradient(90deg, var(--cbk-gray-100) 25%, #EDE7E1 37%, var(--cbk-gray-100) 63%);
  background-size: 400% 100%;
  animation: skeleton-shimmer 1.4s ease infinite;
}
.skeleton-line { height: 12px; border-radius: 4px; margin-bottom: 0.5rem; }
@keyframes skeleton-shimmer {
  0% { background-position: 100% 50%; }
  100% { background-position: 0 50%; }
}

/* ── Micro-interaction : badge panier ─────────────────────── */
.cart-badge-pulse { animation: cart-badge-pulse 0.35s cubic-bezier(0.34,1.56,0.64,1); }
@keyframes cart-badge-pulse {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.35); }
  100% { transform: scale(1); }
}

/* ── Apparition au scroll ─────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.reveal-visible { opacity: 1; transform: translateY(0); }

/* ── Animations ─────────────────────────────────────────── */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fadeIn 0.4s ease both; }

/* ── Responsive ─────────────────────────────────────────── */

/* ≤1024px : la navbar passe en burger, le hero s'empile (texte puis photo) */
@media (max-width: 1024px) {
  .navbar-links, .navbar-actions .btn-navbar-order, .navbar-actions .btn-history-trigger:not(#btn-history-mobile) {
    display: none;
  }
  .navbar-burger { display: flex; }
  .navbar-inner { height: 60px; }

  .hero { padding: 2.5rem 0 6rem; min-height: 0; }
  .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; text-align: center; }
  .hero-copy { max-width: 100%; margin: 0 auto; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-cta-row { justify-content: center; }
  .hero-photo-frame { width: min(78vw, 340px); margin: 0 auto; transform: rotate(-2deg); }
  .hero-glow { right: 50%; transform: translateX(50%); }

  .promo-row { grid-template-columns: repeat(2, 1fr); }
  .featured-layout { grid-template-columns: 1fr; }
  .featured-main { min-height: 320px; }
  .loyalty-ladder { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { aspect-ratio: 16/9; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ≤768px : tablette / grand mobile */
@media (max-width: 768px) {
  h1 { font-size: 1.5rem; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .admin-sidebar { display: none; }
  .admin-content { padding: 1rem; }
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
  .hero-title { font-size: 2.25rem; }
  .promo-row { grid-template-columns: 1fr; }
  .section-title { font-size: var(--text-2xl); }
  .atmosphere-banner { min-height: 260px; }
  .atmosphere-overlay { background: linear-gradient(180deg, rgba(15,8,4,0.4) 0%, rgba(15,8,4,0.85) 100%); }
  .loyalty-ladder { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
  .featured-side-item { flex-wrap: wrap; }
  .footer-grid { grid-template-columns: 1fr; text-align: left; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ≤480px : petits téléphones — CTA pleine largeur, titres resserrés */
@media (max-width: 480px) {
  .hero { padding: 2rem 0 5rem; }
  .hero-title { font-size: 1.9rem; }
  .hero-sub { font-size: 1rem; }
  .hero-cta-row { flex-direction: column; align-items: stretch; }
  .btn-hero-primary, .btn-hero-secondary { justify-content: center; }
  .navbar-logo { font-size: 1.35rem; }
  .cart-btn-label { display: none; }
  /* Sur petit téléphone, minmax(200px) ne laisse qu'une colonne : la photo
     carrée devient énorme et écrase le reste. On garde 2 colonnes propres. */
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 0.85rem; }
  .product-info { padding: 0.75rem 0.75rem 0.9rem; }
  .cat-card { width: 68px; }
  .cat-card img, .cat-card-icon { width: 58px; height: 58px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
