/* ===================================================================
   LA TAVERNE LUDIQUE - MISE EN PAGE & STRUCTURE (LAYOUT.CSS)
   =================================================================== */

/* Container Principal */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header & Navigation Fixe */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(20, 18, 16, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--amber-border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
  transition: background var(--transition-fast);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--cream-light);
  text-decoration: none;
}

.brand-logo-img {
  width: 54px;
  height: 54px;
  object-fit: contain;
  border-radius: var(--radius-full);
  border: 2px solid var(--amber-primary);
  background: #1e1a16;
  box-shadow: 0 0 14px rgba(230, 162, 60, 0.3);
  transition: transform var(--transition-fast);
}

.brand-link:hover .brand-logo-img {
  transform: rotate(-6deg) scale(1.05);
}

.brand-text-block {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 1.3rem;
  line-height: 1.1;
  color: var(--amber-glow);
  text-shadow: 0 0 12px rgba(230, 162, 60, 0.4);
}

.brand-subtitle {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--steel-light);
}

/* Liens de navigation */
.main-nav {
  display: flex;
  align-items: center;
  gap: 1.8rem;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--cream-soft);
  position: relative;
  padding: 0.5rem 0.2rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: color var(--transition-fast);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--amber-glow);
  box-shadow: 0 0 8px var(--amber-glow);
  transition: width var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
  color: var(--amber-glow);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

/* Actions utilisateur (Connexion / Profil) */
.user-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.mobile-toggle {
  display: none;
  background: none;
  border: 1px solid var(--amber-border);
  color: var(--amber-glow);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 1.3rem;
  cursor: pointer;
}

/* Hero Section */
.hero-section {
  position: relative;
  padding: 5.5rem 0 6.5rem 0;
  background: linear-gradient(180deg, rgba(20, 18, 16, 0.72) 0%, rgba(20, 18, 16, 0.92) 100%),
              radial-gradient(circle at 60% 40%, rgba(230, 162, 60, 0.18), transparent 75%),
              url('/assets/images/hero_banner.jpg') center 26%/cover no-repeat;
  border-bottom: 2px solid var(--amber-border);
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--amber-soft);
  border: 1px solid var(--amber-border);
  color: var(--amber-glow);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
  box-shadow: 0 0 15px rgba(230, 162, 60, 0.2);
}

.hero-title {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  color: var(--cream-light);
  line-height: 1.1;
  margin-bottom: 1.25rem;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
}

.hero-title span {
  color: var(--amber-glow);
  background: linear-gradient(135deg, #ffd685 0%, #e6a23c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-lead {
  font-size: 1.2rem;
  color: var(--cream-soft);
  margin-bottom: 2rem;
  text-shadow: 0 2px 10px rgba(0,0,0,0.9);
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Sections du site */
.section {
  padding: 4.5rem 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem auto;
}

.section-subtitle {
  color: var(--amber-primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

.section-desc {
  font-size: 1.1rem;
  color: var(--cream-muted);
}

/* Grilles */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

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

.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

/* Footer */
.site-footer {
  background: #0f0d0b;
  border-top: 1px solid var(--amber-border);
  padding: 4rem 0 2rem 0;
  margin-top: auto;
  color: var(--cream-muted);
  font-size: 0.95rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.footer-title {
  color: var(--cream-light);
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Responsive */
@media (max-width: 900px) {
  .nav-wrapper {
    position: relative;
  }
  
  .mobile-toggle {
    display: block;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background: #181512;
    flex-direction: column;
    padding: 1.5rem;
    border-bottom: 2px solid var(--amber-border);
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
    gap: 1.2rem;
    align-items: flex-start;
  }

  .main-nav.open {
    display: flex;
  }

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

@media (max-width: 650px) {
  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }

  .hero-buttons .btn {
    width: 100%;
    justify-content: center;
  }

  .grid-2, .grid-3, .footer-grid {
    grid-template-columns: 1fr;
  }
}
