/* ==========================================================
   VARIABLES 1000 BOLS — page d'accueil
   (mêmes valeurs que store.css / product.css pour cohérence)
   ========================================================== */
:root {
	--mb-bordeaux: #9e321f;
	--mb-ink: #171717;
	--mb-muted: #67645f;
	--mb-line: #ddd9d1;
	--mb-paper: #fbfaf7;
	--mb-soft: #f2f0ec;
	--mb-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
	--mb-sans: Arial, Helvetica, sans-serif;
}

.mb-home {
	color: var(--mb-ink);
	font-family: var(--mb-sans);
	background: var(--mb-paper);
	overflow-x: hidden;
}

.mb-home * {
	box-sizing: border-box;
}

.mb-home img {
	max-width: 100%;
}

.mb-home a {
	color: inherit;
	text-decoration: none;
}

.mb-icon {
	width: 22px;
	height: 22px;
	flex-shrink: 0;
}

/* ===== Image générique (photo de stock temporaire) ===== */
.mb-home-photo {
	position: relative;
	display: block;
	width: 100%;
	height: 100%;
	overflow: hidden;
	background: var(--mb-soft);
}

.mb-home-photo img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.mb-home-photo--cover {
	position: absolute;
	inset: 0;
}

.mb-home-photo--round {
	border-radius: 50%;
	aspect-ratio: 1 / 1;
}

/* ==========================================================
   HERO
   ========================================================== */
.mb-home-hero {
	position: relative;
	width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	margin-top: 0;
	min-height: clamp(360px, 50vw, 560px);
	display: flex;
	align-items: center;
	overflow: hidden;
}

.mb-home-hero-media {
	position: absolute;
	inset: 0;
	z-index: 0;
}

.mb-home-hero-media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center center;
}

/* ===== Défilement des photos produits ===== */
.mb-home-hero-marquee {
	position: absolute;
	inset: 0;
	z-index: 0;
	overflow: hidden;
}

.mb-home-hero-track {
	display: flex;
	height: 100%;
	width: max-content;
	animation: mb-hero-marquee 50s linear infinite;
}

.mb-home-hero-marquee:hover .mb-home-hero-track {
	animation-play-state: paused;
}

.mb-home-hero-tile {
	display: block;
	flex: 0 0 auto;
	height: 100%;
	aspect-ratio: 1 / 1;
	border-right: 2px solid var(--mb-paper);
}

.mb-home-hero-tile img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

@keyframes mb-hero-marquee {
	from {
		transform: translateX(0);
	}
	to {
		transform: translateX(-50%);
	}
}

/* ===== Voile de lisibilité (au-dessus de l'image fixe ou du défilement) ===== */
.mb-home-hero-scrim {
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	background: linear-gradient(
		to right,
		var(--mb-paper) 0%,
		var(--mb-paper) 12%,
		rgba(251, 250, 247, 0) 33%
	);
}

.mb-home-hero-inner {
	position: relative;
	z-index: 2;
	width: min(1320px, calc(100% - 64px));
	margin: 0 auto;
}

.mb-home-hero-copy {
	max-width: 460px;
}

.mb-home-eyebrow {
	margin: 0 0 18px;
	font: 600 11px/1.2 var(--mb-sans);
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--mb-muted);
}

.mb-home-title {
	margin: 0 0 6px;
	font: 500 clamp(48px, 6vw, 76px)/1 var(--mb-serif);
	font-variant-numeric: lining-nums;
	font-feature-settings: "lnum" 1;
}

.mb-home-tagline {
	margin: 0 0 14px;
	font: 500 italic clamp(15px, 1.3vw, 18px)/1.3 var(--mb-serif);
	color: var(--mb-bordeaux);
}

