/* Rock'n'Roll Beer Theme */
/* Rock'n'Roll Beer Theme */
/* Fonts moved to HTML for performance */

:root {
  /* Primati Ale Logo Colors */
  --primary: #f5a623;
  --secondary: #d63384;
  --accent: #2ecc71;
  --accent-cyan: #17a2b8;
  --danger: #e74c3c;

  --font-display: 'Bebas Neue', sans-serif;
  --font-body: 'Montserrat', sans-serif;

  /* Theme transition */
  --transition-theme: background-color 0.3s ease, color 0.3s ease;
}

/* Dark Theme (default) */
[data-theme="dark"] {
  --bg-primary: #0a0a0a;
  --bg-secondary: #1f1f1f;
  --bg-tertiary: #2a2a2a;
  --text-primary: #ffffff;
  --text-secondary: #bbbbbb;
  --text-muted: #b0b0b0;
  --border-color: #333333;
}

/* Light Theme */
[data-theme="light"] {
  --bg-primary: #f5f5f5;
  --bg-secondary: #ffffff;
  --bg-tertiary: #e8e8e8;
  --text-primary: #1a1a1a;
  --text-secondary: #4a4a4a;
  --text-muted: #6a6a6a;
  --border-color: #dddddd;
}

/* Legacy variable mapping */
body {
  --dark: var(--bg-primary);
  --darker: #050505;
  --light: var(--text-primary);
  --gray: var(--bg-secondary);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  overflow-x: hidden;
  width: 100%;
}

body {
  background-color: var(--dark);
  /* Image déplacée dans body::before pour éviter le saut sur mobile */
  color: var(--light);
  font-family: var(--font-body);
  position: relative;
  min-height: 100vh;
}

/* FIX STABILITÉ MOBILE : Utiliser un pseudo-élément fixe au lieu de background-attachment: fixed */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  /* Fallback */
  height: 100lvh;
  /* Force la hauteur maximale (sans barre d'adresse) pour éviter le resize */
  background-image: url('assets/cave.webp');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  z-index: -10;
  will-change: transform;
  /* Optimisation mobile */
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--darker);
}

::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 5px;
}

/* Header */
header {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 0.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(10, 10, 10, 0.95);
  /* Plus opaque pour pas de teinte */
  z-index: 1000;
  border-bottom: 2px solid var(--gray);
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 80px;
  width: auto;
  transition: all 0.3s ease;
  border-radius: 8px;
}

/* Glow effect on hover */
.logo-link {
  position: relative;
  display: inline-block;
}



/* Speech bubble tooltip */
.logo-tooltip {
  position: absolute;
  left: calc(100% + 15px);
  top: 50%;
  transform: translateY(-50%) translateX(-10px);
  background: rgba(0, 0, 0, 0.9);
  color: #fff;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 0.85rem;
  line-height: 1.5;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.6s ease;
  z-index: 1000;
  border: 1px solid var(--primary);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

/* Arrow pointing left */
.logo-tooltip::before {
  content: '';
  position: absolute;
  left: -8px;
  top: 50%;
  transform: translateY(-50%);
  border: 8px solid transparent;
  border-right-color: var(--primary);
}

.logo-tooltip::after {
  content: '';
  position: absolute;
  left: -6px;
  top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-right-color: rgba(0, 0, 0, 0.9);
}

/* Show tooltip on ACTIVE (click) instead of hover */
.logo-link.active .logo-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0);
}

/* Also apply glow on active */
.logo-link.active img {
  box-shadow:
    0 0 10px var(--primary),
    0 0 20px var(--primary),
    0 0 30px rgba(245, 166, 35, 0.5);
  transform: scale(1.05);
}

.logo-tooltip strong {
  color: var(--primary);
  font-size: 1rem;
}

.logo:hover {
  opacity: 1;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.backup-btn {
  padding: 0.6rem 1.5rem;
  background: linear-gradient(135deg, #27ae60, #2ecc71);
  border: none;
  color: white;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(46, 204, 113, 0.3);
}

.backup-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(46, 204, 113, 0.5);
}

.backup-btn:active {
  transform: translateY(0);
}

.backup-btn.loading {
  background: #95a5a6;
  cursor: not-allowed;
  animation: pulse 1.5s infinite;
}

.backup-btn.success {
  background: linear-gradient(135deg, #f39c12, #f1c40f);
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.7;
  }
}

.burger-menu {
  width: 40px;
  height: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  background: #333;
  padding: 8px;
  border-radius: 6px;
}

.burger-menu span {
  display: block;
  height: 4px;
  width: 100%;
  background: #008f39;
  /* Dark Green - feuillage foncé */
  border-radius: 4px;
  transition: 0.3s;
}

.burger-menu:hover span:nth-child(1) {
  width: 50%;
}

.burger-menu:hover span:nth-child(2) {
  width: 80%;
}

.burger-menu:hover span:nth-child(3) {
  width: 100%;
  background: #008f39;
}

/* Hero Section */
.hero {
  height: 100vh;
  width: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('assets/cave.webp');
  background-size: cover;
  background-position: center;
  filter: brightness(0.4) contrast(1.2) grayscale(0.2);
  z-index: -1;
}

.hero-bg::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, transparent 40%, var(--dark) 100%);
}

.hero-content {
  text-align: center;
  z-index: 1;
  max-width: 800px;
  padding: 2rem;
}

h1 {
  font-family: var(--font-display);
  font-size: 8rem;
  line-height: 0.85;
  text-transform: uppercase;
  color: var(--light);
  margin-bottom: 2rem;
  text-shadow: 4px 4px 0px var(--secondary);
}

h1 span {
  display: block;
  color: var(--primary);
  text-shadow: 4px 4px 0px var(--accent);
}

.cta-btn {
  display: inline-block;
  padding: 1rem 3rem;
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--dark);
  background: var(--primary);
  text-decoration: none;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: 0.3s;
  clip-path: polygon(10% 0, 100% 0, 100% 80%, 90% 100%, 0 100%, 0 20%);
}

