/* ============================================
   PIZZERIA ILYES — Système de design
   ============================================ */

:root {
  /* Couleurs — palette italienne rustique */
  --cream: #f5ede0;
  --cream-dark: #ebe0cc;
  --paper: #faf5ec;
  --tomato: #c1272d;
  --tomato-dark: #9a1f24;
  --basil: #2d5d3a;
  --basil-dark: #1f4128;
  --terracotta: #e87722;
  --terracotta-dark: #c25e10;
  --wood: #3a2418;
  --wood-soft: #5a3a28;
  --ink: #1a1410;
  --muted: #7a6a5a;
  --line: #d4c4a8;

  /* Mode clair par défaut */
  --bg: var(--cream);
  --bg-alt: var(--paper);
  --fg: var(--ink);
  --fg-muted: var(--muted);
  --border: var(--line);
  --accent: var(--tomato);
  --accent-2: var(--basil);
  --accent-3: var(--terracotta);

  /* Typo */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-hand: 'Caveat', cursive;

  /* Tailles */
  --radius: 6px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 2px rgba(58, 36, 24, 0.08);
  --shadow-md: 0 4px 16px rgba(58, 36, 24, 0.12);
  --shadow-lg: 0 12px 40px rgba(58, 36, 24, 0.18);
}

[data-theme="dark"] {
  --bg: #1a1410;
  --bg-alt: #241b14;
  --fg: #f5ede0;
  --fg-muted: #b09a82;
  --border: #3a2a1c;
  --cream: #241b14;
  --cream-dark: #1a1410;
  --paper: #2a1f16;
  --line: #3a2a1c;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--fg);
  background: var(--bg);
  background-image:
    radial-gradient(circle at 20% 10%, rgba(232, 119, 34, 0.04) 0%, transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(45, 93, 58, 0.04) 0%, transparent 40%),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.23 0 0 0 0 0.14 0 0 0 0 0.09 0 0 0 0.04 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  line-height: 1.55;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

[data-theme="dark"] body {
  background-image:
    radial-gradient(circle at 20% 10%, rgba(232, 119, 34, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(45, 93, 58, 0.08) 0%, transparent 40%),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.95 0 0 0 0 0.9 0 0 0 0 0.8 0 0 0 0.025 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
a { color: inherit; text-decoration: none; }

/* ===== Typographie ===== */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--fg);
}

.script {
  font-family: var(--font-hand);
  font-weight: 500;
}

/* ===== Header ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #0d0d0d;
  border-bottom: 2px solid #1a1a1a;
  box-shadow: var(--shadow-sm);
  color: #f4d8a8;
}
.header .nav a { color: #f4d8a8; }
.header .nav a:hover { color: #ffd166; }
.header .nav a.active { color: #ffd166; }
.header .nav a.active::after { background: #ffd166; }
.header .menu-toggle { color: #f4d8a8; }
.header .cart-btn { color: #f4d8a8; border-color: rgba(244, 216, 168, 0.3); background: rgba(255,255,255,0.04); }
.header .cart-btn:hover { background: rgba(255,255,255,0.1); border-color: #ffd166; color: #ffd166; }
.header .cart-badge { background: var(--tomato); color: #fff; }

.header {
  padding-bottom: 0;
}
.header::after {
  content: '';
  display: block;
  height: 14px;
  background: linear-gradient(
    to right,
    var(--basil) 0 33.33%,
    var(--cream) 33.33% 66.66%,
    var(--tomato) 66.66% 100%
  );
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 10px 24px 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  position: relative;
  z-index: 2;
}

.nav {
  display: flex;
  gap: 28px;
  align-items: center;
}

.nav a {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  position: relative;
  padding: 6px 2px;
  transition: color 0.2s;
}

.nav a:hover { color: var(--tomato); }
.nav a.active { color: var(--tomato); }
.nav a.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--tomato);
}

.logo-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: -45px; /* fait déborder le logo sur la ligne tricolore */
  position: relative;
  z-index: 3;
}
.logo-wrap img {
  height: 96px;
  width: auto;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.5));
  background: #0d0d0d;
  border-radius: 50%;
  padding: 4px;
}

.header-right {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 14px;
}

.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #f4d8a8;
  border: 2px solid rgba(244, 216, 168, 0.3);
  background: rgba(255,255,255,0.04);
  transition: all 0.2s;
  white-space: nowrap;
}
.header-phone:hover {
  background: rgba(255,255,255,0.1);
  border-color: #ffd166;
  color: #ffd166;
}
.header-phone svg { flex-shrink: 0; }

.cart-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--bg);
  transition: all 0.2s;
  position: relative;
}
[data-theme="dark"] .cart-btn { border-color: var(--cream); }
.cart-btn:hover {
  background: var(--ink);
  color: var(--cream);
  transform: translateY(-1px);
}
[data-theme="dark"] .cart-btn:hover { background: var(--cream); color: var(--ink); }

.cart-badge {
  background: var(--tomato);
  color: white;
  border-radius: 999px;
  min-width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  padding: 0 6px;
}
.cart-badge:empty { display: none; }

.menu-toggle {
  display: none;
  font-size: 22px;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: 80px 24px 90px;
  overflow: hidden;
}

