/*
Theme Name: La Brasserie des Halles
Theme URI: http://localhost/testwp
Description: Thème personnalisé pour La Brasserie des Halles - Restaurant traditionnel en Côte-d'Or (21)
Version: 1.0.0
Author: Webmaster
Author URI: http://localhost
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: brasserie-halles
*/

/* ========================================
   CONFIGURATION DES COULEURS - THÈME BRASSERIE
   ======================================== */

/* 🌞 Mode clair */
:root {
  /* ========== COULEURS NEUTRES ========== */
  --color-bg: #FDFBF7;           /* Crème chaleureux */
  --color-text: #2D2A26;         /* Brun profond */
  --color-muted: #6B6560;        /* Gris terroir */
  --color-border: #E8E2D9;       /* Beige doux */

  /* ========== COULEUR PRINCIPALE - Bordeaux ========== */
  --color-primary: #7B2D3E;           /* Bordeaux vin */
  --color-primary-light: #9A4256;     /* Bordeaux clair */
  --color-primary-dark: #5A1F2C;      /* Bordeaux foncé */

  /* ========== COULEURS SECONDAIRES - Tons chauds ========== */
  --color-secondary: #F5F0E8;           /* Crème très clair */
  --color-secondary-light: #FAF8F4;     /* Blanc cassé */
  --color-secondary-dark: #E8DFD0;      /* Beige soutenu */

  /* ========== COULEURS D'ACCENT - Or & Nature ========== */
  --color-accent: #C9A351;         /* Or/Doré */
  --color-accent-rare: #4A5D3A;    /* Vert forêt */
  --color-focus: #9A4256;          /* Focus bordeaux */

  /* ========== TYPOGRAPHIE ========== */
  --font-size-base: 1.6rem;
  --font-family-base: 'Playfair Display', 'Georgia', serif;
  --font-family-body: 'Lato', 'Segoe UI', sans-serif;
}

/* 🌙 Mode sombre */
@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: #1A1816;
    --color-text: #F5F0E8;
    --color-muted: #9E9890;
    --color-border: #3D3832;

    --color-primary: #9A4256;
    --color-primary-light: #B85A6E;
    --color-primary-dark: #7B2D3E;

    --color-secondary: #252220;
    --color-secondary-light: #2F2B28;
    --color-secondary-dark: #1A1816;

    --color-accent: #D4B162;
    --color-accent-rare: #6B8553;
    --color-focus: #B85A6E;
  }
}

/* ========================================
   RESET & BASE
   ======================================== */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
}

@media (min-width: 1921px) {
  html { font-size: 75%; }
}

body {
  font-family: var(--font-family-body);
  font-size: var(--font-size-base);
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family-base);
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-text);
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--color-primary-light);
}

a:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ========================================
   LAYOUT
   ======================================== */

.container {
  max-width: 120rem;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-padding {
  padding: 8rem 2rem;
}

@media (max-width: 767px) {
  .section-padding {
    padding: 4rem 1.5rem;
  }
}

/* ========================================
   HEADER & NAVIGATION
   ======================================== */

.site-header {
  background: var(--color-secondary);
  border-bottom: 1px solid var(--color-border);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all 0.3s ease;
}

.site-header.scrolled {
  background: rgba(253, 251, 247, 0.98);
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2rem;
  max-width: 140rem;
  margin: 0 auto;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.site-logo img {
  height: 5rem;
  width: auto;
}

.site-logo-text {
  font-family: var(--font-family-base);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  letter-spacing: -0.02em;
}

.main-nav ul {
  display: flex;
  gap: 3rem;
  list-style: none;
}

.main-nav a {
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--color-text);
  padding: 0.5rem 0;
  position: relative;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width 0.3s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
  width: 100%;
}

/* Mobile menu */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 1rem;
}

.menu-toggle span {
  display: block;
  width: 2.5rem;
  height: 3px;
  background: var(--color-text);
  margin: 5px 0;
  transition: 0.3s;
}

@media (max-width: 900px) {
  .menu-toggle {
    display: block;
  }

  .main-nav {
    position: fixed;
    top: 7rem;
    left: 0;
    right: 0;
    background: var(--color-bg);
    padding: 2rem;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    border-bottom: 1px solid var(--color-border);
  }

  .main-nav.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 2rem;
    text-align: center;
  }
}

/* ========================================
   HERO SECTION
   ======================================== */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  margin-top: 7rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(26, 24, 22, 0.4) 0%,
    rgba(26, 24, 22, 0.7) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #fff;
  padding: 4rem 2rem;
  max-width: 80rem;
}

