/* --- Police Officielle Malt'Hazard (Logo & Titres) --- */
@font-face {
  font-family: 'DDIN';
  src: url('fonts/ddin-bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'DDINCondensed';
  src: url('fonts/ddin-condensed-bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* --- Polices Typographiques des Bières Malt'Hazard --- */
@font-face {
  font-family: 'FontStdout';
  src: url('fonts/stdout.ttf') format('truetype');
  font-display: swap;
}

@font-face {
  font-family: 'FontElixir';
  src: url('fonts/elixirecarlate.ttf') format('truetype');
  font-display: swap;
}

@font-face {
  font-family: 'FontGrandiose';
  src: url('fonts/grandiosequill.ttf') format('truetype');
  font-display: swap;
}

@font-face {
  font-family: 'FontGilroy';
  src: url('fonts/gilroy.ttf') format('truetype');
  font-display: swap;
}

@font-face {
  font-family: 'FontForestiere';
  src: url('fonts/laforestiere.otf') format('opentype');
  font-display: swap;
}

@font-face {
  font-family: 'FontPetroleum';
  src: url('fonts/petroleum.otf') format('opentype');
  font-display: swap;
}

@font-face {
  font-family: 'Metropolis';
  src: url('fonts/metropolis.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'FontCuveeMalo';
  src: url('fonts/lacollineboisee.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* --- Calibrage Optique des Titres de Bières (Taille & Graisse Rigoureusement Identiques) --- */
.font-stdout { font-family: 'FontStdout', monospace !important; font-size: 1.32rem !important; font-weight: 700 !important; letter-spacing: -0.01em; }
.font-elixir { font-family: 'FontElixir', Georgia, serif !important; font-size: 1.28rem !important; font-weight: 700 !important; letter-spacing: 0.02em; }
.font-confinee { font-family: 'FontGilroy', sans-serif !important; font-size: 1.32rem !important; font-weight: 700 !important; letter-spacing: -0.01em; }
.font-forestiere { font-family: 'FontForestiere', serif !important; font-size: 1.48rem !important; font-weight: 700 !important; }
.beer-title-forestiere { font-family: var(--font-system, -apple-system, sans-serif) !important; font-size: 1.48rem !important; font-weight: 700 !important; }
.beer-title-forestiere span { font-family: 'FontForestiere', serif !important; font-weight: 700 !important; }
.font-petroleum { font-family: 'FontPetroleum', impact, sans-serif !important; font-size: 1.4rem !important; font-weight: 700 !important; letter-spacing: 0.02em; }
.font-adstar { font-family: 'FontGrandiose', cursive, serif !important; font-size: 1.35rem !important; font-weight: 700 !important; }
.font-cuvee-malo { font-family: 'FontCuveeMalo', Georgia, serif !important; letter-spacing: 0.02em; }
.font-brand { font-family: 'DDINCondensed', 'DDIN', -apple-system, sans-serif !important; }
.font-metropolis { font-family: 'Metropolis', -apple-system, BlinkMacSystemFont, sans-serif !important; }
.title-histoire-metropolis {
  font-family: 'Metropolis', -apple-system, BlinkMacSystemFont, sans-serif !important;
  font-size: clamp(1.85rem, 4.2vw, 2.6rem) !important;
  font-weight: 400 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  line-height: 1.2 !important;
  margin-top: 6px;
  margin-bottom: 18px;
}

:root {
  /* --- Palette Malt'Hazard (Thème Officiel Or Doré Prestigieux) --- */
  --bg-base: #fcfbf8;                  /* Off-white malté chaleureux */
  --accent: #b47b16;                   /* Or malté riche et prestigieux */
  --accent-rgb: 180, 123, 22;
  --accent-hover: #966512;
  --accent-gold: #b47b16;              /* Or malté prestigieux */
  --accent-gold-rgb: 180, 123, 22;
  --accent-metallic-red: #b47b16;      /* Harmonisé en or noble */
  --accent-metallic-red-rgb: 180, 123, 22;
  --accent-roast: #1a0505;             /* Torréfaction sombre et profonde */
  
  /* --- Typographie Officielle Marque & Apple --- */
  --font-brand: 'DDINCondensed', 'DDIN', -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif;
  --font-system: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  
  /* --- Encres et Contrastes (Zéro Gris : 100% Noir Pur) --- */
  --ink-primary: #000000;             /* Noir pur absolu */
  --ink-secondary: #000000;           /* Noir pur absolu */
  --ink-tertiary: #000000;            /* Noir pur absolu */
  --ink-on-accent: #ffffff;
  
  /* --- Spécifications Liquid Glass (visionOS / macOS 27) --- */
  --glass-bg: rgba(255, 255, 255, 0.65);
  --glass-bg-subtle: rgba(255, 255, 255, 0.45);
  --glass-bg-hover: rgba(255, 255, 255, 0.82);
  --glass-blur: 24px;
  --glass-saturate: 190%;
  --glass-border: rgba(255, 255, 255, 0.75);
  
  /* Ombres étagées & liseré de biseau lumineux */
  --glass-shadow: 
    0 12px 32px -4px rgba(0, 0, 0, 0.08),
    0 4px 12px -2px rgba(180, 123, 22, 0.08),
    inset 0 1px 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 -1px 1px 0 rgba(0, 0, 0, 0.03);
    
  --glass-shadow-hover: 
    0 20px 48px -8px rgba(180, 123, 22, 0.22),
    0 6px 16px -2px rgba(0, 0, 0, 0.05),
    inset 0 1px 2px 0 rgba(255, 255, 255, 1),
    inset 0 -1px 1px 0 rgba(0, 0, 0, 0.04);

  --r-card: 26px;
  --r-pill: 999px;
  --r-btn: 16px;
  --max-w: 1140px;
  --transition: all 0.28s cubic-bezier(0.25, 1, 0.5, 1);
}

/* --- Reset & Fond de page --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-system);
  background-color: var(--bg-base);
  color: #000000;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
  background-color: var(--bg-base);
  color: #000000;
}

/* Règle absolue : 100% Noir Pur pour tous les textes */
h1, h2, h3, h4, h5, h6, p, span, li, a, label, strong, b, em {
  color: #000000;
}

.section-eyebrow, .glass-pill--accent, .beer-spec-val {
  color: var(--accent) !important;
}

.nav-brand-text {
  color: var(--accent) !important;
}

.nav-action-btn, .nav-action-btn *,
.age-gate-btn--yes, .age-gate-btn--yes * {
  color: #ffffff !important;
}

/* --- Ambiance Lumineuse Liquide (Orbes chauds miel & ambre) --- */
.ambient-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.45;
  will-change: transform;
  animation: orbFloat 24s ease-in-out infinite alternate;
}

.ambient-orb--1 {
  top: -10%;
  left: 20%;
  width: 55vw;
  height: 55vw;
  max-width: 650px;
  max-height: 650px;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.25) 0%, rgba(var(--accent-rgb), 0) 70%);
}

.ambient-orb--2 {
  top: 40%;
  right: -5%;
  width: 50vw;
  height: 50vw;
  max-width: 580px;
  max-height: 580px;
  background: radial-gradient(circle, rgba(var(--accent-gold-rgb), 0.20) 0%, rgba(var(--accent-gold-rgb), 0) 70%);
  animation-duration: 30s;
  animation-delay: -8s;
}

.ambient-orb--3 {
  bottom: -10%;
  left: 10%;
  width: 60vw;
  height: 60vw;
  max-width: 700px;
  max-height: 700px;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.12) 0%, rgba(var(--accent-rgb), 0) 70%);
  animation-duration: 28s;
  animation-delay: -15s;
}

@keyframes orbFloat {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, 30px) scale(1.06); }
  100% { transform: translate(-30px, 50px) scale(0.96); }
}