.hero-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-eyebrow {
  display: inline-block;
  font-family: var(--font-hand);
  font-size: 28px;
  color: var(--tomato);
  margin-bottom: 18px;
  font-style: italic;
}

.hero h1 {
  font-size: clamp(44px, 6vw, 84px);
  line-height: 1.05;
  margin-bottom: 28px;
}

.hero h1 em {
  font-style: italic;
  color: var(--tomato);
  font-family: var(--font-display);
}

.hero-lede {
  font-family: var(--font-hand);
  font-style: italic;
  font-size: 26px;
  line-height: 1.4;
  color: var(--basil);
  max-width: 480px;
  margin-bottom: 36px;
}

.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
  transition: all 0.2s;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--tomato);
  color: white;
}
.btn-primary:hover {
  background: var(--tomato-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-ghost {
  border-color: var(--ink);
  color: var(--fg);
}
[data-theme="dark"] .btn-ghost { border-color: var(--cream); }
.btn-ghost:hover { background: var(--ink); color: var(--cream); }
[data-theme="dark"] .btn-ghost:hover { background: var(--cream); color: var(--ink); }

.hero-carousel {
  position: relative;
  width: 100%;
  max-width: 520px;
  height: 520px;
  margin-left: auto;
}
.dish {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  animation: dish-cycle 12s infinite;
}
.dish-pizza   { animation-delay: 0s; }
.dish-burger  { animation-delay: 4s; }
.dish-crispy  { animation-delay: 8s; }

/* ----- Vraies photos dans le carousel ----- */
.dish-photo img {
  width: 92%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  box-shadow:
    0 30px 60px -15px rgba(0,0,0,0.45),
    0 0 0 8px rgba(255,255,255,0.06),
    0 0 0 1px rgba(255,255,255,0.12);
}
[data-theme="light"] .dish-photo img {
  box-shadow:
    0 30px 60px -15px rgba(60,30,15,0.35),
    0 0 0 8px rgba(255,255,255,0.8),
    0 0 0 1px rgba(0,0,0,0.06);
}

@keyframes dish-cycle {
  0%, 5%   { opacity: 0; transform: scale(0.85) rotate(-8deg); }
  10%, 30% { opacity: 1; transform: scale(1) rotate(0deg); }
  35%, 100%{ opacity: 0; transform: scale(0.85) rotate(8deg); }
}
.dish-label {
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%) rotate(-3deg);
  font-family: var(--font-hand);
  font-size: 28px;
  color: var(--tomato);
  background: var(--bg);
  padding: 4px 18px;
  border-radius: 999px;
  border: 2px solid var(--tomato);
  z-index: 5;
  white-space: nowrap;
}

/* ----- Pizza animée ----- */
.dish-disk {
  width: 88%;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, #f4d8a8 0 47%, #d89860 48% 50%, transparent 51%),
    radial-gradient(circle at 50% 50%, #c1272d 0 44%, transparent 45%);
  position: relative;
  box-shadow: 0 24px 50px rgba(0,0,0,0.18);
  animation: spin 30s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.topping {
  position: absolute;
  border-radius: 50%;
}
.topping-tomato { background: #e63946; }
.topping-basil  { background: #2d6a4f; border-radius: 60% 40% 60% 40%; }
.topping-cheese { background: #f4e4b8; opacity: 0.85; }
.topping-olive  { background: #1a1a1a; }
.topping-tomato.t1 { width: 9%; height: 9%; top: 22%; left: 30%; }
.topping-tomato.t2 { width: 7%; height: 7%; top: 60%; left: 65%; }
.topping-tomato.t3 { width: 8%; height: 8%; top: 35%; left: 65%; }
.topping-tomato.t4 { width: 7%; height: 7%; top: 70%; left: 25%; }
.topping-basil.b1  { width: 8%; height: 6%; top: 30%; left: 50%; transform: rotate(20deg); }
.topping-basil.b2  { width: 7%; height: 5%; top: 55%; left: 35%; transform: rotate(-30deg); }
.topping-basil.b3  { width: 7%; height: 5%; top: 50%; left: 70%; transform: rotate(45deg); }
.topping-cheese.c1 { width: 12%; height: 8%; top: 40%; left: 25%; border-radius: 40%; }
.topping-cheese.c2 { width: 10%; height: 7%; top: 65%; left: 50%; border-radius: 40%; }
.topping-cheese.c3 { width: 9%; height: 6%; top: 25%; left: 60%; border-radius: 40%; }
.topping-olive.o1  { width: 5%; height: 5%; top: 50%; left: 55%; }
.topping-olive.o2  { width: 4%; height: 4%; top: 28%; left: 42%; }

/* ----- Burger animé ----- */
.dish-burger { flex-direction: column; gap: 0; }
.dish-burger > * { transform-origin: center; }
.bun {
  width: 75%;
  height: 18%;
  background: linear-gradient(to bottom, #e8a832 0%, #c87a30 100%);
}
.bun-top {
  border-radius: 50% 50% 14% 14%;
  position: relative;
  animation: bun-bob 2.4s ease-in-out infinite;
}
.bun-top::before, .bun-top::after {
  content: '';
  position: absolute;
  width: 6%;
  height: 25%;
  background: #fff8dc;
  border-radius: 50%;
}
.bun-top::before { top: 30%; left: 30%; }
.bun-top::after  { top: 50%; left: 60%; }
.bun-bottom {
  border-radius: 14% 14% 50% 50%;
}
.layer {
  width: 82%;
  height: 7%;
  margin: -2% 0;
  z-index: 2;
}
.lettuce {
  background: #6cc24a;
  border-radius: 60% 40% 50% 50% / 80% 80% 30% 30%;
  height: 9%;
  animation: wiggle 3s ease-in-out infinite;
}
.cheese {
  background: #f4c542;
  border-radius: 6px;
  height: 8%;
  width: 84%;
  clip-path: polygon(0 0, 100% 0, 96% 100%, 4% 100%, 0 80%, 4% 60%, 0 40%, 4% 20%);
}
.patty {
  background: #6b3410;
  border-radius: 999px;
  height: 12%;
  box-shadow: inset 0 -3px 0 rgba(0,0,0,0.25);
}
.tomato {
  background: #e63946;
  border-radius: 999px;
  height: 6%;
}
@keyframes bun-bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6%); } }
@keyframes wiggle { 0%,100% { transform: skewX(-2deg); } 50% { transform: skewX(2deg); } }

/* ----- Crispy / nuggets bucket ----- */
.dish-crispy { position: relative; }
.bucket {
  position: absolute;
  bottom: 8%;
  left: 50%;
  transform: translateX(-50%);
  width: 70%;
  height: 50%;
  background: repeating-linear-gradient(0deg, #c1272d 0 16px, #fff 16px 32px);
  clip-path: polygon(8% 0, 92% 0, 100% 100%, 0% 100%);
  border-radius: 6px;
  box-shadow: 0 14px 30px rgba(0,0,0,0.2);
}
.bucket-band {
  position: absolute;
  bottom: 53%;
  left: 50%;
  transform: translateX(-50%);
  width: 75%;
  height: 8%;
  background: #c1272d;
  border-radius: 4px;
}
.nugget {
  position: absolute;
  width: 16%;
  height: 14%;
  background: radial-gradient(circle at 40% 35%, #f4c542 0%, #d89820 70%, #8b4513 100%);
  border-radius: 60% 40% 55% 45% / 60% 55% 45% 40%;
  box-shadow: inset 0 -2px 0 rgba(0,0,0,0.2);
}
.nugget.n1 { bottom: 48%; left: 35%; transform: rotate(-12deg); animation: nug-bounce 2.6s ease-in-out infinite; }
.nugget.n2 { bottom: 52%; left: 50%; transform: rotate(8deg);   animation: nug-bounce 2.6s ease-in-out infinite 0.3s; }
.nugget.n3 { bottom: 46%; left: 55%; transform: rotate(-4deg);  animation: nug-bounce 2.6s ease-in-out infinite 0.6s; }
.nugget.n4 { bottom: 50%; left: 28%; transform: rotate(20deg);  animation: nug-bounce 2.6s ease-in-out infinite 0.9s; }
@keyframes nug-bounce {
  0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)); }
  50%      { transform: translateY(-8%) rotate(var(--r, 0deg)); }
}
.steam {
  position: absolute;
  width: 8%;
  height: 16%;
  border-radius: 50%;
  background: rgba(255,255,255,0.65);
  filter: blur(5px);
  animation: steam-rise 3s ease-in infinite;
}
.steam.s1 { top: 12%; left: 38%; animation-delay: 0s; }
.steam.s2 { top: 8%;  left: 50%; animation-delay: 0.7s; }
.steam.s3 { top: 14%; left: 60%; animation-delay: 1.4s; }
@keyframes steam-rise {
  0%   { transform: translateY(20%) scale(0.7); opacity: 0; }
  30%  { opacity: 0.8; }
  100% { transform: translateY(-60%) scale(1.4); opacity: 0; }
}

/* ===== Section titles ===== */
.section {
  padding: 80px 24px;
}
.section-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.section-head h2 {
  font-size: clamp(34px, 4vw, 54px);
}

.section-eyebrow {
  font-family: var(--font-hand);
  color: var(--tomato);
  font-size: 24px;
  display: block;
  margin-bottom: 4px;
  transform: rotate(-1deg);
}

.section-link {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-bottom: 2px solid var(--tomato);
  padding-bottom: 4px;
}

/* ===== Grille pizza ===== */
.pizza-grid {
  display: grid;
  grid-template-columns: repeat(var(--grid-cols, 4), 1fr);
  gap: var(--grid-gap, 28px);
}

.pizza-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
  display: flex;
  flex-direction: column;
  position: relative;
}

.pizza-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.pizza-card-img {
  aspect-ratio: 4 / 3;
  background:
    radial-gradient(circle at 50% 50%, var(--cream-dark) 0%, var(--cream) 70%),
    var(--cream);
  position: relative;
  overflow: hidden;
}

.pizza-card-img::before {
  content: '';
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  background-color: #e8c890;
  box-shadow: inset 0 0 0 6px #b8895a;
}

.pizza-card-img.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-family: 'Courier New', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.pizza-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--tomato);
  color: white;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  z-index: 2;
}

.pizza-badge.veg { background: var(--basil); }
.pizza-badge.spicy { background: var(--terracotta); }

.pizza-card-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 12px;
}

