/* ── Design tokens ────────────────────────────────────────────────────────── */
:root {
  --cream:       #FDF6EC;
  --cream-dark:  #F0E5D0;
  --dark:        #1A0F00;
  --brown:       #5C3D2E;
  --brown-lt:    #8B6347;
  --gold:        #C8923A;
  --gold-lt:     #E8C275;
  --gold-pale:   #F5E9C8;
  --white:       #FFFFFF;
  --text:        #2C1A0A;
  --text-muted:  #7A5C42;
  --radius:      12px;
  --radius-lg:   20px;
  --shadow:      0 4px 24px rgba(26,15,0,.10);
  --shadow-lg:   0 12px 48px rgba(26,15,0,.16);
  --transition:  .3s cubic-bezier(.4,0,.2,1);
  --nav-h:       72px;
}

/* ── Reset & base ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
p { margin-bottom: .9em; }
p:last-child { margin-bottom: 0; }

/* ── Typography ───────────────────────────────────────────────────────────── */
h1,h2,h3,h4 { font-family: 'Playfair Display', serif; line-height: 1.2; }

/* ── Layout helpers ───────────────────────────────────────────────────────── */
.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.text-center { text-align: center; }
.section { padding: 100px 0; }
.bg-cream { background: var(--cream); }
.bg-dark  { background: var(--dark); }
.bg-gold  { background: var(--gold); }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
@media(max-width:768px){ .split{ grid-template-columns:1fr; gap:40px; } }

/* ── Navigation ───────────────────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-h);
  transition: background var(--transition), box-shadow var(--transition);
}
.nav.scrolled {
  background: var(--dark);
  box-shadow: 0 2px 20px rgba(0,0,0,.4);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  height: 100%; display: flex; align-items: center;
  justify-content: space-between; padding: 0 24px;
}
.logo { display: flex; flex-direction: column; line-height: 1.1; }
.logo-main {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem; font-weight: 700;
  color: var(--white);
  letter-spacing: .02em;
}
.logo-sub {
  font-size: .72rem; color: var(--gold);
  letter-spacing: .15em; text-transform: uppercase;
}
.nav-links {
  display: flex; align-items: center; gap: 8px;
}
.nav-links a {
  color: rgba(255,255,255,.85);
  font-size: .88rem; font-weight: 500;
  padding: 8px 14px; border-radius: 8px;
  transition: color var(--transition), background var(--transition);
}
.nav-links a:hover { color: var(--white); background: rgba(255,255,255,.08); }
.nav-tel {
  color: var(--gold) !important;
  border: 1px solid var(--gold) !important;
  border-radius: 24px !important;
  padding: 7px 16px !important;
}
.nav-tel:hover { background: var(--gold) !important; color: var(--dark) !important; }
.burger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 6px;
}
.burger span { display: block; width: 24px; height: 2px; background: var(--white); border-radius: 2px; transition: var(--transition); }
@media(max-width:900px){
  .burger { display: flex; }
  .nav-links {
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    background: var(--dark); flex-direction: column; gap: 0;
    padding: 16px; transform: translateY(-120%); opacity: 0;
    transition: var(--transition);
    pointer-events: none;
  }
  .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: all; }
  .nav-links a { padding: 14px 20px; width: 100%; }
}

/* ── Hero ─────────────────────────────────────────────────────────────────── */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    linear-gradient(160deg, rgba(26,15,0,.78) 0%, rgba(92,61,46,.65) 60%, rgba(200,146,58,.35) 100%),
    url('https://images.unsplash.com/photo-1414235077428-338989a2e8c0?auto=format&fit=crop&w=1920&q=80')
    center/cover no-repeat;
  transform: scale(1.05);
  animation: heroZoom 20s ease-in-out infinite alternate;
}
@keyframes heroZoom { from{ transform:scale(1.05); } to{ transform:scale(1.12); } }

.hero-content {
  position: relative; z-index: 2;
  text-align: center; padding: 40px 24px; max-width: 780px;
  animation: fadeUp .9s ease both;
}
@keyframes fadeUp { from{opacity:0;transform:translateY(30px)} to{opacity:1;transform:translateY(0)} }

