/*
Theme Name: Théorie
Theme URI: https://example.com
Author: Votre marque
Author URI: https://example.com
Description: Thème vitrine élégant pour une marque de thé en vrac, inspiré des boutiques DTC premium (dans l'esprit de theteastory.co) : hero plein écran, collections, fiches produits, storytelling de marque et newsletter.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: theorie
*/

/* ---------- Tokens ---------- */
:root {
	--color-bg: #FAF6EE;
	--color-bg-alt: #F1EAD9;
	--color-surface: #FFFFFF;
	--color-green: #2F4A3D;
	--color-green-dark: #1F332B;
	--color-rust: #C1663B;
	--color-rust-dark: #A34F29;
	--color-text: #2B2823;
	--color-text-light: #6B6357;
	--color-border: #E3DACA;
	--font-serif: 'Fraunces', Georgia, serif;
	--font-sans: 'Jost', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	--container: 1220px;
	--radius: 18px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--color-bg);
	color: var(--color-text);
	font-family: var(--font-sans);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 {
	font-family: var(--font-serif);
	font-weight: 600;
	line-height: 1.15;
	margin: 0 0 0.6em;
	color: var(--color-green-dark);
}
p { margin: 0 0 1em; color: var(--color-text-light); }
button { font-family: inherit; cursor: pointer; }

.container {
	max-width: var(--container);
	margin: 0 auto;
	padding: 0 32px;
}
.container-narrow { max-width: 820px; }

.eyebrow {
	display: inline-block;
	font-family: var(--font-sans);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--color-rust);
	margin-bottom: 14px;
}
.eyebrow-light { color: #F3D9C4; }

.section-heading {
	text-align: center;
	max-width: 620px;
	margin: 0 auto 48px;
}
.section-heading h2 { font-size: clamp(28px, 3.2vw, 40px); }

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 15px 30px;
	border-radius: 999px;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.03em;
	border: 1.5px solid transparent;
	transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--color-rust); color: #fff; }
