/* ============================================
   CAFÉ DE LA HALLE — Style principal
   Palette : #0d0d0d (fond), #c9a84c (or), #f5f0e8 (blanc cassé)
   Typos  : Playfair Display (titres), Inter (corps)
   ============================================ */

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  line-height: 1.7;
  color: #f5f0e8;
  background-color: #0d0d0d;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: #c9a84c;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #e0c06a;
}

ul {
  list-style: none;
}

address {
  font-style: normal;
}

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- HEADER / NAV — Centré, épuré, sans logo --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: background-color 0.4s ease, box-shadow 0.4s ease;
}

.header.scrolled {
  background-color: rgba(13, 13, 13, 0.92);
  box-shadow: 0 1px 0 rgba(201, 168, 76, 0.1);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 24px;
}

.nav-links {
  display: flex;
  gap: 40px;
}

.nav-links a {
  color: rgba(245, 240, 232, 0.7);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.3s ease;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: #c9a84c;
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: #c9a84c;
}

.nav-links a:hover::after {
  width: 100%;
}

/* Hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
  position: absolute;
  right: 24px;
}

.hamburger,
.hamburger::before,
.hamburger::after {
  display: block;
  width: 24px;
  height: 2px;
  background-color: #f5f0e8;
  transition: all 0.3s ease;
}

.hamburger {
  position: relative;
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  left: 0;
}

.hamburger::before {
  top: -7px;
}

.hamburger::after {
  top: 7px;
}

.nav-toggle.active .hamburger {
  background-color: transparent;
}

.nav-toggle.active .hamburger::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle.active .hamburger::after {
  top: 0;
  transform: rotate(-45deg);
}

/* --- HERO — Vidéo en fond, logo très grand --- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(13, 13, 13, 0.65);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 24px;
}

.hero-logo {
  width: 500px;
  max-width: 80vw;
  margin: 0 auto 48px;
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-weight: 500;
  font-size: clamp(1.6rem, 4vw, 3rem);
  line-height: 1.3;
  color: #f5f0e8;
  margin-bottom: 48px;
  letter-spacing: 0.01em;
}

/* --- BUTTONS --- */
.btn {
  display: inline-block;
  padding: 14px 36px;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary {
  background-color: #c9a84c;
  color: #0d0d0d;
}

.btn-primary:hover {
  background-color: #e0c06a;
  color: #0d0d0d;
}

.btn-submit {
  background-color: #1a1a1a;
  color: #c9a84c;
  border: 1px solid #c9a84c;
  width: 100%;
  padding: 16px;
}

.btn-submit:hover {
  background-color: #c9a84c;
  color: #0d0d0d;
}

/* --- SECTIONS COMMON --- */
.section {
  padding: 100px 0;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-weight: 500;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  color: #c9a84c;
  margin-bottom: 12px;
  text-align: center;
}

.section-subtitle {
  text-align: center;
  color: rgba(245, 240, 232, 0.5);
  font-size: 0.9rem;
  margin-bottom: 48px;
  font-style: italic;
}

/* --- MENU DU JOUR --- */
.section-menu-du-jour {
  background-color: #0d0d0d;
}

.menu-jour-wrapper {
  max-width: 520px;
  margin: 0 auto;
  text-align: center;
}

.menu-jour-date {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(245, 240, 232, 0.4);
  margin-bottom: 40px;
}

.menu-jour-plats {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.menu-jour-plat {
  padding: 24px 0;
  border-bottom: 1px solid rgba(201, 168, 76, 0.12);
}

.menu-jour-plat:first-child {
  border-top: 1px solid rgba(201, 168, 76, 0.12);
}

.menu-jour-label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #c9a84c;
  margin-bottom: 8px;
}

.menu-jour-nom {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 400;
  font-style: italic;
  color: #f5f0e8;
}

.menu-jour-prix {
  margin-top: 36px;
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 500;
  color: #c9a84c;
  letter-spacing: 0.02em;
}

.menu-jour-fallback {
  font-style: italic;
  color: rgba(245, 240, 232, 0.4);
  font-size: 0.95rem;
}

/* --- QUI SOMMES-NOUS ? --- */
.section-histoire {
  background-color: #111111;
}

.histoire-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-top: 48px;
}

.histoire-text p {
  margin-bottom: 20px;
  font-size: 1rem;
  color: rgba(245, 240, 232, 0.85);
}

.histoire-intro {
  font-size: 1.1rem !important;
  color: #f5f0e8 !important;
  font-weight: 300;
  line-height: 1.8;
}

.histoire-image img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border: 1px solid rgba(201, 168, 76, 0.2);
}

/* --- LA CARTE — Accordéons --- */
.section-carte {
  background-color: #0d0d0d;
}

.carte-accordions {
  max-width: 700px;
  margin: 48px auto 0;
}

.carte-accordion {
  border-bottom: 1px solid rgba(201, 168, 76, 0.15);
}

.carte-accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 24px 0;
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
  font-family: inherit;
}

.carte-accordion-header .carte-category-title {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
  transition: color 0.3s ease;
}

.carte-accordion-header:hover .carte-category-title {
  color: #e0c06a;
}

.carte-accordion-icon {
  width: 16px;
  height: 16px;
  position: relative;
  flex-shrink: 0;
}

.carte-accordion-icon::before,
.carte-accordion-icon::after {
  content: '';
  position: absolute;
  background-color: #c9a84c;
  transition: transform 0.3s ease;
}

.carte-accordion-icon::before {
  top: 50%;
  left: 0;
  width: 16px;
  height: 1px;
  transform: translateY(-50%);
}

