/* ============================================================
   Kabana Pizz — direction claire, mobile-first, motion premium
   ============================================================ */

:root {
  --paper: #fffdf8;
  --paper-2: #fff4e6;
  --surface: rgba(255, 255, 255, 0.86);
  --surface-solid: #ffffff;
  --ink: #24140e;
  --muted: #745d51;
  --soft: #9a7c6c;
  --line: rgba(116, 70, 46, 0.16);
  --tomato: #e83f27;
  --tomato-dark: #9f2418;
  --cheese: #ffbc32;
  --basil: #188f54;
  --cream: #fff0d4;
  --shadow: 0 18px 48px rgba(76, 38, 20, 0.12);
  --shadow-soft: 0 10px 28px rgba(76, 38, 20, 0.09);
  --radius: 16px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, sans-serif;
  background:
    radial-gradient(circle at 14% 0%, rgba(255, 188, 50, 0.14), transparent 24rem),
    linear-gradient(180deg, #fffcf6, #fff7ec 58%, #fffcf6);
  color: var(--ink);
  line-height: 1.55;
  overflow-x: hidden;
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.32;
  background-image:
    linear-gradient(rgba(36, 20, 14, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(36, 20, 14, 0.045) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(to bottom, black, transparent 62%);
  z-index: 0;
}

img { display: block; max-width: 100%; }

h1, h2, h3 {
  font-family: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
  margin: 0;
}

button, input, select, textarea { font: inherit; }

main {
  position: relative;
  z-index: 1;
  padding-top: var(--header-offset, 118px);
}

.bg-glow {
  position: fixed;
  inset: -18vh -20vw auto auto;
  width: 62vw;
  height: 52vh;
  pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(232, 63, 39, 0.08), transparent 65%);
  filter: blur(8px);
  z-index: 0;
}

:focus-visible {
  outline: 3px solid rgba(232, 63, 39, 0.65);
  outline-offset: 3px;
  box-shadow: 0 0 0 1px #fff;
}

/* Stronger focus for form controls and buttons (WCAG) */
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(232, 63, 39, 0.7);
  outline-offset: 2px;
}

input:user-invalid,
select:user-invalid,
textarea:user-invalid {
  border-color: var(--tomato-dark) !important;
  box-shadow: 0 0 0 3px rgba(232, 63, 39, 0.12);
}

/* ---------- Actions ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 46px;
  padding: 0.82rem 1.25rem;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-decoration: none;
  transition: transform 0.24s var(--ease), box-shadow 0.24s var(--ease), background 0.2s, color 0.2s, border-color 0.2s;
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.98); }

.btn-primary {
  background: var(--tomato);
  color: #fffdf8;
  box-shadow: 0 10px 24px rgba(232, 63, 39, 0.24);
}

.btn-primary:hover {
  background: var(--tomato-dark);
  box-shadow: 0 14px 30px rgba(232, 63, 39, 0.3);
}

.btn-primary:disabled {
  background: #eadfd3;
  color: var(--soft);
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

.btn-outline {
  background: rgba(255, 255, 255, 0.64);
  border-color: var(--line);
  color: var(--tomato-dark);
}

.btn-outline:hover {
  border-color: rgba(232, 63, 39, 0.42);
  background: #fff;
}

.btn-block { width: 100%; }

.icon-btn {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  cursor: pointer;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}

.icon-btn:hover {
  color: var(--tomato-dark);
  background: #fff;
  border-color: rgba(232, 63, 39, 0.28);
}

/* ---------- En-tête fixe (navbar toujours visible) ---------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(255, 253, 248, 0.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  box-shadow: 0 8px 28px rgba(76, 38, 20, 0.06);
  transition: box-shadow 0.3s var(--ease), background 0.3s var(--ease);
}

.site-header.is-scrolled {
  background: rgba(255, 253, 248, 0.96);
  box-shadow: 0 10px 32px rgba(76, 38, 20, 0.1);
}

.topbar {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.62rem 0.82rem;
  background: transparent;
  border-bottom: none;
}

.brand {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.52rem;
  color: var(--ink);
  text-decoration: none;
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 1.03rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  box-shadow: 0 7px 18px rgba(36, 20, 14, 0.12);
}

.topnav {
  display: none;
}

.topnav a {
  color: var(--muted);
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.42rem 0.68rem;
  position: relative;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease);
}

.topnav a:hover { color: var(--tomato-dark); }

.topnav a.active,
.topnav a[aria-current="true"] {
  background: rgba(232, 63, 39, 0.14);
  color: var(--tomato-dark);
  font-weight: 900;
  transform: scale(1.02);
}

.topnav a.active::after,
.topnav a[aria-current="true"]::after {
  content: "";
  position: absolute;
  bottom: 3px;
  left: 50%;
  transform: translateX(-50%);
  width: 22px;
  height: 3px;
  background: var(--tomato);
  border-radius: 3px;
  animation: nav-indicator 0.35s var(--ease);
}

@keyframes nav-indicator {
  from { width: 0; opacity: 0; }
  to { width: 22px; opacity: 1; }
}

.cart-btn {
  position: relative;
  margin-left: auto;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  border: 1px solid rgba(232, 63, 39, 0.18);
  border-radius: 999px;
  background: #fff;
  color: var(--tomato-dark);
  box-shadow: var(--shadow-soft);
  padding: 0.55rem 0.9rem;
  cursor: pointer;
  font-weight: 800;
}

.cart-count[hidden] { display: none; }

.cart-count {
  min-width: 21px;
  height: 21px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: var(--tomato);
  color: #fff;
  font-size: 0.72rem;
}

.mobile-nav {
  display: flex;
  gap: 0.45rem;
  overflow-x: auto;
  padding: 0.58rem 0.82rem;
  background: rgba(255, 248, 237, 0.72);
  border-top: 1px solid rgba(116, 70, 46, 0.08);
  scrollbar-width: none;
}

.mobile-nav::-webkit-scrollbar { display: none; }

.mobile-nav a {
  flex: 0 0 auto;
  padding: 0.5rem 0.78rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(76, 38, 20, 0.06);
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.mobile-nav a.active,
.mobile-nav a[aria-current="true"] {
  border-color: var(--tomato);
  background: var(--tomato);
  color: #fff;
  box-shadow: 0 4px 14px rgba(232, 63, 39, 0.35);
  transform: scale(1.04);
}

/* ---------- Hero ---------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 118px;
  align-items: center;
  gap: 0.7rem;
  overflow: clip;
  padding: 0.92rem 0.82rem 1rem;
  max-width: 1180px;
  margin: 0 auto;
}

.hero-text { align-self: center; }

.hero-eyebrow {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.68rem;
  padding: 0.42rem 0.78rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  box-shadow: 0 10px 25px rgba(76, 38, 20, 0.06);
}

.hero-eyebrow .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--basil);
  box-shadow: 0 0 0 6px rgba(24, 143, 84, 0.12);
  animation: pulse 2.2s ease-in-out infinite;
}

@keyframes pulse {
  50% { transform: scale(0.72); opacity: 0.72; }
}

.hero h1 {
  max-width: 10ch;
  font-size: clamp(2.45rem, 10.7vw, 3.45rem);
  line-height: 0.9;
  letter-spacing: -0.055em;
}

.hero-sub {
  max-width: 38rem;
  margin: 0.7rem 0 0.85rem;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.42;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.open-badge {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  border: 1px solid rgba(24, 143, 84, 0.26);
  border-radius: 999px;
  background: rgba(24, 143, 84, 0.08);
  color: var(--basil);
  padding: 0.45rem 0.76rem;
  font-size: 0.84rem;
  font-weight: 800;
}

.open-badge.closed {
  border-color: rgba(232, 63, 39, 0.26);
  background: rgba(232, 63, 39, 0.07);
  color: var(--tomato-dark);
}

.hero-photo {
  position: relative;
  width: 128px;
  justify-self: center;
  aspect-ratio: 1;
}

.hero-photo .halo {
  position: absolute;
  inset: -7%;
  border-radius: 50%;
  pointer-events: none;
}

.halo-one {
  background: conic-gradient(from 120deg, rgba(232, 63, 39, 0.52), rgba(255, 188, 50, 0.12), rgba(24, 143, 84, 0.24), rgba(232, 63, 39, 0.52));
  filter: blur(22px);
  animation: spin 15s linear infinite;
}

.halo-two {
  inset: 6% !important;
  border: 1px dashed rgba(159, 36, 24, 0.25);
  animation: spin 24s linear infinite reverse;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.hero-video {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 5px solid #fff;
  border-radius: 34% 66% 52% 48% / 54% 38% 62% 46%;
  box-shadow: 0 26px 70px rgba(76, 38, 20, 0.22);
  animation: floaty 6s ease-in-out infinite;
  background: var(--paper-2);
}

.motion-site .hero-video {
  border-radius: 50%;
  animation: none;
}

@keyframes floaty {
  50% { transform: translateY(-8px) rotate(-1.5deg); }
}

.hero-card {
  position: absolute;
  right: -0.25rem;
  bottom: 1rem;
  display: grid;
  gap: 0.05rem;
  padding: 0.72rem 0.86rem;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: none;
  text-align: center;
}

.hero-card strong {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 1.18rem;
  line-height: 1;
}

.hero-card span {
  color: var(--tomato-dark);
  font-weight: 900;
  font-size: 0.84rem;
}

.anim {
  opacity: 0;
  transform: translateY(20px);
  animation: rise 0.82s var(--ease) forwards;
}

.anim-1 { animation-delay: 0.04s; }
.anim-2 { animation-delay: 0.14s; }
.anim-3 { animation-delay: 0.24s; }
.anim-4 { animation-delay: 0.34s; }

@keyframes rise {
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Ticker ---------- */

.ticker {
  overflow: hidden;
  contain: layout paint;
  max-width: 100vw;
  border-block: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.48);
  padding: 0.72rem 0;
}