.hero-tag {
  font-size: .8rem; letter-spacing: .25em; text-transform: uppercase;
  color: var(--gold-lt); margin-bottom: 20px; font-weight: 500;
}
.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(3rem, 9vw, 6.5rem);
  color: var(--white); line-height: 1.05; margin-bottom: 24px;
  text-shadow: 0 4px 24px rgba(0,0,0,.4);
}
.hero-title em { color: var(--gold-lt); font-style: italic; }
.hero-desc {
  font-size: 1.1rem; color: rgba(255,255,255,.82);
  margin-bottom: 36px; line-height: 1.7;
}
.hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 40px; }
.hero-badges {
  display: flex; gap: 24px; justify-content: center; flex-wrap: wrap;
  color: rgba(255,255,255,.7); font-size: .82rem;
}
.hero-badges span { display: flex; align-items: center; gap: 6px; }
.hero-scroll {
  position: absolute; bottom: 36px; left: 50%; transform: translateX(-50%);
  z-index: 2;
}
.scroll-dot {
  width: 30px; height: 50px; border: 2px solid rgba(255,255,255,.4);
  border-radius: 15px; position: relative;
}
.scroll-dot::after {
  content: ''; position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
  width: 6px; height: 6px; background: var(--gold); border-radius: 50%;
  animation: scrollDot 1.8s ease-in-out infinite;
}
@keyframes scrollDot { 0%,100%{top:8px;opacity:1} 80%{top:28px;opacity:0} }

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 30px; border-radius: 50px;
  font-weight: 600; font-size: .92rem;
  transition: var(--transition); cursor: pointer;
  border: 2px solid transparent;
}
.btn-gold { background: var(--gold); color: var(--dark); }
.btn-gold:hover { background: var(--gold-lt); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(200,146,58,.4); }
.btn-outline { border-color: rgba(255,255,255,.6); color: var(--white); }
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,.1); }
.btn-dark { background: var(--dark); color: var(--white); }
.btn-dark:hover { background: var(--brown); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-lg { padding: 18px 40px; font-size: 1.05rem; }

/* ── Section headers ──────────────────────────────────────────────────────── */
.section-header { text-align: center; margin-bottom: 60px; }
.section-tag {
  font-size: .75rem; letter-spacing: .25em; text-transform: uppercase;
  color: var(--gold); font-weight: 600; margin-bottom: 12px;
  display: block;
}
.section-tag.light { color: var(--gold-lt); }
.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--dark); margin-bottom: 16px;
}
.section-title.light { color: var(--white); }
.section-sub { color: var(--text-muted); font-size: .95rem; max-width: 520px; margin: 0 auto; }

/* ── À propos ─────────────────────────────────────────────────────────────── */
.split-text .section-tag { text-align: left; }
.split-text .section-title { text-align: left; }
.split-text p { color: var(--text-muted); margin-bottom: 1rem; }
.services-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
  margin: 24px 0;
}
.service-item {
  background: var(--white); border-radius: var(--radius);
  padding: 12px 14px; font-size: .85rem; font-weight: 500;
  box-shadow: var(--shadow); text-align: center;
}
.note { font-size: .82rem; color: var(--brown-lt); font-style: italic; }
.visual-card { position: relative; }
.visual-img {
  width: 100%; height: 420px; border-radius: var(--radius-lg);
  background: var(--cream-dark); box-shadow: var(--shadow-lg);
}
.visual-stat {
  position: absolute; bottom: -20px; right: -20px;
  background: var(--gold); color: var(--dark);
  border-radius: var(--radius); padding: 20px 24px;
  display: flex; flex-direction: column; align-items: center;
  box-shadow: var(--shadow-lg);
}
.stat-num { font-family: 'Playfair Display',serif; font-size: 2.4rem; font-weight: 700; line-height: 1; }
.stat-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 600; }
@media(max-width:768px){ .visual-stat{ right:0; bottom:-10px; } }

/* ── Plat du jour ─────────────────────────────────────────────────────────── */
.plat-wrapper { max-width: 700px; margin: 0 auto; }
.plat-loading { color: rgba(255,255,255,.4); font-style: italic; padding: 60px; }
.plat-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(200,146,58,.3);
  border-radius: var(--radius-lg);
  padding: 48px; margin-top: 12px;
  animation: fadeUp .5s ease both;
}
.plat-date {
  font-size: .75rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 32px;
}
.plat-row { display: flex; flex-direction: column; gap: 20px; }
.plat-item { border-bottom: 1px solid rgba(255,255,255,.08); padding-bottom: 20px; }
.plat-item:last-child { border: none; padding-bottom: 0; }
.plat-item-label {
  font-size: .72rem; text-transform: uppercase; letter-spacing: .18em;
  color: var(--gold); font-weight: 600; margin-bottom: 6px;
}
.plat-item-name { color: var(--white); font-size: 1.15rem; font-family: 'Playfair Display',serif; }
.plat-notes { color: rgba(255,255,255,.5); font-size: .85rem; margin-top: 8px; }
.plat-empty {
  color: rgba(255,255,255,.45); font-style: italic;
  padding: 60px; font-size: 1rem;
}

