/*
Theme Name: Brasserie T&S
Theme URI: https://github.com/brasserie-ts
Author: BTS SIO
Description: Thème vitrine pour la Brasserie Terroir & Savoirs
Version: 1.0
*/

/* ========================
   VARIABLES & BASE
======================== */
:root {
  --cuivre:     #C47A2B;
  --ocre:       #B8860B;
  --beige:      #F5E6C8;
  --beige-dark: #E8D4A8;
  --marron:     #5C3A1E;
  --marron-light: #7A4F2D;
  --orange:     #D2691E;
  --blanc:      #FDF8F0;
  --texte:      #2E1A0E;
  --gris:       #888;
  --shadow:     0 4px 20px rgba(92,58,30,0.18);
  --radius:     8px;
  --font-titre: 'Playfair Display', Georgia, serif;
  --font-body:  'Lato', Arial, sans-serif;
  --transition: all 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--blanc);
  color: var(--texte);
  font-size: 16px;
  line-height: 1.7;
}

h1, h2, h3, h4 {
  font-family: var(--font-titre);
  color: var(--marron);
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }

/* ========================
   GOOGLE FONTS IMPORT
======================== */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Lato:wght@300;400;700&display=swap');

/* ========================
   NAVIGATION
======================== */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(92,58,30,0.97);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
  transition: var(--transition);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-logo img {
  height: 48px;
  width: 48px;
  object-fit: contain;
  border-radius: 50%;
}

.nav-logo span {
  font-family: var(--font-titre);
  font-size: 1.3rem;
  color: var(--beige);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.nav-menu {
  list-style: none;
  display: flex;
  gap: 8px;
}

.nav-menu a {
  color: var(--beige);
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 8px 16px;
  border-radius: var(--radius);
  transition: var(--transition);
  display: block;
}

.nav-menu a:hover {
  background: var(--cuivre);
  color: #fff;
}

/* Hamburger mobile */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--beige);
  border-radius: 2px;
  transition: var(--transition);
}

/* ========================
   HERO
======================== */
#accueil {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--marron) 0%, var(--marron-light) 40%, var(--orange) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 24px 60px;
  position: relative;
  overflow: hidden;
}

#accueil::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('assets/images/hero-bg.jpg') center/cover no-repeat;
  opacity: 0.18;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.hero-logo {
  width: 130px;
  height: 130px;
  object-fit: contain;
  margin: 0 auto 28px;
  filter: drop-shadow(0 4px 16px rgba(0,0,0,0.4));
  animation: fadeDown 0.9s ease both;
}

.hero-content h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  color: var(--beige);
  line-height: 1.2;
  margin-bottom: 16px;
  animation: fadeUp 0.9s 0.2s ease both;
}

.hero-content h1 span {
  color: var(--cuivre);
}

.hero-content p {
  color: var(--beige-dark);
  font-size: 1.15rem;
  margin-bottom: 36px;
  animation: fadeUp 0.9s 0.4s ease both;
}

.btn-primary {
  display: inline-block;
  background: var(--cuivre);
  color: #fff;
  padding: 14px 36px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(196,122,43,0.4);
  animation: fadeUp 0.9s 0.6s ease both;
}

.btn-primary:hover {
  background: var(--ocre);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(196,122,43,0.5);
}

@keyframes fadeDown {
  from { opacity:0; transform: translateY(-30px); }
  to   { opacity:1; transform: translateY(0); }
}
@keyframes fadeUp {
  from { opacity:0; transform: translateY(30px); }
  to   { opacity:1; transform: translateY(0); }
}

/* ========================
   SECTIONS COMMUNES
======================== */
section {
  padding: 90px 24px;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: clamp(1.9rem, 3.5vw, 2.8rem);
  margin-bottom: 12px;
}

.section-header .sous-titre {
  color: var(--cuivre);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 700;
  margin-bottom: 8px;
  display: block;
}