.mb-home-subtitle {
	margin: 0 0 20px;
	font: 600 15px/1.3 var(--mb-sans);
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.mb-home-lead {
	margin: 0 0 32px;
	max-width: 34ch;
	font: 15px/1.7 var(--mb-sans);
	color: var(--mb-muted);
}

.mb-home-cta {
	display: inline-flex;
	align-items: center;
	padding: 15px 29px;
	background: var(--mb-bordeaux) !important;
	color: #fff !important;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	text-decoration: none !important;
	border: 1px solid var(--mb-bordeaux) !important;
	transition: background 0.2s ease, color 0.2s ease;
}

.mb-home-cta:hover,
.mb-home-cta:focus {
	background: #fff !important;
	color: var(--mb-bordeaux) !important;
}

.mb-home-cta:visited {
	color: #fff !important;
}

/* ==========================================================
   HERO — responsive
   Sous 760px, l'image passe au-dessus du texte plutôt que
   derrière (le dégradé horizontal ne fonctionne plus en colonne).
   ========================================================== */
@media (max-width: 760px) {
	.mb-home-hero {
		display: block;
		min-height: 0;
	}

	.mb-home-hero-media {
		position: relative;
		height: 260px;
	}

	.mb-home-hero-marquee {
		position: relative;
		height: 260px;
	}

	.mb-home-hero-scrim {
		display: none;
	}

	.mb-home-hero-inner {
		padding: 28px 0 36px;
	}

	.mb-home-hero-copy {
		max-width: none;
	}
}

/* ==========================================================
   RÉASSURANCE (4 points clés)
   ========================================================== */
.mb-home-features {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 28px;
	width: min(1320px, calc(100% - 64px));
	margin: 0 auto;
	padding: 36px 0;
	border-top: 1px solid var(--mb-line);
	border-bottom: 1px solid var(--mb-line);
}

.mb-home-feature {
	display: flex;
	align-items: flex-start;
	gap: 14px;
}

.mb-home-feature .mb-icon {
	margin-top: 2px;
	color: var(--mb-bordeaux);
}

.mb-home-feature h3 {
	margin: 0 0 2px;
	font: 600 12px/1.3 var(--mb-sans);
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.mb-home-feature p {
	margin: 0;
	font-size: 13px;
	color: var(--mb-muted);
}

/* ==========================================================
   SECTIONS GÉNÉRIQUES (en-tête titre + lien)
   ========================================================== */
.mb-home-section {
	width: min(1320px, calc(100% - 64px));
	margin: 0 auto;
	padding: clamp(48px, 6vw, 72px) 0;
}

.mb-home-section-header {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	margin-bottom: 28px;
}

.mb-home-section-header h2 {
	margin: 0;
	font: 600 14px/1.2 var(--mb-sans);
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.mb-home-section-link {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.04em;
	color: var(--mb-muted);
	white-space: nowrap;
}

.mb-home-section-link:hover {
	color: var(--mb-bordeaux);
}

/* ==========================================================
   DERNIERS BOLS
   ========================================================== */
.mb-home-product-grid {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 20px;
}

.mb-home-product-image {
	position: relative;
	aspect-ratio: 1.5 / 1;
	margin-bottom: 14px;
}

.mb-home-wishlist {
	position: absolute;
	top: 10px;
	right: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	padding: 0;
	background: #fff;
	border: 0;
	border-radius: 50%;
	cursor: pointer;
	box-shadow: 0 2px 8px rgba(23, 23, 23, 0.12);
}

.mb-home-wishlist .mb-icon {
	width: 16px;
	height: 16px;
	color: var(--mb-ink);
}

.mb-home-product-meta-row {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 8px;
	margin: 0 0 4px;
}

.mb-home-product-type {
	font-size: 0.72rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--mb-muted);
}

.mb-home-product-passport {
	font-family: 'Cormorant Garamond', serif;
	font-style: italic;
	font-size: 0.78rem;
	letter-spacing: 0.03em;
	color: var(--mb-bordeaux);
	white-space: nowrap;
}

.mb-home-product-title {
	font-family: 'Cormorant Garamond', serif;
	font-weight: 500;
	font-size: 1.25rem;
	line-height: 1.2;
	color: var(--mb-ink);
	margin: 0 0 2px;
}

.mb-home-product-subtitle {
	display: block;
	font-size: 0.78rem;
	color: var(--mb-muted);
	margin: 0;
}

.mb-home-product-price {
	font-size: 0.92rem;
	color: var(--mb-ink);
	margin: 6px 0 0;
}

/* ==========================================================
   TRIPTYQUE — Nos céramistes / Passeport / Échange
   ========================================================== */
.mb-home-triptych {
	display: grid;
	grid-template-columns: 1.3fr 1fr 1fr;
	width: min(1320px, calc(100% - 64px));
	margin: 0 auto;
}

.mb-home-triptych-block {
	position: relative;
	min-height: 420px;
	padding: 40px;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
}

.mb-home-triptych-block h2 {
	margin: 0 0 12px;
	font: 600 13px/1.2 var(--mb-sans);
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.mb-home-triptych-block p {
	margin: 0 0 16px;
	font-size: 14px;
	line-height: 1.6;
}

.mb-home-triptych-block a {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.04em;
}

.mb-home-triptych-dark {
	background: var(--mb-ink);
	color: #fff;
	overflow: hidden;
}

.mb-home-triptych-dark .mb-home-triptych-copy {
	position: relative;
	z-index: 1;
}

.mb-home-triptych-dark p {
	color: rgba(255, 255, 255, 0.75);
}

.mb-home-triptych-dark::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(23, 23, 23, 0.85), rgba(23, 23, 23, 0.15));
	z-index: 0;
}

.mb-home-triptych-passport {
	background: var(--mb-paper);
	border-left: 1px solid var(--mb-line);
	justify-content: flex-start;
}

.mb-home-triptych-passport p {
	color: var(--mb-muted);
}

.mb-home-triptych-passport .mb-home-photo--framed {
	width: min(320px, 100%);
	height: auto;
	aspect-ratio: 4 / 3;
	margin-top: 20px;
	align-self: center;
	border: 6px solid #fff;
	border-radius: 3px;
	box-shadow: 0 0 0 1px var(--mb-line), 0 12px 28px rgba(23, 23, 23, 0.14);
}

.mb-home-triptych-passport .mb-home-photo--framed img {
	object-fit: contain;
}

.mb-home-triptych-soft {
	background: var(--mb-soft);
	align-items: flex-start;
}

.mb-home-triptych-soft .mb-icon {
	width: 32px;
	height: 32px;
	margin-bottom: 18px;
	color: var(--mb-bordeaux);
}

.mb-home-triptych-soft p {
	color: var(--mb-muted);
}

.mb-home-echange-visual {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
	margin-top: 24px;
}

.mb-home-echange-piece {
	width: 100%;
	max-width: 220px;
	aspect-ratio: 1.5 / 1;
	border-radius: 3px;
	overflow: hidden;
	border: 6px solid #fff;
	box-shadow: 0 0 0 1px var(--mb-line), 0 10px 22px rgba(23, 23, 23, 0.12);
	background: #fff;
}

.mb-home-echange-piece img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.mb-home-echange-arrows .mb-icon {
	width: 22px;
	height: 22px;
	margin-bottom: 0;
	transform: rotate(90deg);
}

/* ==========================================================
   COLLECTIONS INSPIRANTES
   ========================================================== */
.mb-home-collections-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
}

