/* ============================================
   BOULANGER — Restaurant Aussonne
   Design System & Styles
   ============================================ */

/* --- VARIABLES --- */
:root {
  /* Couleurs */
  --c-primary: #4d0d8c;
  --c-primary-light: #6b2cb0;
  --c-primary-dark: #3a0969;
  --c-accent: #dd9440;
  --c-accent-light: rgba(221, 148, 64, 0.08);
  --c-accent-dark: #c07a2a;
  --c-bg: #fafaf8;
  --c-surface: #ffffff;
  --c-surface-alt: #f3f2ef;
  --c-text: #1a1a2e;
  --c-text-soft: #4a4a5a;
  --c-text-muted: #9ca3af;
  --c-border: rgba(0,0,0,0.08);

  /* Typography */
  --f-display: 'Playfair Display', Georgia, serif;
  --f-body: 'Nunito', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing */
  --space-unit: clamp(1rem, 2vw, 1.5rem);
  --space-xs: calc(var(--space-unit) * 0.5);
  --space-sm: var(--space-unit);
  --space-md: calc(var(--space-unit) * 2);
  --space-lg: calc(var(--space-unit) * 3);
  --space-xl: calc(var(--space-unit) * 4);
  --space-2xl: calc(var(--space-unit) * 6);

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.06), 0 2px 4px rgba(0,0,0,0.04);
  --shadow-md: 0 2px 4px rgba(0,0,0,0.06), 0 8px 16px rgba(0,0,0,0.06), 0 16px 32px rgba(0,0,0,0.04);
  --shadow-lg: 0 4px 8px rgba(0,0,0,0.06), 0 16px 32px rgba(0,0,0,0.08), 0 32px 64px rgba(0,0,0,0.06);

  /* Transitions */
  --ease-out: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition-base: 0.3s var(--ease-out);
  --transition-slow: 0.5s var(--ease-out);

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 50px;
}

/* --- RESET & BASE --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--f-body);
  font-size: clamp(0.95rem, 1.1vw, 1.125rem);
  line-height: 1.7;
  color: var(--c-text);
  background-color: var(--c-bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.menu-open {
  overflow: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--f-display);
  line-height: 1.15;
  overflow-wrap: break-word;
  word-break: break-word;
  text-wrap: balance;
}

h1 { font-size: clamp(2.2rem, 5vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); font-weight: 700; }
h3 { font-size: clamp(1.15rem, 2vw, 1.5rem); font-weight: 600; line-height: 1.3; }
h4 { font-size: clamp(1rem, 1.5vw, 1.15rem); font-weight: 600; }

p {
  overflow-wrap: break-word;
  word-break: break-word;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--c-primary);
  text-decoration: none;
  transition: color var(--transition-base);
}

a:hover { color: var(--c-accent); }

ul { list-style: none; }

/* --- CONTAINER --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
}

/* --- UTILITIES --- */
.text-accent { color: var(--c-accent); }
.text-primary { color: var(--c-primary); }

/* --- BUTTONS --- */
.btn {
  min-height: 44px;
  padding: clamp(0.7rem, 2vw, 1rem) clamp(1.5rem, 3vw, 2rem);
  font-size: clamp(0.9rem, 1.1vw, 1rem);
  font-family: var(--f-body);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  white-space: nowrap;
  border-radius: var(--radius-full);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  line-height: 1.2;
}

