/* =====================================================================
   BAJADA — Global / layout / composants (maquette haute-fidélité)
   Reset léger + classes sémantiques façon WebAgency-v1, valeurs Bajada.
   ===================================================================== */
@import url('./tokens.css');

/* Police de titre principal — Bebas Bajada (Bebas Neue OFL + « A » en arche), self-hosted */
@font-face {
	font-family: 'Bebas Bajada';
	src: url('../assets/fonts/BebasBajada.woff2') format('woff2');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

/* =========================
   🌍 Reset léger
   ========================= */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
	min-height: 100vh;
	background: var(--color-background);
	color: var(--color-text);
	font-family: var(--font-body);
	font-size: var(--text-base);
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }
ul { list-style: none; padding: 0; }
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 3px; border-radius: 2px; }

/* =========================
   📦 Layout
   ========================= */
.container { width: 100%; max-width: var(--container-standard); margin-inline: auto; padding-inline: var(--gutter); }
.container.narrow { max-width: var(--container-narrow); }
.container.wide { max-width: var(--container-wide); }
.section { padding-block: var(--section-y); }
.stack > * + * { margin-top: 1rem; }

/* =========================
   ✍️ Typographie sémantique
   ========================= */
.heading-1, .heading-2, .heading-3 {
	font-family: var(--font-display);
	font-weight: var(--display-weight);
	line-height: 1.02;
	letter-spacing: var(--heading-tracking);
	text-transform: uppercase;
}

/* Titre secondaire — Pathway Gothic One (ex. « L'élégance désaltérante » sous le logo) */
.subtitle-1 {
	font-family: var(--font-subtitle);
	font-weight: 400;
	font-size: var(--text-h3);
	line-height: 1.02;
	letter-spacing: .01em;
	text-transform: uppercase;
}
.heading-1 { font-size: var(--text-h1); }
.heading-2 { font-size: var(--text-h2); line-height: 1; }
.heading-3 { font-size: var(--text-h3); line-height: 1.05; }

.eyebrow {
	display: inline-block;
	font-family: var(--font-subtitle);
	font-size: var(--text-eyebrow);
	font-weight: 400;
	letter-spacing: .06em;
	line-height: 1;
	text-transform: uppercase;
	color: var(--color-accent);
}

/* Même style que .eyebrow mais SANS uppercase + plus petit (descriptif « Une Pale Ale douce… ») */
.subtitle-min {
	display: inline-block;
	font-family: var(--font-subtitle);
	font-size: var(--text-eyebrow);
	font-weight: 400;
	letter-spacing: .06em;
	line-height: 1.05;
	text-transform: none;
	color: var(--color-accent);
}
.prose-lead { font-size: var(--text-lg); line-height: 1.65; color: var(--color-text-muted); }
.text-muted { color: var(--color-text-muted); }
.text-gold { color: var(--color-gold); }
p { max-width: 62ch; }
strong { font-weight: 600; }

/* Mot doré sur titre (usage ponctuel = dégradé or) */
.gold-fill {
	background: var(--gradient-gold);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

/* =========================
   🎨 Surfaces & sections sombres
   ========================= */
.surface {
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-soft);
}
.section--dark {
	position: relative;
	color: var(--color-on-dark-text);
	background-color: var(--color-dark-bg);
	overflow: clip;
}
.section--dark .eyebrow { color: var(--color-gold); }
.section--dark .subtitle-min { color: var(--color-on-dark-text); } /* blanc sur dark */
/* Sous-titre secondaire en dégradé or sur les sections sombres (ex. hero « L'élégance désaltérante ») */
.section--dark .subtitle-1 {
	background: var(--gradient-gold);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	text-shadow: none; /* le halo sombre ternissait l'or sur le texte clippé */
}
.section--dark .text-muted { color: var(--color-on-dark-muted); }
.section--dark p { color: var(--color-on-dark-muted); }

/* Fond fresque (images bajadas) posé en couverture */
.fresque {
	position: absolute; inset: 0;
	/* voile noir posé UNIQUEMENT sur l'image (dans la couche fond, z-index:0) → assombrit la fresque
	   sans toucher les éléments au-dessus (contenu en z-index:1). */
	background: linear-gradient(var(--overlay-fresque), var(--overlay-fresque)), url('../assets/img/fresque.webp') center/cover no-repeat;
	z-index: 0;
}
/* text-shadow retiré à la demande → rendu nu des éléments (réactivable si lisibilité à revoir). */
.section--dark .btn { text-shadow: none; }
.section--dark > .container { position: relative; z-index: 1; }

/* =========================
   🔘 Boutons
   ========================= */
