/*
Theme Name: La Bressane
Theme URI: https://example.com
Author: La Bressane
Description: Thème WordPress pour la brasserie La Bressane — "Fièrement brassée en Bresse". Catalogue de bières, page d'accueil, coffrets, points de vente, vérification d'âge et compatible WooCommerce.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: la-bressane
*/

:root {
	--yellow: #FFC72C;
	--yellow-dark: #E8AE12;
	--black: #121212;
	--cream: #FFF8E4;
	--white: #fff;
	--orange: #F28C28;
	--blue: #7CC5E8;
	--green: #3E9B4F;
	--radius: 14px;
	--shadow: 6px 6px 0 var(--black);
	--font-title: 'Bebas Neue', 'Oswald', Impact, sans-serif;
	--font-body: 'Nunito Sans', system-ui, -apple-system, Segoe UI, sans-serif;
	--max: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--font-body);
	font-size: 17px;
	line-height: 1.65;
	color: var(--black);
	background: var(--cream);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 {
	font-family: var(--font-title);
	text-transform: uppercase;
	letter-spacing: .03em;
	line-height: 1.05;
	margin: 0 0 .5em;
	font-weight: 400;
}
h1 { font-size: clamp(2.8rem, 7vw, 5.5rem); }
h2 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h3 { font-size: 1.7rem; }
.container { width: min(100% - 2rem, var(--max)); margin-inline: auto; }
.section { padding: 5rem 0; }
.section--yellow { background: var(--yellow); }
.section--black { background: var(--black); color: var(--white); }
.section-title { text-align: center; margin-bottom: 3rem; }
.section-title p { max-width: 640px; margin: 0 auto; opacity: .85; }
.screen-reader-text { position: absolute; left: -9999px; }

/* Buttons */
.btn {
	display: inline-block;
	font-family: var(--font-title);
	font-size: 1.35rem;
	letter-spacing: .06em;
	text-transform: uppercase;
	text-decoration: none;
	padding: .55em 1.5em;
	background: var(--black);
	color: var(--yellow);
	border: 3px solid var(--black);
	border-radius: 6px;
	cursor: pointer;
	transition: transform .15s, box-shadow .15s;
}
.btn:hover { transform: translate(-2px,-2px); box-shadow: 4px 4px 0 var(--orange); }
.btn--light { background: var(--white); color: var(--black); }
.btn--outline { background: transparent; color: var(--black); }

/* Ribbon (rappel du logo) */
.ribbon {
	display: inline-block;
	background: var(--white);
	color: var(--black);
	font-family: var(--font-title);
	font-size: clamp(1.8rem, 4vw, 2.6rem);
	letter-spacing: .04em;
	padding: .15em 1.4em;
	border: 3px solid var(--orange);
	box-shadow: 8px 8px 0 var(--black);
	transform: rotate(-2deg);
	text-transform: uppercase;
}

/* Header */
.site-header {
	background: var(--yellow);
	border-bottom: 4px solid var(--black);
	position: sticky;
	top: 0;
	z-index: 50;
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .6rem 0; }
.site-branding a { text-decoration: none; display: flex; align-items: center; gap: .7rem; }
.site-branding img { max-height: 64px; width: auto; }
.site-title { font-family: var(--font-title); font-size: 2rem; text-transform: uppercase; letter-spacing: .04em; }
.main-nav ul { list-style: none; display: flex; gap: 1.6rem; margin: 0; padding: 0; align-items: center; }
.main-nav a {
	font-family: var(--font-title);
	font-size: 1.3rem;
	letter-spacing: .05em;
	text-transform: uppercase;
	text-decoration: none;
	position: relative;
}
.main-nav a::after { content: ""; position: absolute; left: 0; bottom: -4px; width: 0; height: 3px; background: var(--black); transition: width .2s; }
.main-nav a:hover::after, .main-nav .current-menu-item > a::after { width: 100%; }
.nav-toggle { display: none; background: none; border: 3px solid var(--black); border-radius: 6px; font-family: var(--font-title); font-size: 1.2rem; padding: .2em .8em; cursor: pointer; }

/* Hero */
.hero {
	background: var(--yellow);
	background-image: repeating-conic-gradient(from 0deg at 75% 50%, rgba(0,0,0,.05) 0 5deg, transparent 5deg 10deg);
	padding: 4rem 0 5rem;
	overflow: hidden;
}
.hero .container { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; }
.hero__kicker { font-family: var(--font-title); font-size: 1.5rem; letter-spacing: .08em; margin-bottom: .5rem; }
.hero h1 { margin-bottom: .3em; }
.hero p { font-size: 1.2rem; max-width: 520px; }
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.8rem; }
.hero__visual { position: relative; }
.hero__visual img {
	border: 6px solid var(--white);
	outline: 4px solid var(--black);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	width: 100%;
	object-fit: cover;
	aspect-ratio: 4/5;
}
.hero__badge { position: absolute; left: -1rem; bottom: -1.5rem; }

/* Marquee */
.marquee { background: var(--black); color: var(--yellow); font-family: var(--font-title); font-size: 1.6rem; letter-spacing: .08em; overflow: hidden; white-space: nowrap; padding: .6rem 0; }
.marquee span { display: inline-block; padding-left: 100%; animation: marquee 28s linear infinite; }
@keyframes marquee { to { transform: translateX(-100%); } }

