/* MB Pizza — Signature Braise */
/* Design system : nuit de fournil, charbon rouge, lueur d'âtre */

:root {
  /* ===== Palette Signature Braise ===== */
  --bg-abyss: #0C0505;
  --bg-primary: #140908;
  --bg-secondary: #0C0505;
  --bg-card: #1A0D0A;
  --bg-surface2: #241209;
  --bg-elevated: #2A1610;
  --bg-input: #180C09;
  --braise-deep: #3A1409;

  --ember: #FF7A29;
  --ember-deep: #D93A0E;
  --amber: #FFB454;
  --amber-soft: #E9B87E;
  --rouge-four: #C1272D;
  --rouge-sombre: #8E1114;
  --basilic: #57B96B;
  --basilic-deep: #2E7D4F;

  --error: #FF5A48;
  --error-soft: #FF9C8F;
  --warning: #FFB020;
  --success: #57B96B;

  --text-primary: #F7EFE3;
  --text-secondary: #C9B39E;
  --text-muted: #9A8571;
  --text-on-cta: #FFF6EA;
  --text-on-amber: #1C0A05;

  --hairline: rgba(255, 190, 120, 0.10);
  --hairline-strong: rgba(255, 190, 120, 0.18);
  --overlay: rgba(5, 2, 2, 0.65);
  --glow-ember: rgba(255, 122, 41, 0.35);
  --glow-hearth: rgba(255, 106, 26, 0.16);
  --focus-ring: rgba(255, 122, 41, 0.18);
  --grad-cta: linear-gradient(135deg, #C93C0B, #A32407);
  --grad-bandeau: linear-gradient(180deg, #C1272D, #8E1114);

  /* Typographies */
  --font-display: 'Bebas Neue', 'Arial Narrow', Impact, sans-serif;
  --font-body: 'Archivo', -apple-system, 'Segoe UI', sans-serif;
  --font: 'Archivo', -apple-system, 'Segoe UI', sans-serif;

  /* ===== Overrides des tokens legacy (shared-theme + Resto Pilot) ===== */
  --brand: #FF7A29;
  --brand-hover: #FF8C42;
  --brand-dark: #D93A0E;
  --brand-deep: #8E1114;
  --brand-glow: rgba(255, 122, 41, 0.35);
  --brand-primary: #FF7A29;
  --brand-secondary: #FFB454;
  --bg: #140908;
  --bg2: #1A0D0A;
  --text: #F7EFE3;
  --text-dim: #9A8571;
  --border: rgba(255, 190, 120, 0.10);
  --border-subtle: rgba(255, 190, 120, 0.10);
  --danger: #FF5A48;
  --info: #FFB454;

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.55);
  --shadow-glow: 0 8px 32px rgba(255, 122, 41, 0.35);

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.2, 0.8, 0.4, 1);
  --transition-normal: 250ms ease;
  --transition-slow: 400ms ease;
  --transition-base: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);

  /* Z-index (legacy shared-theme) */
  --z-base: 0;
  --z-dropdown: 100;
  --z-sticky: 500;
  --z-modal-bg: 1000;
  --z-modal: 1001;
  --z-toast: 2000;

  /* Safe areas */
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

/* Reset & Base */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background:
    radial-gradient(120% 55% at 50% -10%, var(--glow-hearth), transparent 60%),
    linear-gradient(#140908, #0C0505);
  background-attachment: fixed;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}

::selection {
  background: rgba(255, 122, 41, 0.35);
  color: #FFF6EA;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 190, 120, 0.15);
  border-radius: 999px;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

input, textarea {
  font-family: inherit;
  border: none;
  outline: none;
  background: none;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ==================== VIEWS ==================== */
.view {
  min-height: 100vh;
  min-height: 100dvh;
}

/* ==================== LANDING / HERO ==================== */
.landing-view {
  display: flex;
  flex-direction: column;
}

.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  padding: var(--space-lg);
  padding-top: calc(var(--safe-top) + var(--space-xl));
  padding-bottom: calc(var(--safe-bottom) + var(--space-lg));
  min-height: 100vh;
  min-height: 100dvh;
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 55% at 50% -10%, var(--glow-hearth), transparent 60%),
    radial-gradient(80% 50% at 50% 100%, rgba(255, 110, 30, 0.20), transparent 60%),
    linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-abyss) 100%);
}

.floating-pizzas {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.float-pizza {
  position: absolute;
  font-size: 2rem;
  opacity: 0.10;
  filter: blur(6px) saturate(1.8);
  animation: float 20s infinite ease-in-out;
}

.float-pizza.p1 { top: 10%; left: 10%; animation-delay: 0s; }
.float-pizza.p2 { top: 20%; right: 15%; animation-delay: -5s; font-size: 1.5rem; }
.float-pizza.p3 { bottom: 30%; left: 5%; animation-delay: -10s; font-size: 1.8rem; }
.float-pizza.p4 { bottom: 15%; right: 10%; animation-delay: -15s; }

@keyframes float {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(10px, -20px) rotate(5deg); }
  50% { transform: translate(-5px, -10px) rotate(-5deg); }
  75% { transform: translate(15px, -15px) rotate(3deg); }
}

.hero-content {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  max-width: 400px;
  margin: 0 auto;
  padding: var(--space-xl) 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  background: rgba(87, 185, 110, 0.10);
  border: 1px solid var(--basilic-deep);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-lg);
  animation: fadeInDown 0.6s ease;
}

.hero-badge.closed {
  background: rgba(255, 176, 32, 0.12);
  border-color: var(--warning);
}

.hero-badge.closed .status-dot {
  background: var(--warning);
}

/* ===== Sauces du snacking ===== */
/* Meme code couleur que la caisse : vert = compris, orange = facture. */
.sauce-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(7.5rem, 1fr));
  gap: var(--space-sm);
}

.sauce-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  padding: var(--space-md) var(--space-sm);
  border-radius: var(--radius-md, 0.7rem);
  border: 1.5px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.28);
  color: var(--text, #f4ece6);
  font-family: inherit;
  cursor: pointer;
  min-height: 5rem;
  transition: transform 0.08s ease, border-color 0.15s ease, background 0.15s ease;
}

.sauce-item:active { transform: scale(0.97); }

.sauce-item.sauce-free {
  border-color: rgba(87, 185, 110, 0.65);
  background: rgba(87, 185, 110, 0.18);
}

.sauce-item.sauce-paid {
  border-color: rgba(255, 176, 32, 0.65);
  background: rgba(255, 176, 32, 0.16);
}

.sauce-rank {
  position: absolute;
  top: 0.3rem;
  left: 0.4rem;
  min-width: 1.15rem;
  height: 1.15rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #1a0f0c;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1.15rem;
  text-align: center;
}