.btn {
	display: inline-flex; align-items: center; gap: .5rem;
	font-family: var(--font-body);
	font-weight: 600; font-size: var(--text-base);
	letter-spacing: .04em; text-transform: uppercase;
	padding: .85em 1.6em; border-radius: var(--radius-pill);
	border: 1.5px solid transparent;
	transition: transform var(--dur) var(--ease), background-color var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
	will-change: transform;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--color-fuchsia); color: #fff; }
.btn--primary:hover { background: #a3175b; }
.btn--gold { background: var(--color-gold); color: #2a1208; }
.btn--gold:hover { background: #dcb84e; }
.btn--ghost { background: transparent; color: currentColor; border-color: currentColor; }
.btn--ghost:hover { background: currentColor; }
.btn--ghost:hover .btn__label { color: var(--color-dark-bg); }
.section--dark .btn--ghost:hover { color: var(--color-on-dark-text); }
.btn--sm { font-size: var(--text-sm); padding: .65em 1.3em; }

/* =========================
   🏷️ Chips (profil aromatique) & puces flamme
   ========================= */
.chips { display: flex; flex-wrap: wrap; gap: .55rem; }
.chip {
	font-size: var(--text-sm); font-weight: 600; letter-spacing: .04em;
	padding: .4em 1em; border-radius: var(--radius-pill);
	border: 1px solid var(--color-border); color: var(--color-text);
	background: var(--color-background);
}
.section--dark .chip { border-color: var(--color-on-dark-border); color: var(--color-on-dark-text); background: rgba(255,255,255,.04); }

/* Attributs façon plaquette p.2 : puce flamme rose + mot en police titre (petit) */
.attrs { display: flex; flex-wrap: wrap; gap: .8rem 2.5rem; }
.attrs--center { justify-content: center; }
.attrs--cols2 { display: grid; grid-template-columns: repeat(2, max-content); gap: .7rem 2.5rem; }
.attr {
	display: inline-flex; align-items: center; gap: .7rem;
	font-family: var(--font-display); font-weight: var(--display-weight);
	font-size: 2rem; line-height: 1; letter-spacing: var(--heading-tracking);
	text-transform: uppercase; color: var(--color-text);
}
.attr::before {
	content: ""; flex: 0 0 auto;
	width: .95rem; height: 1.6em;
	background: url('../assets/picto/virgule.svg') center / contain no-repeat;
}
.section--dark .attr, .drawer .attr { color: var(--color-on-dark-text); }
/* Profil aromatique du drawer : 2 colonnes égales, chaque attribut aligné à gauche dans sa colonne */
.drawer .attrs--cols2 { grid-template-columns: 1fr 1fr; column-gap: 1rem; }
/* Drawer : profil aromatique réduit (texte + picto au même prorata que la section 2) */
.drawer .attr { font-size: 1.5rem; }
.drawer .attr::before { width: .71rem; } /* .95rem × (1.5/2) → picto réduit dans la même proportion */

/* Image « fondue » dans une section blanche (pas d'ombre) — façon plaquette ;
   coins arrondis gardés en sécurité au cas où le blanc de l'image ≠ blanc pur de la section */
/* Image portrait : mise à l'échelle SANS recadrage (jamais coupée haut/bas), centrée dans sa colonne,
   hauteur plafonnée pour que la section tienne dans l'écran. */
.split__media.media-plain img { display: block; width: auto; height: auto; max-width: 100%; max-height: clamp(400px, 60vh, 520px); object-fit: contain; margin-inline: auto; border-radius: var(--radius-lg); box-shadow: none; }

/* Badge N°3 (logo produit) */
.n3-mark { display: block; width: 96px; height: auto; }

/* Réassurance / supports façon plaquette p.2 : flamme + titre + description (1 ligne), SANS carte */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem 2.5rem; }
.feature { display: flex; gap: .9rem; text-align: left; }
.feature::before {
	content: ""; flex: 0 0 auto; width: 1rem; height: 3.7em; margin-top: -.25em;
	background: url('../assets/picto/virgule.svg') center / contain no-repeat;
}
.feature__title { font-family: var(--font-display); font-weight: var(--display-weight); font-size: 1.875rem; text-transform: uppercase; letter-spacing: var(--heading-tracking); line-height: 1; }
.feature__desc { margin-top: .4rem; color: var(--color-text-muted); font-size: 1rem; white-space: nowrap; }
.section--dark .feature__desc { color: var(--color-on-dark-muted); }

/* Puce « virgule flamme » Wallace, en remplacement des ▸ */
.flames { display: grid; gap: .7rem; }
.flames li { display: flex; align-items: center; gap: .5em; } /* flamme centrée sur son texte (comme le profil aromatique) */
.flames li::before {
	content: ""; flex: 0 0 auto;
	width: .5em; height: 1.6em; /* même proportion flamme/texte que .attr (profil aromatique) */
	background: url('../assets/picto/virgule.svg') center / contain no-repeat;
}

/* =========================
   🗂️ Cartes (formats, valeurs, réassurance)
   ========================= */
.grid { display: grid; gap: 1.25rem; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
/* Section « Les formats » : grille resserrée → cartes (et médias carrés) moins hautes, la section tient dans l'écran */
#formats .grid--3 { max-width: 58rem; margin-inline: auto; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
	background: var(--color-background);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-lg);
	padding: 1.5rem; text-align: center;
	transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card[data-drawer-open] { cursor: pointer; }
.card[data-drawer-open]:focus-visible { outline: 2px solid var(--color-fuchsia); outline-offset: 3px; }
.card__media { aspect-ratio: 1 / 1; border-radius: var(--radius-md); overflow: hidden; margin-bottom: 1rem; background: var(--color-surface-2); }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__vol { font-family: var(--font-body); font-weight: 600; font-size: 1.85rem; letter-spacing: .01em; text-transform: uppercase; }
.card--featured { border: 2px solid var(--color-fuchsia); box-shadow: var(--shadow-soft); position: relative; }
.card--featured .card__badge {
	position: absolute; top: -1rem; left: 50%; transform: translateX(-50%);
	background: var(--color-fuchsia); color: #fff;
	font-size: .95rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap;
	padding: .4em 1.2em; border-radius: var(--radius-pill);
}

/* =========================
   🧭 Header / nav
   ========================= */
/* Header sticky : peau SOLIDE par défaut · GHOST sur le hero · masquable au scroll (réf. SPEC-header) */
.site-header {
	position: sticky; top: 0; z-index: 60;
	background: rgba(255,255,255,.9);
	backdrop-filter: saturate(140%) blur(10px);
	box-shadow: 0 4px 8px rgba(0,0,0,.05);
	/* pas de transition sur transform → le déplacement suit le scroll en temps réel (piloté en JS) */
	transition: background-color .3s var(--ease), box-shadow .3s var(--ease), backdrop-filter .3s var(--ease);
	will-change: transform;
}
/* B — peau ghost (hero visible) : fond transparent, sans ombre, items blancs */
.site-header.is-ghost { background: transparent; backdrop-filter: none; box-shadow: none; }

.nav { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 72px; }
.nav__logo { display: inline-flex; align-items: center; }
.nav__logo img { height: 34px; width: auto; display: block; } /* mot « BAJADA » sans N°3 (peau solide / pages internes) */
.nav__logo .logo--inverted { display: none; }
/* GHOST (hero home) : logo masqué, remplacé par 8 flammes blanches dégradées (plein à gauche → estompé à droite) */
.site-header.is-ghost .nav__logo .logo--default { display: none; }
.nav__flames { display: none; align-items: center; gap: .3rem; height: 34px; }
.site-header.is-ghost .nav__flames { display: inline-flex; }
.nav__flames i {
	width: 6px; height: 26px;
	background: url('../assets/picto/virgule.svg') center / contain no-repeat;
	filter: brightness(0) invert(1); /* virgule fuchsia → blanche (sans mask → compatible WebKit) */
}
.nav__flames i:nth-child(1) { opacity: 1; }
.nav__flames i:nth-child(2) { opacity: .86; }
.nav__flames i:nth-child(3) { opacity: .72; }
.nav__flames i:nth-child(4) { opacity: .58; }
.nav__flames i:nth-child(5) { opacity: .45; }
.nav__flames i:nth-child(6) { opacity: .33; }
.nav__flames i:nth-child(7) { opacity: .22; }
.nav__flames i:nth-child(8) { opacity: .12; }

.nav__links { display: flex; align-items: center; gap: 1.75rem; }
.nav__links a {
	font-weight: 600; letter-spacing: .06em; text-transform: uppercase; font-size: .9375rem;
	color: var(--color-text); position: relative; padding-block: .35rem;
	transition: color .3s var(--ease);
}
.nav__links a::after {
	content: ''; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
	background: var(--color-fuchsia); transition: width var(--dur) var(--ease);
}
.nav__links a:hover::after { width: 100%; }
.lang { position: relative; font-size: .875rem; font-weight: 600; letter-spacing: .05em; }
.lang__toggle { display: none; align-items: center; gap: .3rem; color: var(--color-text); padding: .3em; }
.lang__caret { transition: transform var(--dur) var(--ease); }
.lang[data-open] .lang__caret { transform: rotate(180deg); }
.lang__menu { display: flex; align-items: center; gap: .4rem; list-style: none; margin: 0; padding: 0; }
.lang__menu button { padding: .2em .45em; border-radius: var(--radius-sm); color: var(--color-text-muted); transition: color .3s var(--ease); font: inherit; }
.lang__menu button[aria-current="true"] { color: var(--color-fuchsia); }
.nav__toggle { display: none; background: transparent; border: 0; color: inherit; cursor: pointer; transition: color .3s var(--ease); }
.nav__toggle:hover { color: var(--color-gold); }

/* Items en blanc en peau ghost */
.site-header.is-ghost .nav__links a { color: #fff; }
.site-header.is-ghost .nav__links a::after { background: #fff; }
.site-header.is-ghost .lang__toggle { color: #fff; }
.site-header.is-ghost .lang__menu button { color: rgba(255,255,255,.7); }
.site-header.is-ghost .lang__menu button[aria-current="true"] { color: #fff; }
.site-header.is-ghost .nav__toggle { color: #fff; }

@media (prefers-reduced-motion: reduce) {
	.site-header { transition: background-color .3s, box-shadow .3s; transform: none !important; }
}

/* =========================
   🦸 Hero
   ========================= */
/* Hero plein écran : remonté sous le header (overlap négatif) pour recevoir la peau ghost transparente */
.hero {
	min-height: 100vh; display: flex; align-items: center;
	margin-top: calc(-1 * var(--header-h, 72px)); /* le header ghost se pose sur le fond du hero */
	padding-block: calc(var(--header-h, 72px) + 1rem) 5.5rem; /* garde le contenu hors du header + place pour le picto scroll */
}
/* Composition centrée symétrique (marges G/D égales) avec un écart texte↔bouteille proportionnel
   à la largeur : juste milieu sur 1440, un peu plus d'air sur les très grands écrans (iMac). */
.hero__grid { display: grid; grid-template-columns: auto auto; justify-content: center; gap: clamp(4rem, 14vw, 16rem); align-items: center; width: 100%; }

/* Picto « souris » incitant à défiler (bas du hero) */
.hero__scroll { position: absolute; left: 50%; bottom: 1.6rem; transform: translateX(-50%); z-index: 2; color: #fff; display: grid; place-items: center; }
.hero__scroll .mouse { width: 26px; height: 42px; border: 2px solid currentColor; border-radius: 14px; display: flex; justify-content: center; padding-top: 7px; opacity: .85; transition: opacity var(--dur) var(--ease); }
.hero__scroll:hover .mouse { opacity: 1; }
.hero__scroll .wheel { width: 4px; height: 8px; border-radius: 2px; background: currentColor; animation: heroWheel 1.6s var(--ease) infinite; }
@keyframes heroWheel { 0% { opacity: 0; transform: translateY(-3px); } 30% { opacity: 1; } 70% { opacity: 1; transform: translateY(8px); } 100% { opacity: 0; transform: translateY(11px); } }
@media (prefers-reduced-motion: reduce) { .hero__scroll .wheel { animation: none; } }
.hero__logo { width: clamp(220px, 24vw, 380px); margin-bottom: 1.25rem; }
.hero__title { font-size: clamp(2.5rem, 5.2vw, 4.75rem); margin-bottom: 1rem; } /* modéré (auparavant text-h1 jusqu'à 6.5rem = trop gros) */
.hero__lead { font-size: clamp(1.4rem, 2vw, 2rem); } /* tagline hero (subtitle-min 3rem = trop gros) */
.hero__media { justify-self: center; }
.hero__media img { width: auto; height: clamp(360px, 56vh, 600px); transform: rotate(13deg); filter: drop-shadow(0 22px 55px rgba(139,17,77,.55)); } /* bouteille détourée : inclinée 13°, glow silhouette */
.hero__actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 1.75rem; }

/* =========================
   📖 Notre histoire — image plein cadre à gauche, panneau fresque à droite
   ========================= */
.histoire { display: grid; grid-template-columns: 1fr 1fr; min-height: clamp(360px, 38vw, 520px); }
.histoire__media { overflow: hidden; }
.histoire__media img { width: 100%; height: 100%; object-fit: cover; display: block; } /* remplit toute la moitié gauche, bord à bord */
.histoire__panel { position: relative; display: flex; align-items: center; padding: var(--section-y) var(--gutter); overflow: clip; }
.histoire__content { position: relative; z-index: 1; max-width: 40rem; }
.histoire__content .heading-2 { margin: .4rem 0 1rem; }
.histoire__content .hero__actions { margin-top: 1.75rem; }
@media (max-width: 768px) {
	.histoire { grid-template-columns: 1fr; }
	.histoire__media { min-height: 300px; }
}

/* =========================
   🖼️ Split (texte / image)
   ========================= */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.75rem, 5vw, 4rem); align-items: center; }
.split__media img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); object-fit: cover; }
.split--reverse .split__media { order: -1; }
/* image qui épouse la hauteur de la colonne texte (même hauteur que le bloc) */
.split--stretch { align-items: stretch; }
.split--stretch .split__media img { height: 100%; object-fit: cover; }

/* =========================
   ⭐ Moments (pictos)
   ========================= */
/* Titre « À chaque moment, sa » + logo BAJADA officiel dessous (option A) */
/* zone de respiration autour du logo (charte Wallace) : dégagement accroche↔logo↔pictos */
.moment-title { display: flex; flex-direction: column; align-items: center; gap: clamp(1.5rem, 3vw, 2.4rem); }
.moment-title__logo { width: clamp(240px, 36vw, 440px); height: auto; display: block; }

.moments { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; text-align: center; }
.moment__icon {
	width: 64px; height: 64px; margin: 0 auto .9rem; display: grid; place-items: center;
	border-radius: var(--radius-pill); background: var(--gradient-gold); color: var(--color-violet);
}
.moment__icon svg { width: 30px; height: 30px; stroke-width: 2.2; }
.moment b { font-family: var(--font-subtitle); font-weight: 400; font-size: 1.5rem; line-height: 1.1; letter-spacing: .03em; text-transform: none; }

/* =========================
   📸 Instagram
   ========================= */
/* Handle Instagram cliquable (icône + @) */
.insta-handle { display: inline-flex; align-items: center; gap: .55rem; margin: .6rem 0 1.6rem; font-family: var(--font-subtitle); font-size: 1.6rem; letter-spacing: .03em; color: var(--color-fuchsia); transition: color var(--dur) var(--ease); }
.insta-handle svg { width: 1.35em; height: 1.35em; }
.insta-handle:hover { color: var(--color-accent-strong); }
.btn svg { width: 1.2em; height: 1.2em; flex: 0 0 auto; }

.insta-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .75rem; }
.insta-grid a { position: relative; aspect-ratio: 1; border-radius: var(--radius-md); overflow: hidden; display: block; }
.insta-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur) var(--ease); }
.insta-grid a:hover img { transform: scale(1.06); }

