/* ============================================
   MAMMA MIA — Design tokens
   Palette : crème #F7F1E8, tomate #C1391F, tomate profond #8F2814,
             basilic #4B6B3E, charbon #241B16, sienna (bois) #B5651D
   Type : Fraunces (display) / Inter (texte) / IBM Plex Mono (prix, labels)
   ============================================ */

:root {
  --cream: #F7F1E8;
  --cream-deep: #EFE5D4;
  --tomato: #C1391F;
  --tomato-deep: #8F2814;
  --basil: #4B6B3E;
  --basil-deep: #35492A;
  --charcoal: #241B16;
  --charcoal-soft: #392C24;
  --sienna: #B5651D;
  --paper: #FFFCF7;

  --font-display: "Fraunces", serif;
  --font-body: "Inter", sans-serif;
  --font-mono: "IBM Plex Mono", monospace;

  --radius: 4px;
  --radius-lg: 10px;
  --shadow-card: 0 1px 2px rgba(36,27,22,0.06), 0 8px 24px -12px rgba(36,27,22,0.18);
  --shadow-card-hover: 0 4px 8px rgba(36,27,22,0.08), 0 16px 32px -14px rgba(36,27,22,0.26);
}

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

html { scroll-behavior: smooth; }

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

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--charcoal);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

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

:focus-visible {
  outline: 2px solid var(--tomato);
  outline-offset: 3px;
}

.eyebrow, .hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tomato-deep);
  font-weight: 600;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  border: 1.5px solid transparent;
}
.btn-primary {
  background: var(--tomato);
  color: var(--paper);
}
.btn-primary:hover { background: var(--tomato-deep); transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  border-color: var(--charcoal);
  color: var(--charcoal);
}
.btn-ghost:hover { background: var(--charcoal); color: var(--cream); }
.btn-small { padding: 10px 20px; font-size: 13px; }

/* ---------- Header ---------- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
  padding: calc(22px + env(safe-area-inset-top)) 0 22px;
}
.header.scrolled {
  background: rgba(247,241,232,0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(36,27,22,0.08);
  padding: calc(14px + env(safe-area-inset-top)) 0 14px;
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 24px;
  color: var(--charcoal);
  display: flex;
  align-items: center;
}
.header.scrolled .logo,
.hero .logo { color: var(--charcoal); }
.logo-img {
  height: 140px;
  width: auto;
  display: block;
  transition: height 0.3s ease;
}
.header.scrolled .logo-img { height: 108px; }
.nav {
  display: flex;
  gap: 32px;
  font-size: 14px;
  font-weight: 500;
  flex: 1;
  justify-content: center;
}
.nav a { position: relative; padding: 4px 0; }
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0%; height: 2px;
  background: var(--tomato);
  transition: width 0.2s ease;
}
.nav a:hover::after { width: 100%; }
.header-cta { flex-shrink: 0; }
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.burger span {
  width: 22px; height: 2px;
  background: var(--charcoal);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  position: fixed;
  top: 0; right: 0;
  width: min(78vw, 320px);
  height: 100vh;
  background: var(--charcoal);
  color: var(--cream);
  z-index: 99;
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 100px 36px 40px;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  font-size: 18px;
  font-weight: 500;
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav .btn { margin-top: 12px; width: fit-content; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse 120% 60% at 50% 0%, rgba(193,57,31,0.10), transparent 60%),
    var(--cream);
  overflow: hidden;
  padding: 220px 24px 80px;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(36,27,22,0.05) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 40%, black, transparent);
  pointer-events: none;
}
.hero-arch {
  position: relative;
  width: min(880px, 100%);
  background: linear-gradient(180deg, var(--charcoal) 0%, var(--charcoal-soft) 100%);
  border-radius: 320px 320px 24px 24px;
  padding: 90px 56px 70px;
  text-align: center;
  box-shadow: 0 40px 80px -30px rgba(36,27,22,0.5);
}
.hero-arch::after {
  content: "";
  position: absolute;
  top: 18px; left: 18px; right: 18px; bottom: 18px;
  border: 1.5px solid rgba(247,241,232,0.14);
  border-radius: 300px 300px 12px 12px;
  pointer-events: none;
}
.hero-eyebrow {
  color: var(--sienna);
  display: inline-block;
  margin-bottom: 24px;
  animation: fadeUp 0.7s ease both;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 600;
  color: var(--cream);
  line-height: 1.05;
  letter-spacing: -0.01em;
  animation: fadeUp 0.8s ease 0.1s both;
}
.hero-sub {
  color: rgba(247,241,232,0.75);
  font-size: 17px;
  max-width: 460px;
  margin: 24px auto 0;
  animation: fadeUp 0.8s ease 0.2s both;
}
.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 36px;
  flex-wrap: wrap;
  animation: fadeUp 0.8s ease 0.3s both;
}
.hero-arch .btn-ghost { border-color: rgba(247,241,232,0.4); color: var(--cream); }
.hero-arch .btn-ghost:hover { background: var(--cream); color: var(--charcoal); }

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

/* ---------- Section head (shared) ---------- */
.section-head {
  max-width: 640px;
  margin: 0 auto 48px;
  text-align: center;
  padding: 0 24px;
}
.section-head .eyebrow { display: block; margin-bottom: 14px; }
.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 600;
  line-height: 1.15;
}