.btn--primary {
  background: var(--c-primary);
  color: #fff;
  border-color: var(--c-primary);
}
.btn--primary:hover {
  background: var(--c-primary-dark);
  border-color: var(--c-primary-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn--outline {
  background: transparent;
  color: var(--c-primary);
  border-color: var(--c-primary);
}
.btn--outline:hover {
  background: var(--c-primary);
  color: #fff;
  transform: translateY(-2px);
}

.btn--white {
  background: #fff;
  color: var(--c-primary);
  border-color: #fff;
}
.btn--white:hover {
  background: var(--c-bg);
  border-color: var(--c-bg);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: var(--c-primary);
}

.btn--outline-white {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.5);
}
.btn--outline-white:hover {
  background: rgba(255,255,255,0.15);
  border-color: #fff;
  color: #fff;
  transform: translateY(-2px);
}

.btn--sm { padding: 0.5rem 1.2rem; font-size: 0.85rem; min-height: 38px; }
.btn--lg { padding: clamp(0.8rem, 2vw, 1.1rem) clamp(1.8rem, 3vw, 2.5rem); font-size: clamp(0.95rem, 1.2vw, 1.05rem); }
.btn--full { width: 100%; }

/* --- NAVIGATION --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: var(--space-sm) 0;
  transition: all var(--transition-base);
  padding-top: env(safe-area-inset-top, 0);
}

.nav--scrolled {
  background: rgba(250,250,248,0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--c-border), var(--shadow-sm);
  padding: var(--space-xs) 0;
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
}

.nav__logo {
  font-family: var(--f-display);
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  font-weight: 800;
  color: var(--c-primary);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.nav__logo:hover { color: var(--c-primary-dark); }

.nav__links {
  display: flex;
  gap: clamp(1rem, 2.5vw, 2rem);
  align-items: center;
}

.nav__links a {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--c-text);
  text-decoration: none;
  position: relative;
  padding: 0.25rem 0;
}

.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--c-accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--transition-base);
}

.nav__links a:hover::after,
.nav__links a.is-active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav__links a.is-active { color: var(--c-primary); }

.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.nav__hamburger span {
  display: block;
  width: 26px;
  height: 2.5px;
  background: var(--c-text);
  border-radius: 2px;
  transition: all var(--transition-base);
}

/* Nav overlay */
.nav__overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(250,250,248,0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transform: translateX(100%);
  transition: transform 0.35s var(--ease-out);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-lg);
}

.nav__overlay.is-open { transform: translateX(0); }

.nav__close {
  position: absolute;
  top: var(--space-sm);
  right: var(--space-sm);
  background: none;
  border: none;
  cursor: pointer;
  padding: 12px;
  color: var(--c-text);
}
.nav__close svg { width: 28px; height: 28px; }

.nav__overlay-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
}

.nav__overlay-links a {
  font-family: var(--f-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--c-text);
  padding: 0.75rem 1rem;
  transition: color var(--transition-base);
}
.nav__overlay-links a:hover { color: var(--c-accent); }

.nav__overlay-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  justify-content: center;
}

@media (max-width: 1023px) {
  .nav__links { display: none; }
  .nav__cta { display: none; }
  .nav__hamburger { display: flex; }
}