.ticker-track {
  width: max-content;
  display: flex;
  gap: 1.5rem;
  color: var(--soft);
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  animation: ticker 42s linear infinite;
}

.ticker-track span:nth-child(even) { color: var(--tomato); }

@keyframes ticker {
  to { transform: translateX(-50%); }
}

/* ---------- Reveals ---------- */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.72s var(--ease), transform 0.72s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Sections menu ---------- */

.menu-section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 2.2rem 0.82rem 0;
  scroll-margin-top: calc(var(--header-offset, 118px) + 12px);
  border-radius: 20px;
  transition: background 0.45s var(--ease), box-shadow 0.45s var(--ease);
}

.menu-section.in-view {
  background: rgba(255, 255, 255, 0.42);
  box-shadow: inset 4px 0 0 var(--tomato);
}

.section-head {
  display: grid;
  gap: 0.18rem;
  margin-bottom: 0.85rem;
}

.section-eyebrow {
  margin: 0;
  color: var(--tomato-dark);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.section-head h2 {
  font-size: clamp(2rem, 9vw, 3.25rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.section-sub {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.grid {
  display: grid;
  gap: 0.72rem;
}

.grid-simple {
  gap: 0.58rem;
}

/* ---------- Cartes pizza compactes ---------- */

.card {
  display: grid;
  grid-template-columns: 94px minmax(0, 1fr);
  min-height: 132px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 10px 26px rgba(76, 38, 20, 0.07);
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease), border-color 0.2s;
}

.card:hover {
  transform: translateY(-3px);
  border-color: rgba(232, 63, 39, 0.28);
  box-shadow: var(--shadow);
}

.card-img-wrap {
  position: relative;
  min-height: 100%;
  overflow: hidden;
  background: linear-gradient(135deg, #fff7e8, #ffffff);
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  padding: 0.35rem;
  transition: transform 0.5s var(--ease);
}

.card:hover .card-img { transform: scale(1.04); }

.base-chip {
  position: absolute;
  left: 0.38rem;
  bottom: 0.38rem;
  max-width: calc(100% - 0.76rem);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  color: var(--tomato-dark);
  padding: 0.22rem 0.42rem;
  font-size: 0.62rem;
  font-weight: 900;
  box-shadow: 0 6px 16px rgba(36, 20, 14, 0.12);
}

.card-body {
  min-width: 0;
  display: grid;
  gap: 0.48rem;
  padding: 0.72rem;
}

.card-title-row {
  min-width: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
}

.card h3 {
  min-width: 0;
  color: var(--ink);
  font-size: 1.07rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1;
}

.badge-signature {
  flex: 0 0 auto;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--tomato), var(--cheese));
  color: #fff;
  padding: 0.18rem 0.42rem;
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.card-ingredients {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.25;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.card-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.48rem;
}

.size-picker {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.32rem;
  min-width: 0;
  padding: 0.22rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 244, 230, 0.72);
}

.size-pill {
  min-height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.24rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-weight: 900;
  line-height: 1;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.size-pill span {
  font-size: 0.68rem;
  font-weight: 800;
}

.size-pill strong { font-size: 0.86rem; }

.size-pill[aria-pressed="true"] {
  background: #fff;
  color: var(--tomato-dark);
  box-shadow: 0 7px 16px rgba(76, 38, 20, 0.1);
}

.card-price {
  display: none;
}

.add-btn {
  min-width: 45px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(232, 63, 39, 0.22);
  border-radius: 999px;
  background: var(--tomato);
  color: #fff;
  box-shadow: 0 10px 20px rgba(232, 63, 39, 0.18);
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 900;
  transition: transform 0.2s var(--ease), background 0.2s, box-shadow 0.2s;
}

.add-btn:hover {
  background: var(--tomato-dark);
  box-shadow: 0 14px 26px rgba(232, 63, 39, 0.25);
}

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

.add-btn.added {
  background: var(--basil);
  border-color: transparent;
}

/* ---------- Cartes simples ---------- */

.card-simple {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.72rem;
  min-height: 70px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.74);
  padding: 0.52rem;
  box-shadow: 0 8px 20px rgba(76, 38, 20, 0.06);
  transition: transform 0.25s var(--ease), border-color 0.2s, box-shadow 0.25s var(--ease);
}

.card-simple:hover {
  transform: translateY(-2px);
  border-color: rgba(232, 63, 39, 0.25);
  box-shadow: var(--shadow-soft);
}

.card-simple .thumb,
.card-simple .emoji-thumb {
  width: 52px;
  height: 52px;
  border-radius: 13px;
  flex-shrink: 0;
}

.card-simple .thumb {
  object-fit: contain;
  object-position: center;
  padding: 0.34rem;
  background: linear-gradient(135deg, #fff7e8, #ffffff);
}

.card-simple .emoji-thumb {
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: var(--paper-2);
  font-size: 1.35rem;
}

.card-simple .info {
  min-width: 0;
}

.card-simple h3 {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.93rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.card-simple .price {
  color: var(--tomato-dark);
  font-weight: 900;
  font-size: 0.88rem;
}

.card-simple .add-btn {
  min-width: 39px;
  min-height: 39px;
  padding: 0;
}

/* ---------- Infos ---------- */

.infos {
  max-width: 1180px;
  margin: 2.3rem auto 0;
  padding: 1.25rem 0.82rem 2.2rem;
  display: grid;
  gap: 0.85rem;
  scroll-margin-top: calc(var(--header-offset, 118px) + 12px);
  border-radius: 20px;
  transition: background 0.45s var(--ease), box-shadow 0.45s var(--ease);
}

.infos.in-view {
  background: rgba(255, 255, 255, 0.38);
  box-shadow: inset 4px 0 0 var(--tomato);
}

.visit-panel.in-view {
  border-color: rgba(232, 63, 39, 0.38);
  box-shadow: 0 24px 70px rgba(232, 63, 39, 0.14);
}

.infos-col {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  padding: 1rem;
  box-shadow: var(--shadow-soft);
}

.infos h2 {
  margin-bottom: 0.75rem;
  font-size: 2rem;
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.infos p {
  color: var(--muted);
  margin: 0 0 1rem;
}

.hours {
  width: 100%;
  border-collapse: collapse;
}

.hours td {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.hours td:last-child {
  text-align: right;
  white-space: nowrap;
}

.hours tr.today td {
  color: var(--tomato-dark);
  font-weight: 900;
}

.pay-note {
  margin-top: 0.9rem !important;
  font-size: 0.88rem;
}

.visit-panel {
  display: grid;
  gap: 0.8rem;
  overflow: hidden;
  border: 1px solid rgba(232, 63, 39, 0.16);
  border-radius: 24px;
  background:
    radial-gradient(circle at 10% 10%, rgba(255, 188, 50, 0.18), transparent 18rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(255, 244, 230, 0.64));
  box-shadow: 0 24px 70px rgba(76, 38, 20, 0.12);
  scroll-margin-top: calc(var(--header-offset, 118px) + 12px);
}

.visit-copy {
  display: grid;
  gap: 0.78rem;
  padding: 1.05rem;
}

.visit-copy h2 {
  margin: 0;
  font-size: clamp(2.1rem, 9vw, 3.4rem);
}

.address-line {
  margin: 0 !important;
  color: var(--ink) !important;
  font-size: 1.12rem;
  font-weight: 900;
  line-height: 1.28;
}

.visit-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.58rem;
}

.google-review {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.28rem 0.72rem;
  align-items: center;
  margin-top: 0.2rem;
  padding: 0.88rem;
  border: 1px solid rgba(251, 188, 4, 0.34);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.62);
}

.google-review strong,
.google-review span:last-child {
  grid-column: 1 / -1;
}

.google-review strong {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 1.18rem;
  line-height: 1;
}

.google-review span {
  color: var(--muted);
  font-size: 0.9rem;
}

.google-mark {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  background: #fff;
  color: #4285f4 !important;
  padding: 0.22rem 0.5rem;
  font-size: 0.78rem !important;
  font-weight: 900;
  box-shadow: 0 6px 16px rgba(66, 133, 244, 0.14);
}

.google-stars {
  color: #fbbc04 !important;
  font-size: 1rem !important;
  letter-spacing: 0.08em;
}

.visit-map {
  min-height: 310px;
  overflow: hidden;
  border-top: 1px solid var(--line);
  background: #fff;
}

.visit-map iframe {
  width: 100%;
  height: 100%;
  min-height: 310px;
  border: 0;
}

.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--line);
  color: var(--muted);
  text-align: center;
  padding: 1.35rem 0.82rem;
  font-size: 0.86rem;
}

/* ---------- Tiroir panier ---------- */

.drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(36, 20, 14, 0.34);
  backdrop-filter: blur(4px);
}

.drawer {
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 90;
  width: min(430px, 100vw);
  height: 100dvh;
  display: flex;
  flex-direction: column;
  background: #fffdf8;
  border-left: 1px solid var(--line);
  box-shadow: -24px 0 70px rgba(76, 38, 20, 0.18);
  transform: translateX(100%);
  transition: transform 0.34s var(--ease);
}

.drawer.open { transform: translateX(0); }

/* B-10: Mobile friendly drawer - bottom sheet on small screens */
@media (max-width: 600px) {
  .drawer {
    inset: auto 0 0 0;
    width: 100%;
    height: 85dvh;
    border-left: none;
    border-top: 1px solid var(--line);
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -12px 40px rgba(76, 38, 20, 0.2);
    transform: translateY(100%);
  }
  .drawer.open {
    transform: translateY(0);
  }
  .drawer-head {
    position: relative;
    padding-top: 1.05rem;
  }

  /* poignée du bottom sheet : indique qu'on peut glisser vers le bas pour fermer */
  .drawer-head::before {
    content: "";
    position: absolute;
    top: 0.4rem;
    left: 50%;
    transform: translateX(-50%);
    width: 42px;
    height: 4px;
    border-radius: 999px;
    background: rgba(122, 92, 72, 0.28);
  }

  /* le toast passe au-dessus de la barre mini-panier */
  .cart-toast {
    bottom: 5.6rem;
  }
}

.drawer-step {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.drawer-step[hidden] { display: none; }

.drawer-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 0.95rem;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
}

.drawer-head h2 {
  flex: 1;
  font-size: 1.18rem;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 0.95rem;
}

.drawer-foot {
  padding: 0.95rem;
  padding-bottom: max(0.95rem, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: rgba(255, 244, 230, 0.8);
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.78rem;
  color: var(--muted);
}

.cart-total-row strong {
  color: var(--ink);
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 1.55rem;
  font-weight: 900;
}

.cart-empty {
  margin: 0;
  padding: 2.2rem 1rem;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  text-align: center;
}

.cart-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 0.65rem;
  padding: 0.72rem 0;
  border-bottom: 1px solid var(--line);
}

.cart-line .line-info { min-width: 0; }

.cart-line .line-name {
  font-weight: 900;
  font-size: 0.93rem;
  line-height: 1.15;
}

.cart-line .line-size {
  color: var(--muted);
  font-size: 0.8rem;
}

.cart-line .line-price {
  color: var(--tomato-dark);
  font-weight: 900;
  white-space: nowrap;
}

.qty {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.qty button {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--tomato-dark);
  cursor: pointer;
  font-weight: 900;
}

.qty span {
  min-width: 18px;
  color: var(--ink);
  font-weight: 900;
  text-align: center;
}

/* ---------- Formulaire ---------- */

.checkout-form label {
  display: block;
  margin-bottom: 0.88rem;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
}

.hp-field {
  position: absolute;
  left: -100vw;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.checkout-form input,
.checkout-form select,
.checkout-form textarea {
  display: block;
  width: 100%;
  margin-top: 0.35rem;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
  color: var(--ink);
  padding: 0.72rem 0.82rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.checkout-form input:focus,
.checkout-form select:focus,
.checkout-form textarea:focus {
  outline: none;
  border-color: rgba(232, 63, 39, 0.42);
  box-shadow: 0 0 0 4px rgba(232, 63, 39, 0.1);
}

.checkout-form ::placeholder { color: #b0998d; }

.mode-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  border: 0;
  margin: 0 0 0.88rem;
  padding: 0;
}

.mode-group legend {
  width: 100%;
  margin-bottom: 0.18rem;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
}

.mode-pill input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.mode-pill span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  padding: 0.48rem 0.82rem;
  cursor: pointer;
  font-size: 0.87rem;
  font-weight: 800;
}

.mode-pill input:checked + span {
  border-color: transparent;
  background: var(--tomato);
  color: #fff;
}

.mode-pill input:focus-visible + span {
  outline: 3px solid rgba(232, 63, 39, 0.42);
  outline-offset: 3px;
}

.form-error {
  color: var(--tomato-dark);
  font-weight: 800;
}

.done-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: var(--muted);
  text-align: center;
}

.done-check {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(24, 143, 84, 0.1);
  border: 1px solid rgba(24, 143, 84, 0.28);
  color: var(--basil);
  font-size: 2rem;
  font-weight: 900;
}

/* ---------- Lien compte (topbar) ---------- */

.account-link {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  margin-left: auto;
  min-height: 40px;
  padding: 0.5rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
  text-decoration: none;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.account-link:hover {
  color: var(--tomato-dark);
  border-color: rgba(232, 63, 39, 0.28);
  background: #fff;
}

.account-link + .cart-btn { margin-left: 0.35rem; }

.account-label {
  max-width: 9ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 430px) {
  .account-label { display: none; }
  .account-link { padding: 0.5rem 0.62rem; }
}

/* ---------- Pages compte / admin ---------- */

.auth-page {
  position: relative;
  z-index: 1;
  max-width: 1320px;
  margin: 0 auto;
  padding: clamp(1.6rem, 5vw, 3.6rem) 0.82rem 2.6rem;
  display: grid;
  justify-items: center;
  gap: 1.2rem;
}

.auth-card {
  width: min(460px, 100%);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: var(--shadow);
  padding: clamp(1.3rem, 4vw, 2rem);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.account-dashboard {
  width: min(1180px, 100%);
  display: grid;
  gap: 1rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.account-dashboard[hidden] {
  display: none !important;
}

.account-hero {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.2rem;
  overflow: hidden;
  border: 1px solid rgba(232, 63, 39, 0.16);
  border-radius: 22px;
  background:
    radial-gradient(circle at 8% 0%, rgba(255, 188, 50, 0.24), transparent 18rem),
    radial-gradient(circle at 100% 20%, rgba(232, 63, 39, 0.16), transparent 20rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 244, 230, 0.82));
  box-shadow: 0 22px 70px rgba(76, 38, 20, 0.1);
  padding: clamp(1.2rem, 3vw, 2rem);
}

.account-hero .auth-head {
  margin: 0;
}

.account-hero .auth-head h1 {
  font-size: clamp(2.25rem, 6vw, 4.6rem);
  letter-spacing: -0.06em;
}

.account-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.82fr) minmax(0, 1.18fr);
  align-items: start;
  gap: 1rem;
}

.account-panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-soft);
  padding: clamp(1rem, 2vw, 1.25rem);
}