/* =========================
   🦶 Footer
   ========================= */
.site-footer { background: var(--gradient-dark); color: var(--color-on-dark-muted); }
.site-footer .container { padding-block: 3.5rem 1.75rem; }

/* 3 colonnes réparties sur toute la largeur (cols 1+2 fusionnées) : logo centré · Le site · Informations.
   Même gabarit que .footer__bottom → Informations tombe pile au-dessus du bloc pictos+agence. */
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2.5rem; align-items: stretch; }
/* Logo « BAJADA » (sans N°3) : aligné à gauche, hauteur = celle des colonnes liens (titre + 3 liens).
   Lien en position absolue → ne gonfle pas la rangée ; fond auto 100% → hauteur calée sur la colonne. */
.footer__brand { position: relative; }
.footer__logo-link {
	position: absolute; top: auto; bottom: 0; height: 152px; left: calc(56px + 1.1rem); right: 0; /* hauteur = les 4 lignes (titre + 3 liens), ancré en bas ; left=badge+gap → aligné sur « BAJADA · SIREN » */
	background: url('../assets/logo/logo-blanc.svg') left center / auto 100% no-repeat;
	transition: background-image 0s;
}
.footer__logo-link:hover { background-image: url('../assets/logo/logo-n3-or-aplat.svg'); } /* switch N°3 blanc → N°3 aplat or */