/* ── Formules ─────────────────────────────────────────────────────────────── */
.formules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}
.formule-card {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 36px 28px; box-shadow: var(--shadow);
  border-top: 4px solid var(--gold);
  transition: transform var(--transition), box-shadow var(--transition);
  animation: fadeUp .5s ease both;
}
.formule-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.formule-name { font-family: 'Playfair Display',serif; font-size: 1.3rem; margin-bottom: 8px; }
.formule-price {
  font-size: 2rem; font-weight: 700; color: var(--gold);
  font-family: 'Playfair Display',serif; margin-bottom: 6px;
}
.formule-price-sat {
  font-size: .85rem; color: var(--text-muted);
  margin-bottom: 20px;
  padding: 5px 12px;
  background: var(--cream-dark);
  border-radius: 20px;
  display: inline-block;
}
.formule-lines { display: flex; flex-direction: column; gap: 6px; }
.formule-line { font-size: .88rem; color: var(--text-muted); }
.formule-line.separator { color: var(--gold); font-weight: 700; font-size: 1.1rem; text-align: center; }
.formules-extras {
  text-align: center; background: var(--cream-dark);
  border-radius: var(--radius); padding: 24px;
  font-size: .88rem; color: var(--text-muted);
}
.formules-extras p { margin-bottom: 6px; }
.card-skeleton {
  height: 320px; background: linear-gradient(90deg,#e8d5b7 25%,#f5ead0 50%,#e8d5b7 75%);
  background-size: 200% 100%; border-radius: var(--radius-lg);
  animation: shimmer 1.4s infinite;
}
@keyframes shimmer { 0%{background-position:200% 0} 100%{background-position:-200% 0} }

/* ── Carte (tabs) ─────────────────────────────────────────────────────────── */
.tabs {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-bottom: 40px; padding-bottom: 2px;
  border-bottom: 2px solid var(--cream-dark);
}
.tab {
  padding: 10px 22px; border-radius: 50px;
  border: 2px solid var(--cream-dark);
  background: none; cursor: pointer;
  font-size: .88rem; font-weight: 500;
  color: var(--text-muted); transition: var(--transition);
  font-family: 'Inter', sans-serif;
}
.tab:hover { border-color: var(--gold); color: var(--gold); }
.tab.active { background: var(--gold); border-color: var(--gold); color: var(--dark); font-weight: 600; }
.carte-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
  min-height: 200px;
}
.menu-card {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 16px; padding: 22px 24px;
  background: var(--cream); border-radius: var(--radius);
  border-left: 3px solid var(--gold);
  transition: transform var(--transition), box-shadow var(--transition);
  animation: fadeUp .4s ease both;
}
.menu-card:hover { transform: translateX(4px); box-shadow: var(--shadow); }
.menu-card-info { flex: 1; }
.menu-card-name { font-family: 'Playfair Display',serif; font-size: 1.05rem; margin-bottom: 4px; }
.menu-card-desc { font-size: .82rem; color: var(--text-muted); line-height: 1.5; }
.menu-card-price {
  font-family: 'Playfair Display',serif;
  font-size: 1.2rem; font-weight: 700;
  color: var(--gold); white-space: nowrap;
}
.menu-badges { display: flex; flex-wrap: wrap; gap: 5px; margin: 4px 0 6px; }
.menu-badge {
  font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em;
  padding: 3px 9px; border-radius: 20px; color: #fff;
}

.cat-subtitle {
  font-size: .92rem; color: var(--text-muted); margin: -28px 0 32px;
  min-height: 1.4em;
}

.menu-allergens { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.allergen-icon {
  font-size: .85rem; padding: 2px 6px; border-radius: 8px;
  background: rgba(0,0,0,.05); cursor: default;
  transition: transform .15s;
}
.allergen-icon:hover { transform: scale(1.2); }

/* ── Pizzas ───────────────────────────────────────────────────────────────── */
.pizzas-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
@media(max-width:768px){ .pizzas-layout{ grid-template-columns:1fr; gap:40px; } }
.pizzas-subhead {
  font-family: 'Playfair Display',serif; font-size: 1.6rem;
  margin-bottom: 24px; padding-bottom: 16px;
  border-bottom: 2px solid var(--gold-pale);
}
.menu-list { display: flex; flex-direction: column; gap: 16px; }
.menu-list .menu-card { background: var(--white); }
.pizzas-note {
  margin-top: 24px; background: var(--gold-pale);
  border-radius: var(--radius); padding: 20px;
  font-size: .85rem; color: var(--brown);
}
.pizzas-note p { margin-bottom: 4px; }

/* ── Réservation ─────────────────────────────────────────────────────────── */
#reservation .section-header { margin-bottom: 48px; }

.reservation-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 48px;
  align-items: start;
}