/* --- HERO --- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  z-index: 0;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(250,250,248,0.92) 40%, rgba(250,250,248,0.75) 100%);
  z-index: 1;
}

.hero__decor-circle {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--c-accent-light) 0%, transparent 70%);
  top: -100px;
  right: -150px;
  z-index: 2;
  pointer-events: none;
}

.hero__decor-dots {
  position: absolute;
  bottom: 10%;
  left: 5%;
  width: 150px;
  height: 150px;
  z-index: 2;
  pointer-events: none;
  background-image: radial-gradient(var(--c-primary) 1.5px, transparent 1.5px);
  background-size: 20px 20px;
  opacity: 0.07;
}

.hero__inner {
  position: relative;
  z-index: 3;
  padding: clamp(7rem, 15vw, 10rem) 0 clamp(3rem, 6vw, 5rem);
  width: 100%;
}

.hero__content { max-width: 700px; }

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1.2rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-full);
  backdrop-filter: blur(8px);
  background: rgba(255,255,255,0.6);
  color: var(--c-text-soft);
  margin-bottom: var(--space-md);
}

.hero__title {
  margin-bottom: var(--space-sm);
}

.hero__subtitle {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  color: var(--c-text-soft);
  max-width: 55ch;
  margin-bottom: var(--space-md);
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
}

.hero__metrics {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 1px solid var(--c-border);
}

.hero__metric-number {
  font-family: var(--f-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--c-primary);
  line-height: 1;
}

.hero__metric-plus {
  font-family: var(--f-display);
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  font-weight: 700;
  color: var(--c-accent);
}

.hero__metric-label {
  display: block;
  font-size: 0.85rem;
  color: var(--c-text-muted);
  margin-top: 0.25rem;
}

@media (max-width: 768px) {
  .hero {
    min-height: auto;
    padding: clamp(6rem, 18vw, 9rem) 0 clamp(3rem, 8vw, 5rem);
  }
  .hero__bg { background-attachment: scroll; }
  .hero__inner { padding: 0; }
  .hero__content { text-align: center; max-width: 100%; }
  .hero__subtitle { max-width: 100%; }
  .hero__ctas { justify-content: center; }
  .hero__metrics { justify-content: center; text-align: center; gap: var(--space-md); }
  .hero__decor-circle { width: 300px; height: 300px; top: -50px; right: -80px; }
}

/* --- PAGE HERO --- */
.page-hero {
  position: relative;
  overflow: hidden;
  background: var(--c-surface-alt);
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(77,13,140,0.05), transparent 70%);
  pointer-events: none;
}

.page-hero__inner {
  padding: clamp(7rem, 14vw, 9rem) 0 clamp(2.5rem, 5vw, 4rem);
}

.breadcrumb {
  font-size: 0.85rem;
  color: var(--c-text-muted);
  margin-bottom: var(--space-sm);
}
.breadcrumb a { color: var(--c-text-muted); }
.breadcrumb a:hover { color: var(--c-accent); }
.breadcrumb span { margin: 0 0.3rem; }

.page-hero__title {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-xs);
}

.accent-line {
  display: inline-block;
  width: 4px;
  height: 1.2em;
  background: var(--c-accent);
  border-radius: 2px;
  flex-shrink: 0;
}

.page-hero__subtitle {
  color: var(--c-text-soft);
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  max-width: 60ch;
}

/* --- SECTIONS --- */
.section {
  position: relative;
  overflow: hidden;
  padding: clamp(4rem, 8vw, 7rem) 0;
}

.section--alt { background: var(--c-surface-alt); }

.section__header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto var(--space-xl);
}

.section__tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--c-accent);
  margin-bottom: var(--space-sm);
}

.section__tag::before {
  content: '';
  display: inline-block;
  width: 30px;
  height: 2px;
  background: var(--c-accent);
  border-radius: 1px;
}

.section__title { margin-bottom: var(--space-xs); }

.section__subtitle {
  color: var(--c-text-soft);
  font-size: clamp(1rem, 1.3vw, 1.1rem);
  max-width: 55ch;
  margin: 0 auto;
}

/* --- GRID CARDS --- */
.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: var(--space-md);
}

/* --- CARD --- */
.card {
  background: var(--c-surface);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  box-shadow: var(--shadow-sm);
  transition: all 0.4s var(--ease-out);
  position: relative;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.card--accent-left {
  border-left: 3px solid var(--c-accent);
}

.card--accent-top {
  border-top: 3px solid var(--c-accent);
}

.card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--c-accent-light);
  border-radius: var(--radius-sm);
  color: var(--c-accent-dark);
  margin-bottom: var(--space-sm);
}
.card__icon svg { width: 24px; height: 24px; }

.card__title {
  margin-bottom: var(--space-xs);
}

