:root {
  /* Marque */
  --green: #0C6F27;          /* couleur principale */
  --green-dark: #095420;
  --green-light: #3aa758;    /* accent lisible sur fond sombre */
  --brown: #87402E;          /* couleur secondaire */
  --brown-light: #c9805f;    /* accent secondaire sur fond sombre */

  --bg: #f4efe3;
  --bg-2: #fbf6ec;
  --paper: #fffdf8;
  --ink: #1f1813;
  --ink-soft: #463a31;
  --muted: #7a6e60;
  /* Alias rétro-compat : --ember = primaire, --gold = accent secondaire clair */
  --ember: var(--green);
  --ember-dark: var(--green-dark);
  --olive: var(--green);
  --gold: var(--brown-light);
  --cream: #f3e8d4;
  --line: #e3d8c6;
  --dark: #34190f;           /* fond sombre = brun profond */
  --dark-2: #46241a;
  --dark-line: rgba(255, 255, 255, 0.10);

  --display: 'Bauhaus 93', 'Poppins', 'Trebuchet MS', sans-serif;
  --radius: 16px;
  --shadow: 0 22px 60px -22px rgba(60, 30, 10, 0.35);
  --maxw: 1160px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

h1, h2, h3, h4 { font-family: var(--display); line-height: 1.04; font-weight: 900; letter-spacing: -0.015em; }
em { font-style: italic; }
a { color: inherit; text-decoration: none; }
img, iframe { max-width: 100%; }
::selection { background: var(--ember); color: #fff; }

/* ---------- Buttons ---------- */
.btn {
  --bg-btn: var(--ember);
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--bg-btn); color: #fff;
  padding: 15px 28px; border-radius: 999px;
  font-weight: 600; font-size: 0.96rem; letter-spacing: 0.01em;
  border: 1px solid transparent;
  transition: transform .35s var(--ease), background .25s, box-shadow .35s var(--ease);
  box-shadow: 0 12px 26px -10px rgba(207, 58, 30, 0.6);
}
.btn:hover { background: var(--ember-dark); transform: translateY(-3px); box-shadow: 0 18px 34px -12px rgba(207, 58, 30, 0.7); }
.btn i { font-size: 0.92em; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); box-shadow: none; }
.btn--ghost:hover { background: var(--ink); color: var(--bg); box-shadow: none; }
.btn--small { padding: 10px 18px; font-size: 0.85rem; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(12px) saturate(1.2);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.header.scrolled { border-bottom-color: var(--line); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.logo { display: flex; align-items: center; gap: 11px; font-family: var(--display); font-size: 1.45rem; font-weight: 900; letter-spacing: -0.02em; }
.logo__mark {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px;
  background: var(--ember); color: #fff; font-size: 1.02rem;
  box-shadow: 0 8px 18px -6px rgba(207, 58, 30, 0.7); transform: rotate(-6deg);
}
.logo__text strong { color: var(--ember); font-weight: 900; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav > a { font-weight: 500; font-size: 0.95rem; position: relative; padding: 4px 0; }
.nav > a:not(.btn)::after {
  content: ''; position: absolute; left: 0; bottom: -2px; width: 100%; height: 2px;
  background: var(--ember); transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease);
}
.nav > a:not(.btn):hover::after { transform: scaleX(1); transform-origin: left; }
.burger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; z-index: 70; }
.burger span { width: 26px; height: 2px; background: var(--ink); border-radius: 2px; transition: .3s var(--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); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 96px 0 0; overflow: hidden; }
.hero__grain, .hero__glow { position: absolute; inset: 0; pointer-events: none; }
.hero__glow {
  background:
    radial-gradient(640px 420px at 82% 8%, rgba(12, 111, 39, 0.22), transparent 62%),
    radial-gradient(560px 460px at 6% 86%, rgba(135, 64, 46, 0.20), transparent 60%);
  z-index: 0; will-change: transform;
}
.hero__grain {
  opacity: 0.5; z-index: 1; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
}
.hero__inner {
  position: relative; z-index: 2; padding-bottom: 70px;
  display: grid; grid-template-columns: 1.08fr 0.92fr; gap: 54px; align-items: center;
}
.hero__copy { max-width: 640px; }

/* Hero photo */
.hero__photo { position: relative; justify-self: end; width: 100%; max-width: 440px; }
.hero__photo-frame {
  position: relative; aspect-ratio: 4 / 5; border-radius: 26px; overflow: hidden;
  box-shadow: var(--shadow); border: 7px solid var(--paper); transform: rotate(2.5deg);
  will-change: transform;
}
.hero__photo-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero__photo-badge {
  position: absolute; left: -14px; bottom: 26px; z-index: 3;
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--green); color: #fff; font-weight: 600; font-size: 0.9rem;
  padding: 11px 18px; border-radius: 999px; box-shadow: 0 14px 26px -10px rgba(12,111,39,0.6);
}
.hero__photo-badge i { color: var(--brown-light); }
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ember); margin-bottom: 26px;
}
.hero__eyebrow .line { width: 38px; height: 1px; background: var(--ember); display: inline-block; }
.hero__title { font-size: clamp(2.5rem, 5.6vw, 4.6rem); }
.hero__title em { color: var(--ember); }
.reveal-line { display: block; overflow: hidden; }
.reveal-line > span { display: block; will-change: transform; }
.hero__lead { font-size: clamp(1.05rem, 2vw, 1.22rem); color: var(--ink-soft); margin: 30px 0 32px; max-width: 560px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 26px; }
.hero__status {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: 0.92rem;
  padding: 9px 17px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line);
}
.hero__status .dot { width: 9px; height: 9px; border-radius: 50%; }
.hero__status.is-open { color: var(--olive); }
.hero__status.is-open .dot { background: var(--green); box-shadow: 0 0 0 4px rgba(12, 111, 39, 0.2); animation: pulse 2.2s infinite; }
.hero__status.is-closed { color: var(--brown); }
.hero__status.is-closed .dot { background: var(--brown); box-shadow: 0 0 0 4px rgba(135, 64, 46, 0.18); }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 3px rgba(12,111,39,0.28); } 50% { box-shadow: 0 0 0 7px rgba(12,111,39,0); } }