.sauce-emoji { font-size: 1.4rem; line-height: 1; }
.sauce-label { font-weight: 700; font-size: 0.85rem; text-align: center; }
.sauce-cost { font-size: 0.75rem; font-weight: 700; color: var(--warning, #ffb020); }
.sauce-cost.is-free { color: var(--basilic, #57b96e); }

.sauce-quota-ok { color: var(--basilic, #57b96e); font-weight: 700; }
.sauce-quota-full { color: var(--warning, #ffb020); font-weight: 700; }

/* ===== Horaires d'ouverture ===== */
/* `display` sur une classe l'emporte sur la regle UA `[hidden] { display: none }` :
   sans cette ligne, les horaires restent visibles meme desactives en caisse. */
.hours-toggle[hidden],
.hours-panel[hidden] { display: none; }

/* Le client doit pouvoir repondre a « c'est ouvert quand ? » sans appeler. */
.status-today {
  color: var(--text-muted, #9a8f88);
  font-size: 0.82rem;
  white-space: nowrap;
}

.hours-toggle {
  display: inline-block;
  margin: calc(var(--space-lg) * -0.6) 0 var(--space-lg);
  padding: var(--space-xs) var(--space-md);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-full);
  color: var(--text-muted, #9a8f88);
  font-family: inherit;
  font-size: 0.8rem;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.hours-toggle:hover {
  border-color: var(--basilic-deep, #57b96e);
  color: var(--text, #f4ece6);
}

.hours-panel {
  display: inline-block;
  text-align: left;
  min-width: 17rem;
  margin: 0 0 var(--space-lg);
  padding: var(--space-md);
  background: rgba(0, 0, 0, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md, 0.7rem);
}

.hours-line {
  display: flex;
  justify-content: space-between;
  gap: var(--space-lg);
  padding: 0.22rem 0;
  font-size: 0.85rem;
  color: var(--text-muted, #9a8f88);
}

.hours-line.is-today {
  color: var(--text, #f4ece6);
  font-weight: 700;
}

.hours-line.is-closed span:last-child {
  color: var(--warning, #ffb020);
}

.hero-badge.closed .status-text {
  color: var(--warning);
}

.status-dot {
  width: 8px;
  height: 8px;
  background: var(--basilic);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.status-text {
  font-size: 0.875rem;
  font-weight: 600;
  color: #8FE3A8;
}

.hero-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: var(--space-md);
  animation: fadeInUp 0.6s ease 0.1s both;
}

.hero-title::after {
  content: '';
  width: 64px;
  height: 3px;
  margin: 14px auto 0;
  border-radius: 2px;
  background: linear-gradient(90deg, #8E1114 0 33%, #F7EFE3 33% 66%, #2E7D4F 66% 100%);
}

.title-emoji {
  font-size: 3rem;
  margin-bottom: var(--space-sm);
  filter: drop-shadow(0 8px 24px rgba(255, 122, 41, 0.45));
  animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.title-text {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 15vw, 4.4rem);
  font-weight: 400;
  line-height: 0.95;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  background: linear-gradient(180deg, #FFF6E9, #F0C99B);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 24px rgba(255, 122, 41, 0.30));
}

.hero-location {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: var(--space-xs);
  color: var(--text-secondary);
  font-size: 0.9375rem;
  margin-bottom: var(--space-xl);
  animation: fadeInUp 0.6s ease 0.2s both;
}

.icon-pin {
  width: 16px;
  height: 16px;
  opacity: 0.7;
}

.hero-info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
  animation: fadeInUp 0.6s ease 0.3s both;
}

.info-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.info-icon {
  font-size: 1.5rem;
  margin-bottom: var(--space-xs);
}

.info-value {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--amber);
}

.info-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.info-divider {
  width: 1px;
  height: 40px;
  background: var(--hairline);
}

.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  width: 100%;
  max-width: 280px;
  min-height: 54px;
  padding: var(--space-md) var(--space-xl);
  background: var(--grad-cta);
  border-radius: 14px;
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-on-cta);
  box-shadow: 0 8px 32px var(--glow-ember), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: transform var(--transition-fast);
  animation: fadeInUp 0.6s ease 0.4s both;
}

.hero-cta:active {
  transform: scale(0.98);
}

.hero-cta[disabled] {
  background: var(--bg-elevated);
  color: var(--text-muted);
  box-shadow: none;
  cursor: not-allowed;
}

.cta-arrow {
  width: 20px;
  height: 20px;
}

.hero-features {
  display: flex;
  gap: var(--space-lg);
  margin-top: var(--space-xl);
  animation: fadeInUp 0.6s ease 0.5s both;
}

.feature {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.feature-icon {
  font-size: 1rem;
}

.hero-actions {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  padding-bottom: var(--space-lg);
  animation: fadeInUp 0.6s ease 0.6s both;
}

.action-pill {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  min-height: 44px;
  padding: var(--space-sm) var(--space-md);
  background: var(--bg-card);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-full);
  transition: transform var(--transition-fast);
  position: relative;
}

.action-pill:active {
  transform: scale(0.97);
}

.pill-icon {
  font-size: 1rem;
}

.pill-text {
  font-size: 0.875rem;
  font-weight: 500;
}

.pill-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 6px;
  background: var(--ember);
  border-radius: var(--radius-full);
  color: #1C0A05;
  font-size: 0.6875rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pill-badge:empty {
  display: none;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==================== MENU VIEW ==================== */
.menu-view {
  background: transparent;
  padding-top: calc(var(--safe-top) + 76px);
}

.menu-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: calc(var(--safe-top) + 76px);
  padding: var(--space-md);
  padding-top: calc(var(--safe-top) + var(--space-md));
  background: rgba(12, 5, 5, 0.82);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border-bottom: 1px solid rgba(255, 180, 110, 0.08);
}

.header-btn {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-md);
  color: #E8D9C4;
  transition: transform var(--transition-fast);
}

.header-btn:active {
  transform: scale(0.94);
}

.header-btn svg {
  width: 20px;
  height: 20px;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.brand-icon {
  font-size: 1.5rem;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.cart-btn {
  position: relative;
}

.cart-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  background: var(--ember);
  border: 2px solid #140908;
  border-radius: var(--radius-full);
  color: #1C0A05;
  font-size: 0.75rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-variant-numeric: tabular-nums;
}

.cart-badge:empty,
.cart-badge[data-count="0"] {
  display: none;
}

/* Search */
.search-container {
  /* dans le flux (après le hero) — plus de barre flottante au milieu de l'écran */
  padding: var(--space-md);
  padding-top: calc(var(--space-md) + 4px);
}

.search-bar {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  background: var(--bg-input);
  border: 1px solid var(--hairline-strong);
  border-radius: 14px;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.search-bar:focus-within {
  border-color: var(--ember);
  box-shadow: 0 0 0 3px var(--focus-ring);
}

.search-icon {
  width: 20px;
  height: 20px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.search-bar input {
  flex: 1;
  padding: var(--space-sm) 0;
  font-size: 0.9375rem;
  color: var(--text-primary);
}

.search-bar input::placeholder {
  color: var(--text-muted);
}

/* Categories */
.categories-nav {
  /* sticky : défile avec la page puis se colle sous le header */
  position: sticky;
  top: calc(var(--safe-top) + 76px);
  z-index: 98;
  background: rgba(12, 5, 5, 0.82);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border-bottom: 1px solid rgba(255, 180, 110, 0.08);
}

.categories-scroll {
  display: flex;
  gap: var(--space-sm);
  padding: var(--space-md);
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 16px, #000 calc(100% - 24px), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 16px, #000 calc(100% - 24px), transparent);
}

.categories-scroll::-webkit-scrollbar {
  display: none;
}

.cat-btn {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: transparent;
  border: 1px solid var(--hairline-strong);
  border-radius: 999px;
  color: var(--text-secondary);
  transition: transform var(--transition-fast);
  flex-shrink: 0;
}

.cat-btn:active {
  transform: scale(0.97);
}

.cat-btn.active {
  background: var(--grad-bandeau);
  border-color: rgba(255, 120, 80, 0.35);
  color: #FFF3E2;
  box-shadow: 0 4px 14px rgba(193, 39, 45, 0.35);
}

.cat-icon {
  font-size: 1rem;
  line-height: 1;
}

.cat-name {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.cat-btn.active .cat-name {
  color: #FFF3E2;
}

/* Menu Content */
.menu-content {
  padding-top: var(--space-md);
  padding-bottom: calc(var(--safe-bottom) + 100px);
}

.menu-section {
  padding: var(--space-md);
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-md);
}

.section-title {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.section-title::before {
  content: '';
  width: 16px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, #C1272D, #FF7A29);
  flex-shrink: 0;
}

.title-icon {
  font-size: 1.1rem;
  line-height: 1;
  filter: sepia(1) hue-rotate(-18deg) saturate(2.2) drop-shadow(0 0 8px rgba(255, 150, 50, 0.5));
}

.product-count {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Populaires — dans le flux, sans panneau encadré */
.popular-section {
  background: none;
  border: none;
  border-radius: 0;
  padding: var(--space-md);
  padding-bottom: 0;
  margin-bottom: var(--space-sm);
}

.popular-section .section-header {
  margin-bottom: var(--space-md);
}

.popular-section .section-title {
  font-size: 1.4rem;
  color: var(--text-primary);
}

.popular-section .title-icon {
  font-size: 1.3rem;
}

/* Popular Scroll */
.popular-scroll {
  display: flex;
  gap: var(--space-md);
  overflow-x: auto;
  padding-bottom: var(--space-sm);
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-snap-type: x proximity;
  counter-reset: rank;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 16px, #000 calc(100% - 24px), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 16px, #000 calc(100% - 24px), transparent);
}

.popular-scroll::-webkit-scrollbar {
  display: none;
}

.popular-card {
  position: relative;
  flex-shrink: 0;
  width: 160px;
  background: var(--bg-card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  scroll-snap-align: start;
  transition: transform var(--transition-fast);
}

.popular-card:active {
  transform: scale(0.97);
}

.popular-card::before {
  counter-increment: rank;
  content: counter(rank);
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  background: #E8B54A;
  color: #2A1508;
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 0.9rem;
  line-height: 1;
}

.popular-image {
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  background: linear-gradient(135deg, var(--bg-elevated), var(--bg-card));
}

.popular-info {
  padding: var(--space-sm);
}

.popular-name {
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: var(--space-xs);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.popular-price {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--amber);
}

/* Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

.product-card {
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #1A0D0A, #140908);
  border: 1px solid var(--hairline);
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  transition: transform var(--transition-fast);
}

.product-card:active {
  transform: scale(0.985);
}

.product-image {
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  background: linear-gradient(135deg, var(--bg-elevated), var(--bg-card));
  position: relative;
}

/* Pendant le lazy-load : lueur braise animee (QA : aplat brun percu comme casse) */
.product-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, var(--bg-elevated), transparent);
  transform: translateX(-100%);
  animation: shimmer 1.5s infinite;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: relative;
  z-index: 1;
}

.product-info {
  padding: var(--space-md);
}

.product-name {
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: var(--space-xs);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-price {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--brand-primary);
}

.quick-add {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  position: absolute;
  bottom: var(--space-sm);
  right: var(--space-sm);
  background: var(--brand-primary);
  border-radius: var(--radius-full);
  font-size: 1.25rem;
  font-weight: 700;
  color: white;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.quick-add:hover {
  transform: scale(1.1);
}

/* Floating Cart */
.floating-cart {
  position: fixed;
  bottom: calc(var(--safe-bottom) + var(--space-lg));
  left: var(--space-md);
  right: var(--space-md);
  z-index: 90;
  background: var(--grad-cta);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 36px rgba(232, 80, 15, 0.40), inset 0 1px 0 rgba(255, 255, 255, 0.22);
  animation: slideUp 0.3s ease;
  transition: transform var(--transition-fast);
}

.floating-cart:active {
  transform: scale(0.98);
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(100%);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fc-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) var(--space-lg);
}

.fc-count {
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 800;
  color: var(--text-on-cta);
  font-variant-numeric: tabular-nums;
}

.fc-text {
  flex: 1;
  text-align: center;
  font-weight: 800;
  color: var(--text-on-cta);
}

.fc-total {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--text-on-cta);
  border-left: 1px solid rgba(255, 255, 255, 0.25);
  padding-left: 12px;
}

/* ==================== HISTORY VIEW ==================== */
.history-view {
  background: var(--bg-primary);
}

.simple-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md);
  padding-top: calc(var(--safe-top) + var(--space-md));
  background: rgba(12, 5, 5, 0.82);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border-bottom: 1px solid rgba(255, 180, 110, 0.08);
}

.header-title {
  flex: 1;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.header-spacer {
  width: 44px;
}

.history-content {
  padding: calc(var(--safe-top) + 80px) var(--space-md) calc(var(--safe-bottom) + var(--space-md));
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.history-card {
  background: var(--bg-card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.history-date {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.history-items {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.history-item {
  padding: var(--space-xs) var(--space-sm);
  background: var(--bg-surface2);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  color: #E8D9C4;
}

.history-type {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.history-total {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  color: var(--amber);
  font-variant-numeric: tabular-nums;
}

/* Recommander : ghost braise */
.reorder-btn {
  width: 100%;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-sm) var(--space-md);
  background: transparent;
  border: 1px solid rgba(255, 122, 41, 0.45);
  border-radius: var(--radius-md);
  font-weight: 700;
  color: #FF9C5A;
  transition: background var(--transition-fast), transform var(--transition-fast);
}

.reorder-btn:active {
  background: rgba(255, 122, 41, 0.12);
  transform: scale(0.98);
}

/* Historique vide */
.empty-history h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

.empty-history p {
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* ==================== CART DRAWER ==================== */
.drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--overlay);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.drawer-overlay.show {
  opacity: 1;
  visibility: visible;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 201;
  width: 100%;
  max-width: 420px;
  background: #120807;
  box-shadow: -24px 0 48px rgba(0, 0, 0, 0.55);
  transform: translateX(100%);
  transition: transform 250ms cubic-bezier(0.32, 0.72, 0, 1);
  display: flex;
  flex-direction: column;
}

.cart-drawer.show {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) var(--space-lg);
  padding-top: calc(var(--safe-top) + var(--space-md));
  border-bottom: 1px solid var(--hairline);
}

.drawer-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.drawer-close {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-md);
  color: #E8D9C4;
}

.drawer-close svg {
  width: 20px;
  height: 20px;
}

.drawer-body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: var(--space-xs) var(--space-md);
}

/* Ticket : lignes d'articles séparées par des perforations */
.cart-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: 14px 0;
  border-bottom: 1px dashed rgba(247, 239, 227, 0.10);
}

.drawer-footer {
  padding: var(--space-md) var(--space-lg);
  padding-bottom: calc(var(--safe-bottom) + var(--space-md));
  background: linear-gradient(180deg, #160B08, #1F100C);
  border-top: 1px solid var(--hairline);
}

.cart-summary {
  margin-bottom: var(--space-md);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-sm) 0;
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
}

.summary-row.total {
  padding-top: var(--space-md);
  border-top: 1px dashed rgba(247, 239, 227, 0.12);
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 700;
}

.summary-row.total span:last-child {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  color: var(--amber);
}

.checkout-btn {
  width: 100%;
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) var(--space-lg);
  background: var(--grad-cta);
  border-radius: 14px;
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-on-cta);
  box-shadow: 0 8px 32px var(--glow-ember), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: transform var(--transition-fast);
}

.checkout-btn:active {
  transform: scale(0.98);
}

.checkout-btn span:last-child {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  border-left: 1px solid rgba(255, 255, 255, 0.25);
  padding-left: 12px;
}

/* ==================== MODALS ==================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: var(--overlay);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.modal-overlay.show {
  opacity: 1;
  visibility: visible;
}

.modal-sheet {
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  background: var(--bg-primary);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  overflow: hidden;
  transform: translateY(100%);
  transition: transform 250ms cubic-bezier(0.32, 0.72, 0, 1);
}

.modal-overlay.show .modal-sheet {
  transform: translateY(0);
}

.sheet-handle {
  width: 40px;
  height: 4px;
  background: rgba(255, 190, 120, 0.25);
  border-radius: 2px;
  margin: var(--space-sm) auto var(--space-md);
}

.sheet-close {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(12, 5, 5, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-full);
  color: #E8D9C4;
  z-index: 10;
}

.sheet-close svg {
  width: 18px;
  height: 18px;
}

/* Product Modal */
.product-sheet {
  position: relative;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
  background: #120807;
}

.product-hero {
  height: 240px;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(closest-side, #2A0B08, #160707);
}

.product-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-emoji {
  font-size: 6rem;
  filter: drop-shadow(0 8px 24px rgba(255, 122, 41, 0.25));
}

.product-details {
  padding: var(--space-lg);
  padding-bottom: calc(var(--safe-bottom) + var(--space-lg));
}

.product-header {
  margin-bottom: var(--space-lg);
}

.product-name {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  line-height: 1.05;
  text-transform: uppercase;
  margin-bottom: var(--space-xs);
}

.product-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: var(--space-sm);
}

.product-price {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  line-height: 1;
  color: var(--amber);
}

.supplements-section {
  margin-bottom: var(--space-lg);
}

.supp-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--amber-soft);
  margin-bottom: var(--space-xs);
}

.supp-title::before {
  content: '';
  flex-shrink: 0;
  width: 16px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--rouge-four), var(--ember));
}

.supp-subtitle {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: var(--space-md);
}

.supplements-list {
  display: flex;
  flex-direction: column;
}

/* Groupes de suppléments par catégorie (sauces, fromages, viandes...) :
   même grammaire que .supp-title (tiret rouge + typo condensée), en réduit */
.supp-group-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--amber-soft);
  margin: var(--space-sm) 0 var(--space-xs);
}

.supp-group-title::before {
  content: '';
  flex-shrink: 0;
  width: 12px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--rouge-four), var(--ember));
}

.supp-group:first-child .supp-group-title {
  margin-top: 0;
}

.supp-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  padding: 10px 12px;
  margin-bottom: 8px;
  background: var(--bg-input);
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: border-color var(--transition-fast), background var(--transition-fast), transform var(--transition-fast);
}

.supp-item:active {
  transform: scale(0.985);
}

/* Code couleur caisse : ORANGE = supplément facturé (fond + bordure braise) */
.supp-item.selected {
  border-color: rgba(255, 122, 41, 0.55);
  background: rgba(255, 122, 41, 0.12);
}

/* ===== Mode COMPOSITION (Capricieuse) : tout est inclus dans le prix =====
   Code couleur caisse : VERT = inclus, pas un supplément facturé */
.compose-counters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: var(--space-sm);
}

/* Pilules ambrées, comme les compteurs du mode composition de la caisse */
.compose-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  background: rgba(255, 180, 84, 0.10);
  border: 1px solid rgba(255, 180, 84, 0.35);
  color: var(--amber);
  font-size: 0.82rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  transition: background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
}

.compose-pill.maxed {
  background: rgba(255, 122, 41, 0.16);
  border-color: rgba(255, 122, 41, 0.6);
  color: var(--ember);
}

.compose-mode .supp-item.selected {
  border-color: rgba(87, 185, 107, 0.55);
  background: rgba(87, 185, 107, 0.12);
}

.compose-mode .supp-item.selected .supp-check {
  background: linear-gradient(135deg, var(--basilic-deep), var(--basilic));
  border-color: transparent;
}

/* "inclus" à la place du prix : discret, vert une fois choisi */
.compose-mode .supp-price {
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.compose-mode .supp-item.selected .supp-price {
  color: var(--basilic);
}

/* Limite atteinte (9 ingrédients / 3 viandes) : lignes non choisies désactivées */
.supp-item.compose-disabled {
  opacity: 0.35;
  pointer-events: none;
}

.supp-left {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.supp-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: var(--bg-surface2);
  border-radius: var(--radius-full);
  font-size: 1rem;
}

.supp-name {
  flex: 1;
  font-weight: 500;
}

.supp-right {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.supp-price {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--amber);
  font-variant-numeric: tabular-nums;
}

.supp-check {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid rgba(255, 190, 120, 0.25);
  border-radius: var(--radius-full);
  transition: background var(--transition-fast), border-color var(--transition-fast);
}

.supp-check svg {
  stroke: var(--text-on-amber);
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 200ms ease, transform 200ms ease;
}

.supp-item.selected .supp-check {
  background: var(--grad-cta);
  border-color: transparent;
}

.supp-item.selected .supp-check svg {
  opacity: 1;
  transform: scale(1);
}

.notes-section {
  margin-bottom: var(--space-lg);
}

.notes-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.notes-input {
  width: 100%;
  padding: var(--space-md);
  background: var(--bg-input);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.9375rem;
  resize: none;
  transition: border-color var(--transition-fast);
}

.notes-input:focus {
  border-color: var(--ember);
}

.notes-input::placeholder {
  color: var(--text-muted);
}

/* Barre finale : quantité + ajouter, fondue dans le sheet */
.add-section {
  position: sticky;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg) calc(var(--safe-bottom) + var(--space-md));
  margin: 0 calc(var(--space-lg) * -1) calc((var(--safe-bottom) + var(--space-lg)) * -1);
  background: linear-gradient(0deg, #120807 70%, transparent);
}

.quantity-control {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.qty-btn {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-surface2);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  transition: background var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
}

.qty-btn:active {
  background: rgba(255, 122, 41, 0.2);
  color: var(--ember);
  transform: scale(0.95);
}

.qty-btn svg {
  width: 18px;
  height: 18px;
}

.qty-value {
  min-width: 36px;
  text-align: center;
  font-size: 1.125rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* Checkout Modal */
.checkout-sheet {
  max-height: 95vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: #120807;
}

.checkout-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid var(--hairline);
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(18, 8, 7, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.checkout-header h2 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.checkout-form {
  counter-reset: step;
  padding: var(--space-md);
  padding-bottom: calc(var(--safe-bottom) + var(--space-lg));
}

.form-section {
  margin-bottom: var(--space-lg);
}

.type-section {
  margin-bottom: var(--space-xl);
}

.type-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.type-option input {
  display: none;
}

.type-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-lg);
  background: var(--bg-card);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: border-color var(--transition-fast), background var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
}

.type-card:active {
  transform: scale(0.98);
}

.type-option input:checked + .type-card {
  border-color: var(--ember);
  background: linear-gradient(160deg, #3A1409, #2A0D06);
  box-shadow: 0 0 0 3px var(--focus-ring);
}

.type-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: radial-gradient(closest-side, #2A0B08, #160707);
  border-radius: 50%;
  font-size: 1.4rem;
}

.type-name {
  font-weight: 700;
}

.type-time {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* Étapes numérotées par compteur CSS */
.section-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--amber-soft);
  margin: 28px 0 var(--space-md);
}

.form-section > .section-label::before {
  counter-increment: step;
  content: counter(step);
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border: 1px solid rgba(255, 180, 84, 0.5);
  border-radius: 50%;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--amber);
}

.saved-badge {
  margin-left: auto;
  padding: 3px 10px;
  background: var(--bg-surface2);
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--amber-soft);
}

.input-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.input-group {
  position: relative;
  margin-bottom: var(--space-md);
}

.input-group input {
  width: 100%;
  padding: var(--space-lg) var(--space-md) var(--space-sm);
  background: var(--bg-input);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 1rem;
  transition: border-color var(--transition-fast);
}

.input-group input:focus {
  border-color: var(--ember);
}

.input-group label {
  position: absolute;
  left: var(--space-md);
  top: 50%;
  transform: translateY(-50%);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-muted);
  pointer-events: none;
  transition: all var(--transition-fast);
}