.hero-title {
  font-size: clamp(3.5rem, 8vw, 7rem);
  font-weight: 700;
  margin-bottom: 2rem;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
  font-family: var(--font-family-base);
}

.hero-subtitle {
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  margin-bottom: 3rem;
  opacity: 0.95;
  font-weight: 300;
}

.hero-cta {
  display: inline-flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* ========================================
   BUTTONS
   ======================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  padding: 1.2rem 2.8rem;
  font-size: 1.6rem;
  font-weight: 600;
  border-radius: 0.6rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  border: none;
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(123, 45, 62, 0.3);
}

.btn-secondary {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
}

.btn-secondary:hover {
  background: #fff;
  color: var(--color-primary);
}

.btn-accent {
  background: var(--color-accent);
  color: var(--color-text);
}

.btn-accent:hover {
  background: #D9B663;
  transform: translateY(-2px);
}

/* ========================================
   SECTIONS
   ======================================== */

.section-header {
  text-align: center;
  margin-bottom: 5rem;
}

.section-title {
  font-size: clamp(2.8rem, 5vw, 4rem);
  margin-bottom: 1.5rem;
  color: var(--color-text);
}

.section-title span {
  color: var(--color-primary);
}

.section-subtitle {
  font-size: 1.8rem;
  color: var(--color-muted);
  max-width: 60rem;
  margin: 0 auto;
}

.section-divider {
  width: 8rem;
  height: 3px;
  background: var(--color-accent);
  margin: 2rem auto;
}

/* ========================================
   ABOUT / PRESENTATION SECTION
   ======================================== */

.about-section {
  background: var(--color-secondary-light);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}

@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
}

.about-image {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.about-image img {
  width: 100%;
  height: auto;
  transition: transform 0.5s ease;
}

.about-image:hover img {
  transform: scale(1.05);
}

.about-content h2 {
  font-size: 3.2rem;
  margin-bottom: 2rem;
}

.about-content p {
  font-size: 1.7rem;
  color: var(--color-muted);
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.about-features {
  display: flex;
  gap: 3rem;
  margin-top: 3rem;
}

.about-feature {
  text-align: center;
}

.about-feature-icon {
  width: 5rem;
  height: 5rem;
  background: var(--color-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 2.2rem;
}

.about-feature-text {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--color-text);
}

/* ========================================
   EVENTS SECTION
   ======================================== */

.events-section {
  background: var(--color-bg);
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(30rem, 1fr));
  gap: 3rem;
}

.event-card {
  background: var(--color-secondary);
  border-radius: 1.2rem;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
}

.event-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 40px rgba(0,0,0,0.12);
}

.event-image {
  height: 20rem;
  overflow: hidden;
}

.event-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.event-card:hover .event-image img {
  transform: scale(1.1);
}

.event-content {
  padding: 2.5rem;
}

.event-date {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  background: var(--color-primary);
  color: #fff;
  padding: 0.5rem 1.2rem;
  border-radius: 2rem;
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.event-title {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--color-text);
}

.event-description {
  font-size: 1.5rem;
  color: var(--color-muted);
  line-height: 1.7;
}

/* ========================================
   MENU & CARTE SECTIONS
   ======================================== */

.menu-section {
  background: var(--color-secondary);
}

.menu-tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 4rem;
}

.menu-tab {
  padding: 1rem 2.5rem;
  background: transparent;
  border: 2px solid var(--color-border);
  border-radius: 3rem;
  font-size: 1.5rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--color-text);
}

.menu-tab:hover,
.menu-tab.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(35rem, 1fr));
  gap: 3rem;
}

.menu-item {
  display: flex;
  gap: 2rem;
  padding: 2rem;
  background: var(--color-bg);
  border-radius: 1rem;
  transition: all 0.3s ease;
}

.menu-item:hover {
  transform: translateX(5px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.menu-item-image {
  width: 10rem;
  height: 10rem;
  border-radius: 0.8rem;
  overflow: hidden;
  flex-shrink: 0;
}

.menu-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.menu-item-content {
  flex: 1;
}

.menu-item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.8rem;
}

.menu-item-name {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--color-text);
}

.menu-item-price {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-primary);
}

.menu-item-description {
  font-size: 1.4rem;
  color: var(--color-muted);
  line-height: 1.6;
}

/* ========================================
   CAVE / WINE SECTION
   ======================================== */

.cave-section {
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.cave-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="0.5"/></svg>');
  background-size: 20rem;
  opacity: 0.5;
}

