/* --- VARIABLES ET RÉGLAGES DE BASE --- */
:root {
  --text-dark: #1a1a1a;
  --text-gray: #666;
  --bg-light: #f9f9f9;
  --border-color: #eee;
  --accent: #b8860b;
}

* { box-sizing: border-box; }

body {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  background-color: #ffffff;
  color: var(--text-dark);
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

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

/* --- NAVIGATION --- */
.site-header {
  text-align: center;
  padding: 40px 20px 20px;
  border-bottom: 1px solid var(--border-color);
}
.main-logo { max-width: 250px; margin: 0 auto 30px; }
.navbar { display: flex; justify-content: center; gap: 40px; }
.navbar a {
  font-weight: bold;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 1px;
}
.navbar a.active { opacity: 0.5; pointer-events: none; }
.navbar a:hover { opacity: 0.7; }

/* --- PAGE ACCUEIL --- */
.hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 20px;
  max-width: 1200px;
  margin: 0 auto;
}
.hero-section h1 {
  font-size: 3.5rem;
  text-transform: uppercase;
  letter-spacing: -1px;
  line-height: 1.1;
  margin-bottom: 40px;
}
.hero-image { 
  max-width: 850px; 
  margin-bottom: 50px; 
  transform: translateX(40px); /* Décale d'environ 1cm vers la droite */
}
.btn-primary {
  display: inline-block;
  background: var(--text-dark);
  color: #fff;
  padding: 18px 35px;
  text-transform: uppercase;
  font-weight: bold;
  font-size: 0.9rem;
  letter-spacing: 1px;
}
.btn-primary:hover { opacity: 0.8; }

.featured-beer {
  display: flex;
  align-items: center;
  background: var(--bg-light);
  padding: 80px 60px;
  max-width: 1100px;
  margin: 60px auto;
  gap: 60px;
}
.featured-content { flex: 1; }
.badge-saison {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 5px 12px;
  font-size: 0.75rem;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.featured-image { flex: 0 0 350px; }
.btn-line {
  font-size: 0.85rem;
  text-transform: uppercase;
  font-weight: bold;
  border-bottom: 2px solid var(--text-dark);
  padding-bottom: 3px;
}

/* --- CATALOGUE (nos-bieres.html) --- */
.bieres-section {
  max-width: 1100px;
  margin: 80px auto;
  padding: 0 20px;
}
.bieres-section h2 {
  text-align: center;
  font-size: 2.5rem;
  text-transform: uppercase;
  margin-bottom: 80px;
}
.beer-grid-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 80px 60px;
}
.beer-card-gallery {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.beer-card-gallery:hover { opacity: 0.8; }
.beer-card-gallery h3 { font-size: 2rem; text-transform: uppercase; margin: 20px 0 10px; }
.beer-meta {
  font-size: 1rem;
  font-weight: bold;
  text-transform: uppercase;
  color: var(--text-gray);
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 10px;
  margin-bottom: 15px;
}
.keg-rental-section {
  text-align: center;
  max-width: 800px;
  margin: 100px auto 0;
  padding: 80px 20px;
  border-top: 1px solid var(--border-color);
}
.keg-rental-section h2 { font-size: 2rem; text-transform: uppercase; margin-bottom: 20px; }
.keg-rental-section p { font-size: 1.1rem; color: var(--text-gray); margin-bottom: 40px; line-height: 1.8; }

/* --- FICHES PRODUITS (Détails) --- */
/* Conteneur élargi pour laisser respirer l'image et le texte */
.beer-detail-section { max-width: 1300px; margin: 60px auto; padding: 0 20px; }
.back-link { display: inline-block; margin-bottom: 40px; font-weight: bold; text-transform: uppercase; font-size: 0.8rem; color: var(--text-gray); }
.back-link:hover { color: var(--text-dark); }

/* Grille modifiée : 55% pour l'image, 45% pour le texte, alignement centré verticalement */
.beer-detail-grid { display: grid; grid-template-columns: 5.5fr 4.5fr; gap: 80px; align-items: center; }

/* Image beaucoup plus grande */
.beer-detail-image img { width: 100%; max-width: 700px; margin: 0 auto; }

.beer-detail-content h1 { font-size: 3.5rem; text-transform: uppercase; margin-bottom: 10px; line-height: 1; }
.beer-meta-detail { display: block; font-size: 1.2rem; font-weight: bold; color: var(--text-gray); margin-bottom: 30px; text-transform: uppercase; }
.specs-list { list-style: none; padding: 0; margin-top: 40px; border-top: 1px solid var(--border-color); }
.specs-list li { padding: 15px 0; border-bottom: 1px solid var(--border-color); display: flex; justify-content: space-between; }

/* --- NAVIGATION ENTRE LES BIÈRES --- */
.beer-navigation {
  display: flex;
  justify-content: space-between;
  margin-top: 50px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}
.beer-navigation a {
  font-weight: bold;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 1px;
  color: var(--text-gray);
}
.beer-navigation a:hover { color: var(--text-dark); }
.nav-next { margin-left: auto; text-align: right; }

/* Responsivité pour la nouvelle grille */
@media (max-width: 900px) {
  .beer-detail-grid { grid-template-columns: 1fr; align-items: start; }
}

/* Modification : Répartition 50/50 (1fr 1fr) au lieu de 4.5fr 5.5fr */
.beer-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }

/* Modification : Augmentation de la largeur maximale de 480px à 600px */
.beer-detail-image img { width: 100%; max-width: 600px; margin: 0 auto; }

.beer-detail-content h1 { font-size: 3.5rem; text-transform: uppercase; margin-bottom: 10px; line-height: 1; }
.beer-meta-detail { display: block; font-size: 1.2rem; font-weight: bold; color: var(--text-gray); margin-bottom: 30px; text-transform: uppercase; }
.specs-list { list-style: none; padding: 0; margin-top: 40px; border-top: 1px solid var(--border-color); }
.specs-list li { padding: 15px 0; border-bottom: 1px solid var(--border-color); display: flex; justify-content: space-between; }

/* --- PAGE À PROPOS --- */
.modern-container { max-width: 900px; margin: 0 auto; padding: 60px 20px; line-height: 1.8; color: #333; }
.page-header { text-align: center; margin-bottom: 80px; }
.page-header h1 { font-size: 2.5rem; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 20px; }
.about-section { margin-bottom: 80px; }
.about-section h2 { font-size: 1.5rem; text-transform: uppercase; border-bottom: 2px solid var(--text-dark); display: inline-block; margin-bottom: 30px; padding-bottom: 5px; }
.ingredients-flex { display: flex; gap: 40px; margin-top: 30px; flex-wrap: wrap; }
.ingredient-card { flex: 1; min-width: 250px; padding: 30px; background: var(--bg-light); border-left: 4px solid var(--text-dark); }
.ingredient-title { display: block; font-weight: bold; text-transform: uppercase; font-size: 0.9rem; margin-bottom: 10px; }
.commitment-box { background: var(--text-dark); color: #fff; padding: 40px; margin-top: 40px; }
.commitment-box h2 { border-color: #fff; }
.commitment-box p { color: #ccc; }

/* --- PAGE CONTACT --- */
.contact-container { max-width: 1100px; margin: 0 auto; padding: 60px 20px; }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; }
.contact-card { padding: 40px; border: 1px solid var(--border-color); background: #fff; transition: all 0.3s ease; display: flex; flex-direction: column; }
.contact-card:hover { transform: translateY(-5px); border-color: var(--text-dark); box-shadow: 0 15px 35px rgba(0,0,0,0.05); }
.contact-card h2 { font-size: 0.9rem; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 25px; border-bottom: 1px solid var(--border-color); padding-bottom: 15px; color: var(--text-dark); }
.hours-table { width: 100%; margin-bottom: 20px; border-collapse: collapse; }
.hours-table td { padding: 10px 0; border-bottom: 1px solid var(--bg-light); }
.highlight-day { font-weight: bold; }
.social-list { display: flex; flex-direction: column; gap: 15px; margin-top: 10px; }
.social-item { display: flex; align-items: center; color: var(--text-dark); }
.social-icon-wrapper { display: flex; align-items: center; justify-content: center; width: 55px; height: 55px; border: 1px solid var(--border-color); border-radius: 50%; margin-right: 15px; transition: all 0.3s ease; }
.social-item svg { width: 28px; height: 28px; fill: currentColor; }
.social-name { font-weight: bold; font-size: 1.1rem; letter-spacing: 0.5px; }
.social-item:hover .social-icon-wrapper { background-color: var(--text-dark); color: #fff; border-color: var(--text-dark); }
.social-item:hover .social-name { text-decoration: underline; }
.map-container { margin-top: auto; padding-top: 25px; }
.map-container iframe { border: 0; border-radius: 4px; width: 100%; height: 220px; filter: grayscale(100%); transition: filter 0.4s ease; }
.contact-card:hover iframe { filter: grayscale(0%); }

/* --- PIED DE PAGE --- */
.site-footer {
  background-color: var(--bg-light);
  text-align: center;
  padding: 60px 20px;
  border-top: 1px solid var(--border-color);
  margin-top: 0;
}
.footer-logos { display: flex; justify-content: center; gap: 40px; margin-bottom: 30px; }
.footer-logos img { height: 55px; opacity: 0.8; }

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
  .beer-grid-gallery, .beer-detail-grid, .featured-beer { grid-template-columns: 1fr; }
  .featured-beer { flex-direction: column; text-align: center; padding: 40px 20px; }
  .featured-image { flex: 0 0 auto; order: -1; }
  .hero-section h1 { font-size: 2.5rem; }
  .navbar { gap: 20px; flex-wrap: wrap; }
  .ingredients-flex { flex-direction: column; }
}