/* ---------- Menu ---------- */
.menu-section {
  padding: 120px 24px 100px;
  max-width: 1200px;
  margin: 0 auto;
}
.filters {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.filter-btn {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 100px;
  border: 1.5px solid var(--charcoal);
  background: transparent;
  color: var(--charcoal);
  cursor: pointer;
  transition: all 0.2s ease;
}
.filter-btn:hover { background: rgba(36,27,22,0.06); }
.filter-btn.active { background: var(--charcoal); color: var(--cream); }

.pizza-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.pizza-card {
  background: var(--paper);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  opacity: 0;
  transform: translateY(14px);
  animation: cardIn 0.5s ease forwards;
}
@keyframes cardIn {
  to { opacity: 1; transform: translateY(0); }
}
.pizza-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}
.pizza-photo {
  position: relative;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #EAD9BE, #D9B88A);
  overflow: hidden;
}
.pizza-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.pizza-card:hover .pizza-photo img { transform: scale(1.06); }
.pizza-badge {
  position: absolute;
  top: 12px; left: 12px;
  background: var(--basil);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 100px;
}
.diet-icon {
  position: absolute;
  top: 12px; right: 12px;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: rgba(255,252,247,0.92);
  box-shadow: 0 2px 6px rgba(36,27,22,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
}
.diet-icon svg { width: 17px; height: 17px; }
.diet-icon.veggie svg { stroke: var(--basil); }
.diet-icon.fish svg { stroke: #2E6E8E; }
.diet-icon.meat svg { stroke: var(--tomato-deep); }
.pizza-body { padding: 18px 20px 20px; }
.pizza-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 8px;
}
.pizza-name {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
}
.pizza-price {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 14px;
  color: var(--tomato-deep);
  white-space: nowrap;
}
.price-group {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  flex-shrink: 0;
}
.price-line {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 13px;
  color: var(--charcoal-soft);
  white-space: nowrap;
}
.price-line.price-mega { color: var(--tomato-deep); }
.price-label {
  font-size: 9.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  opacity: 0.65;
  margin-right: 5px;
}
.pizza-ingredients {
  font-size: 13.5px;
  color: var(--charcoal-soft);
  line-height: 1.5;
}

/* ---------- Histoire ---------- */
.histoire {
  background: var(--charcoal);
  color: var(--cream);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 0;
}
.histoire-visual {
  display: flex;
  align-items: stretch;
  justify-content: center;
  min-height: 440px;
  overflow: hidden;
}
.histoire-img {
  width: 100%;
  height: 100%;
  min-height: 440px;
  object-fit: cover;
}
.histoire-text { padding: 60px; }
.histoire-text .eyebrow { color: var(--sienna); }
.histoire-text h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.4vw, 38px);
  font-weight: 600;
  margin: 14px 0 20px;
  line-height: 1.15;
}
.histoire-text p {
  color: rgba(247,241,232,0.78);
  font-size: 15.5px;
  max-width: 480px;
  margin-bottom: 14px;
}