/* Beers */
.beer-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 2rem; }
.beer-card {
	--beer: var(--yellow);
	background: var(--white);
	border: 3px solid var(--black);
	border-radius: var(--radius);
	overflow: hidden;
	text-decoration: none;
	display: flex;
	flex-direction: column;
	box-shadow: var(--shadow);
	transition: transform .2s, box-shadow .2s;
}
.beer-card:hover { transform: translate(-3px,-3px); box-shadow: 9px 9px 0 var(--black); }
.beer-card__media { background: var(--beer); border-bottom: 3px solid var(--black); padding: 1.5rem; display: grid; place-items: center; min-height: 260px; }
.beer-card__media img { max-height: 230px; width: auto; object-fit: contain; filter: drop-shadow(0 8px 6px rgba(0,0,0,.25)); }
.beer-card__placeholder { font-family: var(--font-title); font-size: 4rem; color: var(--black); opacity: .35; }
.beer-card__body { padding: 1.2rem 1.4rem 1.5rem; }
.beer-card__style { font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; opacity: .65; }
.beer-card__meta { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .6rem; }
.tag { font-size: .8rem; font-weight: 800; background: var(--black); color: var(--yellow); padding: .15em .7em; border-radius: 99px; }

/* Single beer */
.beer-single { display: grid; grid-template-columns: 1fr 1.2fr; gap: 3rem; align-items: center; }
.beer-single__media { background: var(--beer, var(--yellow)); border: 4px solid var(--black); border-radius: var(--radius); box-shadow: var(--shadow); padding: 2rem; display: grid; place-items: center; min-height: 420px; }
.beer-single__media img { max-height: 400px; width: auto; }
.beer-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 1rem; margin: 1.5rem 0; }
.beer-facts div { background: var(--white); border: 3px solid var(--black); border-radius: 10px; padding: .7rem 1rem; text-align: center; }
.beer-facts strong { display: block; font-family: var(--font-title); font-size: 1.8rem; line-height: 1; }
.beer-facts small { text-transform: uppercase; letter-spacing: .08em; font-size: .72rem; font-weight: 700; opacity: .65; }

/* Story */
.story { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.story img { border: 5px solid var(--yellow); border-radius: var(--radius); }
.story .lead { font-size: 1.25rem; }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2rem; }
.value { border-left: 4px solid var(--yellow); padding-left: 1rem; }
.value h3 { color: var(--yellow); margin-bottom: .2em; font-size: 1.5rem; }

/* Coffret */
.coffret { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.coffret img { filter: drop-shadow(8px 8px 0 var(--black)); }

/* Where to find us */
.find-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; }
.find-card { background: var(--white); border: 3px solid var(--black); border-radius: var(--radius); padding: 1.5rem; box-shadow: 5px 5px 0 var(--black); }
.find-card h3 { margin-bottom: .3em; }

/* Content pages */
.page-header { background: var(--yellow); border-bottom: 4px solid var(--black); padding: 3.5rem 0 2.5rem; text-align: center; }
.page-header h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); margin: 0; }
.entry-content { max-width: 780px; margin: 0 auto; }
.entry-content h2, .entry-content h3 { margin-top: 1.6em; }
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 2rem; }
.post-card { background: var(--white); border: 3px solid var(--black); border-radius: var(--radius); overflow: hidden; }
.post-card__body { padding: 1.2rem 1.4rem; }
.post-card a { text-decoration: none; }

/* Forms */
input[type="text"], input[type="email"], input[type="search"], textarea, select {
	width: 100%; font: inherit; padding: .75rem 1rem; border: 3px solid var(--black); border-radius: 8px; background: var(--white);
}
input[type="submit"], button[type="submit"] { font-family: var(--font-title); font-size: 1.3rem; letter-spacing: .06em; background: var(--black); color: var(--yellow); border: 3px solid var(--black); border-radius: 6px; padding: .5em 1.5em; cursor: pointer; }

/* Footer */
.site-footer { background: var(--black); color: var(--white); padding: 4rem 0 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 3rem; }
.site-footer h3 { color: var(--yellow); }
.site-footer a { color: var(--white); text-decoration-color: var(--yellow); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.footer-legal { border-top: 1px solid rgba(255,255,255,.2); margin-top: 3rem; padding-top: 1.2rem; font-size: .85rem; opacity: .8; text-align: center; }
.footer-legal strong { color: var(--yellow); }

/* Age gate */
.age-gate { position: fixed; inset: 0; z-index: 9999; background: var(--yellow); display: none; place-items: center; text-align: center; padding: 1.5rem; }
.age-gate.is-open { display: grid; }
.age-gate__box { max-width: 520px; }
.age-gate__box .ribbon { margin: 1.5rem 0; }
.age-gate__actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.age-gate small { display: block; margin-top: 1.5rem; font-size: .8rem; }

/* Responsive */
@media (max-width: 860px) {
	.hero .container, .story, .coffret, .beer-single, .footer-grid, .values { grid-template-columns: 1fr; }
	.nav-toggle { display: block; }
	.main-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--yellow); border-bottom: 4px solid var(--black); padding: 1rem; }
	.main-nav.is-open { display: block; }
	.main-nav ul { flex-direction: column; align-items: flex-start; }
	.hero__badge { left: 0; }
	.section { padding: 3.5rem 0; }
}