.account-orders-panel {
  min-height: 520px;
}

.panel-title-row {
  display: grid;
  gap: 0.08rem;
  margin-bottom: 0.8rem;
}

.auth-head { margin-bottom: 1.15rem; }

.auth-head h1 {
  font-size: clamp(1.7rem, 6.5vw, 2.3rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.3rem;
  padding: 0.26rem;
  margin-bottom: 1.1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 244, 230, 0.72);
}

.auth-tab {
  min-height: 42px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-weight: 800;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.auth-tab[aria-selected="true"] {
  background: #fff;
  color: var(--tomato-dark);
  box-shadow: 0 7px 16px rgba(76, 38, 20, 0.1);
}

.auth-form label {
  display: block;
  margin-bottom: 0.88rem;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
}

.auth-form input {
  display: block;
  width: 100%;
  margin-top: 0.35rem;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
  color: var(--ink);
  padding: 0.72rem 0.82rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.auth-form input:focus {
  outline: none;
  border-color: rgba(232, 63, 39, 0.42);
  box-shadow: 0 0 0 4px rgba(232, 63, 39, 0.1);
}

.auth-form .btn { margin-top: 0.3rem; }

.account-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: flex-end;
}

.orders-title {
  margin: 0;
  font-size: clamp(1.45rem, 3vw, 2rem);
  letter-spacing: -0.02em;
}

.profile-form {
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 250, 242, 0.88), rgba(255, 255, 255, 0.72));
  padding: 1rem;
}