/* ---------- Livraison ---------- */
.livraison {
  padding: 40px 24px 120px;
  max-width: 1200px;
  margin: 0 auto;
}
.livraison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.livraison-villes {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.livraison-villes li {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--charcoal-soft);
  background: var(--cream-deep);
  padding: 6px 12px;
  border-radius: 100px;
}
.livraison-apps {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ---------- Localisation ---------- */
.localisation {
  padding: 120px 24px;
  max-width: 1200px;
  margin: 0 auto;
}
.loc-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 24px;
  align-items: stretch;
}
.loc-map {
  min-height: 440px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.loc-info { display: flex; flex-direction: column; gap: 16px; }
.loc-card {
  background: var(--paper);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-card);
  flex: 1;
}
.loc-card h3 {
  font-family: var(--font-display);
  font-size: 17px;
  margin-bottom: 10px;
}
.loc-card p { font-size: 14.5px; color: var(--charcoal-soft); margin-bottom: 14px; }
.hours-list { list-style: none; font-size: 13.5px; }
.hours-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(36,27,22,0.08);
  font-family: var(--font-mono);
}
.hours-list li:last-child { border-bottom: none; }
.loc-phone {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 600;
  color: var(--tomato);
}

/* ---------- Footer ---------- */
.footer {
  background: var(--charcoal);
  color: var(--cream);
  padding: 64px 24px 24px;
}
.footer-top {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(247,241,232,0.14);
}
.footer-logo { color: var(--cream); margin-bottom: 12px; }
.footer-logo-img { height: 64px; width: auto; margin-bottom: 16px; opacity: 0.96; }
.footer-brand p, .footer-hours p { font-size: 14px; color: rgba(247,241,232,0.7); margin-bottom: 4px; }
.footer-hours h4, .footer-social h4 {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--sienna);
  margin-bottom: 12px;
}
.social-links { display: flex; flex-direction: column; gap: 8px; }
.social-links a { font-size: 14px; color: rgba(247,241,232,0.85); width: fit-content; }
.social-links a:hover { color: var(--cream); text-decoration: underline; }
.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  padding-top: 20px;
  font-size: 12.5px;
  color: rgba(247,241,232,0.5);
}

/* ---------- Reveal on scroll ---------- */


/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .nav, .header-cta { display: none; }
  .burger { display: flex; }
  .pizza-grid { grid-template-columns: repeat(2, 1fr); }
  .histoire { grid-template-columns: 1fr; }
  .histoire-visual { min-height: 260px; }
  .histoire-img { min-height: 260px; }
  .histoire-text { padding: 8px 32px 56px; }
  .loc-grid { grid-template-columns: 1fr; }
  .livraison-grid { grid-template-columns: 1fr; }
  .loc-map { min-height: 300px; }
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 640px) {
  .header-inner { padding: 0 20px; }
  .logo-img { height: 76px; }
  .header.scrolled .logo-img { height: 56px; }
  .hero { padding: 150px 16px 60px; }
  .hero-arch { border-radius: 160px 160px 20px 20px; padding: 64px 26px 48px; }
  .hero-arch::after { border-radius: 148px 148px 10px 10px; }
  .pizza-grid { grid-template-columns: 1fr; }
  .menu-section { padding: 90px 16px 70px; }
  .localisation { padding: 90px 16px; }
  .livraison { padding: 20px 16px 90px; }
  .footer-bottom { flex-direction: column; gap: 8px; }
}