/* --- Conteneur global --- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Composant Principal : Verre Liquide (Liquid Glass) --- */
.liquid-glass {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: var(--r-card);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.liquid-glass::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0) 100%);
  pointer-events: none;
  border-radius: inherit;
  z-index: -1; /* Derrière le texte pour ne jamais blanchir ou griser les caractères */
}

.liquid-glass > * {
  position: relative;
  z-index: 1;
}

.liquid-glass--interactive:hover {
  background: var(--glass-bg-hover);
  border-color: rgba(255, 255, 255, 0.95);
  box-shadow: var(--glass-shadow-hover);
  transform: translateY(-3px);
}

/* --- Barre de Navigation Flottante Apple (VisionOS / macOS 27 Style) --- */
.floating-nav-wrap {
  position: sticky;
  top: 16px;
  z-index: 100;
  padding: 0 16px;
  margin-bottom: 24px;
}

.floating-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 10px 18px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.70);
  backdrop-filter: blur(28px) saturate(200%);
  -webkit-backdrop-filter: blur(28px) saturate(200%);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: 
    0 10px 30px -4px rgba(0, 0, 0, 0.08),
    inset 0 1px 1px 0 rgba(255, 255, 255, 0.95);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-brand:hover {
  opacity: 0.92;
}

.nav-brand img {
  display: block;
  width: 32px;
  height: 32px;
  object-fit: contain;
  flex-shrink: 0;
}

.nav-brand-text {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--accent) !important;
  line-height: 1;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: var(--r-pill);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-secondary);
  text-decoration: none;
  transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
  color: var(--ink-primary);
  background: rgba(0, 0, 0, 0.05);
  box-shadow: inset 0 1px 1px 0 rgba(255, 255, 255, 0.8), 0 2px 6px rgba(0, 0, 0, 0.03);
}

.nav-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent);
  color: #ffffff;
  padding: 8px 18px;
  border-radius: var(--r-pill);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
}

.nav-action-btn:hover {
  background: var(--accent-hover);
  transform: scale(1.02);
}

/* --- Hero Section --- */
.hero {
  padding: 40px 0 60px;
  text-align: center;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 24px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.hero-pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px rgba(var(--accent-rgb), 0.6);
}

.hero-title {
  font-family: var(--font-brand);
  font-size: clamp(2.6rem, 5.8vw, 4.2rem);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ink-primary);
  margin-bottom: 20px;
}

.hero-title span {
  color: var(--accent-metallic-red);
  display: block;
}

.hero-subtitle {
  max-width: 680px;
  margin: 0 auto 36px;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--ink-secondary);
  line-height: 1.6;
}

/* --- Sections --- */
.section {
  padding: 60px 0;
}

.section-header {
  margin-bottom: 36px;
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-metallic-red);
  margin-bottom: 8px;
}

.section-title {
  font-family: var(--font-brand);
  font-size: clamp(2.1rem, 3.8vw, 2.85rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.15;
  color: var(--ink-primary);
  margin-bottom: 12px;
}

.section-desc {
  max-width: 680px;
  font-size: 1.1rem;
  color: var(--ink-secondary);
  line-height: 1.6;
}

/* --- Cartes des Bières (Liquid Glass) --- */
.beers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}

.beer-card {
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.beer-visual-wrap {
  position: relative;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  background: radial-gradient(circle at center, rgba(var(--accent-gold-rgb), 0.14) 0%, rgba(255, 255, 255, 0.05) 70%);
  margin-bottom: 20px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  overflow: hidden;
}

.beer-visual-wrap img {
  max-height: 190px;
  width: auto;
  object-fit: contain;
  transition: transform 0.4s ease;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.12));
}

.beer-card:hover .beer-visual-wrap img {
  transform: scale(1.08) translateY(-4px);
}

.beer-card {
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  box-sizing: border-box;
}

.beer-card-body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.beer-tags {
  display: flex;
  align-items: center;
  height: 28px;
  margin-bottom: 12px;
}

.glass-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--r-pill);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.85);
  color: var(--ink-primary);
}

.glass-pill--accent {
  background: rgba(var(--accent-rgb), 0.12);
  border-color: rgba(var(--accent-rgb), 0.25);
  color: var(--accent);
}

.beer-title {
  min-height: 2.4rem;
  display: flex;
  align-items: center;
  color: var(--ink-primary);
  margin-bottom: 10px;
}

.beer-desc {
  font-size: 0.94rem;
  color: var(--ink-secondary);
  line-height: 1.55;
  margin-bottom: 18px;
  min-height: 4.4em;
  flex-grow: 1;
}

.beer-specs-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.beer-spec {
  text-align: center;
  padding: 8px 4px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.45);
}

.beer-spec-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--ink-tertiary);
}

.beer-spec-val {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--accent);
}

/* --- Modale de Contrôle d'Âge Légal (Liquid Glass 18+ — Style Jägermeister épuré) --- */
#age-gate {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(18, 16, 15, 0.78);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  transition: opacity 0.4s ease;
}

html.age-verified #age-gate {
  display: none !important;
}

.age-gate-panel {
  position: relative;
  max-width: 540px;
  width: 100%;
  text-align: center;
  padding: 40px 36px 28px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(36px);
  -webkit-backdrop-filter: blur(36px);
  border: 1.5px solid rgba(180, 123, 22, 0.35);
  border-radius: 32px;
  box-shadow: 
    0 24px 64px -8px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.6) inset;
  transform-origin: center center;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.age-gate-logo-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}

.age-gate-logo {
  width: 76px;
  height: 76px;
  object-fit: contain;
  filter: drop-shadow(0 8px 20px rgba(180, 123, 22, 0.35));
}

.age-gate-title {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #000000;
  margin: 0 0 14px;
  text-transform: uppercase;
}

.age-gate-text {
  font-size: 0.95rem;
  color: #000000;
  line-height: 1.55;
  margin: 0 auto 20px;
  max-width: 460px;
}

.age-gate-warning-line {
  display: block;
  margin-top: 10px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #b47b16;
}

/* Zone d'action interactive (permutation fluide boutons / refus) */
.age-gate-actions-slot {
  position: relative;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 6px auto 14px;
  cursor: default;
}

.age-gate-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  width: 100%;
  transition: opacity 0.24s cubic-bezier(0.16, 1, 0.3, 1), transform 0.24s cubic-bezier(0.16, 1, 0.3, 1);
}

.age-gate-btn {
  min-width: 130px;
  padding: 13px 32px;
  border-radius: 9999px;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), background 0.2s ease, box-shadow 0.2s ease;
}

.age-gate-btn--yes {
  background: #000000;
  color: #ffffff !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.age-gate-btn--yes:hover {
  background: var(--accent);
  transform: translateY(-1px) scale(1.03);
  box-shadow: 0 6px 20px rgba(180, 123, 22, 0.45);
}

.age-gate-btn--no {
  background: rgba(0, 0, 0, 0.06);
  color: #000000 !important;
  border-color: rgba(0, 0, 0, 0.12);
}

.age-gate-btn--no:hover {
  background: rgba(0, 0, 0, 0.12);
  transform: translateY(-1px) scale(1.03);
}

/* Message de refus remplaçant les boutons */
.age-gate-refusal {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transform: scale(0.96);
  transition: opacity 0.24s cubic-bezier(0.16, 1, 0.3, 1), transform 0.24s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.age-gate-refusal-text {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 700;
  color: #000000;
  line-height: 1.45;
  max-width: 440px;
}

/* État 'refusé' */
.age-gate-actions-slot.refused .age-gate-buttons {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.96);
}

.age-gate-actions-slot.refused .age-gate-refusal {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

/* Liens légaux en bas de modale */
.age-gate-legal-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.age-gate-legal-link {
  font-size: 0.8rem;
  font-weight: 600;
  color: #000000 !important;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.15s ease;
}

.age-gate-legal-link:hover {
  color: var(--accent) !important;
}

.age-gate-country {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 10px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #000000;
}

.age-gate-country span {
  font-size: 1rem;
}

/* --- Animation de sortie au clic sur OUI (style laser / collapse Jägermeister) --- */
@keyframes ageGateCollapse {
  0% {
    transform: scale(1, 1);
    opacity: 1;
  }
  38% {
    transform: scale(1.02, 0.04);
    opacity: 1;
    border-radius: 8px;
    background: #b47b16;
    border-color: #b47b16;
    box-shadow: 0 0 35px rgba(245, 158, 11, 0.95), 0 0 70px rgba(251, 191, 36, 0.6);
  }
  70% {
    transform: scale(0.65, 0.025);
    opacity: 0.85;
    background: #b47b16;
    border-color: #b47b16;
  }
  100% {
    transform: scale(0, 0.01);
    opacity: 0;
  }
}

@keyframes ageGateBackdropFade {
  0% {
    opacity: 1;
    backdrop-filter: blur(28px) saturate(180%);
    -webkit-backdrop-filter: blur(28px) saturate(180%);
  }
  60% {
    opacity: 0.85;
  }
  100% {
    opacity: 0;
    backdrop-filter: blur(0px) saturate(100%);
    -webkit-backdrop-filter: blur(0px) saturate(100%);
  }
}

#age-gate.age-gate--closing {
  pointer-events: none;
  animation: ageGateBackdropFade 0.5s ease forwards;
}

#age-gate.age-gate--closing .age-gate-panel {
  overflow: hidden;
  animation: ageGateCollapse 0.48s cubic-bezier(0.2, 0.85, 0.25, 1) forwards;
}

#age-gate.age-gate--closing .age-gate-panel * {
  opacity: 0 !important;
  transition: opacity 0.12s ease;
}

/* --- Footer Liquid Glass --- */
.site-footer {
  margin-top: 80px;
  padding: 40px 0 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-inner {
    flex-direction: row;
    text-align: left;
  }
}

.footer-brand {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ink-primary);
}

.footer-holding {
  font-size: 0.85rem;
  color: var(--ink-tertiary);
  margin-top: 4px;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 20px;
  list-style: none;
  flex-wrap: wrap;
}

.footer-link {
  font-size: 0.88rem;
  color: var(--ink-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-link:hover {
  color: var(--accent);
}

/* Mobile Toggle & Menu */
.mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  font-size: 1.4rem;
  color: var(--ink-primary);
  cursor: pointer;
  padding: 6px;
}

/* ==========================================================================
   OPTIMISATIONS RESPONSIVES AVANCÉES (iOS / Android / Écrans Mobiles)
   Gouttières aérées, marges d'air équilibrées et zéro débordement
   ========================================================================== */
@media (max-width: 768px) {
  .nav-links, .nav-action-btn {
    display: none;
  }
  .mobile-toggle {
    display: block;
  }

  /* Marges extérieures d'écran aérées */
  .container {
    padding-left: clamp(16px, 4.5vw, 20px) !important;
    padding-right: clamp(16px, 4.5vw, 20px) !important;
  }

  .floating-nav-wrap {
    top: 10px;
    padding-left: clamp(12px, 3.5vw, 16px);
    padding-right: clamp(12px, 3.5vw, 16px);
    margin-bottom: 20px;
  }

  .floating-nav {
    padding: 8px 14px;
  }

  .nav-brand-text {
    font-size: 1.05rem;
  }

  /* Hero & Typographie */
  .hero {
    padding: 24px 0 16px;
  }

  .hero-pill {
    max-width: 100%;
    font-size: 0.78rem;
    padding: 6px 12px;
    white-space: normal;
    text-align: center;
    line-height: 1.35;
  }

  .hero-title {
    font-size: clamp(2rem, 8vw, 3rem) !important;
    line-height: 1.12;
    word-break: break-word;
  }

  .hero-subtitle {
    font-size: 0.98rem;
    line-height: 1.55;
    margin-bottom: 24px;
  }

  /* Cartes Liquid Glass & sections */
  .liquid-glass {
    border-radius: 20px;
  }

  .beer-card,
  .cuvee-card,
  .liquid-glass[style*="padding: 40px"],
  .liquid-glass[style*="padding: 36px"],
  .liquid-glass[style*="padding: 32px"] {
    padding: clamp(16px, 4.5vw, 22px) !important;
  }

  .section {
    padding: 40px 0;
  }

  .section-title {
    font-size: clamp(1.6rem, 5.5vw, 2.3rem) !important;
    word-break: break-word;
  }

  .section-desc {
    font-size: 0.98rem;
    line-height: 1.55;
  }

  /* Grille des bières en 1 colonne aérée */
  .beers-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  /* Grilles internes de la Cuvée Malo */
  div[style*="minmax(260px, 1fr)"],
  div[style*="minmax(140px, 1fr)"] {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  .beer-visual-wrap {
    height: 180px !important;
  }

  .beer-visual-wrap img {
    max-height: 160px !important;
  }

  .beer-specs-row {
    padding: 8px 10px !important;
    gap: 6px !important;
  }

  .beer-spec-val {
    font-size: 0.88rem !important;
  }

  /* Contrôle d'âge légal adapté */
  .age-gate-panel {
    width: calc(100% - 32px) !important;
    max-width: 440px !important;
    padding: 28px 18px 22px !important;
    margin: 16px auto !important;
    border-radius: 24px !important;
  }

  .age-gate-title {
    font-size: 1.35rem !important;
  }

  .age-gate-text {
    font-size: 0.88rem !important;
    line-height: 1.45;
    margin-bottom: 16px !important;
  }

  .age-gate-buttons {
    flex-direction: row !important;
    gap: 12px !important;
  }

  .age-gate-btn {
    min-width: 100px !important;
    padding: 11px 20px !important;
    font-size: 0.9rem !important;
  }

  .age-gate-refusal-text {
    font-size: 0.86rem !important;
  }

  .age-gate-legal-links {
    gap: 10px !important;
    margin-top: 14px !important;
    padding-top: 12px !important;
  }

  /* Pied de page */
  .site-footer {
    margin-top: 50px;
    padding: 32px 0 24px;
  }

  .footer-inner {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 20px !important;
  }

  .footer-links {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 12px !important;
    width: 100% !important;
  }

  .footer-link {
    display: inline-block;
    padding: 4px 0;
  }
}

.mobile-sheet {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(28, 25, 23, 0.35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  justify-content: flex-end;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-sheet.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-sheet-panel {
  width: 82%;
  max-width: 340px;
  height: 100%;
  background: rgba(252, 251, 248, 0.95);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.12);
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}

.mobile-sheet.open .mobile-sheet-panel {
  transform: translateX(0);
}

.mobile-sheet-close {
  align-self: flex-end;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
}

.mobile-sheet-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mobile-sheet-link {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink-primary);
  text-decoration: none;
}

/* ==========================================================================
   MODE NUIT / CLAIR AUTOMATIQUE (selon réglages appareil : macOS / iOS / etc.)
   ========================================================================== */
@media (prefers-color-scheme: dark) {
  :root {
    --bg-base: #0c0b0a;
    --accent: #fbbf24;
    --accent-rgb: 251, 191, 36;
    --accent-hover: #fcd34d;
    --accent-gold: #fbbf24;
    --accent-gold-rgb: 251, 191, 36;
    --accent-metallic-red: #fbbf24;
    --accent-metallic-red-rgb: 251, 191, 36;
    
    --ink-primary: #ffffff;
    --ink-secondary: #ffffff;
    --ink-tertiary: #ffffff;
    --ink-on-accent: #0c0b0a;
    
    --glass-bg: rgba(26, 24, 22, 0.72);
    --glass-bg-subtle: rgba(22, 20, 18, 0.55);
    --glass-bg-hover: rgba(38, 34, 30, 0.85);
    --glass-border: rgba(255, 255, 255, 0.14);
    
    --glass-shadow: 
      0 12px 36px -4px rgba(0, 0, 0, 0.6),
      0 4px 12px -2px rgba(251, 191, 36, 0.12),
      inset 0 1px 1px 0 rgba(255, 255, 255, 0.15);
      
    --glass-shadow-hover: 
      0 20px 48px -8px rgba(0, 0, 0, 0.8),
      0 6px 16px -2px rgba(251, 191, 36, 0.35),
      inset 0 1px 2px 0 rgba(255, 255, 255, 0.25);
  }

  html, body {
    background-color: var(--bg-base);
    color: #ffffff;
  }

  p, span, li, a, h1, h2, h3, h4, h5, h6, strong, b, em {
    color: #ffffff;
  }

  .section-eyebrow, .glass-pill--accent, .beer-spec-val {
    color: var(--accent) !important;
  }

  .nav-brand-text {
    color: var(--accent) !important;
  }

  .nav-link:hover, .nav-link.active {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.12) !important;
    box-shadow: inset 0 1px 1px 0 rgba(255, 255, 255, 0.18), 0 2px 6px rgba(0, 0, 0, 0.3) !important;
  }

  .floating-nav {
    background: rgba(24, 22, 20, 0.78);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 30px -4px rgba(0, 0, 0, 0.6);
  }

  .nav-action-btn, .nav-action-btn * {
    background: var(--accent) !important;
    color: #ffffff !important;
  }

  .glass-pill {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.16);
    color: #ffffff !important;
  }

  .glass-pill--accent {
    background: rgba(var(--accent-rgb), 0.2);
    border-color: rgba(var(--accent-rgb), 0.4);
    color: var(--accent) !important;
  }

  .beer-specs-row {
    border-top-color: rgba(255, 255, 255, 0.12);
  }

  .beer-spec {
    background: rgba(255, 255, 255, 0.06);
  }

  .beer-spec-label {
    color: #ffffff !important;
    opacity: 0.8;
  }

  .site-footer {
    background: rgba(18, 16, 15, 0.75);
    border-top-color: rgba(255, 255, 255, 0.12);
  }

  .age-gate-panel {
    background: rgba(22, 20, 18, 0.96) !important;
    border-color: rgba(251, 191, 36, 0.45) !important;
    color: #ffffff !important;
  }

  .mobile-sheet-panel {
    background: rgba(22, 20, 18, 0.95);
    border-color: rgba(255, 255, 255, 0.16);
    color: #ffffff;
  }

  .age-gate-title,
  .age-gate-text,
  .age-gate-refusal-text,
  .age-gate-country {
    color: #ffffff !important;
  }

  .age-gate-warning-line {
    color: #fcd34d !important;
  }

  .age-gate-btn--yes {
    background: #ffffff !important;
    color: #000000 !important;
    box-shadow: 0 4px 16px rgba(255, 255, 255, 0.2) !important;
  }

  .age-gate-btn--yes:hover {
    background: var(--accent) !important;
    color: #0c0b0a !important;
  }

  .age-gate-btn--no {
    background: rgba(255, 255, 255, 0.12) !important;
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.22) !important;
  }

  .age-gate-btn--no:hover {
    background: rgba(255, 255, 255, 0.2) !important;
  }

  .age-gate-legal-links {
    border-top-color: rgba(255, 255, 255, 0.14) !important;
  }

  .age-gate-legal-link {
    color: #ffffff !important;
  }

  .age-gate-legal-link:hover {
    color: #ff6b6b !important;
  }

  .liquid-glass[style*="linear-gradient"] {
    background: linear-gradient(135deg, rgba(35, 30, 26, 0.85) 0%, rgba(45, 35, 25, 0.6) 100%) !important;
    border-color: rgba(245, 158, 11, 0.3) !important;
  }

  div[style*="background: rgba(255, 255, 255, 0.7)"],
  div[style*="background: rgba(255, 255, 255, 0.65)"] {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
  }
}
