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

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

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

body {
  overflow-x: hidden;
  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);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---------- CSS VARIABLES ---------- */
:root {
  /* Colors — LIGHT THEME */
  --c-primary: #4d0d8c;
  --c-primary-light: #6b2bb0;
  --c-primary-dark: #3a0a69;
  --c-accent: #dd9440;
  --c-accent-light: rgba(221, 148, 64, 0.08);
  --c-accent-dark: #c07c2d;
  --c-bg: #faf9f6;
  --c-surface: #ffffff;
  --c-surface-alt: #f3f1ed;
  --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: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', 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 — Light theme, subtle */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05), 0 2px 4px rgba(0,0,0,0.03);
  --shadow-md: 0 2px 4px rgba(0,0,0,0.05), 0 8px 16px rgba(0,0,0,0.05), 0 16px 32px rgba(0,0,0,0.03);
  --shadow-lg: 0 4px 8px rgba(0,0,0,0.05), 0 16px 32px rgba(0,0,0,0.07), 0 32px 64px rgba(0,0,0,0.05);

  /* 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;
}

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

h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 600; line-height: 1.2; }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); font-weight: 600; line-height: 1.3; }

p {
  overflow-wrap: break-word;
  word-break: break-word;
  max-width: 65ch;
}

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

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

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

ul { list-style: none; }

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

.container--narrow {
  max-width: 800px;
}

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

.btn--pill { border-radius: var(--radius-full); }

.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--accent {
  background: var(--c-accent);
  color: #fff;
  border-color: var(--c-accent);
}
.btn--accent:hover {
  background: var(--c-accent-dark);
  border-color: var(--c-accent-dark);
  color: #fff;
  transform: translateY(-2px);
}

.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--lg {
  padding: clamp(0.85rem, 2vw, 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, 249, 246, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow-sm);
  padding: var(--space-xs) 0;
}

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

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

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.nav__links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--c-text-soft);
  text-decoration: none;
  position: relative;
  transition: color var(--transition-base);
}
.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  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 { color: var(--c-primary); }
.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__cta { flex-shrink: 0; }

/* Hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav__hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--c-text);
  border-radius: 2px;
  transition: all var(--transition-base);
}

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

.nav__close {
  position: absolute;
  top: var(--space-sm);
  right: var(--space-sm);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--c-text);
}

.nav__overlay-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
}
.nav__overlay-links a {
  font-family: var(--f-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--c-text);
  padding: 0.75rem 1.5rem;
  border-bottom: 1px solid var(--c-border);
  text-decoration: none;
  transition: color var(--transition-base);
}
.nav__overlay-links a:hover,
.nav__overlay-links a.is-active { color: var(--c-primary); }

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

body.menu-open { overflow: hidden; }

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

/* ---------- HERO ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-top: calc(var(--space-2xl) + 60px);
  padding-bottom: var(--space-2xl);
  background: var(--c-bg);
}

.hero__inner {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.hero__text {
  flex: 1 1 55%;
}

.hero__visual {
  flex: 1 1 45%;
}

.hero__badge {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--c-accent);
  margin-bottom: var(--space-sm);
  letter-spacing: 0.03em;
}

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

.underline-accent {
  border-bottom: 3px solid var(--c-accent);
  padding-bottom: 2px;
}

.hero__desc {
  color: var(--c-text-soft);
  font-size: clamp(1rem, 1.2vw, 1.15rem);
  margin-bottom: var(--space-md);
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  align-items: center;
  margin-bottom: var(--space-md);
}

.hero__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
  color: var(--c-text-soft);
  font-size: 0.95rem;
  transition: color var(--transition-base);
}
.hero__link:hover { color: var(--c-primary); }

.hero__reassurance {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm) var(--space-md);
  font-size: 0.85rem;
  color: var(--c-text-muted);
}
.hero__reassurance span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.hero__img-wrapper {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.hero__img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: heroImgScale 1.2s var(--ease-out) forwards;
}

@keyframes heroImgScale {
  from { transform: scale(1.06); opacity: 0.8; }
  to { transform: scale(1); opacity: 1; }
}

@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero__deco-circle {
  position: absolute;
  bottom: -120px;
  right: -80px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--c-accent-light) 0%, transparent 70%);
  z-index: 0;
  pointer-events: none;
}

@media (max-width: 768px) {
  .hero {
    padding-top: calc(var(--space-xl) + 60px);
    padding-bottom: var(--space-xl);
  }
  .hero__inner {
    flex-direction: column;
    text-align: center;
  }
  .hero__text, .hero__visual { width: 100%; flex: none; }
  .hero__ctas { justify-content: center; }
  .hero__reassurance { justify-content: center; }
  .hero__deco-circle { display: none; }
}

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

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

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

.section__header h2 {
  margin-top: var(--space-xs);
}

.section__tag {
  display: inline-block;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--c-accent);
  letter-spacing: 0.02em;
}

/* ---------- PAGE HERO (interior pages) ---------- */
.page-hero {
  padding-top: calc(var(--space-2xl) + 80px);
  padding-bottom: var(--space-xl);
  background: var(--c-bg);
  position: relative;
  overflow: hidden;
}

.page-hero__content {
  max-width: 700px;
}

.page-hero__content h1 {
  margin-top: var(--space-xs);
  margin-bottom: var(--space-sm);
  position: relative;
}
.page-hero__content h1::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--c-accent);
  margin-top: var(--space-sm);
  border-radius: 2px;
}