.section-header p {
  color: #6b4c2e;
  max-width: 560px;
  margin: 0 auto;
  font-size: 1.05rem;
}

.divider {
  width: 60px;
  height: 3px;
  background: linear-gradient(to right, var(--cuivre), var(--orange));
  margin: 18px auto 0;
  border-radius: 2px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

/* ========================
   BRASSERIE (À PROPOS)
======================== */
#brasserie {
  background: var(--beige);
}

.brasserie-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}

.brasserie-text h2 {
  font-size: 2.2rem;
  margin-bottom: 20px;
}

.brasserie-text p {
  color: #5a3d22;
  margin-bottom: 16px;
  font-size: 1.05rem;
}

.brasserie-valeurs {
  display: flex;
  gap: 24px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.valeur {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--blanc);
  border-radius: var(--radius);
  padding: 10px 16px;
  box-shadow: var(--shadow);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--marron);
}

.valeur span { font-size: 1.3rem; }

.brasserie-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.brasserie-images img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.brasserie-images img:first-child {
  grid-column: 1 / -1;
  height: 260px;
}

.brasserie-images img:hover {
  transform: scale(1.02);
}

/* ========================
   PRODUITS
======================== */
#produits {
  background: var(--blanc);
}

.produits-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.tab-btn {
  background: var(--beige);
  border: 2px solid var(--beige-dark);
  color: var(--marron);
  padding: 10px 24px;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: var(--transition);
}

.tab-btn.active,
.tab-btn:hover {
  background: var(--cuivre);
  border-color: var(--cuivre);
  color: #fff;
}

.produits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
  max-width: 1200px;
  margin: 0 auto;
}

.produit-card {
  background: var(--blanc);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid var(--beige-dark);
  display: none;
}

.produit-card.visible {
  display: block;
  animation: fadeUp 0.4s ease both;
}

.produit-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(92,58,30,0.25);
}

.produit-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  background: var(--beige);
}

.produit-img-placeholder {
  width: 100%;
  height: 220px;
  background: linear-gradient(135deg, var(--beige) 0%, var(--beige-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
}

.produit-body {
  padding: 20px 22px;
}

.produit-type {
  display: inline-block;
  background: var(--beige);
  color: var(--cuivre);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 4px 12px;
  border-radius: 50px;
  margin-bottom: 10px;
}

.produit-body h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.produit-body p {
  color: #7a5230;
  font-size: 0.92rem;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.produit-footer {
  padding: 0 22px 18px;
}

.btn-details {
  width: 100%;
  background: linear-gradient(to right, var(--cuivre), var(--orange));
  color: #fff;
  border: none;
  padding: 10px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  transition: var(--transition);
}

.btn-details:hover {
  opacity: 0.88;
}

/* ========================
   POPUP / MODAL
======================== */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(30,14,4,0.75);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 24px;
  backdrop-filter: blur(4px);
}

.modal-overlay.open {
  display: flex;
}

.modal-box {
  background: var(--blanc);
  border-radius: 20px;
  max-width: 620px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  box-shadow: 0 24px 80px rgba(0,0,0,0.4);
  animation: modalIn 0.3s ease both;
}

@keyframes modalIn {
  from { opacity:0; transform: scale(0.92) translateY(20px); }
  to   { opacity:1; transform: scale(1) translateY(0); }
}

.modal-img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 20px 20px 0 0;
}

.modal-img-placeholder {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, var(--beige), var(--beige-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  border-radius: 20px 20px 0 0;
}

.modal-content {
  padding: 28px 32px 36px;
}

.modal-content .produit-type { margin-bottom: 12px; }

.modal-content h2 {
  font-size: 2rem;
  margin-bottom: 16px;
}

.modal-content p {
  color: #5a3d22;
  font-size: 1.02rem;
  line-height: 1.8;
  margin-bottom: 24px;
}

.modal-notes {
  background: var(--beige);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 24px;
}

.modal-notes h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--cuivre);
  margin-bottom: 8px;
}

