/* ==================================================
   VARIABLES
================================================== */
:root {
  --accent: #a0522d;
  --accent-dark: #7a3d20;
  --green: #007a37;
  --bg: #fffaf3;
  --card: #fff8f0;
  --max: 1100px;
  --nav-h: 70px;
}

/* ==================================================
   RESET / BASE
================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  background: var(--bg);
  color: #222;
  line-height: 1.5;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

/* ==================================================
   NAVBAR (mobile = statique)
================================================== */
nav {
  background: #fff8f0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-inner {
  max-width: var(--max);
  margin: auto;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.brand {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--accent);
}

.brand img {
  height: 44px;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.nav-links a {
  padding: 8px 12px;
  border-radius: 8px;
  font-weight: 600;
  background: #fff;
  transition: background 0.2s, color 0.2s;
}

.nav-links a:hover {
  background: #f5e8da;
  color: var(--green);
}

/* ==================================================
   HERO
================================================== */
.hero-inner {
  margin: 12px;
  height: 240px;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
}

.hero-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 14px;
  color: white;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.8);
}

.hero-text h1 {
  font-size: 1.4rem;
  margin-bottom: 6px;
}

.hero-text h4 {
  font-size: 1rem;
  font-weight: 500;
}

/* ==================================================
   TITRES DE SECTIONS
================================================== */
.section-title {
  text-align: center;
  color: var(--accent);
  font-size: 1.4rem;
  margin: 36px 0 16px;
}

/* ==================================================
   MENU
================================================== */
.menu-grid {
  max-width: var(--max);
  margin: auto;
  padding: 0 14px 28px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.card {
  background: var(--card);
  border-radius: 14px;
  padding: 14px;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.menu-img {
  max-width: 140px;
  margin: 0 auto 10px;
  border-radius: 12px;
}

/* ==================================================
   SERVICES
================================================== */
.services-wrap {
  max-width: var(--max);
  margin: auto;
  padding: 0 14px 36px;
  text-align: center;
}

.services-intro {
  background: rgba(255, 255, 255, 0.6);
  padding: 18px 14px;
  border-radius: 14px;
}

.services-intro img {
  width: 180px;
  margin: 0 auto 12px;
  border-radius: 12px;
}

.services-intro h2 {
  color: var(--accent-dark);
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.services-intro p {
  max-width: 760px;
  margin: auto;
}

/* ==================================================
   CONTACT
================================================== */
.contact-banner {
  max-width: var(--max);
  margin: 36px 14px;
  padding: 24px 14px;
  background: #fef6e4;
  border-radius: 14px;
  text-align: center;
}

.contact-block {
  margin-bottom: 16px;
}

.label {
  font-weight: 700;
  color: var(--accent-dark);
}

.contact-logo {
  height: 56px;
  margin: 18px auto 0;
}

/* ==================================================
   FOOTER
================================================== */
.site-footer {
  text-align: center;
  font-size: 0.9rem;
  color: #555;
  margin: 20px 0;
}

/* ==================================================
   BOUTON BACK TO TOP
================================================== */
#backToTop {
  position: fixed;
  right: 16px;
  bottom: 20px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  background: var(--accent);
  color: white;
  font-size: 20px;
  cursor: pointer;
  display: none;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

#backToTop:hover {
  background: var(--green);
}

/* ==================================================
   ALLERGENS
================================================== */
.allergens-note {
  max-width: var(--max);
  margin: 10px auto 30px;
  padding: 12px 16px;
  background: #fff2e6;
  color: var(--accent);
  font-size: 0.9rem;
  border-radius: 8px;
  text-align: center;
}

/* ==================================================
   DESKTOP (>= 768px)
================================================== */
@media (min-width: 768px) {
  nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--nav-h);
  }

  html {
    scroll-padding-top: calc(var(--nav-h) + 10px);
  }

  .nav-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    height: 100%;
  }

  .nav-links {
    justify-content: flex-end;
  }

  .hero-inner {
    height: 420px;
    max-width: 1600px;
    margin: 18px auto 0;
  }

  .hero-text h1 {
    font-size: 2.4rem;
  }

  .hero-text h4 {
    font-size: 1.3rem;
  }

  .menu-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    padding: 0 18px 36px;
  }

  .services-intro {
    padding: 26px;
  }

  .contact-banner {
    margin: 40px auto;
    padding: 30px 18px;
  }
}