.input-group input:focus + label,
.input-group input:not(:placeholder-shown) + label {
  top: var(--space-sm);
  transform: translateY(0);
  font-size: 0.6875rem;
  color: var(--amber-soft);
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  cursor: pointer;
  font-size: 0.875rem;
}

.checkbox-label input {
  display: none;
}

.checkbox-box {
  width: 20px;
  height: 20px;
  background: var(--bg-input);
  border: 2px solid rgba(255, 190, 120, 0.25);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.checkbox-label input:checked + .checkbox-box {
  background: var(--grad-cta);
  border-color: transparent;
}

.checkbox-label input:checked + .checkbox-box::after {
  content: '✓';
  color: var(--text-on-amber);
  font-size: 0.75rem;
  font-weight: bold;
}

.notes-textarea {
  width: 100%;
  padding: var(--space-md);
  background: var(--bg-input);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.9375rem;
  resize: none;
  min-height: 80px;
}

.notes-textarea::placeholder {
  color: var(--text-muted);
}

/* Récapitulatif ticket */
.summary-section {
  background: var(--bg-card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
}

.summary-section > .section-label {
  margin-top: 0;
}

.order-items {
  margin-bottom: var(--space-md);
}

.order-totals {
  padding-top: var(--space-md);
  border-top: 1px solid var(--hairline);
}

.total-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-xs) 0;
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
}