.cta-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: 0.5s;
}

.cta-btn:hover {
  background: var(--light);
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 10px 20px rgba(242, 255, 0, 0.4);
}

.cta-btn:hover::before {
  left: 100%;
}

/* Catalogue Section */
.catalogue {
  padding: 10rem 2rem 4rem;
  background: transparent;
  min-height: 100vh;
  position: relative;
}

.section-title {
  font-family: var(--font-display);
  font-size: 5rem;
  text-align: center;
  margin-bottom: 4rem;
  color: var(--light);
  text-transform: uppercase;
  letter-spacing: 3px;
}

.section-title span {
  color: var(--primary);
  /* Orange doré comme 'PRIMATI' */
  position: relative;
  display: inline-block;
  text-shadow: 2px 2px 0 var(--secondary);
  /* Ombre magenta */
}

.section-title span::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 8px;
  background: linear-gradient(90deg, var(--accent), var(--accent-cyan));
  transform: skewX(-15deg);
  z-index: -1;
  border-radius: 2px;
}

/* Style Filters (like Stock-app) */
/* Nouveau Conteneur Global pour le Header du Catalogue */
.catalogue-header {
  max-width: 1400px;
  margin: 0 auto 3rem;
  padding: 2rem 1rem;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 20px;
  backdrop-filter: blur(4px);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
  position: relative;
  z-index: 500;
}

.style-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  width: 100%;
  /* Prend toute la largeur du parent */
  margin: 0;
  /* Plus de marge, géré par le gap du parent */
  padding: 0;
  /* Plus de padding ni de fond */
}

.style-filter-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--gray);
  border: 1px solid #444;
  border-radius: 20px;
  color: #ccc;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
}

.style-filter-btn:hover {
  border-color: #666;
  background: #2a2a2a;
  transform: translateY(-2px);
}

.style-filter-btn.active {
  background: #2a2a2a;
  border-color: var(--primary);
  color: var(--light);
  font-weight: 700;
  box-shadow: 0 0 10px rgba(242, 255, 0, 0.2);
}

.style-filter-btn .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

.style-filter-btn .count {
  display: none !important;
}

.style-filter-btn.active .count {
  background: var(--primary);
  color: var(--dark);
}

/* Controls */
.controls {
  max-width: 1400px;
  width: 100%;
  margin: 0;
  /* Marge gérée par .catalogue-header */
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: center;
}

/* Search Container with Button */
.search-container {
  display: flex;
  gap: 0;
  flex: 1;
  min-width: 250px;
  border-radius: 50px;
  overflow: hidden;
  border: 2px solid #333;
  transition: border-color 0.3s, box-shadow 0.3s;
  background: var(--gray);
}

.search-box,
.filter-select {
  padding: 0.45rem 1rem;
  background: var(--gray);
  border: 2px solid #333;
  color: var(--light);
  font-family: var(--font-body);
  font-size: 0.92rem;
  border-radius: 8px;
  transition: all 0.3s;
}

.search-input-wrapper {
  position: relative;
  flex: 1;
  display: flex;
  min-width: 200px;
}

.search-input-wrapper .search-box {
  flex: 1;
  width: 100%;
  padding-right: 2.7rem;
  border-radius: 0;
  border: none;
  background: transparent;
}

/* Clear Search Button */
.clear-search-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(30, 41, 59, 0.6); /* Translucent slate */
  color: #94a3b8; /* Slate gray */
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: all 0.2s ease;
  z-index: 2;
}

.clear-search-btn:hover {
  background: rgba(30, 41, 59, 0.85);
  border-color: rgba(56, 189, 248, 0.65); /* Cyan border */
  color: #38bdf8; /* Cyan 'X' */
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.35);
}

.clear-search-btn svg {
  display: block;
}


.search-btn {
  padding: 0.45rem 1.1rem;
  background: var(--primary);
  border: none;
  border-left: 2px solid rgba(0,0,0,0.2);
  color: #000;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 900;
  border-radius: 0;
  cursor: pointer;
  transition: all 0.25s;
  letter-spacing: 1px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-btn:hover {
  background: #ffc043;
  box-shadow: inset 0 0 12px rgba(255,255,255,0.15);
  color: #000;
}

/* Focus glow on the pill container */
.search-container:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 14px rgba(245, 166, 35, 0.35);
}

.filter-select {
  min-width: 180px;
  cursor: pointer;
}

.search-box:focus,
.filter-select:focus {
  outline: none;
  border-color: transparent;
  box-shadow: none;
}

.result-count {
  display: none !important;
}

/* Custom Sort Dropdown */
.custom-sort-dropdown {
  display: none !important;
}

.sort-toggle {
  width: 100%;
  padding: 0.8rem 1.2rem;
  background: var(--gray);
  border: 2px solid #333;
  color: var(--light);
  font-family: var(--font-body);
  font-size: 1rem;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s;
}

.sort-toggle:hover,
.sort-toggle:focus {
  border-color: var(--primary);
  box-shadow: 0 0 10px rgba(242, 255, 0, 0.3);
}

.sort-arrow {
  transition: transform 0.3s ease;
  font-size: 0.8rem;
}

.sort-toggle[aria-expanded="true"] .sort-arrow {
  transform: rotate(180deg);
}

.sort-options {
  position: absolute;
  top: calc(100% + 5px);
  left: 0;
  right: 0;
  background: #1a1a1a;
  border: 2px solid #444;
  border-radius: 10px;
  list-style: none;
  padding: 0.5rem 0;
  margin: 0;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  max-height: 400px;
  overflow-y: auto;
}