/* Marquee — deux pistes identiques, boucle continue sans trou */
.marquee {
  position: relative; z-index: 2; display: flex; overflow: hidden; user-select: none;
  background: var(--ink); color: var(--cream);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.marquee__track {
  display: flex; align-items: center; flex-shrink: 0;
  min-width: 100%; justify-content: space-around; list-style: none; white-space: nowrap;
  animation: marquee 32s linear infinite; will-change: transform;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track li {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--display); font-size: 1.18rem; font-weight: 700; letter-spacing: 0.01em;
  padding: 15px 30px; flex-shrink: 0;
}
.marquee__track li i { color: var(--brown-light); font-size: 0.86em; }
.marquee__track li::after { content: '✦'; margin-left: 30px; color: var(--green-light); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-100%); } }

/* ---------- Sections ---------- */
.section { padding: clamp(70px, 11vw, 130px) 0; position: relative; }
.section--dark { background: var(--dark); color: var(--cream); }
.section--dark .section__sub, .section--dark .about__text p { color: rgba(243, 232, 212, 0.72); }
.section__head { max-width: 680px; margin-bottom: 58px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.76rem; font-weight: 700;
  color: var(--ember); margin-bottom: 18px;
}
.section--dark .eyebrow { color: var(--gold); }
.section__title { font-size: clamp(2rem, 5vw, 3.4rem); }
.section__title em { color: var(--ember); }
.section--dark .section__title em { color: var(--green-light); }
.section__sub { color: var(--muted); margin-top: 18px; font-size: 1.05rem; max-width: 480px; }