.profile-saved {
  margin: 0 0 0.6rem;
  color: var(--basil);
  font-weight: 800;
}

.orders-list {
  display: grid;
  gap: 0.8rem;
}

.order-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  padding: 0.85rem 0.95rem;
  box-shadow: 0 8px 20px rgba(76, 38, 20, 0.06);
}

.order-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.6rem;
  margin-bottom: 0.35rem;
}

.order-date {
  color: var(--soft);
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
}

.order-phone {
  display: block;
  color: var(--soft);
  font-size: 0.8rem;
}

.order-items {
  margin: 0 0 0.45rem;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.35;
}

.order-notes {
  margin: 0 0 0.45rem;
  color: var(--soft);
  font-size: 0.82rem;
}

.order-bottom {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.6rem;
  color: var(--muted);
  font-size: 0.86rem;
}

.order-bottom strong {
  color: var(--tomato-dark);
  font-size: 1.02rem;
}

/* ---------- Client "Mes commandes" prettier cards ---------- */

.client-order {
  border: 1px solid rgba(116, 70, 46, 0.14);
  border-radius: 18px;
  background:
    linear-gradient(180deg, #fff, #fffaf2);
  padding: 0.95rem 1rem;
  box-shadow: 0 10px 26px rgba(76, 38, 20, 0.07);
  display: grid;
  gap: 0.68rem;
}

.co-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.co-ref {
  font-weight: 900;
  font-size: 1rem;
  letter-spacing: -0.01em;
}

.co-items-list {
  display: grid;
  gap: 0.34rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.co-item-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.55rem;
  border-radius: 12px;
  background: rgba(255, 244, 230, 0.72);
  padding: 0.5rem 0.62rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.co-item-qty {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.1rem;
  min-height: 1.8rem;
  border-radius: 999px;
  background: #fff;
  color: var(--tomato-dark);
  font-weight: 900;
}

.co-item-name {
  min-width: 0;
  color: var(--ink);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.co-item-price {
  color: var(--tomato-dark);
  font-weight: 900;
  white-space: nowrap;
}

.co-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding-top: 0.55rem;
  border-top: 1px dashed var(--line);
  font-size: 0.9rem;
  color: var(--soft);
}

.co-mode {
  font-weight: 700;
}

.co-total {
  font-weight: 900;
  color: var(--tomato-dark);
  font-size: 1.18rem;
}

.co-reorder {
  width: 100%;
  min-height: 44px;
  margin-top: 0.1rem;
  font-size: 0.9rem;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.22rem 0.62rem;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.status-pending { background: rgba(255, 188, 50, 0.18); color: #8a5b00; }
.status-confirmed { background: rgba(37, 99, 235, 0.1); color: #1d4ed8; }
.status-in_prep { background: rgba(232, 63, 39, 0.12); color: var(--tomato-dark); }
.status-ready { background: rgba(24, 143, 84, 0.12); color: var(--basil); }
.status-delivered { background: rgba(36, 20, 14, 0.07); color: var(--muted); }
.status-cancelled { background: rgba(232, 63, 39, 0.1); color: var(--tomato-dark); }
.payment-pending { background: rgba(232, 63, 39, 0.1); color: var(--tomato-dark); }
.payment-paid { background: rgba(24, 143, 84, 0.12); color: var(--basil); }
.payment-waived { background: rgba(116, 93, 81, 0.12); color: var(--muted); }
.payment-cancelled { background: rgba(36, 20, 14, 0.07); color: var(--muted); }

/* ---------- Tableau de bord admin ---------- */

.admin-tag {
  font-style: normal;
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--tomato);
  border: 1px solid rgba(232, 63, 39, 0.3);
  border-radius: 999px;
  padding: 0.12rem 0.44rem;
  margin-left: 0.3rem;
  vertical-align: middle;
}

.admin-logout { margin-left: auto; min-height: 40px; padding: 0.5rem 1rem; }

.admin-board {
  width: min(1280px, 100%);
  display: grid;
  gap: 0.9rem;
}

.admin-board[hidden] {
  display: none !important;
}

/* Ensure no dashboard leaks when logged out on admin page */
#board[hidden] {
  display: none !important;
}

.admin-dashboard-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(135deg, #2a1a14, #3a241f);
  color: #fffdf8;
  padding: 1.15rem 1.4rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  position: relative;
  overflow: hidden;
}

.admin-dashboard-head::after {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 40%;
  height: 200%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255, 255, 255, 0.06),
    transparent
  );
  transform: skewX(-25deg);
}

.admin-dashboard-head .section-eyebrow,
.admin-dashboard-head .section-sub {
  color: rgba(255, 253, 248, 0.72);
}

.admin-dashboard-head h1 {
  font-size: clamp(1.9rem, 5vw, 3.1rem);
  line-height: 0.96;
  letter-spacing: -0.045em;
}

.admin-dashboard-head .btn-outline {
  flex: 0 0 auto;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.24);
  color: #fff;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.58rem;
}

