/* Crazy Pizza Burger — feuille de style unique.
 *
 * Palette tirée du logo : jaune de marque sur fond charbon chaud. Le fond
 * sombre fait ressortir les photos de plats, qui sont l'argument de vente.
 */

:root {
  --brand: #f7bb09;
  --brand-deep: #dd6f00;
  --ink: #12100e;
  --ink-soft: #1b1815;
  --card: #211d19;
  --line: rgba(255, 255, 255, 0.10);
  --line-strong: rgba(255, 255, 255, 0.22);
  --text: #f6f1e9;
  --muted: #b3a99b;
  --radius: 18px;
  --max: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 132px; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: 'Outfit', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

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

.hero {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 56px 20px 44px;
  background:
    radial-gradient(120% 90% at 50% -10%, rgba(247, 187, 9, 0.22), transparent 60%),
    linear-gradient(180deg, #17130f 0%, var(--ink) 100%);
  border-bottom: 1px solid var(--line);
}

.hero__glow {
  position: absolute;
  inset: -40% 20% auto;
  height: 420px;
  background: radial-gradient(closest-side, rgba(221, 111, 0, 0.35), transparent);
  filter: blur(30px);
  pointer-events: none;
}

.hero__inner { position: relative; max-width: 720px; margin: 0 auto; }

.hero__logo {
  width: 132px;
  height: 132px;
  object-fit: contain;
  margin: 0 auto 18px;
  border-radius: 28px;
  background: #fff;
  padding: 10px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

.hero__title {
  margin: 0;
  font-size: clamp(2.2rem, 8vw, 3.6rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.05;
  background: linear-gradient(100deg, var(--brand), var(--brand-deep) 70%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__tagline {
  margin: 10px auto 22px;
  max-width: 30ch;
  color: var(--muted);
  font-size: 1.05rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.hero__note { margin: 20px 0 0; color: #7e756a; font-size: 0.82rem; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}

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

.btn--primary {
  background: linear-gradient(100deg, var(--brand), var(--brand-deep));
  color: #1a1206;
  box-shadow: 0 10px 24px rgba(247, 187, 9, 0.25);
}

.btn--ghost {
  border-color: var(--line-strong);
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

/* --------------------------------------------------------------- Navbar */

.navbar {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 12px 0 6px;
  background: rgba(18, 16, 14, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.navbar__search {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: var(--max);
  margin: 0 auto 10px;
  padding: 0 20px;
}

.navbar__search svg {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: var(--muted);
  stroke-width: 2;
  stroke-linecap: round;
}

.navbar__search input {
  flex: 1;
  min-width: 0;
  height: 46px;
  padding: 0 14px;
  border-radius: 12px;
  /* Contour visible au repos : on doit voir que c'est une zone de saisie. */
  border: 1.5px solid var(--line-strong);
  background: var(--ink-soft);
  color: var(--text);
  font: inherit;
}

.navbar__search input::placeholder { color: #857b6e; }
.navbar__search input:focus { outline: none; border-color: var(--brand); }

.navbar__search button {
  height: 40px;
  width: 40px;
  border-radius: 10px;
  border: 1.5px solid var(--line-strong);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.9rem;
}

.navbar__tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 20px 10px;
  max-width: var(--max);
  margin: 0 auto;
  scrollbar-width: none;
}

.navbar__tabs::-webkit-scrollbar { display: none; }

.tab {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1.5px solid var(--line-strong);
  background: var(--ink-soft);
  color: var(--muted);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}

.tab[aria-selected="true"] {
  background: linear-gradient(100deg, var(--brand), var(--brand-deep));
  border-color: transparent;
  color: #1a1206;
}

/* --------------------------------------------------------------- Content */

main { max-width: var(--max); margin: 0 auto; padding: 28px 20px 60px; }

.result-count { color: var(--muted); font-size: 0.9rem; margin: 0 0 18px; }

.section { margin-bottom: 46px; scroll-margin-top: 132px; }

.section__head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.section__title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.section__count { color: var(--muted); font-size: 0.85rem; }

.section--highlight .section__title {
  background: linear-gradient(100deg, var(--brand), var(--brand-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

/* ----------------------------------------------------------------- Carte */

.card {
  display: flex;
  gap: 14px;
  padding: 12px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--card);
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.card:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

.card__media {
  position: relative;
  flex: none;
  width: 92px;
  height: 92px;
  border-radius: 14px;
  overflow: hidden;
  background: #2b2621;
}

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

.card__fallback {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  font-size: 1.8rem;
  opacity: 0.5;
}

.card__body { min-width: 0; display: flex; flex-direction: column; }

.card__title {
  margin: 0 0 2px;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.2;
}

.card__desc {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.88rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card__prices {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.price {
  font-weight: 800;
  color: var(--brand);
  font-size: 1.02rem;
}

.price-chip {
  display: inline-flex;
  gap: 6px;
  align-items: baseline;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  font-size: 0.82rem;
}

.price-chip b { color: var(--brand); font-weight: 800; }

.badge {
  align-self: flex-start;
  margin-bottom: 6px;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  background: linear-gradient(100deg, var(--brand), var(--brand-deep));
  color: #1a1206;
}

.pills { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }

.pill {
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.72rem;
}

.pill--tag { border-color: rgba(126, 217, 87, 0.4); color: #9fdc7c; }

mark {
  background: rgba(247, 187, 9, 0.3);
  color: inherit;
  border-radius: 3px;
  padding: 0 2px;
}

.empty {
  padding: 60px 20px;
  text-align: center;
  color: var(--muted);
}

.empty strong { display: block; font-size: 1.15rem; color: var(--text); margin-bottom: 6px; }

/* --------------------------------------------------------------- Panneaux */

.panel {
  margin-top: 40px;
  padding: 26px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--ink-soft), var(--card));
}

.panel__title { margin: 0 0 6px; font-size: 1.35rem; font-weight: 800; }
.panel__lead { margin: 0 0 20px; color: var(--muted); max-width: 62ch; }

.options, .allergens { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.options { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.allergens { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }

.option {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.2);
}

.option--strong { border-color: var(--brand); }
.option__icon { font-size: 1.3rem; flex: none; }
.option__label { font-weight: 700; }
.option__note { color: var(--muted); font-size: 0.85rem; margin-top: 2px; }
.option__price { margin-left: auto; font-weight: 800; color: var(--brand); white-space: nowrap; }
.option__price--free { color: var(--muted); font-weight: 600; }

.allergen {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
}

.allergen b { display: block; }
.allergen span { color: var(--muted); font-size: 0.84rem; }

/* ----------------------------------------------------------------- Fiche */

.sheet {
  width: min(560px, 100%);
  max-height: 88vh;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  background: var(--card);
  color: var(--text);
  overflow: hidden;
}

.sheet::backdrop { background: rgba(0, 0, 0, 0.72); backdrop-filter: blur(3px); }

.sheet__close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
}

.sheet__body { overflow-y: auto; max-height: 88vh; }
.sheet__img { width: 100%; height: 240px; object-fit: cover; background: #2b2621; }
.sheet__content { padding: 20px 22px 26px; }
.sheet__title { margin: 0 0 6px; font-size: 1.6rem; font-weight: 800; }
.sheet__cat { color: var(--brand); font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
.sheet__desc { color: var(--muted); margin: 10px 0 18px; }

.sheet__row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}

.sheet__row:last-child { border-bottom: none; }
.sheet__row b { color: var(--brand); }

.sheet__hint {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(247, 187, 9, 0.07);
  font-size: 0.88rem;
}

/* ---------------------------------------------------------------- Footer */

.footer {
  text-align: center;
  padding: 44px 20px 60px;
  border-top: 1px solid var(--line);
  background: #100e0c;
}

.footer__logo { width: 64px; height: 64px; object-fit: contain; margin: 0 auto 12px; opacity: 0.9; }
.footer__name { font-weight: 800; margin: 0 0 16px; }
.footer__legal { margin: 20px auto 0; max-width: 46ch; color: #7e756a; font-size: 0.78rem; }

.to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1.5px solid var(--line-strong);
  background: rgba(18, 16, 14, 0.9);
  color: var(--text);
  font-size: 1.1rem;
  cursor: pointer;
  backdrop-filter: blur(8px);
}

/* --------------------------------------------------------- Petits écrans */

@media (max-width: 560px) {
  html { scroll-padding-top: 124px; }
  .hero { padding: 36px 18px 32px; }
  .hero__logo { width: 104px; height: 104px; }
  .grid { grid-template-columns: 1fr; }
  .card__media { width: 78px; height: 78px; }
  .panel { padding: 20px 16px; }
}

/* ------------------------------------------------- Version imprimable A4 */

@media print {
  .navbar, .hero__actions, .to-top, .sheet, .footer .btn { display: none !important; }
  body { background: #fff; color: #000; }
  .hero, .panel, .card { background: #fff; border-color: #ccc; }
  .hero__title, .section--highlight .section__title { color: #000; -webkit-text-fill-color: #000; }
  .card { break-inside: avoid; }
  .grid { grid-template-columns: 1fr 1fr; }
  .price, .price-chip b, .option__price { color: #000; }
}