/* ---------- Menu (editorial list) ---------- */
.menu-list { list-style: none; border-top: 1px solid var(--line); }
.dish {
  display: flex; gap: 24px; align-items: center;
  padding: 22px 8px; border-bottom: 1px solid var(--line);
  transition: background .4s var(--ease), padding .4s var(--ease);
}
.dish:hover { background: var(--paper); padding-left: 20px; padding-right: 20px; }
.dish__thumb {
  flex-shrink: 0; width: 76px; height: 76px; border-radius: 16px; overflow: hidden;
  border: 1px solid var(--line); box-shadow: 0 10px 22px -14px rgba(60,30,10,0.5); background: var(--cream);
}
.dish__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--ease); }
.dish:hover .dish__thumb img { transform: scale(1.1); }
.dish__no {
  align-self: center;
  font-family: var(--display); font-size: 1.05rem; font-weight: 700;
  color: var(--brown); min-width: 28px; opacity: 0.8;
}
.dish__body { flex: 1; }
.dish__line { display: flex; align-items: baseline; gap: 14px; }
.dish__name {
  font-size: clamp(1.3rem, 2.6vw, 1.8rem); font-weight: 600; display: flex; align-items: center; gap: 12px;
}
.dish__tag {
  font-family: 'Inter', sans-serif; font-size: 0.66rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--brown); background: rgba(135, 64, 46, 0.12);
  padding: 4px 10px; border-radius: 999px; transform: translateY(-2px);
}
.dish__dots { flex: 1; border-bottom: 2px dotted var(--line); transform: translateY(-5px); min-width: 18px; }
.dish__price { font-family: var(--display); font-size: 1.4rem; font-weight: 700; color: var(--ink); white-space: nowrap; }
.dish__desc { color: var(--muted); margin-top: 6px; font-size: 0.98rem; max-width: 620px; }
.menu-cta { margin-top: 50px; text-align: center; }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 0.92fr 1.08fr; gap: 64px; align-items: center; }
.about__media { position: relative; aspect-ratio: 1; }
.about__photo {
  position: absolute; inset: 5%; border-radius: 50%; overflow: hidden;
  border: 8px solid var(--paper);
  box-shadow: var(--shadow), 0 0 0 1px var(--line);
  will-change: transform;
}
.about__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.about__stat {
  position: absolute; background: var(--paper); color: var(--ink);
  border-radius: 14px; padding: 14px 20px; box-shadow: var(--shadow); text-align: center;
}
.about__stat strong { display: block; font-family: var(--display); font-size: 1.6rem; color: var(--ember); line-height: 1; }
.about__stat span { font-size: 0.78rem; color: var(--muted); letter-spacing: 0.02em; }
.about__stat--a { top: 4%; right: -4%; }
.about__stat--b { bottom: 8%; left: -6%; }
.about__text p { color: rgba(243, 232, 212, 0.78); margin-top: 18px; max-width: 520px; }
.about__text .section__title { margin-top: 8px; }
.about__text .section__title em { color: var(--green-light); }
.featlist { list-style: none; margin-top: 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.featlist li { display: flex; align-items: center; gap: 12px; font-weight: 500; color: var(--cream); }
.featlist li i { color: var(--gold); width: 22px; text-align: center; font-size: 1.05rem; }

/* ---------- Hours ---------- */
.hours { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 60px; align-items: start; }
.hours__intro .section__title { margin: 8px 0 20px; }
.hours__note { color: var(--muted); margin-bottom: 26px; max-width: 360px; }
.hours__list { list-style: none; }
.hrow {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px; border-radius: 12px; transition: background .3s, transform .3s var(--ease);
  border-bottom: 1px solid var(--line);
}
.hrow:last-child { border-bottom: 0; }
.hrow__day { font-weight: 600; display: flex; align-items: center; gap: 12px; }
.hrow__time { color: var(--muted); font-variant-numeric: tabular-nums; }
.hrow.is-closed .hrow__time { color: var(--ember); font-weight: 600; }
.hrow.is-today { background: var(--green); color: #fff; transform: scale(1.02); box-shadow: var(--shadow); }
.hrow.is-today .hrow__time { color: #fff; }
.hrow__badge {
  font-family: 'Inter', sans-serif; font-size: 0.64rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; background: var(--gold); color: var(--ink); padding: 3px 9px; border-radius: 999px;
}

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 44px; }
.contact__info { display: flex; flex-direction: column; gap: 16px; align-content: start; }
.contact__row {
  display: flex; gap: 18px; align-items: center;
  background: var(--dark-2); border: 1px solid var(--dark-line);
  padding: 22px 24px; border-radius: var(--radius);
  transition: transform .35s var(--ease), border-color .3s, background .3s;
}
.contact__row:hover { transform: translateX(6px); border-color: var(--gold); background: #2c2217; }
.contact__ico {
  flex-shrink: 0; width: 50px; height: 50px; border-radius: 13px; display: grid; place-items: center;
  background: rgba(217, 154, 43, 0.14); color: var(--gold); font-size: 1.2rem;
}
.contact__row > span:last-child { display: flex; flex-direction: column; font-weight: 500; }
.contact__lbl { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.12em; color: rgba(243,232,212,0.55); margin-bottom: 3px; }
.contact__map { border-radius: var(--radius); overflow: hidden; min-height: 360px; box-shadow: var(--shadow); border: 1px solid var(--dark-line); }
.contact__map iframe { width: 100%; height: 100%; min-height: 360px; border: 0; display: block; filter: grayscale(0.3) contrast(1.05); }

/* ---------- Footer ---------- */
.footer { background: var(--dark); color: var(--cream); padding: 76px 0 30px; border-top: 1px solid var(--dark-line); }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 50px; }
.footer__brand p { color: rgba(243, 232, 212, 0.62); margin-top: 18px; max-width: 280px; font-size: 0.95rem; }
.footer .logo__text { color: var(--cream); }
.footer .logo__text strong { color: var(--gold); }
.footer__col h4 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--gold); margin-bottom: 16px; font-family: 'Inter', sans-serif; font-weight: 700; }
.footer__col p { color: rgba(243, 232, 212, 0.72); font-size: 0.95rem; }
.footer__col a { transition: color .25s; }
.footer__col a:hover { color: var(--gold); }
.footer__social { display: flex; gap: 12px; }
.footer__social a {
  width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center;
  background: rgba(255,255,255,0.06); border: 1px solid var(--dark-line); transition: .3s var(--ease);
}
.footer__social a:hover { background: var(--gold); color: var(--dark); transform: translateY(-3px); }
.footer__bottom {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  padding-top: 28px; border-top: 1px solid var(--dark-line);
  color: rgba(243, 232, 212, 0.5); font-size: 0.85rem;
}
.footer__bottom i { color: var(--ember); }

