/* =========================================================
   PIZZA SNACK LES ÉCARTS — v2
   Palette "boulangerie de quartier" : crème, bois, braise
   ========================================================= */

:root {
  --cream: #faf1e1;
  --cream-deep: #f0dfc0;
  --cream-line: #e4d2ac;
  --wood-dark: #422b19;
  --wood: #7a4a26;
  --wood-soft: #9c6b3f;
  --ember: #cf5326;
  --ember-deep: #a83f19;
  --gold: #c8983e;
  --olive: #6e7c4e;
  --shadow-soft: 0 16px 34px rgba(66, 43, 25, 0.14);
  --radius: 16px;

  --font-display: "Yeseva One", "Georgia", serif;
  --font-body: "Nunito Sans", "Segoe UI", sans-serif;
  --font-accent: "Caveat", cursive;

  --container: 1140px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--wood-dark);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 400; line-height: 1.15; margin: 0 0 0.45em; color: var(--wood-dark); }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }

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

.accent-tag {
  font-family: var(--font-accent);
  font-size: 1.5rem;
  color: var(--ember);
  display: inline-block;
  transform: rotate(-2deg);
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 800; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ember-deep); margin-bottom: 0.8em;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--gold); display: inline-block; }
.on-dark .eyebrow { color: var(--gold); }
.on-dark .eyebrow::before { background: var(--gold); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-body); font-weight: 800; font-size: 0.98rem;
  padding: 14px 28px; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--ember); color: var(--cream); box-shadow: 0 10px 22px rgba(207, 83, 38, 0.32); }
.btn-primary:hover { background: var(--ember-deep); }
.btn-outline { background: transparent; border-color: currentColor; color: inherit; }
.btn-outline:hover { background: rgba(66, 43, 25, 0.06); }
.on-dark .btn-outline:hover { background: rgba(250, 241, 225, 0.1); }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ---------- Vacation banner ---------- */
.vacation-banner {
  background: linear-gradient(135deg, var(--ember), var(--ember-deep));
  color: var(--cream);
}
.vacation-banner[hidden] { display: none; }
.vacation-banner-inner {
  display: flex; align-items: center; justify-content: center; gap: 16px;
  padding: 12px 24px; text-align: center;
}
.vacation-banner-text { font-size: 0.92rem; font-weight: 600; line-height: 1.4; }
.vacation-banner-text strong { font-family: var(--font-display); font-weight: 400; font-size: 1.02em; }
.vacation-banner-close {
  flex: none; background: rgba(250,241,225,0.18); border: none; color: var(--cream);
  width: 26px; height: 26px; border-radius: 50%; font-size: 1.1rem; line-height: 1; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; transition: background 0.15s ease;
}
.vacation-banner-close:hover { background: rgba(250,241,225,0.32); }
@media (max-width: 640px) {
  .vacation-banner-inner { flex-direction: column; gap: 8px; padding: 14px 20px; }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 241, 225, 0.97);
  border-bottom: 1px solid var(--cream-line);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 82px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 52px; width: 52px; border-radius: 50%; object-fit: cover; box-shadow: var(--shadow-soft); }
.brand .brand-text { font-family: var(--font-display); font-size: 1.3rem; line-height: 1.1; }
.brand small { display: block; font-family: var(--font-body); font-weight: 700; font-size: 0.62rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--wood-soft); }

.nav-toggle { display: none; background: none; border: none; color: var(--wood-dark); cursor: pointer; padding: 8px; }
.nav-toggle svg { width: 26px; height: 26px; }

.main-nav ul { display: flex; gap: 4px; align-items: center; }
.main-nav a {
  display: inline-block; padding: 10px 16px; font-weight: 700; font-size: 0.95rem;
  border-radius: 999px; transition: background 0.15s ease, color 0.15s ease; position: relative;
}
.main-nav a:hover { background: var(--cream-deep); }
.main-nav a.is-active { color: var(--ember-deep); }
.main-nav a.is-active::after {
  content: ""; position: absolute; left: 16px; right: 16px; bottom: 5px; height: 2px;
  background: var(--ember); border-radius: 2px;
}
.main-nav .btn-primary { margin-left: 8px; padding: 10px 20px; font-size: 0.9rem; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .main-nav {
    position: fixed; inset: 82px 0 0 0; background: var(--cream); z-index: 99;
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s; overflow-y: auto;
  }
  .main-nav.is-open { opacity: 1; transform: translateY(0); visibility: visible; }
  .main-nav ul { flex-direction: column; align-items: stretch; padding: 20px; gap: 6px; }
  .main-nav a { padding: 16px; font-size: 1.1rem; }
  .main-nav .btn-primary { margin: 10px 4px 0; text-align: center; justify-content: center; }
}