.footer__socials { display: flex; gap: .8rem; }
.footer__socials a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: var(--radius-pill); border: 1px solid var(--color-on-dark-border); color: var(--color-on-dark-text); transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.footer__socials a:hover { color: var(--color-gold); border-color: var(--color-gold); }
.footer__socials svg { width: 20px; height: 20px; }

.footer__col { display: flex; flex-direction: column; gap: .55rem; }
.footer__title { font-family: var(--font-body); font-weight: 600; font-size: var(--text-sm); letter-spacing: .18em; text-transform: uppercase; color: var(--color-gold); margin-bottom: .5rem; }
.footer__col a { color: var(--color-on-dark-text); width: max-content; }
.footer__col a:hover { color: var(--color-gold); }
/* Colonnes liens centrées (Le site, Informations) */
.footer__col--center { align-items: center; text-align: center; }

/* Bas (3 col, même gabarit) : col1 badge+3 lignes · col3 pictos en ligne au-dessus de l'agence.
   align-items:end → 3e ligne légale & « BORN TO BE WEB » sur la même ligne de base. */
.footer__bottom { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2.5rem; align-items: end; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.12); }
.footer__bottom-left { grid-column: 1; display: flex; align-items: stretch; gap: 1.1rem; }
.footer__axeptio { width: 56px; height: 56px; flex: 0 0 auto; }
.footer__axeptio svg { width: 100%; height: 100%; display: block; }
.footer__legal { display: flex; flex-direction: column; justify-content: space-between; font-size: var(--text-sm); line-height: 1.1; color: var(--color-on-dark-muted); }
.footer__legal p { margin: 0; }
.footer__bottom-right { grid-column: 3; display: flex; flex-direction: column; align-items: center; gap: .85rem; }
.footer__agency { text-transform: uppercase; font-size: var(--text-sm); letter-spacing: .04em; color: var(--color-on-dark-muted); transition: color var(--dur) var(--ease); }
.footer__agency:hover { color: var(--color-gold); }

