:root {
  --green: #32cd32;
  --green-dark: #228b22;
  --green-medium: #3cb83c;
  --green-light: #eef9ee;
  --green-soft: #b8efb8;
  --green-muted: #52a852;
  --text: #1a2e1a;
  --text-muted: #5a6b5a;
  --bg: #fafcf9;
  --white: #ffffff;
  --shadow: 0 2px 16px rgba(34, 139, 34, 0.08);
  --shadow-lg: 0 8px 32px rgba(34, 139, 34, 0.12);
  --radius: 10px;
  --radius-lg: 14px;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --section-y: clamp(2.75rem, 6vw, 4rem);
  --gap: clamp(1rem, 2.5vw, 1.5rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
}

.container {
  width: min(1040px, 90vw);
  margin-inline: auto;
}

/* —— Header / Hero —— */
.site-header {
  color: var(--white);
  background: linear-gradient(165deg, var(--green-medium) 0%, var(--green) 40%, var(--green-dark) 100%);
  padding-bottom: var(--section-y);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1rem;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--white);
}

.lang-switch {
  display: flex;
  align-items: center;
  margin-left: 0.15rem;
  padding-left: 1.35rem;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-links .lang-flag {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.05rem;
  height: 2.05rem;
  padding: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  border: 1.5px solid rgba(255, 255, 255, 0.38);
  box-shadow:
    0 2px 10px rgba(0, 0, 0, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  overflow: hidden;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition:
    transform 0.22s ease,
    background 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease;
}

.nav-links .lang-flag:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.24);
  border-color: rgba(255, 255, 255, 0.62);
  transform: scale(1.07);
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.2),
    0 0 0 3px rgba(255, 255, 255, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.38);
}

.lang-flag-icon {
  width: 100%;
  height: 100%;
  display: block;
}

.nav-links .lang-flag:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.9);
  outline-offset: 3px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 1px;
  transition: transform 0.25s, opacity 0.25s;
}

.hero {
  padding-top: clamp(1.5rem, 5vw, 3rem);
  max-width: 36rem;
}

.hero-tag {
  margin: 0 0 0.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  opacity: 0.88;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5.5vw, 2.85rem);
  font-weight: 700;
  line-height: 1.12;
  margin: 0 0 0.75rem;
  letter-spacing: -0.03em;
}

.hero-lead {
  margin: 0 0 1.5rem;
  font-size: 1.05rem;
  opacity: 0.92;
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.25rem;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 999px;
  border: 2px solid transparent;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--white);
  color: var(--green-dark);
}

.btn-primary:hover {
  background: var(--green-light);
}

.btn-outline {
  border-color: rgba(255, 255, 255, 0.65);
  color: var(--white);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--white);
}

.btn-outline-dark {
  border-color: var(--green);
  color: var(--green-dark);
  background: transparent;
}

.btn-outline-dark:hover {
  background: var(--green-light);
}

/* —— Sections —— */
.section {
  padding-block: var(--section-y);
}

.section-tint {
  background: var(--green-light);
}

.section-head {
  margin-bottom: var(--gap);
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3.5vw, 2rem);
  color: var(--green-dark);
  margin: 0 0 0.35rem;
  letter-spacing: -0.02em;
}

.section-lead {
  margin: 0;
  max-width: 48ch;
  color: var(--text-muted);
  font-size: 1rem;
}

.section-head--split {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--gap);
}

.section-head--split .section-lead {
  margin-top: 0.15rem;
}

.section-head--inline h2 {
  margin: 0;
}

/* —— Concept —— */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
  list-style: none;
  margin: 0 0 var(--gap);
  padding: 0;
}

.feature-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid rgba(50, 205, 50, 0.12);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.feature-media {
  aspect-ratio: 5 / 4;
  overflow: hidden;
  background: var(--green-dark);
}

.feature-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.feature-card:hover .feature-media img {
  transform: scale(1.03);
}

.feature-body {
  padding: 1rem 1.15rem 1.15rem;
}

.feature-body h3 {
  margin: 0 0 0.3rem;
  font-size: 1.02rem;
  color: var(--green-dark);
}

.feature-body p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* —— Cette semaine —— */
#semaine .section-head .menu-week-meta {
  margin: 0.15rem 0 0;
}

#semaine .section-lead {
  margin-top: 0.35rem;
}

.week-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}

.menu-card--dark h3 {
  color: var(--green-soft);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* —— Horaires —— */
.open-status {
  flex: 0 1 320px;
  background: var(--white);
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(50, 205, 50, 0.15);
}

.open-status-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.55rem;
  border-radius: 5px;
  margin-bottom: 0.35rem;
}

.open-status-badge--open {
  background: #e6f7e6;
  color: #0a6b0a;
}

.open-status-badge--closed {
  background: #fdeaea;
  color: #9b1c1c;
}

.open-status-detail {
  margin: 0;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.4;
}

.open-status-sub {
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.open-status-time {
  margin: 0.35rem 0 0;
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.35;
}

.hours-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap);
  margin-bottom: 0.75rem;
}