.pizza-card-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
}

.pizza-name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.1;
}

.pizza-price {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--tomato);
  white-space: nowrap;
}

.pizza-ingredients {
  font-size: 13.5px;
  color: var(--fg-muted);
  line-height: 1.5;
  font-style: italic;
  flex: 1;
}

.pizza-add {
  margin-top: 8px;
  width: 100%;
  background: var(--ink);
  color: var(--cream);
  padding: 12px;
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
[data-theme="dark"] .pizza-add { background: var(--cream); color: var(--ink); }
.pizza-add:hover { background: var(--tomato); color: white; }
.pizza-add.added {
  background: var(--basil);
  color: white;
}

/* Variantes de cartes (Tweaks) */
.pizza-grid[data-card-style="ticket"] .pizza-card {
  border-radius: 0;
  border: none;
  background: var(--bg-alt);
  box-shadow:
    0 0 0 1px var(--border),
    0 0 0 4px var(--bg),
    0 0 0 5px var(--border);
  -webkit-mask: radial-gradient(circle 8px at 0 50%, transparent 98%, #000) -8px 0,
                radial-gradient(circle 8px at 100% 50%, transparent 98%, #000) 8px 0;
  -webkit-mask-composite: source-in;
  margin: 8px;
}

.pizza-grid[data-card-style="minimal"] .pizza-card {
  background: transparent;
  border: none;
  box-shadow: none;
  border-radius: 0;
}
.pizza-grid[data-card-style="minimal"] .pizza-card:hover {
  transform: none;
  box-shadow: none;
}
.pizza-grid[data-card-style="minimal"] .pizza-card-img {
  border-radius: var(--radius-lg);
}
.pizza-grid[data-card-style="minimal"] .pizza-card-body { padding: 18px 4px; }

.pizza-grid[data-card-style="bordered"] .pizza-card {
  border: 2px solid var(--ink);
  background: var(--bg-alt);
}
[data-theme="dark"] .pizza-grid[data-card-style="bordered"] .pizza-card {
  border-color: var(--cream);
}

/* ===== Story / À propos band ===== */
.story-band {
  background: var(--wood);
  color: var(--cream);
  padding: 70px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.story-band::before, .story-band::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 80px;
  background: repeating-linear-gradient(
    -45deg,
    var(--terracotta) 0 12px,
    transparent 12px 24px
  );
  opacity: 0.3;
}
.story-band::before { left: 0; }
.story-band::after { right: 0; }

.story-band-inner {
  max-width: 720px;
  margin: 0 auto;
  position: relative;
}

.story-band .script {
  color: var(--terracotta);
  font-size: 28px;
  margin-bottom: 8px;
}

.story-band h2 {
  color: var(--cream);
  font-size: clamp(30px, 4vw, 44px);
  margin-bottom: 18px;
}

.story-band p {
  font-size: 17px;
  line-height: 1.7;
  opacity: 0.92;
}

/* ===== Menu page ===== */
.menu-hero {
  text-align: center;
  padding: 80px 24px 40px;
}
.menu-hero h1 {
  font-size: clamp(48px, 7vw, 96px);
  margin-bottom: 16px;
}
.menu-hero h1 em { color: var(--tomato); font-style: italic; }
.menu-hero p {
  max-width: 560px;
  margin: 0 auto;
  color: var(--fg-muted);
  font-size: 17px;
}

.menu-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 32px 0 48px;
  padding: 0 24px;
}

.menu-tab {
  padding: 10px 22px;
  border: 1.5px solid var(--border);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--bg-alt);
  transition: all 0.2s;
}
.menu-tab:hover { border-color: var(--ink); }
.menu-tab.active {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
}
[data-theme="dark"] .menu-tab.active {
  background: var(--cream);
  color: var(--ink);
}

/* ===== Footer ===== */
.footer {
  background: #0d0d0d;
  color: var(--cream);
  padding: 0 24px 24px;
  margin-top: 80px;
  position: relative;
  overflow: hidden;
}
.footer::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.18;
  background-image:
    /* grosse tomate */
    radial-gradient(circle at 8% 78%, #e63946 0 28px, transparent 30px),
    /* feuille de la grosse tomate */
    radial-gradient(ellipse 18px 8px at 8% 70%, #2a9d4a 0 100%, transparent),
    /* tomate moyenne */
    radial-gradient(circle at 92% 30%, #e63946 0 22px, transparent 24px),
    radial-gradient(ellipse 14px 6px at 92% 24%, #2a9d4a 0 100%, transparent),
    /* petite tomate haut gauche */
    radial-gradient(circle at 22% 18%, #e63946 0 16px, transparent 18px),
    radial-gradient(ellipse 10px 4px at 22% 14%, #2a9d4a 0 100%, transparent),
    /* tomate bas droite */
    radial-gradient(circle at 75% 88%, #e63946 0 20px, transparent 22px),
    radial-gradient(ellipse 12px 5px at 75% 83%, #2a9d4a 0 100%, transparent),
    /* mini tomate centre */
    radial-gradient(circle at 55% 60%, #e63946 0 12px, transparent 14px),
    radial-gradient(ellipse 8px 3px at 55% 57%, #2a9d4a 0 100%, transparent),
    /* mini tomate gauche centre */
    radial-gradient(circle at 38% 38%, #e63946 0 14px, transparent 16px),
    radial-gradient(ellipse 9px 4px at 38% 34%, #2a9d4a 0 100%, transparent);
  background-repeat: no-repeat;
}
.footer-inner, .footer-bottom { position: relative; z-index: 1; }
.footer::before {
  content: '';
  display: block;
  height: 14px;
  background: linear-gradient(
    to right,
    var(--basil) 0 33.33%,
    var(--cream) 33.33% 66.66%,
    var(--tomato) 66.66% 100%
  );
  margin: 0 -24px 60px;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer h4 {
  font-family: var(--font-display);
  color: var(--terracotta);
  font-size: 18px;
  margin-bottom: 16px;
}

.footer ul { list-style: none; }
.footer li { margin-bottom: 8px; font-size: 14px; opacity: 0.85; }
.footer li a:hover { color: var(--terracotta); }

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.footer-brand img {
  height: 160px;
  width: auto;
  margin-bottom: 14px;
  filter: drop-shadow(0 4px 14px rgba(0,0,0,0.6));
}
.footer-brand p { font-size: 14px; opacity: 0.75; max-width: 280px; line-height: 1.6; }

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid rgba(245, 237, 224, 0.15);
  display: flex;
  justify-content: center;
  text-align: center;
  font-size: 12px;
  opacity: 0.6;
  flex-wrap: wrap;
  gap: 12px;
}

/* ===== Cart drawer ===== */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26, 20, 16, 0.5);
  backdrop-filter: blur(2px);
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
.cart-overlay.open { opacity: 1; pointer-events: auto; }

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(440px, 100vw);
  background: var(--bg);
  z-index: 101;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  box-shadow: -10px 0 40px rgba(0,0,0,0.2);
}
.cart-drawer.open { transform: translateX(0); }

.cart-header {
  padding: 22px 24px;
  border-bottom: 2px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-alt);
}
.cart-header h3 {
  font-family: var(--font-display);
  font-size: 24px;
}
.cart-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  border: 1.5px solid var(--border);
  transition: all 0.2s;
}
.cart-close:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); }

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 16px 24px;
}

.cart-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--fg-muted);
}
.cart-empty .script {
  font-size: 30px;
  color: var(--tomato);
  margin-bottom: 8px;
  display: block;
}
.cart-empty p { font-size: 14px; }

.cart-item {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  align-items: center;
}
.cart-item:last-child { border-bottom: none; }

.cart-item-img {
  width: 64px;
  height: 64px;
  border-radius: var(--radius);
  background:
    radial-gradient(circle, #e8c890, #c89858);
  position: relative;
  overflow: hidden;
}
.cart-item-img::before {
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, #c1272d 0 4px, transparent 5px),
    radial-gradient(circle at 70% 60%, #c1272d 0 3px, transparent 4px),
    radial-gradient(circle at 60% 30%, #2d5d3a 0 2px, transparent 3px),
    #d8a468;
}

.cart-item-info { min-width: 0; }
.cart-item-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 4px;
}
.cart-item-price { font-size: 13px; color: var(--fg-muted); }

.qty-control {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
  background: var(--bg);
}
.qty-btn {
  width: 30px;
  height: 30px;
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}
.qty-btn:hover { background: var(--cream-dark); }
.qty-val {
  min-width: 28px;
  text-align: center;
  font-weight: 600;
  font-size: 14px;
}

.cart-footer {
  padding: 22px 24px;
  border-top: 2px solid var(--border);
  background: var(--bg-alt);
}
.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 16px;
}
.cart-total-label {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
}
.cart-total-amount {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  color: var(--tomato);
}
.cart-checkout {
  width: 100%;
  padding: 16px;
  background: var(--tomato);
  color: white;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: all 0.2s;
}
.cart-checkout:hover { background: var(--tomato-dark); transform: translateY(-1px); }
.cart-checkout:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* ===== Toast ===== */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--ink);
  color: var(--cream);
  padding: 14px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  z-index: 200;
  box-shadow: var(--shadow-lg);
  transition: transform 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual, .hero-carousel { max-width: 380px; height: 380px; margin: 0 auto; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .header-inner { grid-template-columns: auto 1fr auto; gap: 12px; padding: 12px 16px; }
  .nav { display: none; }
  .nav.open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    background: var(--bg);
    padding: 16px 24px;
    border-bottom: 2px solid var(--border);
    gap: 14px;
  }
  .menu-toggle { display: flex; }
  .logo-wrap img { height: 72px; }
  .logo-wrap { margin-bottom: -32px; }
  .cart-btn { padding: 8px 14px; font-size: 12px; }
  .cart-btn-text { display: none; }
  .header-phone { padding: 8px 12px; }
  .header-phone-text { display: none; }
  .pizza-grid { grid-template-columns: 1fr 1fr !important; gap: 16px !important; }
  .section { padding: 50px 20px; }
  .hero { padding: 50px 20px 60px; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 480px) {
  .pizza-grid { grid-template-columns: 1fr !important; }
}

/* ===== Illustrations par categorie (en fin de fichier pour eviter parse issues) ===== */
.pizza-card-img.cat-pizzas::before {
  content: "";
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  background-color: #e8c890;
  background-image: radial-gradient(circle at 30% 30%, #c1272d 0 12px, transparent 13px), radial-gradient(circle at 70% 35%, #c1272d 0 10px, transparent 11px), radial-gradient(circle at 60% 65%, #c1272d 0 11px, transparent 12px), radial-gradient(circle at 30% 70%, #2d5d3a 0 6px, transparent 7px), radial-gradient(circle at 75% 70%, #2d5d3a 0 5px, transparent 6px), radial-gradient(circle at 45% 45%, #f4e4b8 0 7px, transparent 8px);
  box-shadow: inset 0 0 0 6px #b8895a;
}
.pizza-card-img.cat-sandwichs {
  background-image: linear-gradient(135deg, #f4d8a8, #e8c890);
}
.pizza-card-img.cat-sandwichs::before {
  content: "";
  position: absolute;
  inset: 25% 15%;
  border-radius: 14px 14px 8px 8px;
  background-image: linear-gradient(180deg, #d8a560 0 30%, #6b8e3d 30% 45%, #c1272d 45% 58%, #f4e4b8 58% 72%, #d8a560 72% 100%);
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}
.pizza-card-img.cat-crispy {
  background-image: linear-gradient(135deg, #f8e0b0, #e8b070);
}
.pizza-card-img.cat-crispy::before {
  content: "";
  position: absolute;
  inset: 20%;
  border-radius: 8px;
  background-color: #d89858;
  background-image: radial-gradient(circle at 25% 35%, #c87832 0 12px, transparent 13px), radial-gradient(circle at 65% 30%, #c87832 0 11px, transparent 12px), radial-gradient(circle at 35% 65%, #c87832 0 12px, transparent 13px), radial-gradient(circle at 70% 70%, #c87832 0 11px, transparent 12px), repeating-linear-gradient(45deg, #e8a868 0 3px, #d89858 3px 6px);
}
.pizza-card-img.cat-plats {
  background-image: linear-gradient(135deg, #ede0c8, #d8c4a0);
}
.pizza-card-img.cat-plats::before {
  content: "";
  position: absolute;
  inset: 18%;
  border-radius: 50%;
  background-color: #d8a560;
  background-image: radial-gradient(circle at 50% 50%, #f5ede0 0 35%, transparent 36%), radial-gradient(circle at 50% 50%, #c1272d 0 28%, transparent 29%);
  box-shadow: inset 0 0 0 4px #b8895a, 0 4px 8px rgba(0,0,0,0.1);
}
.pizza-card-img.cat-frites {
  background-image: linear-gradient(135deg, #f5e0a8, #e8c878);
}
.pizza-card-img.cat-frites::before {
  content: "";
  position: absolute;
  inset: 22% 25%;
  background-image: repeating-linear-gradient(90deg, #e8a832 0 6px, #d89820 6px 8px, transparent 8px 14px);
  border-bottom: 4px solid #c1272d;
  border-radius: 4px 4px 0 0;
}


/* ============================================
   PANIER AMÉLIORÉ — sauces + service mode
   ============================================ */

/* Sauce picker dans la carte produit */
.sauce-picker {
  margin-top: auto;
  padding: 12px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 12px;
  animation: saucePop 0.18s ease-out;
}
@keyframes saucePop {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}
.sauce-picker-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.sauce-picker-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}
.sauce-chip {
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 10px;
  border: 1.5px solid var(--border);
  background: var(--cream);
  color: var(--text);
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.sauce-chip:hover {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
  transform: translateY(-1px);
}
.sauce-chip.sauce-skip {
  background: transparent;
  font-style: italic;
  color: var(--text-muted);
}
.sauce-extra {
  font-weight: 500;
  opacity: 0.85;
  font-size: 11px;
  margin-left: 2px;
}
.sauce-cancel {
  font: inherit;
  font-size: 11px;
  background: none;
  border: none;
  color: var(--text-muted);
  text-decoration: underline;
  cursor: pointer;
  padding: 2px 4px;
}
.sauce-cancel:hover { color: var(--accent); }

/* Cart item — vignettes thématiques par catégorie */
.cart-item-img.cat-pizzas {
  background: radial-gradient(circle at center, #f4d8a8 0%, #e8a832 55%, #c1272d 100%);
}
.cart-item-img.cat-sandwichs {
  background: linear-gradient(135deg, #f4d8a8 0%, #d89820 100%);
}
.cart-item-img.cat-crispy {
  background: linear-gradient(135deg, #f0c068 0%, #c1272d 100%);
}
.cart-item-img.cat-plats {
  background: radial-gradient(circle, #f4d8a8 30%, #2d5d3a 100%);
}
.cart-item-img.cat-frites {
  background: linear-gradient(135deg, #f4d8a8 0%, #e8a832 100%);
}

.cart-item-sauce {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
  margin-bottom: 2px;
}
.cart-item-sauce strong { color: var(--text); font-weight: 600; }
.cart-item-sauce.muted { font-style: italic; opacity: 0.7; }

.cart-item-controls {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-end;
}

/* Service mode selector */
.service-mode {
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px dashed var(--border);
}
.service-mode-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.service-mode-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.service-opt {
  font: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 10px 6px;
  background: var(--cream);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.15s ease;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
}
.service-opt:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}
.service-opt.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 4px 12px rgba(193, 39, 45, 0.25);
}
.service-icon {
  font-size: 22px;
  line-height: 1;
}
.service-fee {
  font-size: 10px;
  font-weight: 700;
  opacity: 0.85;
}

/* Cart totals breakdown */
.cart-totals {
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--border);
}
.cart-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: var(--text-muted);
  padding: 4px 0;
}
.cart-line span:last-child {
  color: var(--text);
  font-weight: 600;
}


/* ============================================
   PANIER — sauce inline + checkout modal
   ============================================ */

/* Sauce edit dans la ligne panier */
.cart-sauce-btn {
  display: block;
  width: 100%;
  text-align: left;
  font: inherit;
  font-size: 12px;
  background: rgba(193, 39, 45, 0.06);
  border: 1px dashed rgba(193, 39, 45, 0.35);
  color: var(--text);
  padding: 6px 10px;
  border-radius: 8px;
  margin: 6px 0 4px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.cart-sauce-btn:hover {
  background: rgba(193, 39, 45, 0.12);
  border-style: solid;
  border-color: var(--accent);
}
.cart-sauce-btn strong { font-weight: 700; color: var(--accent); }
.cart-sauce-btn .edit-link,
.cart-sauce-btn .add-sauce-link {
  color: var(--accent);
  font-weight: 700;
  margin-left: 6px;
  text-decoration: underline;
}

.cart-sauce-edit {
  display: flex;
  gap: 6px;
  align-items: center;
  margin: 6px 0 4px;
}
.cart-sauce-select {
  flex: 1;
  font: inherit;
  font-size: 13px;
  padding: 6px 10px;
  border: 1.5px solid var(--accent);
  background: var(--bg-alt);
  color: var(--text);
  border-radius: 8px;
  cursor: pointer;
}
.cart-sauce-cancel {
  font: inherit;
  width: 26px; height: 26px;
  border: 1px solid var(--border);
  background: var(--cream);
  color: var(--text-muted);
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
}

/* Checkout modal */
.checkout-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 5000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.2s ease;
}
@keyframes fadeIn { from { opacity: 0 } to { opacity: 1 } }

.checkout-modal {
  background: var(--bg);
  border-radius: 20px;
  width: 100%;
  max-width: 540px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 60px rgba(0,0,0,0.4);
  animation: modalPop 0.25s cubic-bezier(.2,.9,.3,1.1);
  overflow: hidden;
}
@keyframes modalPop {
  from { opacity: 0; transform: scale(0.94) translateY(12px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.checkout-header {
  padding: 22px 24px;
  border-bottom: 2px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.checkout-header h3 {
  font-family: var(--font-display);
  font-size: 22px;
  margin: 0;
}

.checkout-body {
  padding: 20px 24px;
  overflow-y: auto;
  flex: 1;
}
.checkout-section {
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px dashed var(--border);
}
.checkout-section:last-of-type { border-bottom: none; }
.checkout-section h4 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin: 0 0 10px;
  font-weight: 700;
}
.checkout-section h4 strong { color: var(--accent); font-weight: 700; }

.checkout-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.checkout-list li {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 14px;
  border-bottom: 1px solid var(--border);
}
.checkout-list li:last-child { border: none; }
.checkout-list li span:last-child { font-weight: 700; }

.checkout-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.checkout-form input,
.checkout-form textarea {
  font: inherit;
  font-size: 14px;
  padding: 10px 12px;
  border: 1.5px solid var(--border);
  background: var(--bg-alt);
  color: var(--text);
  border-radius: 10px;
  resize: vertical;
}
.checkout-form input:focus,
.checkout-form textarea:focus {
  border-color: var(--accent);
  outline: none;
}

.checkout-totals {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 2px solid var(--border);
}
.cart-line-total {
  font-size: 18px;
  padding-top: 8px !important;
  margin-top: 4px;
  border-top: 1px dashed var(--border);
}
.cart-line-total span { color: var(--text) !important; font-weight: 700 !important; }
.cart-line-total span:last-child {
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--accent) !important;
}

.checkout-modal .cart-checkout {
  margin: 0 24px 22px;
}
.checkout-modal .cart-checkout:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Success state */
.checkout-success {
  padding: 40px 28px 28px;
  text-align: center;
}
.success-circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 38px;
  margin: 0 auto 16px;
  animation: popIn 0.4s cubic-bezier(.2,.9,.3,1.4);
}
@keyframes popIn {
  from { transform: scale(0); }
  to   { transform: scale(1); }
}
.checkout-success h3 {
  font-family: var(--font-display);
  font-size: 28px;
  margin: 0 0 4px;
}
.checkout-success .script {
  font-family: var(--font-hand);
  color: var(--accent);
  font-size: 22px;
  display: block;
  margin-bottom: 16px;
}
.success-text {
  color: var(--text-muted);
  margin-bottom: 22px;
  line-height: 1.6;
}
.success-text strong { color: var(--accent); font-size: 18px; }
.checkout-success .cart-checkout { margin: 0; }


/* Sauce chips multi-select state */
.sauce-chip.on {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.sauce-chip .sauce-check {
  display: inline-block;
  width: 16px;
  margin-right: 4px;
  font-weight: 700;
}
.sauce-picker-hint {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 400;
  margin-left: 8px;
  font-style: italic;
}
.sauce-picker-footer {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}
.sauce-picker-footer .sauce-cancel { flex: 0 0 auto; }
.sauce-confirm {
  flex: 1;
  font: inherit;
  font-weight: 700;
  font-size: 13px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 10px 14px;
  cursor: pointer;
  transition: filter 0.15s ease;
}
.sauce-confirm:hover { filter: brightness(1.08); }

/* Cart inline multi-sauce editor */
.cart-sauce-edit-multi {
  background: var(--bg-alt);
  border: 1.5px solid var(--accent);
  border-radius: 10px;
  padding: 10px;
  margin: 6px 0 4px;
}
.cart-sauce-multi-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  margin-bottom: 8px;
}
.cart-sauce-multi-grid .sauce-chip {
  font-size: 11px;
  padding: 6px 8px;
}
.cart-sauce-done {
  width: 100%;
  font: inherit;
  font-weight: 700;
  font-size: 12px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px;
  cursor: pointer;
}
.cart-sauce-done:hover { filter: brightness(1.08); }


/* Page menu : grille de catégories */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
  max-width: 1200px;
  margin: 0 auto;
}
.category-card {
  font: inherit;
  text-align: left;
  background: var(--bg-alt);
  border: 2px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.category-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.18);
  border-color: var(--accent);
}
.category-card-img {
  aspect-ratio: 16 / 9;
  position: relative;
}
.category-card-img.cat-pizzas {
  background-color: #f4d8a8;
  background-image: url('assets/cat-pizzas.png');
  background-size: cover;
  background-position: center;
}
.category-card-img.cat-sandwichs {
  background-color: #f4d8a8;
  background-image: url('assets/cat-sandwichs.png');
  background-size: cover;
  background-position: center;
}
.category-card-img.cat-crispy {
  background-color: #f0c068;
  background-image: url('assets/cat-crispy.png');
  background-size: cover;
  background-position: center;
}
.category-card-img.cat-tacos {
  background-color: #f4d8a8;
  background-image: url('assets/cat-tacos.png');
  background-size: cover;
  background-position: center;
}
.category-card-img.cat-plats {
  background-color: #f4d8a8;
  background-image: url('assets/cat-plats.png');
  background-size: cover;
  background-position: center;
}
.category-card-img.cat-frites {
  background-color: #f4d8a8;
  background-image: url('assets/cat-frites.png');
  background-size: cover;
  background-position: center;
}
.category-card-img.cat-mega {
  background-color: #1a1a1a;
  background-image: url('assets/cat-pizzas-mega.png');
  background-size: cover;
  background-position: center;
}
.category-card-img.cat-burgers {
  background-color: #f4d8a8;
  background-image: url('assets/cat-hamburgers.png');
  background-size: cover;
  background-position: center;
}
.category-card-img.cat-cheese {
  background-color: #ffe9a8;
  background-image: url('assets/cat-cheese.png');
  background-size: cover;
  background-position: center;
}
.category-card-body {
  padding: 22px 24px 26px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.category-card-title {
  font-family: var(--font-display);
  font-size: 28px;
  margin: 0 0 6px;
  color: var(--text);
}
.category-card-tagline {
  color: var(--text-muted);
  margin: 0 0 16px;
  font-size: 14px;
  flex: 1;
}
.category-card-count {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  font-weight: 700;
  margin-bottom: 8px;
}
.category-card-arrow {
  color: var(--accent);
  font-weight: 700;
  font-size: 14px;
}
.category-card:hover .category-card-arrow {
  text-decoration: underline;
}

.category-back {
  font: inherit;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 12px;
  padding: 0;
  text-decoration: underline;
}
.category-back:hover { color: var(--accent); }

.pizza-card-img.has-photo::before { display: none !important; }
.pizza-card-img.has-photo { aspect-ratio: 1 / 1; background: #f3d6b2; position: relative; }
.pizza-card-img.has-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.pizza-card:has(.pizza-card-img.has-photo) { background: #f3d6b2; }
[data-theme="dark"] .pizza-card:has(.pizza-card-img.has-photo) { background: var(--bg-alt); }
[data-theme="dark"] .pizza-card-img.has-photo { background: var(--bg-alt); }

/* Hamburgers : images en hauteur (portrait), montrer le burger complet */
.pizza-card-img.cat-burgers.has-photo,
.pizza-card-img.cat-cheese.has-photo {
  aspect-ratio: 4 / 5;
}
.pizza-card-img.cat-burgers.has-photo img,
.pizza-card-img.cat-cheese.has-photo img {
  object-fit: contain;
}