@media (max-width: 768px) {
	/* HAUT — logo N°3 centré pleine largeur, puis Le site + Informations (2 colonnes centrées) */
	.footer__grid { grid-template-columns: 1fr 1fr; gap: 2rem 1.2rem; }
	.footer__brand { grid-column: 1 / -1; position: static; display: flex; justify-content: center; }
	.footer__logo-link { position: static; left: auto; right: auto; bottom: auto; width: 108px; height: 122px; background-position: center; background-size: contain; }
	.footer__col, .footer__col--center { align-items: center; text-align: center; }

	/* BAS — on aplatit les 2 wrappers en grille de zones :
	   réseaux (centré) · 3 lignes légales (centré) · badge cookie (gauche) ↔ agence (droite) */
	.footer__bottom-left, .footer__bottom-right { display: contents; }
	.footer__bottom {
		grid-template-columns: 1fr 1fr;
		grid-template-areas: "socials socials" "legal legal" "badge agency";
		gap: 1.7rem 1rem; align-items: center; text-align: center; margin-top: 2rem;
	}
	.footer__socials { grid-area: socials; justify-self: center; }
	.footer__legal { grid-area: legal; min-width: 0; justify-content: initial; gap: .25rem; } /* pleine largeur + texte centré (hérité) → la longue ligne s'enroule, pas de débordement */
	.footer__axeptio { grid-area: badge; justify-self: start; align-self: center; }
	.footer__agency { grid-area: agency; justify-self: end; align-self: center; }
}