.page-hero__desc {
  color: var(--c-text-soft);
  font-size: clamp(1rem, 1.2vw, 1.15rem);
}

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

.feature-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  transition: all var(--transition-base);
  position: relative;
}
.feature-card:hover {
  box-shadow: var(--shadow-md);
  transform: scale(1.01);
}

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

.feature-card h3 {
  margin-bottom: var(--space-xs);
}

.feature-card p {
  color: var(--c-text-soft);
  font-size: 0.95rem;
}

/* ---------- CHIFFRES ---------- */
.section--chiffres {
  background: var(--c-surface-alt);
  padding: var(--space-xl) 0;
}

.chiffres-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr));
  gap: var(--space-md);
  text-align: center;
}

.chiffre__number {
  font-family: var(--f-display);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 700;
  color: var(--c-primary);
  line-height: 1;
}

.chiffre__suffix {
  font-family: var(--f-display);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 700;
  color: var(--c-primary);
}

.chiffre__label {
  display: block;
  margin-top: var(--space-xs);
  font-size: 0.9rem;
  color: var(--c-text-soft);
}

/* ---------- SPLIT LAYOUT ---------- */
.split {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.split--reverse {
  flex-direction: row-reverse;
}

.split__text {
  flex: 1 1 55%;
}

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

.split__text p {
  color: var(--c-text-soft);
  margin-bottom: var(--space-sm);
}

.split__text .btn {
  margin-top: var(--space-sm);
}

.split__visual {
  flex: 1 1 45%;
}

.split__visual img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  width: 100%;
  object-fit: cover;
}

@media (max-width: 768px) {
  .split,
  .split--reverse {
    flex-direction: column;
  }
  .split__text, .split__visual {
    width: 100%;
    flex: none;
  }
}

/* ---------- CHECK LIST ---------- */
.check-list {
  margin: var(--space-sm) 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.check-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--c-text-soft);
}

.check-list li i {
  color: var(--c-accent);
  flex-shrink: 0;
}

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

.temoignage-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  position: relative;
  transition: all var(--transition-base);
}
.temoignage-card:hover {
  box-shadow: var(--shadow-md);
  transform: scale(1.01);
}

.temoignage-card__quote {
  position: absolute;
  top: var(--space-xs);
  right: var(--space-sm);
  font-family: var(--f-display);
  font-size: 4.5rem;
  line-height: 1;
  color: var(--c-accent);
  opacity: 0.1;
  pointer-events: none;
}

.temoignage-card__stars {
  color: var(--c-accent);
  font-size: 1rem;
  margin-bottom: var(--space-xs);
  letter-spacing: 2px;
}

.star-empty {
  opacity: 0.3;
}

.temoignage-card p {
  color: var(--c-text-soft);
  font-size: 0.95rem;
  font-style: italic;
  margin-bottom: var(--space-sm);
}

.temoignage-card__author {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.temoignage-card__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--c-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.8rem;
  flex-shrink: 0;
}

.temoignage-card__author strong {
  display: block;
  font-size: 0.9rem;
  color: var(--c-text);
}

.temoignage-card__author span {
  font-size: 0.8rem;
  color: var(--c-text-muted);
}

/* ---------- CTA BAND ---------- */
.section--cta-band {
  padding: var(--space-lg) 0;
}

.cta-band {
  background: var(--c-accent-light);
  border: 1px solid rgba(221, 148, 64, 0.15);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.cta-band__text h2 {
  margin-bottom: var(--space-xs);
}

.cta-band__text p {
  color: var(--c-text-soft);
  margin: 0;
}

.cta-band__actions {
  display: flex;
  gap: var(--space-sm);
  flex-shrink: 0;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .cta-band {
    flex-direction: column;
    text-align: center;
  }
  .cta-band__actions {
    width: 100%;
    justify-content: center;
  }
}

/* ---------- HORAIRES ---------- */
.horaires-grid {
  display: flex;
  align-items: flex-start;
  gap: var(--space-xl);
}

.horaires-info {
  flex: 1 1 45%;
}

.horaires-info h2 {
  margin-top: var(--space-xs);
  margin-bottom: var(--space-sm);
}

.horaires-info p {
  color: var(--c-text-soft);
}

.horaires-table {
  flex: 1 1 55%;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.horaire-row {
  display: flex;
  justify-content: space-between;
  padding: var(--space-sm) var(--space-md);
  border-bottom: 1px solid var(--c-border);
  font-size: 0.95rem;
}

.horaire-row:last-child { border-bottom: none; }

.horaire-row span:first-child { font-weight: 600; color: var(--c-text); }
.horaire-row span:last-child { color: var(--c-text-soft); }

.horaire-row--closed span:last-child { color: var(--c-accent); font-weight: 600; }

@media (max-width: 768px) {
  .horaires-grid {
    flex-direction: column;
  }
  .horaires-info, .horaires-table { width: 100%; flex: none; }
}

/* ---------- MENU / LA CARTE ---------- */
.menu-jour-card {
  background: var(--c-surface);
  border: 2px solid var(--c-accent);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  max-width: 680px;
  margin: 0 auto;