.cave-content {
  position: relative;
  z-index: 1;
}

.cave-section .section-title {
  color: #fff;
}

.cave-section .section-subtitle {
  color: rgba(255,255,255,0.85);
}

.cave-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(25rem, 1fr));
  gap: 2.5rem;
  margin-top: 4rem;
}

.cave-card {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 1.2rem;
  padding: 3rem;
  text-align: center;
  transition: all 0.3s ease;
}

.cave-card:hover {
  background: rgba(255,255,255,0.15);
  transform: translateY(-5px);
}

.cave-icon {
  font-size: 4rem;
  margin-bottom: 1.5rem;
}

.cave-card h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #fff;
}

.cave-card p {
  font-size: 1.5rem;
  color: rgba(255,255,255,0.8);
  line-height: 1.6;
}

/* ========================================
   ORDER / COMMANDE SECTION
   ======================================== */

.order-section {
  background: var(--color-accent);
  text-align: center;
}

.order-section .section-title {
  color: var(--color-text);
}

.order-content {
  max-width: 60rem;
  margin: 0 auto;
}

.order-content p {
  font-size: 1.8rem;
  color: var(--color-text);
  margin-bottom: 3rem;
  opacity: 0.9;
}

.order-button {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 4rem;
  background: var(--color-text);
  color: #fff;
  font-size: 1.8rem;
  font-weight: 600;
  border-radius: 0.8rem;
  transition: all 0.3s ease;
  text-decoration: none;
}

.order-button:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  color: #fff;
}

.order-button svg {
  width: 2.4rem;
  height: 2.4rem;
}

/* ========================================
   GALLERY
   ======================================== */

.gallery-section {
  background: var(--color-bg);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

@media (max-width: 900px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 500px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

.gallery-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: 1rem;
  overflow: hidden;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover::after {
  opacity: 1;
}

/* ========================================
   FOOTER
   ======================================== */

.site-footer {
  background: var(--color-text);
  color: #fff;
  padding: 6rem 2rem 3rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 4rem;
  max-width: 120rem;
  margin: 0 auto;
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-brand h3 {
  font-size: 2.4rem;
  color: #fff;
  margin-bottom: 1.5rem;
  font-family: var(--font-family-base);
}

.footer-brand p {
  font-size: 1.5rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.7;
}

.footer-section h4 {
  font-size: 1.6rem;
  color: var(--color-accent);
  margin-bottom: 2rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.footer-section ul {
  list-style: none;
}

.footer-section li {
  margin-bottom: 1rem;
}

.footer-section a {
  color: rgba(255,255,255,0.7);
  font-size: 1.5rem;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: var(--color-accent);
}

.footer-contact p {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  font-size: 1.5rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 1.2rem;
}

.footer-contact svg {
  width: 1.8rem;
  height: 1.8rem;
  flex-shrink: 0;
  margin-top: 0.2rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 4rem;
  padding-top: 2rem;
  text-align: center;
}

.footer-bottom p {
  font-size: 1.4rem;
  color: rgba(255,255,255,0.5);
}

/* ========================================
   UTILITIES
   ======================================== */

.txt-center { text-align: center; }
.txt-left { text-align: left; }
.txt-right { text-align: right; }

.d-flex { display: flex; }
.d-grid { display: grid; }
.d-none { display: none; }
.d-block { display: block; }

.flex-column { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.align-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }

.gap-8 { gap: 0.8rem; }
.gap-16 { gap: 1.6rem; }
.gap-24 { gap: 2.4rem; }
.gap-32 { gap: 3.2rem; }

.mb-0 { margin-bottom: 0; }
.mb-8 { margin-bottom: 0.8rem; }
.mb-16 { margin-bottom: 1.6rem; }
.mb-24 { margin-bottom: 2.4rem; }
.mb-32 { margin-bottom: 3.2rem; }
.mb-48 { margin-bottom: 4.8rem; }

.mt-0 { margin-top: 0; }
.mt-16 { margin-top: 1.6rem; }
.mt-24 { margin-top: 2.4rem; }
.mt-32 { margin-top: 3.2rem; }

/* ========================================
   ANIMATIONS
   ======================================== */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fadeInUp {
  animation: fadeInUp 0.6s ease forwards;
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================
   ADMIN BAR OVERRIDE
   ======================================== */

.logged-in .site-header {
  top: 32px;
}

@media (max-width: 782px) {
  .logged-in .site-header {
    top: 46px;
  }
}