/* =========================
   🪧 Bandeau légal (rappel alcool sous chaque section dense)
   ========================= */
.legal-strip { font-size: var(--text-sm); color: var(--color-text-muted); letter-spacing: .02em; }

/* =====================================================================
   🪟 Modale vérification d'âge
   ===================================================================== */
.age-gate {
	position: fixed; inset: 0; z-index: 100;
	display: grid; place-items: center; padding: 1.5rem var(--gutter);
	overflow-y: auto; /* si l'écran est court, la modale reste accessible (scroll) */
	background: rgba(8,0,4,.72);
	background-image: var(--scrim-panel), url('../assets/img/fresque.webp');
	background-size: cover; background-position: center;
}
.age-gate[hidden] { display: none; }
.age-gate__card {
	background: var(--color-dark-bg);
	border: 1px solid var(--color-on-dark-border);
	border-radius: var(--radius-xl);
	padding: clamp(1.6rem, 4vw, 2.5rem); text-align: center; max-width: 27rem; margin: auto;
	color: var(--color-on-dark-text); box-shadow: var(--shadow-md);
}
.age-gate__card img { width: 72px; margin: 0 auto 1rem; }
.age-gate__card h2 { font-family: var(--font-display); font-weight: var(--display-weight); text-transform: uppercase; font-size: clamp(1.45rem, 2.6vw, 1.9rem); line-height: 1.05; margin-bottom: .7rem; }
.age-gate__actions { display: flex; flex-direction: column; gap: .65rem; margin-top: 1.25rem; }
.age-gate__warning { margin-top: 1.1rem; font-size: var(--text-sm); color: var(--color-on-dark-muted); }

/* =====================================================================
   🧰 Drawer « panneau latéral » (fiche produit)
   ===================================================================== */