/* ---------- Hero ---------- */
.hero { background: var(--cream); overflow: hidden; }
.hero .container {
  padding-top: 64px; padding-bottom: 72px;
  display: grid; grid-template-columns: 1fr 0.95fr; gap: 52px; align-items: center;
}
.hero h1 { font-size: clamp(2.5rem, 5vw, 3.9rem); margin-bottom: 0.3em; }
.hero h1 em { font-style: normal; color: var(--ember); }
.hero-lead { font-size: 1.12rem; max-width: 46ch; color: rgba(66,43,25,0.75); }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 1.6em; }
.hero-meta { display: flex; gap: 28px; margin-top: 2.2em; flex-wrap: wrap; }
.hero-meta div { font-size: 0.88rem; color: var(--wood-soft); }
.hero-meta strong { display: block; font-family: var(--font-display); font-size: 1.25rem; color: var(--ember-deep); }

.hero-photo {
  position: relative; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 4/3.1; box-shadow: var(--shadow-soft); border: 6px solid #fff;
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo .badge {
  position: absolute; bottom: 16px; left: 16px;
  background: rgba(250,241,225,0.94); padding: 8px 16px; border-radius: 999px;
  font-family: var(--font-accent); font-size: 1.15rem; color: var(--ember-deep);
  box-shadow: var(--shadow-soft);
}

/* ---------- Crust divider ---------- */
.crust-divider { height: 24px; width: 100%; background-repeat: repeat-x; background-size: 42px 24px; background-position: top center; }
.crust-divider.to-cream { background-color: var(--cream); background-image: radial-gradient(circle at 21px 0, var(--cream-deep) 14px, transparent 14.5px); }
.crust-divider.to-deep { background-color: var(--cream-deep); background-image: radial-gradient(circle at 21px 0, var(--cream) 14px, transparent 14.5px); }
.crust-divider.to-wood { background-color: var(--wood-dark); background-image: radial-gradient(circle at 21px 24px, var(--cream) 14px, transparent 14.5px); }
.crust-divider.from-wood { background-color: var(--cream); background-image: radial-gradient(circle at 21px 0, var(--wood-dark) 14px, transparent 14.5px); }

/* ---------- Sections ---------- */
.section { padding: 76px 0; }
.section-deep { background: var(--cream-deep); }
.section-wood { background: var(--wood-dark); color: var(--cream); }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head p { color: rgba(66,43,25,0.68); font-size: 1.05rem; }
.on-dark .section-head p { color: rgba(250,241,225,0.75); }

/* ---------- Histoire ---------- */
.about-grid { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 52px; align-items: center; }
.about-photo { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-soft); border: 6px solid #fff; }
.about-photo img { aspect-ratio: 5/4.3; object-fit: cover; }
.about-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 32px; }
.fact { background: var(--cream); border: 1px solid var(--cream-line); border-radius: var(--radius); padding: 18px; }
.fact strong { display: block; font-family: var(--font-display); font-size: 1.5rem; color: var(--ember-deep); }
.fact span { font-size: 0.85rem; color: var(--wood-soft); }

/* ---------- Icon cards ---------- */
.info-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.info-item {
  background: var(--cream); border: 1px solid var(--cream-line); border-radius: var(--radius);
  padding: 26px; transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.info-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }
.info-item .icon { width: 40px; height: 40px; color: var(--ember); margin-bottom: 14px; }
.info-item h4 { font-size: 1.1rem; margin-bottom: 0.35em; }
.info-item p { font-size: 0.94rem; color: var(--wood-soft); margin-bottom: 0; }

/* ---------- CTA band with photo ---------- */
.cta-band {
  display: grid; grid-template-columns: 1fr 0.85fr; gap: 0; align-items: stretch;
  background: var(--wood-dark); color: var(--cream); border-radius: 22px; overflow: hidden;
}
.cta-band-text { padding: 48px; display: flex; flex-direction: column; justify-content: center; }
.cta-band h2 { font-size: clamp(1.7rem, 3vw, 2.25rem); color: var(--cream); }
.cta-band p { color: rgba(250,241,225,0.82); }
.cta-band .btn-outline { border-color: var(--cream); }
.cta-band-photo { position: relative; min-height: 260px; }
.cta-band-photo img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 40px; }
.contact-card { background: var(--wood-dark); color: var(--cream); border-radius: 22px; padding: 36px; }
.contact-line { display: flex; gap: 14px; align-items: flex-start; padding: 16px 0; border-bottom: 1px solid rgba(250,241,225,0.14); }
.contact-line:last-child { border-bottom: none; }
.contact-line svg { width: 22px; height: 22px; color: var(--gold); flex: none; margin-top: 2px; }
.contact-line h4 { font-size: 0.95rem; margin-bottom: 0.25em; color: var(--gold); }
.contact-line p { margin: 0; font-size: 0.95rem; color: rgba(250,241,225,0.88); }
.map-frame { border-radius: 22px; overflow: hidden; border: 1px solid var(--cream-line); min-height: 340px; }
.map-frame iframe { width: 100%; height: 100%; min-height: 340px; border: 0; }

/* ---------- Menu page ---------- */
.menu-toolbar { position: sticky; top: 82px; z-index: 40; background: var(--cream); padding: 18px 0; border-bottom: 1px solid var(--cream-line); }
.menu-tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.menu-tab {
  flex: none; font-family: var(--font-body); font-weight: 800; font-size: 0.92rem;
  padding: 10px 20px; border-radius: 999px; border: 1px solid var(--cream-line);
  background: var(--cream-deep); cursor: pointer; white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  display: inline-flex; align-items: center; gap: 8px;
}
.menu-tab svg { width: 17px; height: 17px; }
.menu-tab:hover { border-color: var(--ember); }
.menu-tab.is-active { background: var(--ember); border-color: var(--ember); color: var(--cream); }