.carte-accordion-icon::after {
  top: 0;
  left: 50%;
  width: 1px;
  height: 16px;
  transform: translateX(-50%);
}

.carte-accordion.open .carte-accordion-icon::after {
  transform: translateX(-50%) rotate(90deg);
}

.carte-accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  padding: 0;
}

.carte-accordion.open .carte-accordion-body {
  max-height: 500px;
  padding: 0 0 28px 0;
}

.carte-category-title {
  font-family: 'Playfair Display', serif;
  font-weight: 500;
  font-size: 1.4rem;
  color: #c9a84c;
  margin-bottom: 24px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(201, 168, 76, 0.25);
}

.carte-items {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.carte-item-header {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.carte-item-name {
  font-size: 0.95rem;
  color: #f5f0e8;
  white-space: nowrap;
}

.carte-item-dots {
  flex: 1;
  border-bottom: 1px dotted rgba(245, 240, 232, 0.2);
  min-width: 20px;
  margin-bottom: 4px;
}

.carte-item-price {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  color: #c9a84c;
  white-space: nowrap;
}

/* --- GALERIE — Full width, pas de titre --- */
.section-galerie {
  background-color: #0d0d0d;
}

.galerie-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.galerie-item {
  overflow: hidden;
}

.galerie-item img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.galerie-item:hover img {
  transform: scale(1.05);
}

/* --- ÉVÉNEMENTS / L'ANNEXE --- */
.section-evenements {
  background-color: #111111;
}

.evenements-content {
  max-width: 700px;
  margin: 0 auto;
}

.evenements-text {
  text-align: center;
}

.evenements-text p {
  font-size: 1rem;
  color: rgba(245, 240, 232, 0.8);
  line-height: 1.8;
  margin-bottom: 20px;
}

.evenements-cta {
  text-align: center;
  margin-top: 40px;
}

/* --- RÉSERVATION --- */
.section-reservation {
  background-color: #0d0d0d;
}

.reservation-form {
  max-width: 640px;
  margin: 48px auto 0;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group-full {
  margin-bottom: 24px;
}

label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(245, 240, 232, 0.6);
  margin-bottom: 8px;
}

.optional {
  text-transform: none;
  letter-spacing: 0;
  font-style: italic;
}

input,
textarea {
  background-color: #1a1a1a;
  border: 1px solid rgba(201, 168, 76, 0.2);
  color: #f5f0e8;
  padding: 12px 16px;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  transition: border-color 0.3s ease;
  outline: none;
}

input:focus,
textarea:focus {
  border-color: #c9a84c;
  box-shadow: 0 0 0 2px rgba(201, 168, 76, 0.15);
}

textarea {
  resize: vertical;
}

/* --- HORAIRES & CONTACT --- */
.section-contact {
  background-color: #111111;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-top: 48px;
}

.contact-block {
  margin-bottom: 36px;
}

.contact-block h3 {
  font-family: 'Playfair Display', serif;
  font-weight: 500;
  font-size: 1.15rem;
  color: #c9a84c;
  margin-bottom: 16px;
}

.horaires {
  width: 100%;
  border-collapse: collapse;
}

.horaires td {
  padding: 8px 0;
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(245, 240, 232, 0.08);
}

.horaires td:first-child {
  color: #f5f0e8;
  font-weight: 500;
  padding-right: 24px;
}

.horaires td:last-child {
  color: rgba(245, 240, 232, 0.65);
  text-align: right;
}

.contact-link {
  color: #c9a84c;
  display: inline-block;
  margin-top: 4px;
}

address p {
  margin-bottom: 8px;
  color: rgba(245, 240, 232, 0.75);
  line-height: 1.6;
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  min-height: 360px;
  border: 1px solid rgba(201, 168, 76, 0.15);
}

/* --- FOOTER --- */
.footer {
  background-color: #080808;
  padding: 60px 0 24px;
  border-top: 1px solid rgba(201, 168, 76, 0.1);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-logo {
  height: 32px;
  width: auto;
  margin-bottom: 12px;
}

.footer-tagline {
  font-size: 0.85rem;
  color: rgba(245, 240, 232, 0.4);
}

.footer-links h3,
.footer-legal h3 {
  font-family: 'Playfair Display', serif;
  font-weight: 500;
  font-size: 0.95rem;
  color: #c9a84c;
  margin-bottom: 16px;
}

.footer-links a,
.footer-legal a {
  display: block;
  color: rgba(245, 240, 232, 0.5);
  font-size: 0.85rem;
  padding: 4px 0;
  transition: color 0.3s ease;
}

.footer-links a:hover,
.footer-legal a:hover {
  color: #c9a84c;
}

.footer-bottom {
  border-top: 1px solid rgba(245, 240, 232, 0.06);
  padding-top: 24px;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: rgba(245, 240, 232, 0.3);
}

/* ============================================
   RESPONSIVE
   ============================================ */

/* Tablet */
@media (max-width: 900px) {
  .histoire-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .histoire-image {
    order: -1;
  }

  .histoire-image img {
    aspect-ratio: 16/9;
  }

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

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

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

/* Mobile */
@media (max-width: 600px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(13, 13, 13, 0.98);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 28px;
    transform: translateX(100%);
    transition: transform 0.4s ease;
  }

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

  .nav-links a {
    font-size: 1.1rem;
  }

  .section {
    padding: 72px 0;
  }

  .hero-logo {
    width: 300px;
  }

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

  .form-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .carte-item-name {
    white-space: normal;
  }

  .nav-links a::after {
    display: none;
  }
}