.mb-home-collection-card {
	position: relative;
	display: block;
	aspect-ratio: 4 / 5;
	overflow: hidden;
}

.mb-home-collection-overlay {
	position: absolute;
	inset: 0;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 6px;
	background: rgba(23, 23, 23, 0.32);
	color: #fff;
	text-align: center;
}

.mb-home-collection-name {
	font: 600 15px/1.2 var(--mb-sans);
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.mb-home-collection-count {
	font-size: 12px;
	opacity: 0.85;
}

/* ==========================================================
   NEWSLETTER
   ========================================================== */
.mb-home-newsletter {
	text-align: center;
	width: min(700px, calc(100% - 64px));
	margin: 0 auto;
	padding: clamp(48px, 6vw, 72px) 0;
}

.mb-home-newsletter-copy h2 {
	margin: 0 0 12px;
	font: 600 15px/1.2 var(--mb-sans);
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.mb-home-newsletter-copy p {
	margin: 0 auto 24px;
	max-width: 42ch;
	font-size: 14px;
	color: var(--mb-muted);
}

.mb-home-newsletter-form {
	display: flex;
	justify-content: center;
	gap: 12px;
	max-width: 460px;
	margin: 0 auto;
}

.mb-home-newsletter-form input {
	flex: 1;
	padding: 14px 18px;
	border: 1px solid var(--mb-line);
	background: #fff;
	font-size: 13px;
	color: var(--mb-ink);
}

.mb-home-newsletter-form button {
	padding: 14px 24px;
	background: var(--mb-ink);
	color: #fff;
	border: 0;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	cursor: pointer;
}

.mb-home-newsletter-form button:hover {
	background: var(--mb-bordeaux);
}

.mb-home-newsletter-form button:disabled {
	opacity: 0.6;
	cursor: default;
}

.mb-home-newsletter-message {
	margin: 14px 0 0;
	font-size: 13px;
}

.mb-home-newsletter-message.is-success {
	color: var(--mb-bordeaux);
}

.mb-home-newsletter-message.is-error {
	color: #b3261e;
}

/* ==========================================================
   RESPONSIVE
   ========================================================== */
@media (max-width: 1100px) {
	.mb-home-product-grid {
		grid-template-columns: repeat(3, 1fr);
	}

	.mb-home-collections-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 900px) {
	.mb-home-features {
		grid-template-columns: repeat(2, 1fr);
	}

	.mb-home-triptych {
		grid-template-columns: 1fr;
	}

	.mb-home-triptych-passport {
		border-left: 0;
		border-top: 1px solid var(--mb-line);
	}
}

@media (max-width: 620px) {
	.mb-home-product-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.mb-home-features {
		grid-template-columns: 1fr;
	}

	.mb-home-newsletter {
		grid-template-columns: 1fr;
	}

	.mb-home-newsletter-form {
		flex-direction: column;
	}
}

.mb-home-triptych-caption {
	margin: 40px 0 0 !important;
	font-size: 12px;
	line-height: 1.5;
	color: var(--mb-muted);
	text-align: center;
}