.notes-list {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.note-tag {
  background: var(--blanc);
  border: 1px solid var(--beige-dark);
  color: var(--marron);
  padding: 4px 14px;
  border-radius: 50px;
  font-size: 0.88rem;
  font-weight: 600;
}

.modal-close {
  width: 100%;
  background: var(--marron);
  color: var(--beige);
  border: none;
  padding: 13px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: var(--transition);
}

.modal-close:hover { background: var(--marron-light); }

/* ========================
   GALERIE / PRODUCTION
======================== */
#production {
  background: var(--marron);
  color: var(--beige);
}

#production .section-header h2 { color: var(--beige); }
#production .section-header p  { color: var(--beige-dark); }

.galerie-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 16px;
  max-width: 1100px;
  margin: 0 auto;
}

.galerie-item {
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}

.galerie-item:first-child {
  grid-column: 1 / 3;
  grid-row: 1 / 3;
}

.galerie-item img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.galerie-item-placeholder {
  width: 100%;
  height: 220px;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--cuivre);
}

/* ========================
   CONTACT
======================== */
#contact {
  background: var(--beige);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  max-width: 980px;
  margin: 0 auto;
}

.contact-info h3 {
  font-size: 1.6rem;
  margin-bottom: 24px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
}

.contact-icon {
  width: 42px;
  height: 42px;
  background: var(--cuivre);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact-item-text strong {
  display: block;
  color: var(--marron);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 2px;
}

.contact-item-text span { color: #6b4c2e; font-size: 0.97rem; }

/* Formulaire */
.contact-form {
  background: var(--blanc);
  padding: 32px;
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.contact-form h3 {
  font-size: 1.5rem;
  margin-bottom: 22px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--marron);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--beige-dark);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.97rem;
  color: var(--texte);
  background: var(--blanc);
  transition: var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--cuivre);
  box-shadow: 0 0 0 3px rgba(196,122,43,0.15);
}

.form-group textarea { resize: vertical; min-height: 110px; }

.btn-submit {
  width: 100%;
  background: linear-gradient(to right, var(--cuivre), var(--orange));
  color: #fff;
  border: none;
  padding: 13px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: var(--transition);
}

.btn-submit:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

/* ========================
   FOOTER
======================== */
footer {
  background: var(--marron);
  color: var(--beige-dark);
  text-align: center;
  padding: 40px 24px;
}

footer .footer-logo {
  width: 60px;
  height: 60px;
  object-fit: contain;
  margin: 0 auto 16px;
  opacity: 0.9;
  border-radius: 50%;
}

footer .footer-name {
  font-family: var(--font-titre);
  font-size: 1.3rem;
  color: var(--beige);
  margin-bottom: 8px;
}

footer .footer-tagline {
  font-size: 0.9rem;
  opacity: 0.7;
  margin-bottom: 20px;
}

footer .footer-sep {
  width: 40px;
  height: 2px;
  background: var(--cuivre);
  margin: 0 auto 16px;
  border-radius: 2px;
}

footer small { font-size: 0.82rem; opacity: 0.5; }

/* ========================
   RESPONSIVE
======================== */
@media (max-width: 900px) {
  .brasserie-grid,
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .galerie-grid { grid-template-columns: 1fr 1fr; }
  .galerie-item:first-child { grid-column: 1 / -1; grid-row: auto; }
}

@media (max-width: 640px) {
  .nav-menu { display: none; flex-direction: column; position: absolute; top: 70px; left: 0; width: 100%; background: var(--marron); padding: 16px 0; }
  .nav-menu.open { display: flex; }
  .nav-menu a { padding: 12px 28px; border-radius: 0; }
  .nav-toggle { display: flex; }
  .galerie-grid { grid-template-columns: 1fr; }
  .brasserie-images { grid-template-columns: 1fr; }
  .brasserie-images img:first-child { grid-column: auto; }
  .modal-content { padding: 20px; }
}