.btn-primary:hover { background: var(--color-rust-dark); }
.btn-dark { background: var(--color-green); color: #fff; }
.btn-dark:hover { background: var(--color-green-dark); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.6); }
.btn-ghost:hover { background: rgba(255,255,255,0.15); }
.btn-outline {
	width: 100%;
	background: transparent;
	color: var(--color-green-dark);
	border-color: var(--color-border);
	border-radius: 999px;
	padding: 12px 20px;
	font-size: 13px;
}
.btn-outline:hover { border-color: var(--color-green); background: var(--color-green); color: #fff; }
.btn-outline.is-added { background: var(--color-green-dark); border-color: var(--color-green-dark); color: #fff; }

/* ---------- Announcement bar ---------- */
.announcement-bar {
	background: var(--color-green-dark);
	color: #F3EFE4;
	text-align: center;
	padding: 10px 16px;
	font-size: 13px;
	letter-spacing: 0.03em;
}
.announcement-bar p { margin: 0; color: inherit; }

/* ---------- Header ---------- */
.site-header {
	position: relative;
	z-index: 40;
	background: #3f7d2f url('assets/img/golf-header.svg') center / cover no-repeat;
	color: #fff;
}
.site-header::before {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(to bottom, rgba(10, 30, 20, 0.55), rgba(10, 30, 20, 0.25) 60%, rgba(10, 30, 20, 0.45));
}
.header-inner {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 18px;
	padding-top: 56px;
	padding-bottom: 34px;
}
.site-branding { margin: 0; }
.main-title { margin: 0; line-height: 1.1; }
.main-title a {
	font-family: var(--font-serif);
	font-size: 46px;
	font-weight: 700;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	color: #fff;
	text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

.nav-menu { display: flex; flex-wrap: wrap; justify-content: center; }
.nav-menu a {
	display: block;
	padding: 6px 20px;
	font-size: 18px;
	font-weight: 500;
	text-transform: uppercase;
	color: #fff;
	text-shadow: 0 1px 6px rgba(0, 0, 0, 0.45);
	position: relative;
}
.nav-menu a::after {
	content: '';
	position: absolute;
	left: 20px; right: 20px; bottom: 0;
	height: 2px;
	background: #fff;
	transform: scaleX(0);
	transition: transform 0.2s ease;
}
.nav-menu a:hover::after { transform: scaleX(1); }
.nav-toggle {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 30px; height: 24px;
	background: none;
	border: none;
	padding: 0;
}
.nav-toggle span {
	display: block;
	width: 100%;
	height: 2px;
	background: var(--color-green-dark);
	transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ---------- Hero ---------- */
.hero {
	position: relative;
	min-height: 84vh;
	display: flex;
	align-items: flex-end;
	color: #fff;
	overflow: hidden;
}
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after {
	content: '';
	position: absolute; inset: 0;
	background: linear-gradient(0deg, rgba(19, 28, 23, 0.78) 0%, rgba(19, 28, 23, 0.35) 45%, rgba(19, 28, 23, 0.15) 100%);
}
.hero-content { position: relative; padding-bottom: 72px; max-width: 720px; }
.hero h1 { color: #fff; font-size: clamp(34px, 5vw, 56px); }
.hero p { color: rgba(255,255,255,0.85); font-size: 17px; max-width: 520px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 28px; }

/* ---------- Trust bar ---------- */
.trust-bar { background: var(--color-bg-alt); padding: 32px 0; }
.trust-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
}
.trust-item {
	display: flex;
	align-items: center;
	gap: 12px;
	justify-content: center;
	color: var(--color-green-dark);
	font-size: 14px;
	font-weight: 500;
}
.trust-item svg { flex-shrink: 0; color: var(--color-rust); }

/* ---------- Sections spacing ---------- */
section { padding: 96px 0; }
.trust-bar { padding: 0; }

/* ---------- Collections ---------- */
.collections-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
}
.collection-card {
	position: relative;
	border-radius: var(--radius);
	overflow: hidden;
	aspect-ratio: 4 / 5;
	display: block;
}
.collection-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.collection-card:hover img { transform: scale(1.06); }
.collection-card::after {
	content: '';
	position: absolute; inset: 0;
	background: linear-gradient(0deg, rgba(31, 51, 43, 0.75) 0%, transparent 55%);
}
.collection-name {
	position: absolute;
	left: 20px; bottom: 18px;
	color: #fff;
	font-family: var(--font-serif);
	font-size: 20px;
	z-index: 1;
}

/* ---------- Products ---------- */
.products { background: var(--color-bg-alt); }
.products-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 26px;
}
.product-card {
	background: var(--color-surface);
	border-radius: var(--radius);
	overflow: hidden;
	padding-bottom: 20px;
	display: flex;
	flex-direction: column;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.product-card:hover { transform: translateY(-4px); box-shadow: 0 16px 30px rgba(43, 40, 35, 0.08); }
.product-media { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; }
.product-media img { width: 100%; height: 100%; object-fit: cover; }
.product-tag {
	position: absolute;
	top: 14px; left: 14px;
	background: var(--color-green-dark);
	color: #fff;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	padding: 5px 11px;
	border-radius: 999px;
	z-index: 1;
}
.product-info { padding: 18px 18px 10px; }
.product-info h3 { font-size: 17px; margin-bottom: 6px; }
.product-price { display: block; color: var(--color-rust); font-weight: 600; font-size: 15px; }
.product-price-single { font-size: 22px; margin-top: -8px; }
.product-card .btn-outline { margin: 6px 18px 0; width: auto; }
.products-note { text-align: center; color: var(--color-text-light); font-size: 13px; margin-top: 36px; }

/* ---------- Story ---------- */
.story-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 64px;
	align-items: center;
}
.story-media { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; }
.story-media img { width: 100%; height: 100%; object-fit: cover; }
.story-text h2 { font-size: clamp(28px, 3vw, 38px); }

/* ---------- Benefits ---------- */
.benefits { background: var(--color-green-dark); color: #fff; }
.benefits-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 40px;
}
.benefit-number {
	font-family: var(--font-serif);
	font-size: 15px;
	color: #F3D9C4;
	display: block;
	margin-bottom: 12px;
}
.benefit h3 { color: #fff; font-size: 21px; }
.benefit p { color: rgba(255,255,255,0.72); margin-bottom: 0; }

/* ---------- Testimonials ---------- */
.testimonials-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 28px;
}
.testimonial {
	background: var(--color-surface);
	border-radius: var(--radius);
	padding: 32px 28px;
	margin: 0;
}
.testimonial p {
	font-family: var(--font-serif);
	font-size: 18px;
	color: var(--color-green-dark);
	font-style: italic;
	margin-bottom: 18px;
}
.testimonial cite { font-size: 13px; color: var(--color-text-light); font-style: normal; }

/* ---------- Instagram ---------- */
.instagram-grid {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 12px;
}
.instagram-item { border-radius: 12px; overflow: hidden; aspect-ratio: 1 / 1; }
.instagram-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease; }
.instagram-item:hover img { transform: scale(1.08); }

/* ---------- Newsletter band ---------- */
.newsletter-band { background: var(--color-rust); color: #fff; padding: 64px 0; }
.newsletter-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 40px;
	flex-wrap: wrap;
}
.newsletter-text { max-width: 480px; }
.newsletter-text .eyebrow { color: rgba(255,255,255,0.85); }
.newsletter-text h2 { color: #fff; font-size: 28px; }
.newsletter-text p { color: rgba(255,255,255,0.85); margin-bottom: 0; }
.newsletter-form { display: flex; gap: 10px; flex: 1; min-width: 300px; max-width: 440px; }
.newsletter-form input {
	flex: 1;
	padding: 14px 18px;
	border-radius: 999px;
	border: none;
	font-size: 14px;
	font-family: inherit;
}
.newsletter-form button {
	background: var(--color-green-dark);
	color: #fff;
	border: none;
	padding: 14px 24px;
	border-radius: 999px;
	font-weight: 600;
	font-size: 14px;
	white-space: nowrap;
}
.newsletter-form button:hover { background: var(--color-green); }

/* ---------- Footer ---------- */
.site-footer { background: var(--color-green-dark); color: rgba(255,255,255,0.75); padding-top: 72px; }
.footer-grid {
	display: grid;
	grid-template-columns: 1.6fr 1fr 1fr 1fr;
	gap: 40px;
	padding-bottom: 56px;
	border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-about p { color: rgba(255,255,255,0.65); margin-top: 16px; }
.footer-widget-title, .footer-col h4 {
	color: #fff;
	font-family: var(--font-sans);
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	margin-bottom: 18px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 11px; }
.footer-col a { color: rgba(255,255,255,0.7); font-size: 14.5px; }
.footer-col a:hover { color: #fff; }
.social-links { display: flex; gap: 10px; margin-top: 20px; }
.social-links a {
	width: 34px; height: 34px;
	border: 1px solid rgba(255,255,255,0.25);
	border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
	font-size: 11px;
	font-weight: 600;
}
.social-links a:hover { background: rgba(255,255,255,0.12); }
.footer-bottom {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 24px 32px;
	font-size: 13px;
	flex-wrap: wrap;
	gap: 12px;
}
.footer-menu { display: flex; gap: 20px; }
.footer-menu a { font-size: 13px; color: rgba(255,255,255,0.6); }

/* ---------- Generic pages ---------- */
.generic-content { padding: 72px 0; }
.page-title { font-size: 36px; }
.posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.post-card-media { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; margin-bottom: 16px; }
.post-card-media img { width: 100%; height: 100%; object-fit: cover; }
.single-thumbnail { border-radius: var(--radius); overflow: hidden; margin-bottom: 28px; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
	.trust-grid { grid-template-columns: repeat(2, 1fr); }
	.collections-grid, .products-grid { grid-template-columns: repeat(2, 1fr); }
	.story-grid { grid-template-columns: 1fr; }
	.benefits-grid, .testimonials-grid { grid-template-columns: 1fr; }
	.instagram-grid { grid-template-columns: repeat(3, 1fr); }
	.footer-grid { grid-template-columns: 1fr 1fr; }
	.posts-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
	.nav-toggle { display: flex; }
	.main-nav {
		position: fixed;
		top: 0; right: 0;
		height: 100vh;
		width: min(300px, 82vw);
		background: var(--color-surface);
		box-shadow: -10px 0 30px rgba(0,0,0,0.12);
		transform: translateX(100%);
		transition: transform 0.3s ease;
		padding: 100px 32px 32px;
		z-index: 50;
	}
	.main-nav.is-open { transform: translateX(0); }
	.nav-menu { flex-direction: column; gap: 10px; }
	.nav-menu a { color: var(--color-text); text-shadow: none; padding: 6px 0; }
	.nav-menu a::after { left: 0; right: 0; background: var(--color-rust); }
	.header-inner { padding-top: 40px; padding-bottom: 28px; }
	.main-title a { font-size: 28px; }
	.nav-toggle { position: absolute; top: 14px; right: 20px; }
	.nav-toggle span { background: #fff; }
	.hero { min-height: 78vh; }
	.hero-content { padding-bottom: 48px; }
	.collections-grid, .products-grid, .posts-grid { grid-template-columns: 1fr; }
	.instagram-grid { grid-template-columns: repeat(2, 1fr); }
	.newsletter-inner { flex-direction: column; align-items: flex-start; }
	.newsletter-form { max-width: 100%; }
	.footer-grid { grid-template-columns: 1fr; }
	section { padding: 64px 0; }
	.container { padding: 0 20px; }
}