.stat-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(145deg, #fff, #fffaf0);
  padding: 1.1rem 1.2rem;
  box-shadow: 0 8px 25px rgba(76, 38, 20, 0.08);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 35px rgba(76, 38, 20, 0.12);
}

.stat-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: var(--cheese);
  border-radius: 0 3px 3px 0;
}

.stat-card.hot::before { background: var(--tomato); }
.stat-card.good::before { background: var(--basil); }
.stat-card.neutral::before { background: var(--soft); }

.stat-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

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

.stat-card strong {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: clamp(1.35rem, 3.6vw, 1.85rem);
  letter-spacing: -0.03em;
  color: var(--tomato-dark);
  line-height: 1;
}

.stat-label {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.admin-grid {
  display: grid;
  gap: 0.85rem;
}

.admin-panel {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.78);
  padding: 0.9rem;
  box-shadow: var(--shadow-soft);
}

.admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.admin-toolbar h2 {
  font-size: 1.5rem;
  letter-spacing: -0.03em;
}

.admin-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

/* Admin calendar + day picker */
.admin-calendar {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.22rem 0.32rem;
}

.day-picker {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  padding: 0.1rem 0.15rem;
  scrollbar-width: none;
  max-width: 260px;
}
.day-picker::-webkit-scrollbar { display: none; }

.day-pill {
  flex: 0 0 auto;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.32rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
  min-width: 46px;
  text-align: center;
  line-height: 1;
  transition: all 0.2s var(--ease);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.day-pill:hover {
  border-color: rgba(232, 63, 39, 0.4);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
}

.day-pill.active {
  background: linear-gradient(145deg, var(--tomato), #c92d1f);
  color: #fff;
  border-color: var(--tomato);
  box-shadow: 0 6px 16px rgba(232, 63, 39, 0.35);
}

.day-pill.today {
  border-color: var(--basil);
  color: var(--basil);
  font-weight: 900;
}

.day-pill .dow {
  display: block;
  font-size: 0.56rem;
  opacity: 0.65;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 1px;
}

.admin-toolbar select,
.order-status-row select {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  padding: 0.4rem 0.6rem;
  font-weight: 700;
}

.admin-orders,
.admin-customers {
  display: grid;
  gap: 0.58rem;
  overflow-y: auto;
  padding-right: 0.1rem;
}

.admin-orders {
  max-height: 58vh;
}

.admin-customers {
  max-height: 58vh;
}

.admin-toolbar-clients {
  margin-top: 0.8rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.client-count {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  border: 1px solid rgba(24, 143, 84, 0.22);
  border-radius: 999px;
  background: rgba(24, 143, 84, 0.08);
  color: var(--basil);
  padding: 0.35rem 0.72rem;
  font-size: 0.82rem;
  font-weight: 900;
}

.customer-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.86);
  padding: 0.85rem 0.95rem;
  box-shadow: 0 8px 20px rgba(76, 38, 20, 0.06);
}

.customer-top {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
}

.customer-top strong,
.customer-top span {
  display: block;
}

.customer-top strong {
  font-weight: 900;
}

.customer-top span,
.customer-date {
  color: var(--soft);
  font-size: 0.8rem;
}

.customer-date {
  flex: 0 0 auto;
  text-align: right;
  font-weight: 800;
}

.customer-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
}