/* ---------- Display font : pas d'italique (Bauhaus 93 / Poppins n'en ont pas de synthèse propre) ---------- */
.hero__title em, .section__title em { font-style: normal; }

/* ---------- Fallback image cassée : bloc dégradé + icône pizza ---------- */
.img-fail { position: relative; background: linear-gradient(135deg, var(--green), var(--brown)); }
.img-fail img { display: none; }
.img-fail::after {
  content: "\f818"; /* fa-pizza-slice */
  font-family: "Font Awesome 6 Free"; font-weight: 900;
  position: absolute; inset: 0; display: grid; place-items: center;
  color: rgba(255, 255, 255, 0.85); font-size: clamp(1.5rem, 6vw, 3rem);
}

/* ---------- Reveal (JS fallback when GSAP absent) ---------- */
.no-gsap [data-anim] { opacity: 1 !important; transform: none !important; }

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .hero__inner { grid-template-columns: 1fr; gap: 40px; }
  .hero__copy { max-width: 640px; }
  .hero__photo { justify-self: start; max-width: 360px; order: -1; }
  .hero__photo-frame { transform: rotate(1.5deg); }
  .about, .hours, .contact { grid-template-columns: 1fr; gap: 44px; }
  .about__media { max-width: 380px; margin: 0 auto; order: 2; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 680px) {
  .nav {
    position: fixed; inset: 0 0 0 auto; width: min(78vw, 320px);
    flex-direction: column; align-items: stretch; justify-content: center; gap: 6px;
    background: var(--paper); box-shadow: -20px 0 60px rgba(0,0,0,0.2);
    padding: 40px 30px; transform: translateX(100%); transition: transform .4s var(--ease);
  }
  .nav.open { transform: translateX(0); }
  .nav > a { padding: 14px 4px; font-size: 1.1rem; border-bottom: 1px solid var(--line); }
  .nav .btn--small { margin-top: 18px; justify-content: center; font-size: 1rem; padding: 14px; }
  .burger { display: flex; }
  .featlist { grid-template-columns: 1fr; }
  .dish { gap: 16px; }
  .dish__dots { display: none; }
  .dish__line { flex-wrap: wrap; }
  .footer__grid { grid-template-columns: 1fr; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  html { scroll-behavior: auto; }
  [data-anim] { opacity: 1 !important; transform: none !important; }
}