.total-line.final {
  position: relative;
  margin-top: var(--space-sm);
  padding-top: 12px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.total-line.final::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--ember), transparent);
}

.total-line.final span:last-child {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  color: var(--amber);
}

.submit-btn {
  width: 100%;
  min-height: 54px;
  padding: var(--space-md) var(--space-lg);
  background: var(--grad-cta);
  border-radius: 14px;
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-on-cta);
  margin-top: var(--space-md);
  box-shadow: 0 8px 32px var(--glow-ember), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: transform var(--transition-fast);
}

.submit-btn:active {
  transform: scale(0.98);
}

.submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
}

.submit-loader {
  /* display piloté en inline par app.js — ne jamais le définir ici */
  gap: var(--space-xs);
  align-items: center;
  justify-content: center;
}

.loader-dot {
  width: 8px;
  height: 8px;
  background: var(--text-on-cta);
  border-radius: 50%;
  animation: loaderBounce 0.6s infinite alternate;
}

.loader-dot:nth-child(2) { animation-delay: 0.2s; }
.loader-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes loaderBounce {
  to { opacity: 0.3; transform: translateY(-4px); }
}

/* Success Modal */
.success-card {
  width: calc(100% - var(--space-lg) * 2);
  max-width: 360px;
  margin: auto;
  padding: var(--space-xl);
  background: #120807;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-xl);
  text-align: center;
  transform: scale(0.9);
  opacity: 0;
  transition: all var(--transition-normal);
}