.customer-info-grid span {
  min-width: 0;
  display: grid;
  gap: 0.08rem;
  border-radius: 12px;
  background: rgba(255, 244, 230, 0.68);
  color: var(--muted);
  padding: 0.52rem 0.6rem;
  font-size: 0.82rem;
  overflow-wrap: anywhere;
}

.customer-info-grid b {
  color: var(--tomato-dark);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.order-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin-top: 0.6rem;
  padding-top: 0.6rem;
  border-top: 1px dashed var(--line);
}

.admin-alert {
  margin: 0;
  border: 1px solid rgba(232, 63, 39, 0.2);
  border-radius: 14px;
  background: rgba(232, 63, 39, 0.08);
  color: var(--tomato-dark);
  padding: 0.72rem 0.9rem;
  font-weight: 800;
}

.admin-alert[data-type="success"] {
  border-color: rgba(24, 143, 84, 0.24);
  background: rgba(24, 143, 84, 0.09);
  color: var(--basil);
}

.admin-search {
  min-height: 40px;
  width: min(260px, 100%);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  padding: 0.45rem 0.85rem;
  font-weight: 700;
}

/* Admin tabs */
.admin-tabs {
  display: inline-flex;
  gap: 0.3rem;
  background: rgba(255, 244, 230, 0.7);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px;
}

.admin-tab {
  border: 0;
  background: transparent;
  padding: 0.42rem 1.05rem;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.15s ease;
}

.admin-tab[aria-selected="true"] {
  background: #fff;
  color: var(--tomato-dark);
  box-shadow: 0 2px 8px rgba(76, 38, 20, 0.08);
}

.admin-insights {
  background:
    radial-gradient(circle at 0% 0%, rgba(255, 188, 50, 0.18), transparent 18rem),
    rgba(255, 255, 255, 0.82);
}

.insight-grid {
  display: grid;
  gap: 0.65rem;
}

.insight-card {
  display: grid;
  gap: 0.7rem;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  padding: 1rem 1.1rem;
  box-shadow: 0 4px 15px rgba(76, 38, 20, 0.05);
}

.insight-card h3 {
  font-size: 1.02rem;
  letter-spacing: -0.025em;
  color: var(--ink);
  font-weight: 800;
}

.status-bars,
.mini-bars,
.top-products {
  display: grid;
  gap: 0.45rem;
}

.meter-row,
.mini-bar,
.top-product {
  position: relative;
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  overflow: hidden;
  border-radius: 14px;
  background: #fffaf0;
  padding: 0.5rem 0.75rem;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
  border: 1px solid rgba(232, 63, 39, 0.06);
}

.meter-row::before,
.mini-bar::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--meter, var(--bar, 0%));
  background: linear-gradient(90deg, var(--tomato), #ff7a5e);
  opacity: 0.15;
  transition: width 0.4s var(--ease);
}

.meter-row span,
.meter-row b,
.mini-bar span,
.mini-bar b,
.top-product span,
.top-product b {
  position: relative;
  z-index: 1;
}

.meter-row b,
.mini-bar b,
.top-product b {
  color: var(--tomato-dark);
  font-weight: 800;
}

.ref-chip {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  margin: 0 0 0.28rem;
  border: 1px solid rgba(232, 63, 39, 0.22);
  border-radius: 999px;
  background: rgba(232, 63, 39, 0.08);
  color: var(--tomato-dark);
  padding: 0.22rem 0.55rem;
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 900;
}

/* ---------- Admin orders: clean modern cards ---------- */

.admin-order {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  padding: 1rem 1.15rem;
  box-shadow: 0 8px 24px rgba(76, 38, 20, 0.07);
  display: grid;
  gap: 0.65rem;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.admin-order.needs-payment {
  border-color: rgba(232, 63, 39, 0.32);
  box-shadow: 0 8px 24px rgba(232, 63, 39, 0.1);
}

.admin-order:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(76, 38, 20, 0.1);
}

.order-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.order-dt {
  font-size: 0.82rem;
  color: var(--soft);
  font-weight: 700;
  background: #f9f3eb;
  padding: 0.18rem 0.55rem;
  border-radius: 8px;
}

.order-age {
  font-size: 0.7rem;
  background: rgba(232, 63, 39, 0.12);
  color: var(--tomato-dark);
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  font-weight: 800;
}

.order-body {
  display: grid;
  gap: 0.4rem;
}

.order-name {
  font-size: 1.05rem;
  font-weight: 900;
  color: var(--ink);
}

.order-items-list {
  list-style: none;
  margin: 0;
  padding: 0.3rem 0.5rem;
  background: #fffaf0;
  border: 1px solid rgba(232, 63, 39, 0.06);
  border-radius: 10px;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.35;
  display: grid;
  gap: 0.1rem;
}

.order-items-list li {
  position: relative;
  padding-left: 0.85rem;
}

.order-items-list li::before {
  content: "•";
  position: absolute;
  left: 0.15rem;
  color: var(--tomato);
  font-weight: 900;
  font-size: 0.7rem;
}

/* For the expanded details list */
.detail-items-list {
  background: transparent;
  border: none;
  padding: 0.25rem 0;
  font-size: 0.84rem;
}

.order-meta-line {
  display: flex;
  gap: 0.65rem;
  font-size: 0.82rem;
  color: var(--soft);
  font-weight: 700;
}

.order-foot {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding-top: 0.45rem;
  border-top: 1px solid #f0e6d8;
  flex-wrap: wrap;
}

.order-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.quick-action {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fffaf0;
  color: var(--muted);
  padding: 0.35rem 0.72rem;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 900;
}

.quick-action.hot {
  border-color: rgba(232, 63, 39, 0.28);
  background: rgba(232, 63, 39, 0.09);
  color: var(--tomato-dark);
}

.quick-action.good {
  border-color: rgba(24, 143, 84, 0.24);
  background: rgba(24, 143, 84, 0.09);
  color: var(--basil);
}

.quick-action:disabled {
  opacity: 0.55;
  cursor: wait;
}

.order-total {
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--tomato-dark);
  margin-right: auto;
  letter-spacing: -0.02em;
}

.status-select {
  min-height: 34px;
  font-size: 0.8rem;
  padding: 0.2rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font-weight: 700;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.order-details-btn {
  font-size: 0.78rem;
  padding: 0.28rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  cursor: pointer;
  font-weight: 700;
  transition: all 0.15s ease;
}

.order-details-btn:hover {
  background: #f9f3eb;
  border-color: var(--tomato);
  color: var(--tomato-dark);
}

.order-details {
  margin-top: 0.4rem;
  padding: 0.75rem 0.9rem;
  background: #fffaf0;
  border-radius: 12px;
  font-size: 0.84rem;
  color: var(--muted);
  display: grid;
  gap: 0.3rem;
  border: 1px solid rgba(232, 63, 39, 0.08);
}

.detail-row {
  font-size: 0.84rem;
}

.detail-row.note {
  font-style: italic;
  color: var(--soft);
}

.mini-copy {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 4px;
  padding: 0 4px;
  cursor: pointer;
  font-size: 0.7rem;
}

.cash-summary {
  display: grid;
  gap: 0.42rem;
}

.cash-row {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  border-radius: 12px;
  background: #fffaf0;
  color: var(--muted);
  padding: 0.5rem 0.65rem;
  font-size: 0.84rem;
  font-weight: 800;
}

.cash-row b {
  color: var(--tomato-dark);
}

.cash-row.warning {
  border: 1px solid rgba(232, 63, 39, 0.18);
  background: rgba(232, 63, 39, 0.07);
}

.admin-export {
  min-height: 40px;
  padding: 0.4rem 0.85rem;
  font-size: 0.82rem;
}

/* ---------- Effets visuels (thème clair) ---------- */

/* balayage lumineux sur les boutons pleins */
.btn-primary {
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.45) 48%, transparent 62%);
  transform: translateX(-120%);
  transition: transform 0.7s var(--ease);
  pointer-events: none;
}