.drawer-overlay {
	position: fixed; inset: 0; z-index: 90;
	background: rgba(255,255,255,.22); /* voile blanchi très léger sur toutes les sections quand le drawer est ouvert */
	-webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); /* très léger flou */
	opacity: 0; visibility: hidden; transition: opacity var(--dur) var(--ease), visibility var(--dur);
}
.drawer-overlay[data-open="true"] { opacity: 1; visibility: visible; }
.drawer {
	position: fixed; top: 0; right: 0; z-index: 91; height: 100%;
	width: min(672px, 96vw); /* +20% côté droit ; la vague gauche garde sa largeur px (clip-path recompté) */
	color: var(--color-on-dark-text);
	background-color: var(--color-dark-bg);
	background-image: var(--scrim-panel), url('../assets/img/fresque.webp'); /* décor de marque restauré */
	background-size: cover; background-position: center;
	/* bord gauche organique « bajada » : clip-path référencé (objectBoundingBox = responsive, compatible WebKit) */
	-webkit-clip-path: url(#drawerShape); clip-path: url(#drawerShape);
	transform: translateX(100%); transition: transform var(--dur) var(--ease);
	overflow: hidden; /* le scroll se fait dans .drawer__scroll → la croix reste épinglée */
	display: flex; flex-direction: column;
}
/* zone qui défile (le X reste hors de cette zone → toujours visible) */
.drawer__scroll { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; padding: 2rem 2rem 2rem 13rem; }
/* mention légale collée au bas du drawer */
.drawer__legal-note { margin-top: auto; padding-top: 1.5rem; text-align: center; font-size: .8125rem; color: var(--color-on-dark-muted); }
.drawer[data-open="true"] { transform: translateX(0); }
/* Tous les blocs à la même largeur (= largeur de la ligne « Ingrédients … levures », picto compris), centrés. */
.drawer { --drawer-block-w: 306px; }
.drawer__head, .drawer__scroll > section { width: min(var(--drawer-block-w), 100%); margin-inline: auto; } /* largeur définie (pas max-width) : sinon les marges auto en flex rétrécissent le bloc à son contenu */
.drawer__close { position: absolute; top: 1.1rem; right: 1.1rem; z-index: 3; width: 40px; height: 40px; border-radius: var(--radius-pill); border: 1px solid var(--color-on-dark-border); display: grid; place-items: center; color: var(--color-on-dark-text); background: rgba(11,2,7,.35); }
.drawer__close:hover { background: rgba(255,255,255,.08); }
.drawer__head { margin-bottom: 1.25rem; padding-top: 1rem; text-align: center; } /* logo centré dans la partie haute visible */
.drawer__logo { margin: 0 0 1.9rem; line-height: 0; } /* logo au-dessus des phrases : espace généreux dessous (respire) */
.drawer__logo img { height: 88px; width: auto; display: inline-block; } /* logo N°3 blanc, centré, seul en tête */
.drawer__sub { text-transform: uppercase; letter-spacing: .12em; font-weight: 600; font-size: .875rem; margin: 0; } /* collé juste au-dessus de la tagline */
.drawer__tagline { color: var(--color-on-dark-muted); margin-top: .35rem; }
.drawer section { padding-block: 1.1rem; border-top: 1px solid var(--color-on-dark-border); }
.drawer h2 { font-family: var(--font-display); font-weight: var(--display-weight); text-transform: uppercase; font-size: 1.7rem; line-height: 1; }
.drawer h3 { font-size: var(--text-base); text-transform: uppercase; letter-spacing: .12em; color: var(--color-gold); margin-bottom: .6rem; text-align: center; } /* titres centrés ; le contenu dessous reste à gauche */
.drawer .hero__actions { justify-content: center; } /* bouton « Nous contacter » centré dans le bloc */
.drawer .locked {
	border-left: 3px solid var(--color-gold); padding: .25rem 0 .25rem 1rem;
	font-style: italic; color: var(--color-on-dark-text);
}
/* Drawer MENU (burger) : bouton Contact aéré en haut, puis liste des pages, centrés */
.drawer--menu .menu-nav { border-top: none; padding-top: 0; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 1.6rem; }
.menu-nav__contact { margin-bottom: .4rem; } /* laisse respirer le bouton */
.menu-list { display: flex; flex-direction: column; align-items: center; gap: 1.15rem; }
.menu-list a { font-family: var(--font-body); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; font-size: 1.375rem; color: var(--color-on-dark-text); transition: color var(--dur) var(--ease); }
.menu-list a:hover { color: var(--color-gold); }

/* Drawer mobile : quasi plein écran, vague gauche plus fine (forme dédiée), contenu fluide */
@media (max-width: 768px) {
	.drawer { width: 96vw; -webkit-clip-path: url(#drawerShapeMobile); clip-path: url(#drawerShapeMobile); }
	.drawer__scroll { padding: 1.75rem 1.25rem 1.5rem 4.75rem; } /* padding-left ~ largeur de la vague mobile */
	.drawer__head, .drawer__scroll > section { width: min(var(--drawer-block-w), 100%); } /* fluide : remplit l'espace restant */
}

/* =====================================================================
   📱 Responsive (mobile-first overrides)
   ===================================================================== */
@media (max-width: 1024px) {
	/* Hero empilé, ordre : logo → « L'élégance » → bouteille (réduite) → « Une Pale Ale » → bouton → picto scroll */
	.hero { padding-block: calc(var(--header-h, 64px) + .6rem) 3.75rem; }
	.hero__grid { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .7rem; }
	.hero__text { display: contents; } /* ses enfants deviennent ordonnables avec la bouteille */
	.hero__logo { order: 1; width: clamp(165px, 45vw, 240px); margin: 0; }
	.hero__title { order: 2; margin: 0; font-size: clamp(1.9rem, 6.4vw, 2.6rem); }
	.hero__media { order: 3; justify-self: auto; margin: .2rem 0; }
	.hero__media img { height: clamp(200px, 32vh, 300px); }
	.hero__lead { order: 4; font-size: clamp(1.1rem, 4.4vw, 1.45rem); }
	.hero__actions { order: 5; justify-content: center; margin-top: .5rem; }
}
/* Hero desktop sur viewport COURT (ex. 1440×932 fenêtré → ~780) : on réduit encore pour tout faire tenir */
@media (min-width: 1025px) and (max-height: 820px) {
	.hero__logo { width: clamp(200px, 19vw, 300px); margin-bottom: .7rem; }
	.hero__title { font-size: clamp(2.1rem, 3.6vw, 3.2rem); margin-bottom: .55rem; }
	.hero__lead { font-size: 1.4rem; }
	.hero__media img { height: min(54vh, 440px); }
	.hero__actions { margin-top: .9rem; }
}
@media (max-width: 768px) {
	/* Header mobile : logo · (Clubs & CHR) · langue déroulante · burger */
	.nav { gap: 1rem; }
	.nav__links { margin-left: auto; display: flex; }
	.nav__links a { display: none; }
	.nav__links a.nav__link--keep { display: inline-block; }
	.nav__toggle { display: grid; place-items: center; width: 44px; height: 44px; }
	.lang__toggle { display: flex; }
	.lang__menu {
		position: absolute; top: calc(100% + .6rem); right: 0; z-index: 80;
		flex-direction: column; align-items: stretch; gap: .1rem; min-width: 4.5rem; padding: .35rem;
		background: var(--color-dark-bg); border: 1px solid var(--color-on-dark-border);
		border-radius: var(--radius-md); box-shadow: var(--shadow-md); display: none;
	}
	.lang[data-open] .lang__menu { display: flex; }
	.lang__menu button { width: 100%; text-align: center; padding: .55rem .5rem; color: var(--color-on-dark-text); }
	.lang__menu button[aria-current="true"] { color: var(--color-gold); }
	.grid--3, .insta-grid { grid-template-columns: 1fr 1fr; }
	/* Eyebrows (sur-titres) plus petits en mobile */
	.eyebrow { font-size: clamp(1.6rem, 5.5vw, 2.1rem); }
	/* Section 5 « À chaque moment » : logo + eyebrow + 3 pictos réduits (côte à côte) */
	.moment-title__logo { width: clamp(170px, 44vw, 220px); }
	.moments { grid-template-columns: repeat(3, 1fr); gap: .5rem; }
	.moment__icon { width: 44px; height: 44px; margin-bottom: .55rem; }
	.moment__icon svg { width: 22px; height: 22px; }
	.moment b { font-size: clamp(.85rem, 3vw, 1.05rem); }
	/* Section 6 « Réassurance » : 2 blocs empilés (Brassée puis Envie), « Vente +18 ans » masqué */
	.features { grid-template-columns: 1fr; }
	.feature--legal { display: none; }
	.feature { justify-content: center; text-align: center; } /* couple picto+texte centré */
	.feature__desc { white-space: normal; } /* évite le débordement sur petit écran */
	.split, .split--reverse .split__media { grid-template-columns: 1fr; order: 0; }
	.split { grid-template-columns: 1fr; }
	/* Section 2 « Une seule bière » : image avant le texte + contenu centré */
	#suite .split__media { order: -1; }
	#suite .stack { text-align: center; }
	#suite .n3-mark { margin-inline: auto; }
	#suite .attrs--cols2 { justify-content: center; }
	/* Section 3 « Notre histoire » : titre + sous-titre centrés, texte justifié (bouton déjà centré) */
	.histoire__content { text-align: center; }
	.histoire__content p { text-align: justify; }
}
@media (max-width: 480px) {
	.grid--3, .grid--2 { grid-template-columns: 1fr; }
}

/* =========================
   ♿ Accessibilité — mouvement réduit
   ========================= */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