.modal-overlay.show .success-card {
  transform: scale(1);
  opacity: 1;
}

.success-animation {
  position: relative;
  width: 80px;
  height: 80px;
  margin: 0 auto var(--space-lg);
}

.success-ring {
  position: absolute;
  inset: 0;
  border: 3px solid var(--basilic);
  border-radius: 50%;
  animation: ringPop 0.5s ease forwards;
}

@keyframes ringPop {
  0% { transform: scale(0); opacity: 0; }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); opacity: 1; }
}

.success-check {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  color: var(--basilic);
  stroke-dasharray: 50;
  stroke-dashoffset: 50;
  animation: checkDraw 0.5s ease 0.3s forwards;
}

@keyframes checkDraw {
  to { stroke-dashoffset: 0; }
}

.success-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.success-order {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--amber);
  margin-bottom: var(--space-md);
}

.success-order strong {
  font-weight: 400;
  color: var(--amber);
}

.success-message {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
}

.success-eta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-md);
  background: var(--bg-surface2);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-lg);
}

.eta-icon {
  font-size: 1.25rem;
}

.success-btn {
  width: 100%;
  min-height: 50px;
  padding: var(--space-md);
  background: var(--grad-cta);
  border-radius: 14px;
  font-weight: 800;
  color: var(--text-on-cta);
  box-shadow: 0 8px 32px var(--glow-ember), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: transform var(--transition-fast);
}

.success-btn:active {
  transform: scale(0.98);
}

/* Account Modal */
.account-sheet {
  max-height: 70vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: #120807;
}

.account-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid var(--hairline);
}

.account-header h2 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.account-body {
  padding: var(--space-lg);
}

.account-profile {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.profile-avatar {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(closest-side, #2A0B08, #160707);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-full);
}

.profile-avatar svg {
  width: 32px;
  height: 32px;
  color: var(--text-secondary);
}

.profile-info h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: var(--space-xs);
}

.profile-info p {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.account-details {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.detail-row {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md);
  background: var(--bg-card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
}

.detail-icon {
  font-size: 1.25rem;
}

.delete-btn {
  width: 100%;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-md);
  background: rgba(255, 90, 72, 0.10);
  border: 1px solid rgba(255, 90, 72, 0.35);
  border-radius: var(--radius-lg);
  color: var(--error);
  font-weight: 600;
  transition: transform var(--transition-fast);
}

.delete-btn:active {
  transform: scale(0.98);
}

.delete-btn svg {
  width: 18px;
  height: 18px;
}

.no-account {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--space-xl);
}

.no-account-icon {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(closest-side, #2A0B08, #160707);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-lg);
}

.no-account-icon svg {
  width: 40px;
  height: 40px;
  color: var(--text-muted);
}

.no-account h3 {
  font-size: 1.125rem;
  margin-bottom: var(--space-sm);
}

.no-account p {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Toast */
.toast {
  position: fixed;
  /* au-dessus du footer du drawer panier (QA : le toast recouvrait le CTA Commander) */
  bottom: calc(var(--safe-bottom) + 120px);
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-lg);
  background: var(--bg-surface2);
  border: 1px solid var(--hairline-strong);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
  z-index: 500;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  visibility: visible;
}

.toast-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--basilic);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  color: #0A2B14;
}

.toast-text {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* Loading States */
.skeleton {
  position: relative;
  overflow: hidden;
  background: var(--bg-card);
  border-radius: var(--radius-md);
}

.skeleton::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, var(--bg-elevated), transparent);
  transform: translateX(-100%);
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  100% { transform: translateX(100%); }
}

/* Additional Classes for new JS structure */

/* Product Card - Alternative classes */
.card-img {
  position: relative;
  overflow: hidden;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  background: radial-gradient(closest-side, #2A0B08, #160707);
}

.card-img::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% 35%, transparent 52%, rgba(16, 7, 6, 0.55) 85%, rgba(16, 7, 6, 0.92) 100%),
    linear-gradient(to top, rgba(26, 13, 10, 0.9), transparent 42%);
  box-shadow: inset 0 0 0 1px rgba(255, 190, 120, 0.06);
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border: none;
}

.card-emoji {
  font-size: 3.2rem;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.5));
}

.card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: var(--space-md);
}

.card-title {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-desc {
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.card-price {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--amber);
}

.card-add {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--grad-cta);
  border-radius: var(--radius-full);
  color: #1C0A05;
  box-shadow: 0 4px 14px var(--glow-ember);
  transition: transform var(--transition-fast);
}

.card-add svg {
  width: 16px;
  height: 16px;
}

.card-add:active {
  transform: scale(0.9);
}

.card-add[disabled] {
  background: var(--bg-elevated);
  color: var(--text-muted);
  box-shadow: none;
}

/* Popular Products - Alternative classes */
.popular-img {
  position: relative;
  overflow: hidden;
  height: 104px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(closest-side, #2A0B08, #160707);
}

.popular-img::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% 35%, transparent 52%, rgba(16, 7, 6, 0.55) 85%, rgba(16, 7, 6, 0.92) 100%),
    linear-gradient(to top, rgba(26, 13, 10, 0.9), transparent 42%);
  box-shadow: inset 0 0 0 1px rgba(255, 190, 120, 0.06);
}

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

.popular-emoji {
  font-size: 3rem;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.5));
}

/* Cart Item - Alternative classes */
.item-img {
  position: relative;
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  background: radial-gradient(closest-side, #2A0B08, #160707);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.item-img::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background: radial-gradient(closest-side, transparent 45%, rgba(16, 7, 6, 0.5) 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 190, 120, 0.06);
}

.item-details {
  flex: 1;
  min-width: 0;
}

.item-name {
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: var(--space-xs);
}

.item-supps {
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-xs);
}

.item-notes {
  font-size: 0.78rem;
  color: var(--amber-soft);
  font-style: italic;
  margin-bottom: var(--space-xs);
}

.item-price {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  color: var(--amber);
}

.item-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--space-sm);
}

.item-remove {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 90, 72, 0.12);
  border-radius: var(--radius-sm);
  color: var(--error);
}

.item-remove svg {
  width: 14px;
  height: 14px;
}

.item-qty {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 2px;
  background: var(--bg-surface2);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-full);
}

.item-qty span {
  min-width: 24px;
  text-align: center;
  font-weight: 700;
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
}

.qty-sm {
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border-radius: var(--radius-full);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  transition: background var(--transition-fast), color var(--transition-fast);
}

.qty-sm:active {
  background: rgba(255, 122, 41, 0.2);
  color: var(--ember);
}

/* Empty States */
.empty-cart,
.empty-history,
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-2xl);
  text-align: center;
}

.empty-icon {
  font-size: 4rem;
  margin-bottom: var(--space-md);
  opacity: 0.45;
  filter: sepia(0.6) saturate(0.6);
}