.btn-primary:hover::after { transform: translateX(120%); }

/* reveals avec léger flou (plus « premium ») */
.reveal {
  filter: blur(6px);
  transition: opacity 0.72s var(--ease), transform 0.72s var(--ease), filter 0.72s var(--ease);
}

.reveal.visible { filter: blur(0); }

/* halo au survol des cartes */
.card:hover,
.card-simple:hover {
  box-shadow: 0 18px 48px rgba(76, 38, 20, 0.12), 0 0 0 4px rgba(255, 188, 50, 0.12);
}

/* ---------- Feedback panier ---------- */

.cart-toast {
  position: fixed;
  left: 50%;
  bottom: 1.1rem;
  z-index: 120;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  max-width: calc(100vw - 2rem);
  padding: 0.68rem 1rem;
  border: 1px solid rgba(24, 143, 84, 0.3);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 800;
  box-shadow: 0 16px 40px rgba(36, 20, 14, 0.18);
  opacity: 0;
  transform: translateX(-50%) translateY(16px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  pointer-events: none;
}

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

.toast-check {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(24, 143, 84, 0.12);
  color: var(--basil);
  font-size: 0.8rem;
}

.cart-btn.bump { animation: cart-bump 0.45s var(--ease); }

.mini-cart {
  position: fixed;
  left: 50%;
  bottom: max(0.9rem, env(safe-area-inset-bottom));
  z-index: 70;
  width: min(460px, calc(100vw - 1.6rem));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
  border: 1px solid rgba(232, 63, 39, 0.24);
  border-radius: 18px;
  background: rgba(36, 20, 14, 0.94);
  color: #fffdf8;
  padding: 0.78rem 0.92rem;
  box-shadow: 0 20px 55px rgba(36, 20, 14, 0.28);
  cursor: pointer;
  transform: translateX(-50%);
}

.mini-cart[hidden] { display: none; }

.mini-cart span {
  min-width: 0;
  display: grid;
  gap: 0.05rem;
  text-align: left;
}

.mini-cart strong,
.mini-cart b {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 1rem;
}

.mini-cart small {
  overflow: hidden;
  color: rgba(255, 253, 248, 0.72);
  font-size: 0.78rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-cart b {
  flex: 0 0 auto;
  color: var(--cheese);
  font-size: 1.2rem;
}

.account-icon {
  display: inline-grid;
  place-items: center;
  color: var(--tomato-dark);
}

/* ---------- Aucun résultat (recherche pizzas) ---------- */

.no-results {
  grid-column: 1 / -1;
  display: grid;
  justify-items: center;
  gap: 0.8rem;
  padding: 2rem 1rem;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  text-align: center;
}

.no-results p { margin: 0; font-weight: 700; }

/* ---------- Badge ouvert / fermé (hero) ---------- */

.hero-status { margin: 0.9rem 0 0; }

.open-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.42rem 0.9rem;
  border: 1px solid rgba(24, 143, 84, 0.32);
  border-radius: 999px;
  background: rgba(24, 143, 84, 0.1);
  color: var(--basil);
  font-size: 0.85rem;
  font-weight: 800;
}

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

.open-badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  animation: badge-pulse 2s ease-in-out infinite;
}

.open-badge.closed {
  border-color: rgba(232, 63, 39, 0.3);
  background: rgba(232, 63, 39, 0.08);
  color: var(--tomato-dark);
}

@keyframes badge-pulse {
  50% { opacity: 0.45; }
}

/* ---------- Retour tactile (mobile) ---------- */

html { -webkit-tap-highlight-color: transparent; }

@media (hover: none) {
  .card:active,
  .card-simple:active {
    transform: scale(0.98);
    transition: transform 0.12s ease;
  }

  .add-btn:active,
  .qty button:active,
  .size-pill:active {
    transform: scale(0.92);
    transition: transform 0.1s ease;
  }

  .btn:active { transform: scale(0.96); }

  .mini-cart:active { transform: translateX(-50%) scale(0.97); }

  .mode-pill input:active + span { transform: scale(0.96); }
}

/* ---------- Overlay confirmation commande ---------- */