.custom-sort-dropdown.open .sort-options {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Group Labels */
.sort-group-label {
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #666;
  pointer-events: none;
}

/* Separators */
.sort-separator {
  height: 1px;
  background: linear-gradient(90deg, transparent, #444, transparent);
  margin: 0.5rem 1rem;
}

/* Sort Options */
.sort-option {
  padding: 0.7rem 1.2rem;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sort-option:hover {
  background: rgba(255, 255, 255, 0.1);
  padding-left: 1.5rem;
}

/* Themed Colors */
.sort-name {
  color: #ffffff;
}

.sort-price {
  color: #f1c40f;
}

.sort-abv {
  color: #33Eaff;
}

.sort-random {
  color: #ff6b6b;
  background: linear-gradient(135deg, rgba(255, 107, 107, 0.1), rgba(255, 193, 7, 0.1));
  font-weight: 700;
}

.sort-random:hover {
  background: linear-gradient(135deg, rgba(255, 107, 107, 0.3), rgba(255, 193, 7, 0.2));
}

/* Active Option */
.sort-option.active {
  background: rgba(245, 166, 35, 0.2);
  border-left: 3px solid var(--primary);
  font-weight: 700;
}

.sort-option.active::after {
  content: '✓';
  margin-left: auto;
  color: var(--primary);
}

/* Animated Arrows */
.arrow-anim {
  display: inline-block;
  transition: transform 0.3s ease;
}

.sort-option:hover .arrow-anim {
  animation: bounce-arrow 0.5s ease infinite;
}

@keyframes bounce-arrow {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-3px);
  }
}

.beer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 4rem;
  max-width: 1400px;
  margin: 0 auto;
}

/* Beer Card Styles */
.beer-card {
  background: var(--gray);
  border-radius: 12px;
  padding: 1rem 1.2rem 1.2rem;
  position: relative;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid #333;
  overflow: visible;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  --card-accent: #f5a623;
}

.beer-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: 0.4s;
}

/* Hover effects ONLY on devices with real hover capability (mouse, not touch) */
@media (hover: hover) {
  .beer-card:hover {
    transform: translateY(-12px);
    background: color-mix(in srgb, var(--card-accent) 15%, #222);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 30px color-mix(in srgb, var(--card-accent) 30%, transparent);
    border-color: var(--card-accent);
  }

  .beer-card:hover::before {
    transform: scaleX(1);
  }
}

/* Active / Touch feedback for mobile */
.beer-card:active {
  transform: scale(0.98);
  background: color-mix(in srgb, var(--card-accent) 15%, #222) !important;
  border-color: var(--card-accent) !important;
  box-shadow: 0 0 20px color-mix(in srgb, var(--card-accent) 40%, transparent) !important;
  transition: transform 0.1s ease, background 0.1s ease;
}

/* wishlist-highlight removed - caused conflicts with VanillaTilt */

.beer-card-img-container {
  height: 220px;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 1rem;
  position: relative;
  overflow: hidden;
}

.beer-card img.beer-img {
  height: 100%;
  width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.5));
  transition: transform 0.5s ease;
  z-index: 2;
}

/* Blob Background behind beer */
.blob {
  position: absolute;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
  opacity: 0;
  border-radius: 50%;
  filter: blur(20px);
  transition: 0.5s;
  transform: scale(0.5);
  z-index: 1;
}

.beer-card:hover .blob {
  opacity: 0.2;
  transform: scale(1.2);
}

.beer-card:hover img {
  transform: scale(1.1) rotate(3deg);
}

/* Brewery Logo - Click-based zoom instead of hover */
.brewery-logo {
  cursor: pointer;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(4px);
  border-radius: 8px;
  padding: 4px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
  width: 60px;
  height: 60px;
}

.brewery {
  color: #ffffff;
  font-weight: 700;
  font-size: 1.15rem;
}

.brewery-logo:hover {
  transform: scale(1.08);
  box-shadow: 0 4px 14px rgba(0,0,0,0.6);
}

/* Agrandissement au premier clic - INSTANT (no animation) */
.brewery-logo.zoomed {
  transform: scale(3) !important;
  z-index: 100 !important;
  transition: none !important;
  /* Force instant growth */
}

/* Animation éclatement au deuxième clic ONLY - EXPLOSIVE */
.brewery-logo.burst {
  animation: cardLogoBurstExplosive 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.5) forwards;
  pointer-events: none;
}

.beer-info {
  text-align: center;
  z-index: 2;
  width: 100%;
  flex-grow: 1;
  /* Prend tout l'espace restant */
  display: flex;
  flex-direction: column;
}

.beer-style {
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

.section-title {
  text-align: center;
  font-family: var(--font-display);
  font-size: 5rem;
  color: var(--light);
  margin-bottom: 0;
  /* Marge gérée par .catalogue-header */
  text-transform: uppercase;
  line-height: 1;
}

.beer-name {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--light);
  margin-bottom: 0.5rem;
  line-height: 1;
  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: break-word;
}

.beer-meta {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
  font-weight: 700;
  color: #888;
}

.beer-meta span.abv {
  color: var(--secondary);
}

/* ===== ACCORDION DESCRIPTION ===== */
.beer-desc-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  color: #aaa;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 7px 12px;
  cursor: pointer;
  transition: all 0.25s ease;
  margin-bottom: 0;
}

.beer-desc-toggle:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
  border-color: rgba(255,255,255,0.25);
}

.beer-desc-toggle .desc-arrow {
  font-size: 0.7rem;
  transition: transform 0.3s ease;
  display: inline-block;
}

.beer-desc-toggle.open .desc-arrow {
  transform: rotate(180deg);
}

.beer-desc-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, opacity 0.3s ease, margin 0.3s ease;
  opacity: 0;
  margin-top: 0;
}

.beer-desc-body.open {
  max-height: 300px;
  opacity: 1;
  margin-top: 8px;
}

.beer-desc {
  font-size: 0.85rem;
  color: #bbb;
  line-height: 1.5;
  text-align: center;
  padding: 8px 4px;
  margin: 0;
}

/* ===== LOW STOCK INFO (subtle) ===== */
.beer-stock-info {
  font-size: 0.72rem;
  font-weight: 700;
  color: #e8a040;
  opacity: 0.85;
  white-space: nowrap;
}