.empty-text {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.empty-hint {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.retry-btn {
  margin-top: var(--space-md);
  padding: var(--space-sm) var(--space-lg);
  min-height: 44px;
  background: var(--grad-cta);
  border-radius: var(--radius-md);
  font-weight: 800;
  color: var(--text-on-cta);
}

/* History Card - Alternative classes */
.history-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.history-number {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--amber);
}

.history-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px dashed rgba(247, 239, 227, 0.10);
}

.reorder-btn svg {
  width: 16px;
  height: 16px;
  margin-right: var(--space-xs);
}

/* Summary - Alternative classes (récap ticket) */
.summary-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 10px 0;
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
}

.summary-item + .summary-item,
.summary-supps + .summary-item {
  border-top: 1px dashed rgba(247, 239, 227, 0.12);
}

.summary-qty {
  min-width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  padding: 0 5px;
  background: var(--bg-surface2);
  color: var(--amber);
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
}

.summary-name {
  flex: 1;
}

.summary-price {
  font-weight: 600;
}

.summary-supps {
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin: -4px 0 8px 34px;
}

/* Supp item with SVG check */
.supp-check svg {
  width: 12px;
  height: 12px;
}

/* Bounce animation for cart button */
@keyframes bounceBtn {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

.header-btn.bounce,
.cart-btn.bounce {
  animation: bounceBtn 0.3s ease;
}

/* ==================== RESPONSIVE - MOBILE FIRST ==================== */

/* Small phones (< 375px) */
@media (max-width: 374px) {
  :root {
    --space-md: 12px;
    --space-lg: 16px;
  }

  .menu-header {
    padding: var(--space-sm);
    padding-top: calc(var(--safe-top) + var(--space-sm));
  }

  .header-btn {
    width: 38px;
    height: 38px;
  }

  .brand-name {
    font-size: 1rem;
  }

  .search-container {
    padding: var(--space-sm);
  }

  .search-bar {
    padding: var(--space-xs) var(--space-sm);
  }

  .search-bar input {
    font-size: 0.875rem;
  }

  .categories-scroll {
    padding: var(--space-sm);
    gap: var(--space-xs);
  }

  .cat-btn {
    padding: var(--space-xs) var(--space-sm);
  }

  .cat-icon {
    font-size: 1rem;
  }

  .cat-name {
    font-size: 0.6875rem;
  }

  .menu-content {
    padding-top: var(--space-md);
  }

  .products-grid {
    grid-template-columns: 1fr;
    gap: var(--space-sm);
  }

  .product-card {
    display: flex;
    flex-direction: row;
  }

  .card-img {
    width: 100px;
    height: 100px;
    flex-shrink: 0;
    border-radius: 18px 0 0 18px;
  }

  .card-emoji {
    font-size: 2.5rem;
  }

  .card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .popular-section {
    padding: var(--space-sm);
    padding-bottom: 0;
  }

  .popular-section .section-title {
    font-size: 1.2rem;
  }

  .popular-card {
    width: 130px;
  }

  .popular-img {
    height: 80px;
  }

  .title-emoji {
    font-size: 2.5rem;
  }

  .hero-cta {
    padding: var(--space-sm) var(--space-lg);
    font-size: 1rem;
  }

  .hero-features {
    flex-wrap: wrap;
    justify-content: center;
  }

  .floating-cart {
    bottom: calc(var(--safe-bottom) + var(--space-md));
    left: var(--space-sm);
    right: var(--space-sm);
  }
}

/* Standard phones (375px - 599px) */
@media (min-width: 375px) and (max-width: 599px) {
  .menu-content {
    padding-top: var(--space-md);
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
  }
}

/* Tablets and up */
@media (min-width: 600px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .modal-sheet {
    border-radius: var(--radius-xl);
    margin: auto;
  }

  .modal-overlay {
    align-items: center;
    padding: var(--space-lg);
  }

  .search-container {
    max-width: 500px;
    margin: 0 auto;
  }

  .menu-header {
    max-width: 1200px;
    margin: 0 auto;
  }
}

/* Large tablets and desktops */
@media (min-width: 900px) {
  .products-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .menu-content {
    max-width: 1200px;
    margin: 0 auto;
  }

  .floating-cart {
    max-width: 400px;
    left: 50%;
    transform: translateX(-50%);
    right: auto;
  }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
  .product-card:hover,
  .popular-card:hover,
  .cat-btn:hover,
  .qty-btn:hover,
  .qty-sm:hover {
    transform: none;
    box-shadow: none;
  }

  .product-card:active,
  .popular-card:active {
    transform: scale(0.98);
  }

  /* Larger touch targets */
  .qty-btn {
    min-width: 48px;
    min-height: 48px;
  }

  .cat-btn {
    min-height: 44px;
  }

  .header-btn {
    min-width: 44px;
    min-height: 44px;
  }

  /* Zones tactiles >= 44px sans grossir le rendu */
  .qty-sm,
  .item-remove {
    position: relative;
  }

  .qty-sm::before {
    content: '';
    position: absolute;
    inset: -9px;
    border-radius: inherit;
  }

  .item-remove::before {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: inherit;
  }

  .drawer-close,
  .tracking-close-btn {
    width: 44px;
    height: 44px;
  }
}

/* Landscape phone optimization */
@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    min-height: auto;
    padding-top: var(--space-md);
    padding-bottom: var(--space-md);
  }

  .hero-content {
    padding: var(--space-md) 0;
  }

  .title-emoji {
    font-size: 2rem;
  }

  .hero-title .title-text {
    font-size: 2.4rem;
  }

  .hero-info {
    margin-bottom: var(--space-md);
  }

  .hero-features {
    display: none;
  }

  .hero-actions {
    padding-bottom: var(--space-sm);
  }

  .menu-content {
    padding-top: var(--space-md);
  }

  .product-hero {
    height: 150px;
  }

  .product-emoji {
    font-size: 4rem;
  }
}

/* ============ Notifications en temps réel ============ */

#notificationContainer {
  position: fixed;
  top: calc(var(--safe-top) + 12px);
  left: 12px;
  right: 12px;
  z-index: 500;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.notification {
  background: #1F100C;
  border: 1px solid var(--hairline-strong);
  border-radius: 14px;
  padding: var(--space-md);
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
  transform: translateY(-12px);
  opacity: 0;
  transition: transform 300ms ease, opacity 300ms ease;
  pointer-events: auto;
}

.notification.show {
  transform: translateY(0);
  opacity: 1;
}

.notification-content {
  flex: 1;
  min-width: 0;
}

.notification-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.notification-title::before {
  content: '';
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber);
}

.notification-success .notification-title::before { background: var(--basilic); }
.notification-info .notification-title::before { background: var(--amber); }
.notification-warning .notification-title::before { background: var(--warning); }
.notification-error .notification-title::before { background: var(--error); }

.notification-message {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.notification-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  line-height: 1;
  padding: 0;
  cursor: pointer;
  transition: color var(--transition-fast);
}

.notification-close:hover {
  color: var(--text-primary);
}

@media (min-width: 768px) {
  #notificationContainer {
    left: auto;
    right: 16px;
    max-width: 400px;
  }
}

/* ==================== ORDER TRACKING VIEW ==================== */
.tracking-view {
  min-height: 100vh;
  background:
    radial-gradient(120% 55% at 50% -10%, var(--glow-hearth), transparent 60%),
    linear-gradient(#140908, #0C0505);
  display: flex;
  flex-direction: column;
}

.tracking-header {
  background: rgba(12, 5, 5, 0.82);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  padding: calc(var(--safe-top) + var(--space-md)) var(--space-md) var(--space-md);
  border-bottom: 1px solid rgba(255, 180, 110, 0.08);
}

.tracking-header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tracking-brand {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tracking-close-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-full);
  color: #E8D9C4;
  transition: transform var(--transition-fast);
}

.tracking-close-btn svg {
  width: 20px;
  height: 20px;
}

.tracking-close-btn:active {
  transform: scale(0.94);
}