.menu-panel { display: none; padding-top: 40px; }
.menu-panel.is-active { display: block; }

.menu-hero-photo { border-radius: var(--radius); overflow: hidden; margin-bottom: 36px; box-shadow: var(--shadow-soft); aspect-ratio: 16 / 9; max-height: 480px; }
.menu-hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center center; }
@media (max-width: 640px) {
  .menu-hero-photo { aspect-ratio: 4 / 3; }
}

.menu-legend { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 8px; font-size: 0.82rem; color: var(--wood-soft); }
.menu-legend span { display: inline-flex; align-items: center; gap: 6px; }

.menu-group { margin-top: 40px; }
.menu-group:first-child { margin-top: 0; }
.menu-group h3 { font-size: 1.3rem; color: var(--ember-deep); border-bottom: 2px solid var(--cream-line); padding-bottom: 10px; margin-bottom: 6px; }
.menu-group .group-note { font-size: 0.88rem; color: var(--wood-soft); margin: 6px 0 18px; }

.menu-list { display: grid; gap: 2px; }
.menu-row { display: grid; grid-template-columns: 1fr auto; gap: 6px 20px; align-items: baseline; padding: 14px 4px; border-bottom: 1px dashed var(--cream-line); }
.menu-row-name { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.menu-row-name strong { font-family: var(--font-display); font-size: 1.05rem; }
.menu-row-desc { grid-column: 1 / 2; font-size: 0.9rem; color: var(--wood-soft); }
.menu-row-price { font-family: var(--font-display); font-size: 1.05rem; color: var(--ember-deep); white-space: nowrap; }

.tag {
  font-size: 0.68rem; font-weight: 700; padding: 3px 9px; border-radius: 999px;
  border: 1px solid var(--cream-line); color: var(--wood-soft); text-transform: uppercase; letter-spacing: 0.04em; white-space: nowrap;
}
.menu-tags { display: inline-flex; gap: 6px; flex-wrap: wrap; }

/* ---------- Livraison ---------- */
.delivery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.delivery-card { background: var(--cream); border: 1px solid var(--cream-line); border-radius: var(--radius); padding: 28px; }
.delivery-card .num { font-family: var(--font-display); font-size: 2.1rem; color: var(--ember); display: block; margin-bottom: 6px; }
.delivery-card h3 { font-size: 1.05rem; margin-bottom: 0.35em; }
.delivery-card p { font-size: 0.92rem; color: var(--wood-soft); margin-bottom: 0; }

.delivery-table { width: 100%; border-collapse: collapse; margin-top: 12px; }
.delivery-table th, .delivery-table td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--cream-line); font-size: 0.95rem; }
.delivery-table th { font-family: var(--font-display); font-weight: 400; color: var(--ember-deep); font-size: 0.82rem; letter-spacing: 0.04em; text-transform: uppercase; }

/* ---------- Footer ---------- */
.site-footer { background: var(--wood-dark); color: rgba(250,241,225,0.78); padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 36px; border-bottom: 1px solid rgba(250,241,225,0.14); }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.footer-brand img { height: 46px; width: 46px; border-radius: 50%; }
.footer-brand span { font-family: var(--font-display); font-size: 1.25rem; color: var(--cream); }
.footer-grid h4 { color: var(--gold); font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 14px; }
.footer-grid p, .footer-grid a { font-size: 0.92rem; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid a:hover { color: var(--gold); }
.footer-social { display: flex; gap: 10px; margin-top: 14px; }
.footer-social a { width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid rgba(250,241,225,0.2); border-radius: 999px; transition: border-color 0.15s ease, color 0.15s ease; }
.footer-social a:hover { border-color: var(--gold); color: var(--gold); }
.footer-social svg { width: 18px; height: 18px; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding-top: 22px; font-size: 0.82rem; }

/* ---------- Floating call button ---------- */
.call-fab {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  display: inline-flex; align-items: center; gap: 10px; background: var(--ember); color: var(--cream);
  padding: 14px 20px; border-radius: 999px; font-weight: 800; font-size: 0.95rem;
  box-shadow: 0 12px 26px rgba(207, 83, 38, 0.4);
}
.call-fab svg { width: 20px; height: 20px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; padding-top: 40px; padding-bottom: 52px; }
  .hero-photo { order: -1; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .about-facts { grid-template-columns: 1fr 1fr; }
  .info-strip { grid-template-columns: 1fr; }
  .cta-band { grid-template-columns: 1fr; }
  .cta-band-photo { min-height: 220px; order: -1; }
  .delivery-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 56px 0; }
}
@media (max-width: 560px) {
  .about-facts { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .menu-row { grid-template-columns: 1fr; }
  .call-fab span { display: none; }
  .call-fab { padding: 14px; }
}