/* ===== ABV BAR ===== */
.beer-abv-bar-wrap {
  width: 100%;
  margin: 6px 0 8px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.beer-abv-bar-track {
  width: 100%;
  height: 4px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
  overflow: hidden;
}

.beer-abv-bar-fill {
  height: 100%;
  border-radius: 2px;
  transition: width 0.6s ease;
  background: linear-gradient(90deg, #2ecc71, #f5a623, #e74c3c);
  background-size: 300% 100%;
}

.add-btn {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
  padding: 0.8rem 2rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  text-transform: uppercase;
  cursor: pointer;
  transition: 0.3s;
  width: 100%;
  margin-top: auto;
  /* Toujours en bas de la carte */
}

.add-btn:hover {
  background: var(--primary);
  color: var(--dark);
}

/* Footer */
footer {
  background: var(--darker);
  padding: 3rem;
  text-align: center;
  border-top: 1px solid #333;
}

footer p {
  color: #666;
  font-size: 0.9rem;
}

/* ========== RESPONSIVE ========== */

/* Tablette */
@media (max-width: 1024px) {
  .beer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .section-title {
    font-size: 3.5rem;
  }

  .style-filters {
    gap: 0.5rem;
  }
}

/* Mobile Paysage / Petite Tablette */
@media (max-width: 768px) {
  header {
    padding: 0.5rem 1rem;
  }

  .logo img {
    height: 60px;
  }

  .section-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
  }

  .catalogue {
    padding: 8rem 1rem 2rem;
  }

  .beer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .controls {
    flex-direction: column;
    gap: 0.8rem;
  }

  .search-input-wrapper {
    width: 100%;
    min-width: unset;
  }

  .style-filters {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
  }

  .style-filter-btn {
    font-size: 0.75rem;
    padding: 0.4rem 0.8rem;
  }

  .beer-card {
    padding: 1.5rem;
  }

  .beer-card-img-container {
    height: 250px;
  }

  .beer-name {
    font-size: 1.8rem;
  }

  .beer-meta {
    flex-direction: column;
    gap: 0.5rem;
  }

  .add-btn {
    font-size: 1rem;
    padding: 0.7rem 1.5rem;
  }
}

/* Mobile Portrait */
@media (max-width: 480px) {
  header {
    padding: 0.3rem 0.8rem;
  }

  .logo img {
    height: 50px;
  }

  .burger-menu span {
    width: 20px;
  }

  .section-title {
    font-size: 2rem;
  }

  .catalogue {
    padding: 7rem 0.8rem 1.5rem;
  }

  .style-filter-btn {
    font-size: 0.7rem;
    padding: 0.3rem 0.6rem;
  }

  .style-filter-btn .dot {
    width: 8px;
    height: 8px;
  }

  .beer-card {
    padding: 1rem;
  }

  .beer-card-img-container {
    height: 200px;
  }

  .beer-name {
    font-size: 1.5rem;
  }

  .beer-desc {
    font-size: 0.85rem;
  }

  .add-btn {
    font-size: 0.9rem;
    padding: 0.6rem 1rem;
  }
}

/* ========== NEW COMPONENTS ========== */

/* Accessibility - Screen Reader Only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Hero Mini Section */
.hero-mini {
  padding: 120px 2rem 40px;
  text-align: center;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
}

.hero-logo {
  width: 100%;
  max-width: 600px;
  height: auto;
  margin: 0 auto;
  display: block;
}

.main-title {
  font-family: var(--font-display);
  line-height: 1;
}

.title-small {
  display: block;
  font-size: 1.5rem;
  color: var(--text-secondary, #bbb);
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.title-big {
  display: block;
  font-size: clamp(3rem, 10vw, 7rem);
  color: var(--text-primary, #fff);
  text-transform: uppercase;
}

.title-big .highlight {
  color: var(--primary);
  text-shadow: 3px 3px 0 var(--secondary);
}

.title-tagline {
  display: block;
  font-size: 1.1rem;
  color: var(--accent);
  margin-top: 15px;
  letter-spacing: 2px;
}

/* Cart & Wishlist Buttons in Header */
.cart-btn,
.wishlist-btn {
  background: transparent;
  border: 2px solid var(--border-color, #333);
  color: var(--text-primary, #fff);
  padding: 8px 16px;
  border-radius: 25px;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.3s;
}

.cart-btn:hover,
.wishlist-btn:hover {
  border-color: var(--primary);
  background: rgba(245, 166, 35, 0.1);
}

.cart-count,
.wishlist-count {
  background: var(--primary);
  color: #000;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
  min-width: 24px;
  text-align: center;
}

/* Mobile Menu Overlay */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 300px;
  max-width: 85vw;
  height: 100vh;
  background: var(--bg-secondary, #1f1f1f);
  z-index: 2000;
  transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  box-shadow: -5px 0 30px rgba(0, 0, 0, 0.5);
}

.mobile-menu.open {
  right: 0;
}

.close-menu {
  position: absolute;
  top: 20px;
  right: 20px;
  background: transparent;
  border: none;
  color: var(--text-primary, #fff);
  font-size: 2.5rem;
  cursor: pointer;
  transition: color 0.3s;
}

.close-menu:hover {
  color: var(--primary);
}

.menu-nav {
  padding: 80px 30px 30px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.menu-link {
  color: var(--text-primary, #fff);
  text-decoration: none;
  font-size: 1.2rem;
  padding: 15px 20px;
  border-radius: 10px;
  transition: all 0.3s;
}

.menu-link:hover {
  background: var(--bg-tertiary, #2a2a2a);
  color: var(--primary);
  transform: translateX(5px);
}

.menu-link.social {
  font-size: 1rem;
  color: var(--text-secondary, #bbb);
}

.menu-nav hr {
  border: none;
  border-top: 1px solid var(--border-color, #333);
  margin: 15px 0;
}

.menu-footer {
  margin-top: auto;
  padding: 30px;
  border-top: 1px solid var(--border-color, #333);
}

.theme-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px 20px;
  background: var(--bg-tertiary, #2a2a2a);
  border: 2px solid var(--border-color, #333);
  border-radius: 10px;
  color: var(--text-primary, #fff);
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s;
}

.theme-toggle:hover {
  border-color: var(--primary);
}

.theme-icon {
  font-size: 1.3rem;
}

/* Product Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}

.modal:not([hidden]) {
  opacity: 1;
  visibility: visible;
}

.modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(5px);
}

.modal-content {
  position: relative;
  background: var(--bg-secondary, #1f1f1f);
  border-radius: 20px;
  max-width: 900px;
  width: 90%;
  max-height: 90vh;
  overflow: auto;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border-color, #333);
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  background: transparent;
  border: none;
  color: var(--text-primary, #fff);
  font-size: 2rem;
  cursor: pointer;
  z-index: 10;
  transition: color 0.3s;
}

.modal-close:hover {
  color: var(--primary);
}

.modal-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  padding: 40px;
}

.modal-image {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-tertiary, #2a2a2a);
  border-radius: 15px;
  padding: 20px;
}

.modal-image img {
  max-width: 100%;
  max-height: 400px;
  object-fit: contain;
}

.modal-details {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.modal-style {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
}

.modal-title {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--text-primary, #fff);
  line-height: 1.1;
}

.modal-brewery {
  color: var(--text-muted, #888);
  font-style: italic;
}

.modal-origin {
  color: var(--text-muted, #888);
  font-style: italic;
  font-size: 1rem;
}

.modal-stats {
  display: flex;
  gap: 20px;
  font-weight: 700;
}

.modal-abv {
  color: var(--accent-cyan);
}

.modal-price {
  color: var(--primary);
  font-size: 1.5rem;
}

.modal-desc {
  color: var(--text-secondary, #bbb);
  line-height: 1.6;
  flex-grow: 1;
  white-space: pre-line;
}

.modal-actions {
  display: flex;
  gap: 15px;
  margin-top: auto;
}

/* Buttons */
.btn-primary,
.btn-secondary,
.btn-danger {
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s;
  flex: 1;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), #e09b1d);
  color: #000;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(245, 166, 35, 0.4);
}

.btn-secondary {
  background: transparent;
  border: 2px solid var(--secondary);
  color: var(--secondary);
}

.btn-secondary:hover {
  background: var(--secondary);
  color: #fff;
}

.btn-danger {
  background: var(--danger);
  color: #fff;
}

.btn-danger:hover {
  background: #c0392b;
}

/* Cart Sidebar */
.cart-sidebar,
.wishlist-sidebar {
  position: fixed;
  top: 0;
  right: -400px;
  width: 380px;
  max-width: 90vw;
  height: 100dvh;
  /* Better for mobile */
  background: var(--bg-secondary, #1f1f1f);
  z-index: 2500;
  transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  box-shadow: -5px 0 30px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  /* Prevent sidebar itself from scrolling, delegate to cart-items */
}

.cart-sidebar:not([hidden]),
.wishlist-sidebar:not([hidden]) {
  right: 0;
}

.cart-header,
.wishlist-header {
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color, #333);
}

.cart-header h3,
.wishlist-header h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--text-primary, #fff);
}

.cart-close,
.wishlist-close {
  background: transparent;
  border: none;
  color: var(--text-primary, #fff);
  font-size: 2rem;
  cursor: pointer;
}

.cart-close:hover,
.wishlist-close:hover {
  color: var(--primary);
}

.cart-items,
.wishlist-items {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

.cart-item,
.wishlist-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: transparent;
  margin-bottom: 0;
}

/* Remove old image styles & ensure images are hidden */
.cart-item-img,
.wishlist-item-img {
  display: none !important;
}

.cart-item-info,
.wishlist-item-info {
  flex: 1;
}

.cart-item-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}

.cart-item-name,
.wishlist-item-name {
  font-weight: 700;
  color: var(--text-primary, #fff);
  font-size: 1rem;
  margin-bottom: 0;
}

.cart-item-price {
  color: #888;
  font-size: 0.9rem;
}

.cart-item-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.qt-selector {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.05);
  padding: 2px;
  border-radius: 4px;
}

.cart-item-subtotal {
  font-weight: bold;
  color: var(--primary);
}

.qty-btn {
  width: 24px;
  height: 24px;
  border: none;
  background: transparent;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.qty-btn:hover {
  color: var(--primary);
  background: transparent;
  border: none;
}

.cart-item-remove,
.wishlist-item-remove {
  background: transparent;
  border: none;
  color: #666;
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
  padding: 0 5px;
  transition: color 0.2s ease;
}

.cart-item-remove:hover,
.wishlist-item-remove:hover {
  color: var(--danger, #ff0055);
}

.wishlist-item-actions {
  margin-top: 0.5rem;
  display: flex;
  gap: 10px;
  align-items: center;
}

.wishlist-add-to-cart-btn {
  padding: 6px 12px !important;
  font-size: 0.85rem !important;
  border-radius: 6px !important;
  display: inline-flex !important;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  height: auto !important;
  line-height: 1.2 !important;
}

.cart-item-price {
  color: var(--primary);
  font-weight: 700;
}

.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.qty-btn {
  width: 28px;
  height: 28px;
  border: 1px solid var(--border-color, #333);
  background: transparent;
  color: var(--text-primary, #fff);
  border-radius: 5px;
  cursor: pointer;
}

.qty-btn:hover {
  background: var(--primary);
  color: #000;
  border-color: var(--primary);
}

.cart-item-remove,
.wishlist-item-remove {
  background: transparent;
  border: none;
  color: var(--danger);
  cursor: pointer;
  font-size: 1.2rem;
  align-self: flex-start;
}

.cart-footer {
  padding: 20px;
  border-top: 1px solid var(--border-color, #333);
}

.cart-total {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary, #fff);
  margin-bottom: 15px;
  display: flex;
  justify-content: space-between;
}

.cart-total span {
  color: var(--primary);
}

.cart-empty,
.wishlist-empty {
  text-align: center;
  color: var(--text-muted, #888);
  padding: 40px 20px;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 4000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  padding: 15px 25px;
  background: var(--bg-secondary, #1f1f1f);
  border-left: 4px solid var(--primary);
  border-radius: 8px;
  color: var(--text-primary, #fff);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  animation: slideInRight 0.3s ease, fadeOut 0.3s ease 2.7s forwards;
  max-width: 350px;
}

.toast.success {
  border-color: var(--accent);
}

.toast.error {
  border-color: var(--danger);
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes fadeOut {
  to {
    opacity: 0;
    transform: translateX(50px);
  }
}

/* About & Contact Sections */
.about-section,
.contact-section {
  padding: 80px 2rem;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.about-section h2,
.contact-section h2 {
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 20px;
}

.about-section p {
  color: var(--text-secondary, #bbb);
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 15px;
}

.contact-card {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid #333;
  border-radius: 15px;
  padding: 2rem;
  backdrop-filter: blur(4px);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  margin-top: 10px;
}

.contact-address {
  border-left: 3px solid var(--primary);
  padding-left: 15px;
  text-align: left;
  font-size: 1.2rem;
  line-height: 1.6;
  font-family: var(--font-body);
}

.highlight-primary {
  color: var(--primary);
  font-weight: bold;
}

.contact-email {
  font-size: 1.1rem;
}

.email-link {
  color: var(--accent-cyan);
  text-decoration: none;
  transition: color 0.3s;
}

.email-link:hover {
  color: var(--primary);
  text-decoration: underline;
}

/* Legal disclaimer & links in footer */
.legal-disclaimer {
  font-size: 0.8rem;
  margin-top: 10px;
  opacity: 0.8;
  letter-spacing: 0.5px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.footer-links {
  margin-top: 15px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.footer-link {
  color: #888;
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.3s;
}

.footer-link:hover {
  color: var(--primary);
  text-decoration: underline;
}

.separator {
  color: #444;
}

/* Page Legale Specifique Styles */
.legal-page-container {
  max-width: 900px;
  margin: 100px auto 50px;
  padding: 2.5rem;
  background: rgba(0, 0, 0, 0.65);
  border: 1px solid #333;
  border-radius: 20px;
  backdrop-filter: blur(10px);
}

.legal-page-container h1 {
  font-family: var(--font-display);
  font-size: 3.5rem;
  color: var(--primary);
  text-transform: uppercase;
  margin-bottom: 2rem;
  border-bottom: 2px solid var(--primary);
  padding-bottom: 1rem;
  text-align: center;
}

.legal-page-container h3 {
  font-family: var(--font-body);
  font-size: 1.4rem;
  color: var(--primary);
  margin-top: 2rem;
  margin-bottom: 0.8rem;
}

.legal-page-container p, .legal-page-container li {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #ccc;
  margin-bottom: 1rem;
}

.legal-page-container ul {
  margin-left: 20px;
  margin-bottom: 1.5rem;
}

.back-home-btn {
  display: inline-block;
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
  padding: 0.8rem 2rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  text-transform: uppercase;
  text-decoration: none;
  margin-bottom: 2rem;
  transition: 0.3s;
  border-radius: 8px;
}

.back-home-btn:hover {
  background: var(--primary);
  color: var(--dark);
}

/* Wishlist Button on Cards */
.beer-card-wishlist {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(0, 0, 0, 0.5);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  transition: all 0.3s;
  z-index: 10;
}

.beer-card-wishlist:hover {
  background: rgba(0, 0, 0, 0.7);
  transform: scale(1.1);
}

.beer-card-wishlist.active {
  background: rgba(0, 0, 0, 0.5);
  /* Only heart emoji is red, not the background */
}

.beer-card-wishlist.has-brewery {
  top: 80px; /* Stacked below the 60px brewery logo */
  right: 20px; /* Centered relative to the logo */
}

/* ===== BADGE PRIX (haut gauche, encadré jaune) ===== */
.card-price-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #f1c40f;
  color: #111;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 900;
  padding: 4px 10px;
  border-radius: 6px;
  z-index: 25;
  box-shadow: 0 2px 8px rgba(0,0,0,0.5);
  white-space: nowrap;
  line-height: 1.2;
}

/* ===== DRAPEAU + ORIGINE (sous le badge prix, haut gauche) ===== */
.card-origin-badge {
  position: absolute;
  top: 52px;   /* juste sous le badge prix (~42px) + gap */
  left: 10px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  z-index: 25;
}

.card-flag-img {
  width: 48px;
  height: auto;
  object-fit: contain;
  border-radius: 3px;
}

.card-origin-label {
  color: #fff;
  font-size: 0.72rem;
  font-style: italic;
  text-shadow: 0 1px 3px rgba(0,0,0,0.8);
  white-space: nowrap;
  background-color: rgba(180, 180, 180, 0.15);
  border-radius: 6px;
  padding: 2px 6px;
}

/* ===== BADGES TECHNIQUES ALC / VOLUME (droite de la canette) ===== */
.card-tech-badges {
  position: absolute;
  right: 12px;
  top: 133px; /* Centré entre le bas du coeur (sans logo, top:15px + height:40px = 55px) et le nom (~252px) - réduit d'un tiers */
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 15;
}

.has-brewery-logo .card-tech-badges {
  top: 168px; /* Centré entre le bas du coeur (avec logo, top:80px + height:40px = 120px) et le nom (~252px) - réduit d'un tiers */
}

.card-badge {
  display: block;
  padding: 3px 7px; /* Réduit d'un tiers */
  border-radius: 50px;          /* ovale */
  font-family: var(--font-body);
  font-size: 0.48rem; /* Réduit d'un tiers (0.72rem * 2/3) */
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
  line-height: 1.3;
  letter-spacing: 0.3px;
}

.card-badge-alc {
  background: linear-gradient(135deg, #6b1a3a, #9b2255);
  color: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.15);
}

.card-badge-vol {
  background: linear-gradient(135deg, #7a1f45, #b02860);
  color: #ffd0e8;
  box-shadow: 0 2px 6px rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.15);
}

/* ===== BEER-INFO zone texte ===== */
.beer-info {
  text-align: center;
  z-index: 2;
  width: 100%;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  padding: 0 0.3rem;
}

.beer-desc-section {
  margin-top: auto; /* Force la description et le bouton panier à s'accoler au bas */
}

.beer-desc-section + .add-btn {
  margin-top: 10px !important; /* Marge standard entre description et bouton panier */
}


/* Modal Responsive */
@media (max-width: 768px) {
  .modal-body {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .modal-image {
    max-height: 250px;
  }

  .modal-title {
    font-size: 1.8rem;
  }

  .modal-actions {
    flex-direction: column;
  }

  .cart-btn,
  .wishlist-btn {
    padding: 6px 10px;
    font-size: 0.9rem;
    gap: 4px;
  }

  .cart-btn span,
  .wishlist-btn span {
    display: inline-block;
    min-width: 18px;
    padding: 1px 5px;
    font-size: 0.75rem;
  }

  .header-actions {
    gap: 0.8rem;
  }

  /* Réduction taille vignettes ~1/3 -> Passage en 2 colonnes */
  .beer-grid {
    gap: 0.8rem;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    /* Force 2 cols shrinking */
    padding: 0 0.5rem;
  }

  .beer-card {
    padding: 0.6rem 0.4rem;
  }

  .beer-card-img-container {
    height: 160px;
    /* Reduced to fit 2 cols */
    margin-bottom: 0.8rem;
  }

  .beer-name {
    font-size: 1.05rem;
    margin-bottom: 5px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
  }

  /* Override inline styles from JS */
  .brewery-logo {
    width: 45px !important;
    height: 45px !important;
    right: 10px !important;
    left: auto !important;
    top: 10px !important;
  }

  .beer-card-wishlist.has-brewery {
    top: 60px !important;
    right: 13px !important;
  }

  .local-logo {
    left: -5px !important;
    top: 85px !important; /* Centré verticalement avec les badges Alc/Vol à droite (taille 66px) */
    width: 66px !important; /* augmenté d'un tiers (50px * 1.33) */
    height: 66px !important;
  }

  .has-brewery-logo .local-logo {
    top: 108px !important; /* Centré verticalement quand il y a un logo de brasserie */
  }

  .beer-header img {
    max-width: 50px !important;
    height: auto !important;
  }

  .beer-price {
    font-size: 1.15rem !important;
  }

  /* ── Nouveaux badges en mobile ── */
  .card-price-badge {
    font-size: 0.95rem;
    padding: 3px 7px;
    top: 8px;
    left: 8px;
  }

  .card-origin-badge {
    top: 42px;
    left: 8px;
  }

  .card-flag-img {
    width: 34px;
  }

  .card-origin-label {
    font-size: 0.6rem;
  }

  .card-badge {
    font-size: 0.4rem; /* Réduit d'un tiers (0.6rem * 2/3) */
    padding: 2px 5px;  /* Réduit d'un tiers */
  }

  .card-tech-badges {
    right: 10px !important;
    top: 103px !important; /* Centré verticalement avec les badges de taille 30px */
    gap: 3px;
    transform: none !important;
  }

  .has-brewery-logo .card-tech-badges {
    top: 126px !important; /* Centré verticalement quand il y a un logo de brasserie */
  }

  .add-btn {
    font-size: 0.8rem;
    padding: 6px 10px;
  }

  .brewery {
    font-size: 0.95rem;
    font-weight: 600;
    color: #ccc;
    font-style: italic;
  }
}

/* Overlay when sidebars are open */
/* Overlay when sidebars are open */
html.overlay-active,
body.overlay-active {
  overflow: hidden !important;
  height: 100% !important;
  touch-action: none;
  /* Prevent scroll on mobile */
}

.overlay-active::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1999;
}

/* ========== FLOATING BREWERY LOGOS ========== */
.floating-logos-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

/* Local Logo on Beer Cards */
.local-logo {
  position: absolute;
  top: 120px; /* Centré verticalement avec les badges Alc/Vol à droite */
  left: -3px;
  width: 65px;
  height: 65px;
  z-index: 15;
  object-fit: contain;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
  transform-origin: center center;
  filter: invert(1) brightness(1.5) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.has-brewery-logo .local-logo {
  top: 155px; /* Centré verticalement avec les badges quand il y a un logo de brasserie */
}

.local-logo:hover {
  transform: scale(1.2) !important;
  z-index: 50 !important;
}

.local-logo.zoomed {
  transform: scale(2.5) !important; /* Agrandit le tampon */
  z-index: 100 !important;
  transition: none !important;
}

.floating-logo {
  position: absolute;
  width: 30px;
  height: 30px;
  object-fit: contain;
  opacity: 0.5;
  filter: grayscale(0%) brightness(1.2);
  will-change: transform;
  border-radius: 8px;
  pointer-events: auto;
  transition: opacity 0.3s ease, filter 0.3s ease, transform 0.3s ease;
}

.floating-logo:hover {
  opacity: 1;
  filter: grayscale(0%) brightness(1.3);
  z-index: 100;
  transform: scale(2);
}

/* Burst animation for FLOATING logos (simple, original animation) */
.floating-logo.burst {
  animation: floatingLogoBurstSimple 0.3s ease-out forwards;
  pointer-events: none;
}

/* Standalone Shockwave for bursting effect */
/* Standalone Shockwave for bursting effect - REDUCED INTENSITY */
.shockwave {
  position: fixed;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid rgba(245, 166, 35, 0.6);
  /* Thinner and more transparent */
  transform: translate(-50%, -50%) scale(1);
  animation: shockwaveAnim 0.5s ease-out forwards;
  pointer-events: none;
  z-index: 1000;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
  /* Reduced shadow */
}

/* Pseudo-element for the shockwave/ripple effect */

/* SIMPLE BURST for floating logos (original, unchanged) */
@keyframes floatingLogoBurstSimple {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }

  40% {
    transform: scale(1.2);
    opacity: 0.9;
  }

  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

/* EXPLOSIVE BURST for card brewery logos (second click only) */
/* EXPLOSIVE BURST for card brewery logos (second click only) - TONED DOWN */
@keyframes cardLogoBurstExplosive {
  0% {
    transform: scale(3) rotate(0deg);
    opacity: 1;
    filter: blur(0px) brightness(1);
  }

  30% {
    transform: scale(3.5) rotate(2deg);
    opacity: 0.9;
    filter: blur(0.5px) brightness(1.2);
  }

  60% {
    transform: scale(4) rotate(-5deg);
    opacity: 0.5;
    filter: blur(1px) brightness(1.2);
  }

  100% {
    transform: scale(5) rotate(5deg);
    opacity: 0;
    filter: blur(2px) brightness(1.5);
  }
}

/* SHOCKWAVE for card logos - TONED DOWN */
@keyframes shockwaveAnim {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.8;
    border-width: 3px;
    border-color: rgba(245, 166, 35, 1);
    box-shadow: 0 0 10px rgba(245, 166, 35, 0.6);
  }

  50% {
    transform: translate(-50%, -50%) scale(2);
    opacity: 0.4;
    border-width: 2px;
    border-color: rgba(255, 193, 7, 0.8);
    box-shadow: 0 0 20px rgba(255, 193, 7, 0.4);
  }

  100% {
    transform: translate(-50%, -50%) scale(3);
    opacity: 0;
    border-width: 0px;
    border-color: rgba(255, 255, 255, 0);
    box-shadow: 0 0 0 transparent;
  }
}

/* FIX: Allow clicks to pass through content containers to reach floating logos - REMOVED for UX/Interaction safety */
/* Standard interaction model restored */

/* Responsive Typography */
@media (max-width: 768px) {
  h1 {
    font-size: 3.5rem;
  }

  .section-title {
    font-size: 2.5rem;
  }

  .hero-content {
    padding: 1rem;
  }

  .beer-grid {
    gap: 0.8rem;
    padding: 0 0.5rem;
  }

  .catalogue-header {
    margin: 0 0.5rem 3rem !important;
  }


  /* Ensure Left Column spacing */
  .cart-item-left {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: center !important;
    gap: 2px !important;
    flex: 1 !important;
  }

  /* Spacing for Name and Price */
  .cart-item-name {
    margin-bottom: 2px !important;
  }

  .cart-item-unit-price {
    margin-bottom: 2px !important;
  }
}

/* FORCE RESET for Remove Link - GLOBAL */
.cart-item-remove-link {
  background-color: transparent !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  color: #e74c3c !important;
  font-weight: normal !important;
  padding: 0 !important;
  margin-top: 5px !important;
  text-decoration: none !important;
  font-size: 0.85rem !important;
  cursor: pointer !important;
  display: inline-block !important;
  width: auto !important;
  text-align: left !important;
  border-radius: 0 !important;
}

.cart-item-remove-link:hover {
  text-decoration: underline !important;
  color: #ff6b6b !important;
  background: transparent !important;
  transform: none !important;
  box-shadow: none !important;
}

/* Ensure Left Column spacing - GLOBAL Redefinition to be safe */
.cart-item-left {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: center !important;
  gap: 2px !important;
  flex: 1 !important;
}

/* Spacing for Name and Price - GLOBAL */
.cart-item-name-container {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.cart-item-name {
  margin-bottom: 2px !important;
}

.cart-item-details-btn {
  background: none !important;
  border: none !important;
  padding: 4px !important;
  cursor: pointer !important;
  color: #888 !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease, transform 0.2s ease !important;
  width: auto !important;
  height: auto !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

.cart-item-details-btn:hover {
  color: var(--primary, #f5a623) !important;
  transform: scale(1.15);
  background: transparent !important;
}

.cart-item-details-btn svg {
  display: block;
}

.cart-item-unit-price {
  margin-bottom: 2px !important;
}

/* Right Column Spacing - Stuck to corners */
.cart-item-right {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-end !important;
  justify-content: center !important;
  gap: 8px;
  align-self: stretch !important;
  height: auto !important;
  padding-left: 10px;
  /* Space between columns */
}

.cart-item-header-right {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 8px !important;
}

/* Language Switcher Styling */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid #333;
  padding: 4px 10px;
  border-radius: 20px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.85rem;
}

.lang-btn {
  background: transparent;
  border: none;
  color: #888;
  cursor: pointer;
  padding: 2px 4px;
  transition: color 0.3s;
  font-family: inherit;
  font-weight: inherit;
  font-size: inherit;
}

.lang-btn:hover {
  color: #fff;
}

.lang-btn.active {
  color: var(--primary) !important;
  text-shadow: 0 0 5px rgba(245, 166, 35, 0.4);
}

.lang-separator {
  color: #444;
  user-select: none;
}

/* Show header lang switcher on mobile and adjust sizing, hide in menu burger */
@media (max-width: 768px) {
  .header-lang {
    display: flex !important;
    padding: 3px 8px !important;
    font-size: 0.75rem !important;
    gap: 3px !important;
    border-radius: 15px !important;
  }
  
  .header-lang .lang-btn {
    padding: 1px 3px !important;
  }
  
  .mobile-lang {
    display: none !important;
  }
}

/* Google Translate Hidden elements & clean overlay override */
.goog-te-banner-frame.skiptranslate,
.goog-te-banner-frame,
iframe.goog-te-banner-frame {
  display: none !important;
}
body {
  top: 0 !important;
}
.goog-tooltip,
.goog-tooltip:hover {
  display: none !important;
}
.goog-text-highlight {
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
}