.tracking-content {
  flex: 1;
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  overflow-y: auto;
  padding-bottom: calc(var(--safe-bottom) + 100px);
}

/* Order Card */
.tracking-order-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid var(--hairline);
}

.order-number-badge {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.order-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.order-number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1;
  color: var(--amber);
}

.order-type-badge {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  background: var(--bg-surface2);
  border: 1px solid var(--hairline);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-full);
}

.order-type-badge .type-icon {
  font-size: 1.25rem;
}

.order-type-badge .type-text {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
}

/* Status Card */
.tracking-status-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  border: 1px solid var(--hairline);
}

.status-current {
  text-align: center;
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--hairline);
  margin-bottom: var(--space-lg);
}

.status-emoji {
  font-size: 3rem;
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  margin: 0 auto var(--space-md);
  background: radial-gradient(closest-side, var(--braise-deep), transparent);
  border-radius: 50%;
  animation: pulse-emoji 3s infinite;
}

@keyframes pulse-emoji {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

.status-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
}

.status-subtitle {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* Progress Steps — timeline température unique */
.progress-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.progress-step {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-sm) 0;
}

.step-indicator {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-surface2);
  border-radius: var(--radius-full);
  position: relative;
  transition: background var(--transition-normal), box-shadow var(--transition-normal);
}

.step-indicator .step-icon {
  font-size: 1.25rem;
  opacity: 0.45;
  transition: opacity var(--transition-normal);
}

.step-indicator.active {
  background: linear-gradient(135deg, var(--ember), var(--rouge-four));
  box-shadow: 0 0 24px rgba(255, 122, 41, 0.45);
}

.step-indicator.active .step-icon {
  opacity: 1;
}

.step-indicator.completed {
  background: var(--bg-elevated);
}

.step-indicator.completed .step-icon {
  opacity: 1;
  filter: sepia(0.5) saturate(0.9);
}

.step-pulse {
  position: absolute;
  inset: 0;
  border: 3px solid rgba(255, 122, 41, 0.5);
  border-radius: 50%;
  pointer-events: none;
  animation: braisePulse 1.8s ease-out infinite;
}

@keyframes braisePulse {
  from { transform: scale(1); opacity: 1; }
  to { transform: scale(1.6); opacity: 0; }
}

.step-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.step-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: color var(--transition-normal);
}

.step-indicator.active + .step-info .step-label {
  color: var(--text-primary);
  font-weight: 700;
}

.step-indicator.completed + .step-info .step-label {
  color: var(--amber-soft);
}

.step-time {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.progress-line {
  width: 3px;
  height: 24px;
  background: rgba(247, 239, 227, 0.10);
  margin-left: 22px;
  border-radius: 2px;
  transition: background var(--transition-normal);
}

.progress-line.completed {
  background: linear-gradient(180deg, var(--rouge-four), var(--ember));
}

/* ETA Card */
.tracking-eta-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  border: 1px solid var(--hairline);
}

.eta-header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.eta-icon-large {
  font-size: 2.5rem;
}

.eta-info {
  display: flex;
  flex-direction: column;
}

.eta-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.eta-value {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1.1;
  color: var(--amber);
}

.eta-countdown {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.countdown-bar {
  height: 8px;
  background: var(--bg-surface2);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.countdown-fill {
  height: 8px;
  background: linear-gradient(90deg, var(--rouge-four), var(--ember), var(--amber));
  border-radius: var(--radius-full);
  box-shadow: 0 0 12px rgba(255, 140, 40, 0.5);
  transition: width 1s linear;
}

.countdown-text {
  font-size: 0.875rem;
  color: var(--text-secondary);
  text-align: center;
}

/* Ready Alert — le payoff vert basilic */
.tracking-ready-alert {
  background: rgba(87, 185, 110, 0.10);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  text-align: center;
  border: 1px solid var(--basilic-deep);
  box-shadow: 0 0 24px rgba(87, 185, 110, 0.18);
}

.ready-animation {
  margin-bottom: var(--space-md);
}

.ready-emoji {
  font-size: 4rem;
  display: inline-block;
  animation: bounce-ready 1s infinite;
}

@keyframes bounce-ready {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.ready-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--basilic);
  margin-bottom: var(--space-sm);
}

.ready-text {
  font-size: 1rem;
  color: var(--text-secondary);
}

/* Details Card */
.tracking-details-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--hairline);
  overflow: hidden;
}

.details-toggle {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-md) var(--space-lg);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.details-toggle:active {
  color: var(--text-primary);
}

.toggle-arrow {
  width: 20px;
  height: 20px;
  color: var(--amber-soft);
  transition: transform var(--transition-fast);
}

.details-toggle.open .toggle-arrow {
  transform: rotate(180deg);
}

.details-content {
  padding: 0 var(--space-lg) var(--space-lg);
  border-top: 1px solid var(--hairline);
}

.details-items {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  padding: var(--space-md) 0;
}

.detail-item {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  align-items: baseline;
  font-size: 0.875rem;
}

.detail-item-name {
  color: var(--text-secondary);
}

.detail-item-qty {
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.detail-item-price {
  color: var(--amber);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.details-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-md);
  border-top: 1px dashed rgba(247, 239, 227, 0.12);
  font-size: 1rem;
  font-weight: 700;
}

.details-total span:last-child {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--amber);
}

/* Contact Card */
.tracking-contact-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: var(--space-md) var(--space-lg);
  display: flex;
  align-items: center;
  gap: var(--space-md);
  border: 1px solid var(--hairline);
}

.contact-icon {
  font-size: 1.5rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
}

.contact-label {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.contact-phone {
  font-size: 1rem;
  font-weight: 600;
  color: var(--amber);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Tracking Footer */
.tracking-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-md);
  padding-bottom: calc(var(--safe-bottom) + var(--space-md));
  background: linear-gradient(to top, var(--bg-abyss) 55%, transparent 100%);
}

.new-order-btn {
  width: 100%;
  min-height: 54px;
  padding: var(--space-md) var(--space-lg);
  background: var(--grad-cta);
  border-radius: 14px;
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-on-cta);
  box-shadow: 0 8px 32px var(--glow-ember), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: transform var(--transition-fast);
}

.new-order-btn:active {
  transform: scale(0.98);
}

/* ==================== PRODUITS ÉPUISÉS (apaisés) ==================== */

.product-card.unavailable {
  pointer-events: auto;
  border: 1px solid var(--hairline);
  position: relative;
}

.product-card.unavailable .card-emoji,
.product-card.unavailable .card-img img {
  filter: grayscale(0.85) brightness(0.5);
}

.unavailable-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: rgba(12, 5, 5, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
}

.unavailable-badge {
  background: var(--bg-elevated);
  border: 1px solid rgba(255, 90, 72, 0.5);
  color: var(--error-soft);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transform: rotate(-3deg);
}

.unavailable-reason {
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  margin-top: var(--space-xs);
}

.product-card.unavailable .card-add {
  background: var(--bg-elevated);
  border: none;
  color: var(--text-muted);
  box-shadow: none;
  cursor: not-allowed;
}

.product-card.unavailable .card-add svg {
  transform: none;
  stroke: currentColor;
}

/* Populaires épuisés */
.popular-card.unavailable {
  border: 1px solid var(--hairline);
}

.popular-card.unavailable .popular-emoji,
.popular-card.unavailable .popular-img img {
  filter: grayscale(0.85) brightness(0.5);
}

.unavailable-overlay-small {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: rgba(12, 5, 5, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
}

.unavailable-overlay-small span {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--error-soft);
}

/* Stock indicator in landing page (optional future enhancement) */
.stock-warning {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  background: rgba(255, 90, 72, 0.12);
  border: 1px solid rgba(255, 90, 72, 0.35);
  border-radius: var(--radius-md);
  color: var(--error);
  font-size: 0.85rem;
  margin-top: var(--space-md);
}

.stock-warning-icon {
  font-size: 1.1rem;
}

/* ===== Photos HD : vignettage braise porté par .card-img / .popular-img ===== */
.card-img.has-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product-card { overflow: hidden; }
.item-img { overflow: hidden; }
.item-img img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; display: block; }