.order-success {
  position: fixed;
  inset: 0;
  z-index: 140;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(36, 20, 14, 0.42);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.order-success[hidden] { display: none; }

.order-success-card {
  width: min(400px, 100%);
  display: grid;
  gap: 0.85rem;
  justify-items: center;
  padding: 1.7rem 1.4rem;
  border-radius: 24px;
  background: #fff;
  text-align: center;
  box-shadow: 0 30px 80px rgba(36, 20, 14, 0.3);
  animation: pop-in 0.42s var(--ease);
}

@keyframes pop-in {
  from { opacity: 0; transform: scale(0.92) translateY(14px); }
}

.order-success-card h2 {
  font-size: 1.45rem;
  letter-spacing: -0.03em;
}

.order-success-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

@keyframes cart-bump {
  30% { transform: scale(1.12) rotate(-3deg); }
  60% { transform: scale(0.96); }
}

.delivery-note {
  margin: -0.3rem 0 0.88rem;
  color: var(--soft);
  font-size: 0.82rem;
}

/* Final recap step styles (B-04) */
.recap-section {
  margin-bottom: 0.9rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px dashed var(--line);
}
.recap-section h3 {
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
  color: var(--tomato-dark);
  font-weight: 900;
}
.recap-line {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  padding: 0.15rem 0;
}
.recap-note {
  font-size: 0.78rem;
  color: var(--muted);
  margin: 0.6rem 0;
}
.confirm-check {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  font-size: 0.82rem;
  margin-bottom: 0.6rem;
  color: var(--ink);
}
.confirm-check input {
  margin-top: 0.15rem;
  accent-color: var(--tomato);
}

/* ---------- Mobile : 3 produits par ligne ---------- */

@media (max-width: 699px) {
  .grid,
  .grid-simple {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.62rem;
  }

  /* pizzas : carte verticale compacte */
  .card {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .card-img-wrap {
    aspect-ratio: 4 / 3;
    min-height: 0;
  }

  .card-img { padding: 0.22rem; }

  .base-chip,
  .badge-signature {
    display: none;
  }

  .card-ingredients {
    display: -webkit-box;
    font-size: 0.68rem;
    -webkit-line-clamp: 2;
  }

  .card-body {
    padding: 0.45rem;
    gap: 0.35rem;
  }

  .card h3 {
    font-size: 0.78rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .card-controls {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.3rem 0.35rem;
  }

  .size-picker {
    grid-column: 1 / -1;
    padding: 0.14rem;
    gap: 0.2rem;
  }

  .size-pill {
    min-height: 44px;
    gap: 0.14rem;
  }

  .size-pill strong { font-size: 0.72rem; }
  .size-pill span { font-size: 0.56rem; }

  .card-price {
    display: block;
    font-size: 0.86rem;
    font-weight: 900;
    color: var(--tomato-dark);
  }

  .card .add-btn,
  .card-simple .add-btn {
    width: 44px;
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    border-radius: 50%;
    font-size: 0.95rem;
  }

  /* accompagnements & boissons : mini-carte verticale */
  .card-simple {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 0.35rem;
    min-height: 0;
    padding: 0.5rem 0.4rem 0.45rem;
    text-align: center;
  }

  .card-simple .thumb,
  .card-simple .emoji-thumb {
    width: 54px;
    height: 54px;
  }

  .card-simple .info {
    display: grid;
    justify-items: center;
    gap: 0.08rem;
    width: 100%;
  }

  .card-simple h3 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    white-space: normal;
    font-size: 0.7rem;
    line-height: 1.15;
  }

  .card-simple .price { font-size: 0.78rem; }

  /* Admin dashboard - mobile responsive */
  .admin-dashboard-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.8rem 1rem;
  }

  .admin-dashboard-head h1 {
    font-size: 1.6rem;
  }

  .admin-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.4rem;
  }

  .stat-card {
    padding: 0.7rem 0.85rem;
  }

  .stat-card strong {
    font-size: 1.15rem;
  }

  .insight-grid {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .admin-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }

  .admin-toolbar-actions {
    flex-direction: column;
    width: 100%;
    gap: 0.4rem;
  }

  .admin-search,
  #status-filter,
  #payment-filter,
  #customer-search {
    width: 100%;
  }

  .admin-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .admin-orders,
  .admin-customers {
    max-height: none;
    overflow-y: visible;
  }

  .admin-order {
    padding: 0.7rem 0.8rem;
    gap: 0.5rem;
  }

  .order-head {
    flex-wrap: wrap;
  }

  .order-items-list {
    font-size: 0.75rem;
    padding: 0.25rem 0.4rem;
  }

  .day-picker {
    max-width: 100%;
  }

  .admin-calendar {
    width: 100%;
    overflow: hidden;
  }

  .auth-page {
    display: block;
    padding: 0.7rem;
    max-width: 100%;
  }

  .account-dashboard {
    width: 100%;
  }

  .account-hero {
    display: grid;
    gap: 1rem;
    border-radius: 18px;
    padding: 1rem;
  }

  .account-hero .auth-head h1 {
    font-size: 2.2rem;
  }

  .account-actions {
    justify-content: stretch;
  }

  .account-actions .btn {
    flex: 1 1 150px;
  }

  .account-layout {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .account-orders-panel {
    min-height: 0;
  }

  .account-panel {
    border-radius: 18px;
    padding: 0.85rem;
  }

  .co-item-row {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .co-item-price {
    grid-column: 2;
    justify-self: start;
  }

  .admin-board {
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }

  /* prevent any clipping */
  .admin-panel,
  .admin-orders,
  .admin-customers {
    overflow: visible;
  }

  .admin-panel {
    padding: 0.6rem;
  }

  /* ensure full scrollable dashboard */
  main {
    min-height: calc(100vh - 60px);
  }
}

/* colonne unique réservée aux très petits écrans : les iPhone 375px gardent 2 colonnes compactes */
@media (max-width: 344px) {
  .grid,
  .grid-simple {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 389px) {
  .admin-stats {
    grid-template-columns: 1fr;
  }

  .stat-card {
    padding: 0.6rem 0.7rem;
  }
}

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

@media (min-width: 700px) {
  .topbar {
    padding: 0.5rem 0.6rem;
    gap: 0.6rem;
  }

  .admin-logout {
    font-size: 0.8rem;
    padding: 0.3rem 0.6rem;
  }

  .topnav {
    display: flex;
    align-items: center;
    gap: 1.35rem;
    margin-left: auto;
  }

  .brand { flex-shrink: 0; }

  .cart-btn { margin-left: 0; }

  .account-link { margin-left: 0; }

  .mobile-nav {
    justify-content: center;
  }

  .hero {
    grid-template-columns: minmax(0, 1.02fr) minmax(300px, 0.76fr);
    align-items: center;
    gap: clamp(2rem, 5vw, 5rem);
    padding: clamp(2.6rem, 7vw, 5.8rem) clamp(1.4rem, 4vw, 2.6rem) clamp(2rem, 5vw, 4rem);
  }

  .hero h1 { font-size: clamp(4.4rem, 8.2vw, 7.3rem); }
  .hero h1 { max-width: 9.4ch; }

  .hero-sub {
    margin: 1.25rem 0 1.5rem;
    font-size: 1.08rem;
  }

  .hero-photo {
    width: min(42vw, 500px);
  }

  .hero-video { border-width: 8px; }

  .hero-card { display: grid; }

  .menu-section,
  .infos {
    padding-inline: clamp(1.4rem, 4vw, 2.6rem);
  }

  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.95rem;
  }

  .card {
    grid-template-columns: 130px minmax(0, 1fr);
    min-height: 152px;
  }

  .card-body { padding: 0.9rem; }

  .card h3 { font-size: 1.18rem; }

  .card-ingredients {
    font-size: 0.86rem;
    -webkit-line-clamp: 2;
  }

  .grid-simple {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .infos {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 3.6rem;
  }

  .visit-panel {
    grid-column: 1 / -1;
  }

  .admin-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .insight-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Catalog filters for search/filters (audit UX) */
.catalog-filters {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}

.catalog-filters input,
.catalog-filters select {
  padding: 0.4rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  min-width: 180px;
}

@media (min-width: 1040px) {
  .mobile-nav { display: none; }

  .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .card {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .card-img-wrap {
    aspect-ratio: 16 / 10;
    min-height: 0;
  }

  .card-body { gap: 0.65rem; }

  .card-controls {
    grid-template-columns: minmax(0, 1fr) auto auto;
  }

  .card-price {
    display: block;
    font-weight: 900;
    color: var(--tomato-dark);
  }

  .grid-simple {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .visit-panel {
    grid-template-columns: minmax(320px, 0.58fr) minmax(0, 1fr);
    align-items: stretch;
  }

  .visit-copy {
    padding: 1.3rem;
  }

  .visit-map {
    min-height: 390px;
    border-top: 0;
    border-left: 1px solid var(--line);
  }

  .visit-map iframe {
    min-height: 390px;
  }

  .admin-grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(330px, 0.78fr);
    align-items: start;
  }

  .admin-stats {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}