.hours-card {
  background: var(--white);
  padding: 1.25rem 1.35rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.hours-card h3 {
  margin: 0 0 0.5rem;
  color: var(--green-dark);
  font-size: 1rem;
}

.hours-card p {
  margin: 0;
  font-size: 0.95rem;
}

.hours-card--accent {
  border: 2px solid var(--green);
  background: linear-gradient(135deg, var(--white), var(--green-light));
}

.muted {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 0.25rem !important;
}

.fine-print {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* —— Tarifs —— */
.menu-week-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.menu-week-meta:empty {
  display: none;
}

.menu-card {
  background: var(--white);
  padding: 1.1rem 1.2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(50, 205, 50, 0.12);
}

.menu-card h3,
.menu-card h4 {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: 1.02rem;
  color: var(--green-dark);
  line-height: 1.25;
}

.menu-card--dark {
  background: linear-gradient(160deg, #1a5c1a, #2d7a2d);
  color: var(--white);
  border-color: transparent;
  padding: 1.15rem 1.25rem;
}

.menu-card--featured {
  border: 2px solid var(--green);
  background: linear-gradient(160deg, var(--white), var(--green-light));
}

.menu-card--compact .menu-detail {
  margin: 0 0 0.25rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.menu-single-price {
  margin: 0;
  font-size: 1.25rem;
  color: var(--green-dark);
}

.menu-sub {
  display: block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-top: 0.1rem;
}

.tag-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.tag-list li {
  padding: 0.45rem 0.65rem;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 5px;
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1.3;
}

.menu-card:not(.menu-card--dark) .tag-list li {
  background: rgba(50, 205, 50, 0.2);
  color: var(--green-dark);
}

.menu-week-empty,
.menu-week-loading {
  background: transparent !important;
  font-weight: 500 !important;
  opacity: 0.7;
}

.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.price-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.price-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  padding: 0.32rem 0;
  border-bottom: 1px dashed rgba(50, 205, 50, 0.18);
  font-size: 0.92rem;
}

.price-list li:last-child {
  border-bottom: none;
}

.price-list span {
  color: var(--text-muted);
}

.price-list strong {
  color: var(--green-dark);
  white-space: nowrap;
}

.price-list--compact li {
  padding: 0.28rem 0;
}

.tarifs-foot {
  margin: var(--gap) 0 0;
  text-align: center;
  font-size: 0.9rem;
}

.tarifs-foot a {
  color: var(--green-dark);
  font-weight: 600;
  text-decoration: none;
}

.tarifs-foot a:hover {
  text-decoration: underline;
}

/* —— Galerie —— */
.gallery-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.gallery-item {
  position: relative;
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.03);
}

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 40, 0, 0.55), transparent 55%);
  pointer-events: none;
}

.gallery-item figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  margin: 0;
  padding: 0.5rem 0.65rem;
  color: var(--white);
  font-weight: 600;
  font-size: 0.8rem;
}

/* —— Contact —— */
.contact-block .section-head {
  margin-bottom: 1rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 1.35fr;
  gap: var(--gap);
  align-items: stretch;
}

address {
  font-style: normal;
  margin: 0 0 1.25rem;
  line-height: 1.6;
  font-size: 1rem;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
}

.contact-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--green-dark);
  text-decoration: none;
  padding: 0.65rem 0;
}

.contact-link:hover {
  text-decoration: underline;
}

.map-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  min-height: 240px;
}

.map-wrap iframe {
  width: 100%;
  height: 100%;
  min-height: 280px;
  border: 0;
  display: block;
}

/* —— Footer —— */
.footer {
  background: var(--green-dark);
  color: rgba(255, 255, 255, 0.85);
  padding: 1.25rem 0;
  font-size: 0.88rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.footer p {
  margin: 0;
}

.back-top {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
}

.back-top:hover {
  text-decoration: underline;
}

/* —— Mobile —— */
@media (max-width: 900px) {
  .features {
    grid-template-columns: 1fr;
  }

  .week-cards {
    grid-template-columns: 1fr;
  }

  .price-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hours-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    width: min(260px, 82vw);
    height: 100vh;
    flex-direction: column;
    background: var(--green-dark);
    padding: 4.5rem 1.75rem 2rem;
    gap: 1rem;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    box-shadow: -6px 0 24px rgba(0, 0, 0, 0.18);
    z-index: 100;
  }

  .nav-open .nav-links {
    transform: translateX(0);
  }

  .nav-open .nav-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-open .nav-toggle span:nth-child(2) {
    opacity: 0;
  }

  .nav-open .nav-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .lang-switch {
    margin-left: 0;
    margin-top: 0.35rem;
    padding-left: 0;
    padding-top: 1.1rem;
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
  }

  .section-head--split {
    flex-direction: column;
  }

  .open-status {
    flex: 1 1 auto;
    max-width: none;
  }

  .price-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .gallery-strip {
    grid-template-columns: 1fr;
  }

  .gallery-item {
    aspect-ratio: 16 / 10;
  }
}