/* ============================================================
   CATALOGUE COMPLET + VARIANTES — lifting visuel 2026-08
   ============================================================ */

/* ----- Cartes produits : cadre braise défini dans la grille ----- */

/* Badge "X choix" sur les produits à variantes */
.card-variants-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  padding: 3px 9px;
  background: rgba(12, 5, 5, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-full);
  color: var(--amber-soft);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Prix "dès X €" un poil plus discret que le prix sec */
.card-price {
  letter-spacing: -0.2px;
}

/* ----- Chips catégories : bandeaux rouge four définis dans la nav ----- */

/* ----- Variantes P/M/G dans le modal produit ----- */
.variants-section {
  margin-bottom: var(--space-lg);
}

.variants-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
  gap: var(--space-sm);
}

.variant-chip {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 12px 8px;
  background: #1D0E0A;
  border: 1px solid var(--hairline-strong);
  border-radius: 14px;
  color: var(--text-primary);
  text-align: center;
  cursor: pointer;
  transition: border-color var(--transition-fast), background var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
}

.variant-chip:active:not(:disabled) {
  transform: scale(0.97);
}

.variant-chip.selected {
  border-color: var(--ember);
  background: linear-gradient(160deg, #3A1409, #2A0D06);
  box-shadow: 0 0 0 3px var(--focus-ring);
}

.variant-chip.selected::after {
  content: '✓';
  position: absolute;
  top: 6px;
  right: 6px;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ember);
  border-radius: var(--radius-full);
  color: var(--text-on-amber);
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 800;
}

.variant-chip .variant-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1;
  color: var(--text-primary);
}

.variant-chip .variant-price {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
}

.variant-chip.selected .variant-price {
  color: var(--amber);
}

.variant-chip.out-of-stock {
  opacity: 0.45;
  cursor: not-allowed;
}

.variant-chip .variant-epuise {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--error-soft);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ----- Modal produit : la photo se dissout dans le sheet ----- */
.product-hero.has-photo {
  position: relative;
  background: radial-gradient(closest-side, #2A0B08, #160707);
}

.product-hero.has-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(to top, #120807 0%, rgba(18, 8, 7, 0) 30%),
    radial-gradient(120% 90% at 50% 35%, transparent 52%, rgba(16, 7, 6, 0.55) 85%, rgba(16, 7, 6, 0.92) 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 190, 120, 0.06);
}


/* ===== Signature Braise : focus universel & accessibilité ===== */
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: none;
  border-color: var(--ember);
  box-shadow: 0 0 0 3px var(--focus-ring);
}

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

/* ===== Prompt push : surcharges de la feuille claire injectée par app.js ===== */
body .notification-prompt-overlay {
  background: var(--overlay);
}

body .notification-prompt {
  background: #1F100C !important;
  border: 1px solid var(--hairline-strong);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6) !important;
}

body .notification-prompt .prompt-title {
  color: #F7EFE3 !important;
}

body .notification-prompt .prompt-text {
  color: #C9B39E !important;
}

body .notification-prompt .prompt-btn-primary {
  background: var(--grad-cta) !important;
  color: #FFF6EA !important;
}

body .notification-prompt .prompt-btn-secondary {
  background: #241209 !important;
  color: #C9B39E !important;
}

/* ===== Bouton Ajouter (modal produit) — dégradé braise ===== */
.add-btn {
  flex: 1;
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-lg);
  background: var(--grad-cta);
  border-radius: 14px;
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-on-cta);
  box-shadow: 0 8px 24px var(--glow-ember), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: transform var(--transition-fast);
}

.add-btn:active {
  transform: scale(0.98);
}

#addToCartPrice {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 400;
  letter-spacing: 0.04em;
}

#addToCartBtn[disabled] {
  background: var(--bg-elevated);
  box-shadow: none;
}

#addToCartBtn[disabled] span {
  color: #FF9C8F !important;
}

/* ----- "La Moitié / Moitié" : sélecteurs des deux moitiés dans le modal produit ----- */
.half-half-section {
  margin-bottom: var(--space-lg);
}

.half-half-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

@media (min-width: 480px) {
  .half-half-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.half-select {
  display: block;
}

.half-select-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: var(--space-sm);
  color: var(--text-secondary);
}

/* Même habillage que les champs du checkout (bg-input + hairline + focus braise) */
.half-select-input {
  width: 100%;
  padding: var(--space-md);
  padding-right: 44px;
  background: var(--bg-input);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.9375rem;
  font-family: var(--font-body);
  cursor: pointer;
  transition: border-color var(--transition-fast);
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23E9B87E' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}

.half-select-input:focus {
  outline: none;
  border-color: var(--ember);
  box-shadow: 0 0 0 3px var(--focus-ring);
}

/* Liste déroulante native : fond sombre cohérent (navigateurs qui le permettent) */
.half-select-input option {
  background-color: #1A0D0A;
  color: #F7EFE3;
}

/* Compteur 'restants' du mode composition, colle au bouton Ajouter (demande client) */
.compose-footer-hint { flex-basis: 100%; display: flex; gap: 8px; justify-content: center; padding: 0 0 8px; }
/* la barre Ajouter passe en 2 lignes quand le bandeau compose est present */
.add-section:has(.compose-footer-hint) { flex-wrap: wrap; }
.cfh-pill { display: inline-flex; align-items: center; gap: 5px; padding: 5px 12px;
  background: rgba(249, 115, 22, .14); border: 1px solid rgba(249, 115, 22, .55);
  border-radius: 999px; color: #fdba74; font-size: .8rem; font-weight: 700; white-space: nowrap; }
.cfh-pill b { color: #fb923c; font-size: .95rem; }
.cfh-pill.cfh-full { background: rgba(87, 185, 107, .14); border-color: rgba(87, 185, 107, .55); color: #a7e8b8; }

/* Verification du numero + heure de recuperation (checkout) */
.phone-verify { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: -6px 0 14px; }
.pv-status { font-size: .82rem; font-weight: 700; }
.pv-status.ok { color: #57b96b; }
.pv-status.warn { color: #fdba74; }
.pv-btn-verify { background: rgba(249,115,22,.14); border: 1px solid rgba(249,115,22,.5); color: #fdba74;
  border-radius: 999px; padding: 7px 14px; font-size: .82rem; font-weight: 700; cursor: pointer; }
.pv-btn-verify:disabled { opacity: .5; cursor: default; }
.pv-code-row { display: flex; gap: 8px; width: 100%; }
.pv-code-row input { flex: 1; background: var(--bg-elevated); border: 1px solid var(--hairline-strong);
  border-radius: 10px; padding: 10px 12px; color: var(--text-primary); font-size: 1rem; letter-spacing: .3em; text-align: center; }
.pickup-select { width: 100%; background: var(--bg-elevated); border: 1px solid var(--hairline-strong);
  border-radius: 12px; padding: 13px 14px; color: var(--text-primary); font-size: .95rem; appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #fb923c 50%), linear-gradient(135deg, #fb923c 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }

/* ===== Viande au choix (carte : « boeuf ou poulet ») ===== */
.meat-choice-section { margin-top: var(--space-lg); }
.meat-choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr));
  gap: var(--space-sm);
  margin-top: var(--space-sm);
}
.meat-option {
  padding: var(--space-md);
  background: var(--bg-input);
  border: 1.5px solid var(--hairline-strong);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.9375rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.meat-option.selected {
  border-color: var(--accent, #C1272D);
  background: rgba(193, 39, 45, .18);
  box-shadow: 0 0 0 2px rgba(193, 39, 45, .25);
}

/* ===== Fidélité (checkout) ===== */
.loyalty-block { margin: 8px 0 4px; padding: 10px 12px; border-radius: 12px; background: rgba(255, 200, 80, 0.08); border: 1px solid rgba(255, 200, 80, 0.35); font-size: .9rem; line-height: 1.35; }
.loyalty-block small { display: block; opacity: .8; margin-top: 4px; }
#loyaltyRewardRow { margin-top: 8px; }
.summary-item.loyalty-line .summary-price { color: #57b96e; font-weight: 800; }