/* Labels et champs sur fond sombre */
#reservation .res-field label { color: rgba(255,255,255,.7); }
#reservation .res-field input,
#reservation .res-field select,
#reservation .res-field textarea {
  background: rgba(255,255,255,.07);
  border-color: rgba(255,255,255,.18);
  color: var(--white);
}
#reservation .res-field input::placeholder,
#reservation .res-field textarea::placeholder { color: rgba(255,255,255,.35); }
#reservation .res-field select option { background: var(--dark); color: var(--white); }
#reservation .res-field input:focus,
#reservation .res-field select:focus,
#reservation .res-field textarea:focus { border-color: var(--gold); background: rgba(255,255,255,.11); }

.res-form { display: flex; flex-direction: column; gap: 0; }
.res-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.res-row .res-field--sm { max-width: 120px; }
.res-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.res-field label {
  font-size: .8rem; font-weight: 600; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: .07em;
}
.res-field input,
.res-field select,
.res-field textarea {
  padding: 12px 16px;
  border: 2px solid var(--cream-dark);
  border-radius: var(--radius);
  font-size: .95rem; font-family: 'Inter', sans-serif;
  color: var(--text); background: var(--white);
  outline: none; transition: border-color var(--transition);
}
.res-field input:focus,
.res-field select:focus,
.res-field textarea:focus { border-color: var(--gold); }
.res-field textarea { resize: vertical; min-height: 88px; }

.res-status {
  padding: 12px 16px; border-radius: var(--radius);
  font-size: .9rem; font-weight: 500; margin-bottom: 16px;
}
.res-status--success { background: #eafaf1; color: #1e8449; border: 1.5px solid #a9dfbf; }
.res-status--error   { background: #fdf2f2; color: #c0392b; border: 1.5px solid #f5c6c6; }

.btn-res {
  padding: 14px 32px; font-size: 1rem;
  border-radius: 50px; width: 100%; justify-content: center;
}

/* Contact card */
.res-contact-card {
  background: var(--dark); color: var(--white);
  border-radius: 20px; padding: 36px 32px;
  text-align: center;
}
.res-contact-icon { font-size: 2.2rem; margin-bottom: 12px; }
.res-contact-card h3 {
  font-family: 'Playfair Display', serif; font-size: 1.4rem;
  margin-bottom: 10px;
}
.res-contact-card p { font-size: .9rem; color: rgba(255,255,255,.65); margin-bottom: 20px; }
.res-contact-card .btn-dark {
  background: var(--gold); color: var(--dark);
  border-color: var(--gold); font-size: 1.05rem;
  padding: 13px 28px; border-radius: 50px;
  display: inline-flex; font-weight: 700;
}
.res-contact-card .btn-dark:hover { background: var(--gold-lt); border-color: var(--gold-lt); }

.res-divider { border: none; border-top: 1px solid rgba(255,255,255,.12); margin: 24px 0; }
.res-info-list { list-style: none; text-align: left; display: flex; flex-direction: column; gap: 10px; }
.res-info-list li { font-size: .88rem; color: rgba(255,255,255,.75); }

@media(max-width: 860px) {
  .reservation-layout { grid-template-columns: 1fr; }
  .res-contact-card { order: -1; }
}
@media(max-width: 560px) {
  .res-row { grid-template-columns: 1fr; }
  .res-row .res-field--sm { max-width: 100%; }
}

/* ── Contact ─────────────────────────────────────────────────────────────── */
.contact-block { display: flex; flex-direction: column; gap: 24px; margin-top: 32px; }
.contact-item { display: flex; gap: 16px; align-items: flex-start; }
.contact-icon { font-size: 1.4rem; flex-shrink: 0; margin-top: 2px; }
.contact-item a { color: var(--gold); font-weight: 500; }
.contact-item a:hover { text-decoration: underline; }
.map-iframe {
  width: 100%; height: 420px; border-radius: var(--radius-lg);
  border: none; box-shadow: var(--shadow-lg);
}

/* ── Footer ───────────────────────────────────────────────────────────────── */
.footer { background: var(--dark); color: rgba(255,255,255,.6); padding: 60px 0 32px; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 32px; text-align: center; }
.footer-brand .logo-main { color: var(--white); font-size: 1.4rem; display: block; margin-bottom: 8px; }
.footer-brand p { font-size: .88rem; color: rgba(255,255,255,.45); }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; justify-content: center; }
.footer-links a { color: rgba(255,255,255,.55); font-size: .88rem; transition: color var(--transition); }
.footer-links a:hover { color: var(--gold); }
.footer-copy { font-size: .78rem; color: rgba(255,255,255,.3); }

/* ── Reveal animations ────────────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media(max-width:600px) {
  .section { padding: 72px 0; }
  .services-grid { grid-template-columns: repeat(2,1fr); }
  .hero-cta { flex-direction: column; align-items: center; }
  .hero-badges { flex-direction: column; gap: 10px; }
  .formule-card { padding: 28px 20px; }
  .carte-grid { grid-template-columns: 1fr; }
}