.card__text {
  color: var(--c-text-soft);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* --- ABOUT PREVIEW --- */
.about-preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.about-preview--reverse .about-preview__image { order: 1; }
.about-preview--reverse .about-preview__text { order: 2; }

.about-preview__image {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.about-preview__image::after {
  content: '';
  position: absolute;
  bottom: -10px;
  right: -10px;
  width: 80%;
  height: 80%;
  border: 3px solid var(--c-accent);
  border-radius: var(--radius-md);
  z-index: -1;
  opacity: 0.3;
}

.about-preview__image img {
  border-radius: var(--radius-md);
  aspect-ratio: 4/3;
  object-fit: cover;
  width: 100%;
}

.about-preview__text .section__tag { margin-bottom: var(--space-sm); }
.about-preview__text h2 { margin-bottom: var(--space-sm); }
.about-preview__text p {
  color: var(--c-text-soft);
  margin-bottom: var(--space-sm);
  max-width: 50ch;
}
.about-preview__text .btn { margin-top: var(--space-sm); }

@media (max-width: 768px) {
  .about-preview {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
  .about-preview--reverse .about-preview__image { order: 0; }
  .about-preview--reverse .about-preview__text { order: 0; }
  .about-preview__text p { max-width: 100%; }
}

/* --- HOURS GRID --- */
.hours-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
  gap: var(--space-md);
  max-width: 900px;
  margin: 0 auto;
}

.hours-card {
  text-align: center;
  padding: var(--space-md);
  background: var(--c-surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: all 0.4s var(--ease-out);
}
.hours-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.hours-card__icon {
  color: var(--c-accent);
  margin-bottom: var(--space-xs);
}
.hours-card__icon svg { width: 32px; height: 32px; }

.hours-card h3 {
  margin-bottom: var(--space-xs);
  color: var(--c-primary);
}

.hours-card__time {
  font-family: var(--f-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--c-text);
}

.hours-card__days {
  font-size: 0.9rem;
  color: var(--c-text-muted);
}

.hours-note {
  text-align: center;
  color: var(--c-text-muted);
  font-size: 0.9rem;
  margin-top: var(--space-md);
}

/* --- TESTIMONIALS --- */
.testimonials-scroll {
  display: flex;
  gap: var(--space-md);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: var(--space-sm);
}

.testimonial {
  flex: 0 0 min(380px, 85vw);
  scroll-snap-align: start;
  background: var(--c-surface);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.testimonial__stars {
  color: var(--c-accent);
  font-size: 1.1rem;
  letter-spacing: 2px;
}
.star-muted { opacity: 0.3; }

.testimonial__text {
  color: var(--c-text-soft);
  font-style: italic;
  font-size: 0.95rem;
  flex: 1;
}

.testimonial__author {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--c-text);
  padding-top: var(--space-xs);
  border-top: 1px solid var(--c-border);
}

/* --- CTA BANNER --- */
.section--cta-banner {
  padding: clamp(3rem, 6vw, 5rem) 0;
}

.cta-banner {
  background: linear-gradient(135deg, var(--c-primary), var(--c-primary-dark));
  color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(2.5rem, 5vw, 4rem);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: rgba(221,148,64,0.15);
  pointer-events: none;
}

.cta-banner::after {
  content: '';
  position: absolute;
  bottom: -40px;
  left: -40px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  pointer-events: none;
}

.cta-banner h2 {
  color: #fff;
  margin-bottom: var(--space-xs);
}

.cta-banner p {
  color: rgba(255,255,255,0.85);
  margin-bottom: var(--space-md);
  max-width: 50ch;
  margin-inline: auto;
}

.cta-banner__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  justify-content: center;
}

/* --- MENU PAGE --- */
.menu-intro {
  max-width: 65ch;
  margin: 0 auto var(--space-xl);
  text-align: center;
  color: var(--c-text-soft);
}

.menu-category {
  margin-bottom: var(--space-xl);
}

.menu-category__header {
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-xs);
  border-bottom: 2px solid var(--c-accent);
}

.menu-category__header h2 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--c-primary);
}
.menu-category__header svg { width: 24px; height: 24px; color: var(--c-accent); }

.menu-items { display: flex; flex-direction: column; gap: var(--space-sm); }

.menu-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-sm);
  padding: var(--space-sm);
  background: var(--c-surface);
  border-radius: