/**
 * BroBrew — Design system (refonte 2026)
 * Brasserie familiale d'Alsace. Palette crème + vert, houblon, cartes arrondies.
 * Titres : Bricolage Grotesque · Corps : Manrope (auto-hébergés, voir fonts.css).
 *
 * Les classes sont préfixées `bb-` pour cohabiter sans collision avec Bootstrap
 * (encore chargé pour les formulaires, la recherche et les pages secondaires).
 */

:root {
  /* Couleurs */
  --bb-cream: #F7F5EC;      /* fond de page */
  --bb-band: #EEF2E2;       /* bande claire */
  --bb-ink: #22301C;        /* texte principal / sections sombres */
  --bb-ink-2: #1A2416;      /* pied de page */
  --bb-green: #4C8A54;      /* accent, liens */
  --bb-green-light: #6BA56E;
  --bb-lime: #C7D96B;       /* surbrillance */
  --bb-sage: #9CC58F;
  --bb-muted: #4A5A42;      /* corps sur crème */
  --bb-muted-2: #6B7A63;    /* secondaire */
  --bb-muted-3: #9AA890;    /* méta */
  --bb-line: rgba(107,165,110,.16);
  --bb-shadow-sm: 0 8px 22px rgba(34,48,28,.06);
  --bb-shadow-md: 0 22px 44px rgba(34,48,28,.16);
  --bb-shadow-lg: 0 30px 70px rgba(34,48,28,.3);

  /* Typo */
  --bb-head: 'Bricolage Grotesque', 'Manrope', system-ui, sans-serif;
  --bb-body: 'Manrope', system-ui, -apple-system, Segoe UI, sans-serif;

  /* Rayons */
  --bb-r-btn: 14px;
  --bb-r-card: 22px;
  --bb-r-lg: 28px;

  /* Alias compat (anciennes vues Bootstrap : legal, search, article…) */
  --color-cream: var(--bb-cream);
  --color-brown-dark: var(--bb-ink);
  --color-brown: var(--bb-ink);
  --color-amber: var(--bb-green);
  --color-amber-dark: var(--bb-green);
  --color-text: var(--bb-ink);
  --color-text-light: var(--bb-muted-2);
  --font-heading: var(--bb-head);
  --font-body: var(--bb-body);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bb-cream);
  color: var(--bb-ink);
  font-family: var(--bb-body);
  font-size: 1.02rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--bb-head);
  color: var(--bb-ink);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.05;
  margin: 0 0 .5em;
}

a { color: var(--bb-green); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--bb-green-light); }

::selection { background: var(--bb-lime); color: var(--bb-ink); }

img { max-width: 100%; height: auto; }
picture { display: contents; }
input, textarea, button, select { font-family: inherit; }

main { position: relative; z-index: 1; }

/* Utilitaire de largeur */
.bb-wrap { max-width: 1240px; margin: 0 auto; }
.bb-wrap--narrow { max-width: 920px; margin: 0 auto; }

/* ===================== Animations ===================== */
@keyframes bb-floatY { 0%,100% { transform: translateY(0) rotate(var(--r,0deg)); } 50% { transform: translateY(-26px) rotate(calc(var(--r,0deg) + 6deg)); } }
@keyframes bb-blob { 0%,100% { border-radius: 42% 58% 63% 37%/45% 45% 55% 55%; } 50% { border-radius: 58% 42% 38% 62%/58% 52% 48% 42%; } }
@keyframes bb-fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes bb-pop { 0% { opacity: 0; transform: scale(.92) translateY(20px); } 100% { opacity: 1; transform: none; } }
@keyframes bb-pageIn { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* Révélation au scroll (JS ajoute .is-in) */
[data-reveal] { opacity: 0; transform: translateY(30px); transition: opacity .8s ease, transform .8s ease; }
[data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  /* Le contenu apparaît sans transition ; le parallax au scroll est coupé côté JS.
     Les houblons/blob/carte flottante gardent leur flottement ambiant doux (choix de marque). */
  [data-reveal] { opacity: 1 !important; transform: none !important; transition: none; }
}

/* ===================== Houblon décoratif ===================== */
.bb-hops { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.bb-hop { position: absolute; }
.bb-hop svg { width: 100%; height: auto; display: block; }
.bb-hop--1 { top: 14%; left: 6%;  width: 70px; color: var(--bb-lime); opacity: .55; --r: -14deg; animation: bb-floatY 9s ease-in-out infinite; }
.bb-hop--2 { top: 60%; left: 2%;  width: 48px; color: var(--bb-sage); opacity: .40; --r: 10deg; animation: bb-floatY 11s ease-in-out infinite .6s; }
.bb-hop--3 { top: 24%; right: 5%; width: 88px; color: #B9CF74; opacity: .45; --r: 18deg; animation: bb-floatY 12s ease-in-out infinite 1.2s; }
.bb-hop--4 { top: 72%; right: 9%; width: 56px; color: #7FB07E; opacity: .40; --r: -8deg; animation: bb-floatY 10s ease-in-out infinite .3s; }

/* ===================== Navigation ===================== */
.bb-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px clamp(18px, 5vw, 64px);
  background: rgba(247,245,236,.82);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(107,165,110,.18);
}
.bb-nav__brand { background: none; border: none; cursor: pointer; padding: 0; display: flex; align-items: center; }
.bb-nav__brand img { height: 44px; width: auto; display: block; }
.bb-nav__right { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 34px); }
.bb-nav__links { display: flex; gap: clamp(14px, 2.4vw, 30px); }
.bb-nav__link {
  position: relative; background: none; border: none; cursor: pointer;
  font-family: var(--bb-body); font-weight: 700; font-size: 15px; letter-spacing: .01em;
  color: var(--bb-ink); padding: 6px 0; white-space: nowrap; transition: color .2s; text-decoration: none;
}
.bb-nav__link:hover { color: var(--bb-green-light); }
.bb-nav__link.is-active { color: var(--bb-green); }
.bb-nav__link.is-active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 3px; border-radius: 3px; background: var(--bb-lime);
}
.bb-lang { display: flex; align-items: center; background: rgba(107,165,110,.12); border-radius: 999px; padding: 3px; }
.bb-lang a {
  border: none; cursor: pointer; border-radius: 999px; padding: 6px 13px;
  font-weight: 800; font-size: 13px; color: #5C6B54; transition: all .2s; text-decoration: none;
}
.bb-lang a.is-active { background: var(--bb-ink); color: var(--bb-cream); }
.bb-burger {
  display: none; background: var(--bb-ink); border: none; border-radius: 12px;
  width: 44px; height: 44px; cursor: pointer; color: var(--bb-cream); font-size: 20px; line-height: 1;
}

/* Menu mobile */
.bb-mobile { position: fixed; inset: 0; z-index: 49; background: rgba(34,48,28,.6); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: bb-fadeIn .25s ease; }
.bb-mobile[hidden] { display: none; }
.bb-mobile__panel {
  position: absolute; top: 74px; left: 14px; right: 14px; background: var(--bb-cream);
  border-radius: 22px; padding: 14px; display: flex; flex-direction: column; gap: 4px;
  box-shadow: 0 24px 60px rgba(34,48,28,.28); animation: bb-pop .3s ease;
}
.bb-mobile__link {
  background: none; border: none; text-align: left; cursor: pointer; padding: 14px 16px;
  border-radius: 12px; font-family: var(--bb-body); font-weight: 700; font-size: 17px; color: var(--bb-ink); text-decoration: none;
}
.bb-mobile__link.is-active { background: rgba(107,165,110,.14); color: var(--bb-green); }

/* ===================== Boutons ===================== */
.bb-btn {
  display: inline-block; background: var(--bb-ink); color: var(--bb-cream); border: none;
  border-radius: var(--bb-r-btn); padding: 16px 28px; font-weight: 700; font-size: 16px; cursor: pointer;
  transition: transform .2s, box-shadow .2s; box-shadow: 0 10px 26px rgba(34,48,28,.22); text-decoration: none;
}
.bb-btn:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(34,48,28,.3); color: var(--bb-cream); }
.bb-btn--outline {
  background: transparent; color: var(--bb-ink); border: 2px solid var(--bb-ink);
  padding: 14px 26px; box-shadow: none;
}
.bb-btn--outline:hover { background: var(--bb-ink); color: var(--bb-cream); transform: translateY(-3px); box-shadow: none; }
.bb-link {
  background: none; border: none; color: var(--bb-green); font-weight: 800; font-size: 16px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px; transition: gap .2s; text-decoration: none;
}
.bb-link:hover { gap: 14px; color: var(--bb-green); }

/* ===================== Hero ===================== */
.bb-hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  padding: 120px clamp(18px, 5vw, 64px) 60px; overflow: hidden;
}
.bb-hero__blob {
  position: absolute; top: -8%; right: -6%; width: min(58vw, 720px); aspect-ratio: 1;
  background: linear-gradient(140deg, var(--bb-lime), var(--bb-sage)); opacity: .55; filter: blur(2px);
  animation: bb-blob 16s ease-in-out infinite; z-index: 0;
}
.bb-hero__grid {
  position: relative; z-index: 2; display: grid; grid-template-columns: 1.1fr .9fr;
  gap: clamp(24px, 5vw, 72px); align-items: center; width: 100%; max-width: 1240px; margin: 0 auto;
}
.bb-badge {
  display: inline-flex; align-items: center; gap: 8px; background: rgba(107,165,110,.14); color: var(--bb-green);
  font-weight: 700; font-size: 13px; letter-spacing: .14em; text-transform: uppercase;
  padding: 8px 16px; border-radius: 999px; margin-bottom: 26px;
}
.bb-badge__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--bb-green-light); }
.bb-hero__title { font-size: clamp(42px, 7vw, 88px); line-height: .98; margin: 0 0 22px; }
.bb-hero__sub { font-size: clamp(17px, 1.5vw, 21px); line-height: 1.6; color: var(--bb-muted); max-width: 520px; margin: 0 0 34px; }
.bb-hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }
.bb-stats { display: flex; gap: 32px; margin-top: 44px; flex-wrap: wrap; }
.bb-stat__num { font-family: var(--bb-head); font-weight: 800; font-size: 34px; color: var(--bb-green); line-height: 1; }
.bb-stat__label { font-size: 13px; color: var(--bb-muted-2); font-weight: 600; }
.bb-hero__media { position: relative; }
.bb-hero__frame { position: relative; border-radius: var(--bb-r-lg); overflow: hidden; box-shadow: var(--bb-shadow-lg); aspect-ratio: 4/5; background: var(--bb-band); }
.bb-hero__frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bb-float {
  position: absolute; bottom: -24px; left: -24px; background: var(--bb-lime); border-radius: 20px;
  padding: 18px 22px; box-shadow: 0 16px 34px rgba(34,48,28,.2); animation: bb-floatY 7s ease-in-out infinite;
}
.bb-float__title { font-family: var(--bb-head); font-weight: 800; font-size: 20px; color: var(--bb-ink); }
.bb-float__sub { font-size: 12px; font-weight: 600; color: #3f5230; }
.bb-scroll {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  color: var(--bb-muted-2); font-size: 12px; font-weight: 600; letter-spacing: .1em;
}
.bb-scroll span { width: 1px; height: 34px; background: linear-gradient(var(--bb-muted-2), transparent); }

.bb-placeholder {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  color: rgba(34,48,28,.35); font-size: 2.4rem;
}

/* ===================== Sections génériques ===================== */
.bb-section { padding: clamp(60px, 9vw, 120px) clamp(18px, 5vw, 64px); }
.bb-section--band { background: var(--bb-band); }
.bb-section--dark { background: var(--bb-ink); color: var(--bb-cream); }
.bb-kicker { color: var(--bb-green); font-weight: 800; letter-spacing: .16em; text-transform: uppercase; font-size: 13px; margin-bottom: 12px; }
.bb-h2 { font-size: clamp(32px, 5vw, 56px); margin: 0; }
.bb-section__head { text-align: center; margin-bottom: 52px; }

/* Bande intro (2 colonnes) */
.bb-two { max-width: 1080px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.bb-two h2 { font-size: clamp(30px, 4vw, 46px); line-height: 1.05; margin: 0 0 20px; }
.bb-two p { font-size: 17px; line-height: 1.7; color: var(--bb-muted); margin: 0 0 18px; }
.bb-two__media { border-radius: 26px; overflow: hidden; aspect-ratio: 5/4; box-shadow: 0 24px 54px rgba(34,48,28,.2); background: var(--bb-band); }
.bb-two__media img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ===================== Grille bières ===================== */
.bb-beers { display: grid; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); gap: 20px; }
.bb-beers--wide { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.bb-beer-card {
  text-align: left; cursor: pointer; background: #fff; border: 1px solid var(--bb-line);
  border-radius: var(--bb-r-card); overflow: hidden; padding: 0; box-shadow: var(--bb-shadow-sm);
  transition: transform .35s ease, box-shadow .35s ease; width: 100%; color: inherit; font: inherit;
}
.bb-beer-card:hover { transform: translateY(-8px); box-shadow: var(--bb-shadow-md); }
.bb-beer-card__media { position: relative; aspect-ratio: 1; overflow: hidden; }
.bb-beer-card--wide .bb-beer-card__media { aspect-ratio: 4/3; }
.bb-beer-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bb-beer-card__type {
  position: absolute; top: 12px; left: 12px; background: rgba(255,255,255,.9); color: var(--bb-ink);
  font-weight: 800; font-size: 12px; padding: 5px 11px; border-radius: 999px;
}
.bb-beer-card__body { padding: 18px 18px 22px; }
.bb-beer-card__head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.bb-beer-card__name { font-size: 21px; margin: 0; }
.bb-beer-card--wide .bb-beer-card__name { font-size: 24px; }
.bb-beer-card__abv { color: var(--bb-green); font-weight: 800; font-size: 15px; white-space: nowrap; font-family: var(--bb-head); }
.bb-beer-card__tag { color: var(--bb-muted-2); font-size: 14px; line-height: 1.5; margin: 8px 0 0; }
.bb-beer-card__more { color: var(--bb-green); font-weight: 800; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; }

/* ===================== Valeurs (section sombre) ===================== */
.bb-values { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }
.bb-value {
  background: rgba(199,217,107,.08); border: 1px solid rgba(199,217,107,.2); border-radius: var(--bb-r-card); padding: 28px;
}
.bb-value__icon { font-size: 30px; margin-bottom: 14px; }
.bb-value h3 { font-family: var(--bb-head); font-weight: 700; font-size: 20px; margin: 0 0 10px; color: var(--bb-lime); }
.bb-value p { font-size: 15px; line-height: 1.6; color: rgba(247,245,236,.78); margin: 0; }
.bb-section--dark .bb-h2 { color: var(--bb-cream); }

/* ===================== Page « À propos » ===================== */
.bb-page-head { text-align: center; padding: 150px clamp(18px,5vw,64px) 60px; }
.bb-page-head--tight { padding-bottom: 40px; }
.bb-page-head h1 { font-size: clamp(38px, 6vw, 72px); margin: 0 auto 16px; max-width: 960px; line-height: 1; }
.bb-page-head p { font-size: 18px; color: var(--bb-muted); max-width: 560px; margin: 0 auto; line-height: 1.6; }
.bb-about-hero { max-width: 920px; margin: 0 auto; border-radius: var(--bb-r-lg); overflow: hidden; aspect-ratio: 16/8; box-shadow: 0 30px 70px rgba(34,48,28,.22); background: var(--bb-band); }
.bb-about-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bb-lead { font-family: var(--bb-head); font-weight: 600; font-size: clamp(22px, 2.6vw, 30px); line-height: 1.4; color: var(--bb-ink); margin: 0 0 52px; letter-spacing: -.01em; }
.bb-block { display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: start; padding: 26px 0; border-top: 1px solid rgba(107,165,110,.2); }
.bb-block__icon { font-size: 30px; }
.bb-block h3 { font-family: var(--bb-head); font-weight: 700; font-size: 23px; margin: 2px 0 12px; color: var(--bb-green); }
.bb-block p { font-size: 17px; line-height: 1.7; color: var(--bb-muted); margin: 0; }

/* ===================== Blog ===================== */
/* 3 articles par ligne (colonnes fixes : une carte seule ne s'étire plus sur toute la largeur). */
.bb-posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.bb-post {
  background: #fff; border: 1px solid var(--bb-line); border-radius: var(--bb-r-card); overflow: hidden;
  box-shadow: var(--bb-shadow-sm); transition: transform .35s ease, box-shadow .35s ease;
}
.bb-post:hover { transform: translateY(-6px); box-shadow: var(--bb-shadow-md); }
.bb-post__media { aspect-ratio: 16/10; background: var(--bb-band); overflow: hidden; }
.bb-post__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bb-post__body { padding: 24px; }
.bb-post__meta { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; }
.bb-tag { background: rgba(107,165,110,.14); color: var(--bb-green); font-weight: 800; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; }
.bb-post__date { color: var(--bb-muted-3); font-size: 13px; font-weight: 600; }
.bb-post h3 { font-family: var(--bb-head); font-weight: 700; font-size: 21px; line-height: 1.2; margin: 0 0 10px; }
.bb-post h3 a { color: var(--bb-ink); }
.bb-post h3 a:hover { color: var(--bb-green); }
.bb-post__excerpt { color: var(--bb-muted-2); font-size: 15px; line-height: 1.6; margin: 0 0 16px; }
.bb-post__read { color: var(--bb-green); font-weight: 800; font-size: 14px; }

/* Article (page unique) */
.bb-article { max-width: 780px; margin: 0 auto; padding: 0 clamp(18px,5vw,64px) clamp(70px,9vw,120px); font-size: 18px; line-height: 1.8; color: var(--bb-muted); }
.bb-article figure { margin: 0 0 32px; border-radius: var(--bb-r-lg); overflow: hidden; box-shadow: 0 24px 54px rgba(34,48,28,.18); }
.bb-article figure img { width: 100%; display: block; }
.bb-article h2, .bb-article h3 { color: var(--bb-ink); margin-top: 1.6em; }
.bb-article p { margin: 0 0 1.2em; }
.bb-article .bb-lead { color: var(--bb-ink); }

/* ===================== Contact ===================== */
.bb-contact-grid { max-width: 1120px; margin: 0 auto; display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(24px, 4vw, 52px); align-items: start; }
.bb-form {
  background: #fff; border: 1px solid var(--bb-line); border-radius: 26px;
  padding: clamp(24px, 3vw, 40px); box-shadow: 0 16px 40px rgba(34,48,28,.08);
}
.bb-form__grid { display: grid; gap: 18px; }
.bb-field label, .bb-form label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 7px; color: var(--bb-ink); font-family: var(--bb-body); letter-spacing: 0; }
.bb-input, .bb-form input[type=text], .bb-form input[type=email], .bb-form textarea, .bb-form .form-control {
  width: 100%; border: 1.5px solid rgba(107,165,110,.3); border-radius: 12px; padding: 14px 16px;
  font-size: 15px; color: var(--bb-ink); background: #FAFBF4; outline: none; transition: border-color .2s;
}
.bb-input:focus, .bb-form input:focus, .bb-form textarea:focus, .bb-form .form-control:focus { border-color: var(--bb-green-light); box-shadow: none; }
.bb-form textarea, .bb-form .form-control { resize: vertical; }
.bb-form__success { background: rgba(107,165,110,.14); border: 1px solid rgba(107,165,110,.4); border-radius: 12px; padding: 14px 16px; color: #3f6b43; font-weight: 600; font-size: 14px; animation: bb-pop .3s ease; }
.bb-form .btn-submit, .bb-form button[type=submit] {
  background: var(--bb-ink); color: var(--bb-cream); border: none; border-radius: var(--bb-r-btn);
  padding: 16px 28px; font-weight: 700; font-size: 16px; cursor: pointer; transition: transform .2s; width: 100%;
}
.bb-form .btn-submit:hover, .bb-form button[type=submit]:hover { transform: translateY(-2px); background: var(--bb-ink); color: var(--bb-cream); }
.bb-form .form-check { display: flex; align-items: flex-start; gap: 10px; }
.bb-form .form-check-label { font-weight: 500; font-size: 14px; color: var(--bb-muted-2); margin: 0; }
.bb-form .invalid-feedback { color: #c0392b; font-size: .85rem; }
.bb-form .is-invalid { border-color: #c0392b !important; }

.bb-contact-aside { display: flex; flex-direction: column; gap: 18px; }
.bb-info-card { background: var(--bb-ink); color: var(--bb-cream); border-radius: var(--bb-r-card); padding: 30px; }
.bb-info-card h3 { font-family: var(--bb-head); font-weight: 700; font-size: 22px; margin: 0 0 20px; color: var(--bb-lime); }
.bb-info-list { display: flex; flex-direction: column; gap: 16px; font-size: 15px; }
.bb-info-list > * { display: flex; gap: 12px; align-items: center; color: var(--bb-cream); }
.bb-info-list a { color: var(--bb-cream); }
.bb-info-list a:hover { color: var(--bb-lime); }
.bb-info-list .bb-ico { font-size: 18px; }
.bb-map { border-radius: var(--bb-r-card); overflow: hidden; border: 1px solid rgba(107,165,110,.2); aspect-ratio: 4/3; box-shadow: 0 12px 30px rgba(34,48,28,.1); }
.bb-map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* Réseaux sociaux (rond vert) */
.bb-socials { display: flex; gap: 12px; margin-top: 24px; }
.bb-social {
  width: 46px; height: 46px; border-radius: 12px; background: rgba(199,217,107,.14);
  display: flex; align-items: center; justify-content: center; color: var(--bb-lime); font-weight: 800; font-size: 18px;
  transition: background .2s, transform .2s, color .2s;
}
.bb-social:hover { background: var(--bb-lime); color: var(--bb-ink); transform: translateY(-3px); }

/* ===================== Pied de page ===================== */
.bb-footer { position: relative; z-index: 1; background: var(--bb-ink-2); color: rgba(247,245,236,.72); padding: clamp(48px,6vw,80px) clamp(18px,5vw,64px) 34px; }
.bb-footer__grid { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.bb-footer__logo { height: 52px; filter: brightness(1.6); margin-bottom: 16px; }
.bb-footer p { font-size: 15px; line-height: 1.6; max-width: 320px; margin: 0 0 18px; }
.bb-footer h4 { font-family: var(--bb-head); color: var(--bb-cream); font-size: 15px; margin: 0 0 16px; letter-spacing: .02em; font-weight: 700; }
.bb-footer__col { display: flex; flex-direction: column; gap: 11px; }
.bb-footer__col a, .bb-footer__col span, .bb-footer__link {
  color: rgba(247,245,236,.72); font-size: 15px; font-weight: 600; background: none; border: none; text-align: left; padding: 0; cursor: pointer;
}
.bb-footer__col a:hover, .bb-footer__link:hover { color: var(--bb-lime); }
.bb-footer__socials { display: flex; gap: 10px; }
.bb-footer__social { width: 42px; height: 42px; border-radius: 11px; background: rgba(199,217,107,.12); display: flex; align-items: center; justify-content: center; color: var(--bb-lime); font-weight: 800; transition: background .2s, color .2s; }
.bb-footer__social:hover { background: var(--bb-lime); color: var(--bb-ink); }
.bb-footer__bottom { max-width: 1240px; margin: 34px auto 0; padding-top: 24px; border-top: 1px solid rgba(247,245,236,.12); display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; font-size: 13px; }
.bb-footer__bottom a { color: rgba(247,245,236,.72); }
.bb-footer__bottom a:hover { color: var(--bb-lime); }
.bb-footer__legal { color: rgba(247,245,236,.5); }

/* ===================== Modale bière ===================== */
.bb-modal { position: fixed; inset: 0; z-index: 60; background: rgba(26,36,22,.62); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); display: flex; align-items: center; justify-content: center; padding: 20px; animation: bb-fadeIn .28s ease; }
.bb-modal[hidden] { display: none; }
.bb-modal__dialog {
  background: var(--bb-cream); border-radius: var(--bb-r-lg); max-width: 900px; width: 100%; max-height: 90vh;
  overflow: auto; display: grid; grid-template-columns: 1fr 1fr; box-shadow: 0 40px 90px rgba(0,0,0,.4);
  animation: bb-pop .35s cubic-bezier(.2,.7,.2,1);
}
.bb-modal__media { position: relative; min-height: 320px; background: var(--bb-band); }
.bb-modal__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bb-modal__type { position: absolute; top: 16px; left: 16px; background: rgba(255,255,255,.92); color: var(--bb-ink); font-weight: 800; font-size: 13px; padding: 7px 14px; border-radius: 999px; z-index: 1; }
.bb-modal__body { padding: clamp(24px, 3vw, 40px); position: relative; }
.bb-modal__close { position: absolute; top: 18px; right: 18px; width: 38px; height: 38px; border-radius: 50%; border: none; background: rgba(34,48,28,.08); cursor: pointer; font-size: 18px; color: var(--bb-ink); }
.bb-modal__close:hover { background: rgba(34,48,28,.16); }
.bb-modal__title { font-size: clamp(28px, 3.5vw, 40px); margin: 6px 0 4px; }
.bb-modal__tag { color: var(--bb-muted-2); font-size: 16px; margin: 0 0 22px; font-weight: 600; }
.bb-modal__stats { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 22px; }
.bb-modal__stat { background: #fff; border: 1px solid rgba(107,165,110,.2); border-radius: 14px; padding: 12px 16px; min-width: 78px; }
.bb-modal__stat-label { font-size: 11px; color: var(--bb-muted-3); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.bb-modal__stat-value { font-family: var(--bb-head); font-weight: 800; font-size: 20px; color: var(--bb-green); }
.bb-modal__desc { font-size: 16px; line-height: 1.7; color: var(--bb-muted); margin: 0 0 22px; }
.bb-modal__ingr-label { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--bb-muted-3); margin-bottom: 6px; }
.bb-modal__ingr { font-size: 15px; color: var(--bb-ink); font-weight: 600; }
body.bb-modal-open { overflow: hidden; }

/* ===================== Contrôle d'âge (obligatoire alcool) ===================== */
.bb-age { position: fixed; inset: 0; z-index: 100; background: rgba(26,36,22,.72); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); display: flex; align-items: center; justify-content: center; padding: 20px; animation: bb-fadeIn .3s ease; }
.bb-age__dialog, .bb-age__denied { background: var(--bb-cream); border-radius: var(--bb-r-lg); max-width: 460px; width: 100%; padding: clamp(28px,4vw,44px); text-align: center; box-shadow: 0 40px 90px rgba(0,0,0,.4); animation: bb-pop .35s cubic-bezier(.2,.7,.2,1); }
.bb-age__denied { display: none; }
.bb-age__logo { height: 54px; width: auto; margin: 0 auto 18px; display: block; }
.bb-age h2 { font-size: clamp(24px,3vw,30px); margin: 0 0 14px; }
.bb-age h3 { color: var(--bb-green); font-size: 24px; margin: 0 0 12px; }
.bb-age p { color: var(--bb-muted); font-size: 16px; line-height: 1.6; margin: 0 0 24px; }
.bb-age__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 20px; }
.bb-age__actions .bb-btn { cursor: pointer; }
.bb-age__legal { font-size: 12px; color: var(--bb-muted-3); margin: 0; }

/* ===================== Alertes (flash) ===================== */
.bb-alert { border-radius: 14px; padding: 14px 18px; margin-bottom: 20px; font-weight: 600; }
.bb-alert--success { background: rgba(107,165,110,.14); border: 1px solid rgba(107,165,110,.4); color: #3f6b43; }
.bb-alert--danger { background: rgba(192,57,43,.1); border: 1px solid rgba(192,57,43,.35); color: #c0392b; }

/* ===================== Responsive ===================== */
@media (max-width: 860px) {
  .bb-nav__links { display: none; }
  .bb-burger { display: flex; align-items: center; justify-content: center; }
  .bb-hero__grid { grid-template-columns: 1fr; }
  .bb-hero { min-height: auto; padding-top: 110px; }
  .bb-two { grid-template-columns: 1fr; }
  .bb-posts { grid-template-columns: repeat(2, 1fr); }
  .bb-contact-grid { grid-template-columns: 1fr; }
  .bb-modal__dialog { grid-template-columns: 1fr; }
  .bb-footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .bb-page-head { padding-top: 120px; }
}
@media (max-width: 560px) {
  .bb-posts { grid-template-columns: 1fr; }
  .bb-stats { gap: 22px; }
  .bb-hero__title { font-size: clamp(36px, 11vw, 56px); }
  .bb-float { left: 12px; bottom: -18px; }
}

/* ===================== Compat sections optionnelles (blocs « sections » Sulu) ===================== */
/* Ces vues (_section_*.html.twig) ne sont rendues que si une page utilise des blocs « sections ».
   On les garde lisibles avec le nouveau design sans réécriture dédiée. */
.section-title { text-align: center; margin: 0 auto clamp(24px, 5vw, 52px); max-width: 780px; padding: 0 18px; }
.section-title h1, .section-title h2, .section-title h3 { font-family: var(--bb-head); font-size: clamp(28px, 5vw, 46px); margin: 0 0 .4em; }
.section-title p { color: var(--bb-muted); margin: 0; }
/* Sécurité : app.js masque les .wow puis ajoute .animated à l'apparition — on garantit la visibilité finale */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.animated { visibility: visible !important; }
.animated.fadeInUp { animation: fadeInUp .7s ease both; }
