/* =========================================================
   Maevmark — accueil Black Friday
   ========================================================= */

.hg-bf {
	--bf-ink: #0b0b0d;
	--bf-ink-2: #141418;
	--bf-ink-3: #1d1d23;
	--bf-line: rgba(255, 255, 255, .1);
	--bf-text: #f5f5f7;
	--bf-muted: #a6a6b2;
	--bf-hot: #ff6b1a;
	--bf-hot-2: #ff2e4d;
	--bf-gold: #ffc53d;
	--bf-grad: linear-gradient(100deg, var(--bf-hot) 0%, var(--bf-hot-2) 55%, var(--bf-gold) 100%);
}

/* ---------- Bandeau défilant ---------- */
.bf-ticker {
	overflow: hidden;
	background: var(--bf-grad);
	color: #fff;
	font: 700 13px/1 var(--hg-font-title);
	letter-spacing: .08em;
	text-transform: uppercase;
	padding: 11px 0;
}
.bf-ticker__track { display: flex; width: max-content; animation: bf-marquee 32s linear infinite; }
.bf-ticker__track span, .bf-ticker__dup { display: inline-flex; align-items: center; white-space: nowrap; }
.bf-ticker__track span { padding: 0 22px; }
.bf-ticker__track .bf-ticker__dup { padding: 0; }
.bf-ticker i { font-style: normal; opacity: .75; }
.bf-ticker:hover .bf-ticker__track { animation-play-state: paused; }
@keyframes bf-marquee { to { transform: translateX(-50%); } }

/* ---------- Hero ---------- */
.bf-hero {
	position: relative;
	overflow: hidden;
	background: var(--bf-ink);
	color: var(--bf-text);
	padding: 32px 0 36px;
	isolation: isolate;
}
.bf-hero::after { /* grain */
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	opacity: .07;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.bf-hero__aurora { position: absolute; inset: 0; z-index: -2; pointer-events: none; }
.bf-hero__aurora span {
	position: absolute;
	border-radius: 50%;
	filter: blur(90px);
	opacity: .55;
	animation: bf-float 14s ease-in-out infinite alternate;
}
.bf-hero__aurora span:nth-child(1) { width: 520px; height: 520px; background: var(--bf-hot); top: -180px; left: -120px; }
.bf-hero__aurora span:nth-child(2) { width: 460px; height: 460px; background: var(--bf-hot-2); bottom: -220px; right: 10%; animation-delay: -5s; opacity: .4; }
.bf-hero__aurora span:nth-child(3) { width: 300px; height: 300px; background: var(--bf-gold); top: 20%; right: -80px; animation-delay: -9s; opacity: .22; }
@keyframes bf-float { to { transform: translate3d(60px, 40px, 0) scale(1.12); } }

.bf-hero__inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
	gap: 48px;
	align-items: center;
}
.bf-kicker {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 7px 14px;
	border: 1px solid var(--bf-line);
	border-radius: 999px;
	background: rgba(255, 255, 255, .04);
	font-size: 13px;
	font-weight: 600;
	color: var(--bf-text);
	letter-spacing: .04em;
	text-transform: uppercase;
}
.bf-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--bf-hot-2); box-shadow: 0 0 0 0 rgba(255, 46, 77, .7); animation: bf-pulse 1.8s infinite; }
@keyframes bf-pulse { 70% { box-shadow: 0 0 0 10px rgba(255, 46, 77, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 46, 77, 0); } }

.maevmark .bf-title {
	margin: 14px 0 12px;
	font: 800 clamp(48px, 6.5vw, 92px)/.88 var(--hg-font-title);
	letter-spacing: -.045em;
	text-transform: uppercase;
	color: #fff;
}
.bf-title span { display: block; }
.bf-title__shine {
	background: var(--bf-grad);
	background-size: 200% 100%;
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	animation: bf-shine 6s linear infinite;
}
@keyframes bf-shine { to { background-position: -200% 0; } }

.bf-hero__sub { font-size: clamp(17px, 1.6vw, 20px); color: var(--bf-muted); max-width: 30em; margin: 0 0 18px; }
.bf-hero__sub strong { color: #fff; }

.bf-countdown { display: flex; gap: 8px; margin-bottom: 20px; }
.bf-countdown__cell {
	min-width: 64px;
	padding: 9px 6px 8px;
	text-align: center;
	border: 1px solid var(--bf-line);
	border-radius: 14px;
	background: linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .02));
	backdrop-filter: blur(8px);
}
.bf-countdown__cell b { display: block; font: 800 28px/1 var(--hg-font-title); color: #fff; font-variant-numeric: tabular-nums; }
.bf-countdown__cell span { display: block; margin-top: 6px; font-size: 11px; color: var(--bf-muted); text-transform: uppercase; letter-spacing: .08em; }

.bf-hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.bf-btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 46px;
	padding: 0 24px;
	border-radius: 999px;
	font: 700 15px/1 var(--hg-font-title);
	cursor: pointer;
	overflow: hidden;
	transition: transform .2s var(--hg-ease), box-shadow .2s;
}
.maevmark a.bf-btn--shine, .bf-btn--shine { background: var(--bf-grad); color: #fff; box-shadow: 0 10px 30px -8px rgba(255, 79, 40, .7); }
.bf-btn--shine::after { /* reflet qui passe */
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%);
	transform: translateX(-120%);
	animation: bf-sweep 3.2s ease-in-out infinite;
}
@keyframes bf-sweep { 60%, 100% { transform: translateX(120%); } }
.maevmark a.bf-btn--ghost { color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .3); }
.maevmark a.bf-btn:hover { color: #fff; transform: translateY(-2px); }
.maevmark a.bf-btn--ghost:hover { box-shadow: inset 0 0 0 1.5px #fff; }

/* Cartes offres du hero */
.bf-hero__deals {
	display: grid;
	grid-template-columns: 1.25fr 1fr;
	grid-template-rows: 1fr 1fr;
	gap: 12px;
	min-height: 0;
	height: 340px;
	perspective: 900px;
}
.bf-deal {
	position: relative;
	display: flex;
	flex-direction: column;
	padding: 12px 14px;
	border-radius: 18px;
	background: #fff;
	color: var(--hg-text);
	overflow: hidden;
	transform-style: preserve-3d;
	box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .6);
	will-change: transform;
}
.bf-deal--0 { grid-row: 1 / 3; }
.bf-deal::before { /* liseré dégradé */
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	padding: 2px;
	background: var(--bf-grad);
	-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
	-webkit-mask-composite: xor;
	mask-composite: exclude;
	pointer-events: none;
}
.bf-deal__badge {
	position: absolute;
	top: 14px;
	left: 14px;
	z-index: 2;
	padding: 7px 12px;
	border-radius: 10px;
	background: var(--bf-ink);
	color: var(--bf-gold);
	font: 800 18px/1 var(--hg-font-title);
}
.bf-deal--0 .bf-deal__badge { font-size: 22px; padding: 8px 12px; }
.bf-deal__img { flex: 1; display: flex; align-items: center; justify-content: center; min-height: 0; }
.bf-deal__img img { max-height: 100%; width: auto; max-width: 100%; object-fit: contain; transition: transform .4s var(--hg-ease); }
.bf-deal--0 .bf-deal__img img { max-height: 190px; }
.bf-deal:not(.bf-deal--0) .bf-deal__img img { max-height: 78px; }
.bf-deal:hover .bf-deal__img img { transform: scale(1.05); }
.bf-deal:not(.bf-deal--0) .bf-deal__name { font-size: 13px; margin-top: 4px; }
.bf-deal__name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-weight: 600; font-size: 14px; line-height: 1.35; margin-top: 8px; color: var(--hg-navy); }
.bf-deal--0 .bf-deal__name { font-size: 15px; }
.bf-deal__price { margin-top: 6px; font-weight: 800; color: var(--hg-red); }
.bf-deal__price del { color: var(--hg-muted); font-weight: 500; font-size: .85em; margin-right: 6px; }
.bf-deal__price ins { text-decoration: none; }
.bf-deal--0 .bf-deal__price { font-size: 19px; }

/* ---------- Chiffres clés ---------- */
.bf-stats { background: var(--bf-ink-2); border-top: 1px solid var(--bf-line); border-bottom: 1px solid var(--bf-line); }
.bf-stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.bf-stat { padding: 28px 16px; text-align: center; border-left: 1px solid var(--bf-line); }
.bf-stat:first-child { border-left: 0; }
.bf-stat strong {
	display: block;
	font: 800 clamp(32px, 4vw, 48px)/1 var(--hg-font-title);
	background: var(--bf-grad);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	font-variant-numeric: tabular-nums;
}
.bf-stat > span { display: block; margin-top: 8px; color: var(--bf-muted); font-size: 14px; }

/* ---------- Sections ---------- */
.bf-section { padding: 72px 0; }
.bf-section--dark { background: var(--bf-ink); color: var(--bf-text); }
.bf-head { text-align: center; max-width: 820px; margin: 0 auto 36px; }
.maevmark .bf-head h2 { margin: 0 0 8px; font: 800 clamp(30px, 4vw, 46px)/1.05 var(--hg-font-title); letter-spacing: -.03em; }
.maevmark .bf-section--dark .bf-head h2 { color: #fff; }
.bf-head p { margin: 0; color: var(--hg-muted); font-size: 16px; }
.bf-section--dark .bf-head p { color: var(--bf-muted); }

/* Effet projecteur qui suit le pointeur */
.bf-spot { position: relative; }
.bf-spot::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	pointer-events: none;
	opacity: 0;
	transition: opacity .3s;
	background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 107, 26, .22), transparent 60%);
}
.bf-spot:hover::after { opacity: 1; }

/* Bento rayons */
.bf-bento {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	grid-auto-rows: 210px;
	gap: 16px;
}
.bf-tile {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 12px;
	padding: 22px;
	border-radius: 22px;
	border: 1px solid var(--bf-line);
	background: linear-gradient(160deg, var(--bf-ink-3), var(--bf-ink-2));
	overflow: hidden;
	transition: transform .25s var(--hg-ease), border-color .25s;
}
.maevmark a.bf-tile { color: var(--bf-text); }
.bf-tile:hover { transform: translateY(-4px); border-color: rgba(255, 107, 26, .55); }
.bf-tile--0 { grid-column: span 2; grid-row: span 2; }

.bf-tile__txt { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 4px; }
.bf-tile__txt em { font: 800 15px/1 var(--hg-font-title); font-style: normal; color: var(--bf-gold); }
.bf-tile__txt strong { font: 800 22px/1.15 var(--hg-font-title); color: #fff; }
.bf-tile--0 .bf-tile__txt em { font-size: 22px; }
.bf-tile--0 .bf-tile__txt strong { font-size: 36px; }
.bf-tile__txt small { color: var(--bf-muted); font-size: 13px; }
.bf-tile__img { flex: 0 0 46%; align-self: center; display: flex; justify-content: center; }
.bf-tile__img img { max-height: 150px; width: auto; object-fit: contain; border-radius: 12px; transition: transform .4s var(--hg-ease); }
.bf-tile--0 .bf-tile__img img { max-height: 340px; }
.bf-tile:hover .bf-tile__img img { transform: scale(1.06) rotate(-2deg); }

/* Filtres + grille d'offres */
.bf-filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 28px; }
.maevmark .bf-chip {
	min-height: 44px;
	padding: 0 18px;
	border-radius: 999px;
	border: 1.5px solid var(--hg-line);
	background: #fff;
	color: var(--hg-navy);
	font: 600 14px/1 var(--hg-font);
	cursor: pointer;
	transition: background .2s, color .2s, border-color .2s;
}
.maevmark .bf-chip small { opacity: .6; margin-left: 4px; }
.maevmark .bf-chip:hover { border-color: var(--bf-hot); }
.maevmark .bf-chip.is-active { background: var(--bf-ink); border-color: var(--bf-ink); color: #fff; }
.bf-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.bf-grid__item { border-radius: var(--hg-radius); }
.bf-grid__item[hidden] { display: none; }
.bf-grid__item .hg-card { height: 100%; }
.bf-grid__item .hg-badge--sale { background: var(--bf-ink); color: var(--bf-gold); font-size: 14px; }

/* Paiement en 2 fois */
.bf-finance-wrap { padding-bottom: 56px; }
.bf-finance {
	display: flex;
	align-items: center;
	gap: 28px;
	padding: 28px 36px;
	border-radius: 24px;
	background: var(--bf-ink);
	overflow: hidden;
	position: relative;
}
.maevmark a.bf-finance { color: var(--bf-text); }
.bf-finance::before { content: ""; position: absolute; width: 380px; height: 380px; right: -100px; top: -160px; border-radius: 50%; background: var(--bf-hot); filter: blur(100px); opacity: .35; }
.bf-finance__big { position: relative; font: 800 72px/1 var(--hg-font-title); background: var(--bf-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.bf-finance__txt { position: relative; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.bf-finance__txt strong { font: 800 24px/1.2 var(--hg-font-title); color: #fff; }
.bf-finance__txt span { color: var(--bf-muted); }
.bf-finance .bf-btn { flex-shrink: 0; }

/* État initial des éléments animés (seulement si le JS tourne) */
.bf-js .bf-reveal, .bf-js .bf-title span, .bf-js .bf-deal { opacity: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
	.bf-hero__inner { grid-template-columns: 1fr; }
	.bf-hero__deals { height: 320px; }
	.bf-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.bf-bento { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
	.bf-hero { padding: 40px 0 48px; }
	.bf-countdown__cell { min-width: 0; flex: 1; }
	.bf-countdown__cell b { font-size: 26px; }
	.bf-hero__deals { grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; height: auto; }
	.bf-deal--0 { grid-column: 1 / 3; grid-row: auto; }
	.bf-deal--0 .bf-deal__img img { max-height: 160px; }
	.bf-stats__grid { grid-template-columns: repeat(2, 1fr); }
	.bf-stat:nth-child(3) { border-left: 0; }
	.bf-stat:nth-child(n+3) { border-top: 1px solid var(--bf-line); }
	.bf-section { padding: 48px 0; }
	.bf-bento { grid-template-columns: 1fr; grid-auto-rows: auto; }
	.bf-tile { min-height: 150px; }
	.bf-tile__img img { max-height: 110px; }
	.bf-tile--0 { grid-column: auto; grid-row: auto; }
	.bf-tile--0 { min-height: 240px; }
	.bf-tile--0 .bf-tile__txt strong { font-size: 28px; }
	.bf-tile--0 .bf-tile__img img { max-height: 180px; }
	.bf-filters { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
	.maevmark .bf-chip { flex-shrink: 0; }
	.bf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.bf-finance { flex-direction: column; align-items: flex-start; gap: 14px; padding: 24px; }
	.bf-finance__big { font-size: 56px; }
}

@media (prefers-reduced-motion: reduce) {
	.bf-ticker__track, .bf-hero__aurora span, .bf-title__shine, .bf-btn--shine::after, .bf-dot { animation: none; }
	.bf-js .bf-reveal, .bf-js .bf-title span, .bf-js .bf-deal { opacity: 1; }
}

/* ---------- Rayons en feu : fond animé premium ---------- */
@property --bf-angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }

.bf-fire { position: relative; overflow: hidden; isolation: isolate; }
.bf-fire__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.bf-fire__blob { position: absolute; border-radius: 50%; filter: blur(110px); opacity: .45; animation: bf-blob 18s ease-in-out infinite alternate; }
.bf-fire__blob:nth-child(1) { width: 560px; height: 560px; left: -160px; top: -120px; background: var(--bf-hot); }
.bf-fire__blob:nth-child(2) { width: 520px; height: 520px; right: -140px; bottom: -200px; background: var(--bf-hot-2); animation-delay: -6s; opacity: .35; }
.bf-fire__blob:nth-child(3) { width: 380px; height: 380px; left: 45%; top: 30%; background: #7c3aed; animation-delay: -11s; opacity: .22; }
@keyframes bf-blob {
	0% { transform: translate3d(0, 0, 0) scale(1); }
	50% { transform: translate3d(120px, 60px, 0) scale(1.15); }
	100% { transform: translate3d(-60px, 120px, 0) scale(.95); }
}
/* Sol quadrillé en perspective qui défile */
.bf-fire__grid {
	position: absolute;
	left: -50%;
	right: -50%;
	bottom: -10%;
	height: 70%;
	background-image:
		linear-gradient(rgba(255, 140, 60, .22) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 140, 60, .22) 1px, transparent 1px);
	background-size: 60px 60px;
	transform: perspective(500px) rotateX(62deg);
	transform-origin: center top;
	-webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 35%, #000 70%, transparent 100%);
	mask-image: linear-gradient(to bottom, transparent 0%, #000 35%, #000 70%, transparent 100%);
	animation: bf-grid 3.5s linear infinite;
}
@keyframes bf-grid { to { background-position: 0 60px, 0 0; } }
/* Braises qui montent */
.bf-ember {
	position: absolute;
	bottom: -20px;
	left: var(--x);
	width: var(--w);
	height: var(--w);
	border-radius: 50%;
	background: var(--bf-gold);
	box-shadow: 0 0 10px 2px rgba(255, 150, 40, .8);
	opacity: 0;
	animation: bf-ember var(--d) linear var(--delay) infinite;
}
@keyframes bf-ember {
	0% { transform: translate3d(0, 0, 0); opacity: 0; }
	10% { opacity: .9; }
	100% { transform: translate3d(40px, -720px, 0); opacity: 0; }
}

/* Cartes : verre fumé + liseré dégradé qui tourne */
.bf-fire .bf-tile {
	position: relative;
	border: 0;
	background: rgba(20, 20, 26, .62);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8);
}
.bf-fire .bf-tile::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	padding: 1.5px;
	background: conic-gradient(from var(--bf-angle), rgba(255, 255, 255, .08) 0deg, var(--bf-hot) 60deg, var(--bf-gold) 110deg, rgba(255, 255, 255, .08) 170deg, rgba(255, 255, 255, .08) 360deg);
	-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
	-webkit-mask-composite: xor;
	mask-composite: exclude;
	animation: bf-spin 5s linear infinite;
	pointer-events: none;
}
.bf-fire .bf-tile--1::before { animation-delay: -2.5s; }
@keyframes bf-spin { to { --bf-angle: 360deg; } }
.bf-fire .bf-tile:hover { transform: translateY(-6px); }
.bf-tile__img img { background: #fff; }
.bf-tile__go {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: 10px;
	padding: 9px 16px;
	border-radius: 999px;
	align-self: flex-start;
	background: rgba(255, 255, 255, .08);
	border: 1px solid rgba(255, 255, 255, .14);
	color: #fff;
	font: 700 13px/1 var(--hg-font-title);
	transition: background .25s, border-color .25s;
}
.bf-tile:hover .bf-tile__go { background: var(--bf-grad); border-color: transparent; }
.bf-tile__txt em .woocommerce-Price-amount { color: inherit; }

/* Disposition à 2 ou 3 rayons */
.bf-bento--duo { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 330px; }
.bf-bento--duo .bf-tile { grid-column: auto; grid-row: auto; padding: 30px; }
.bf-bento--duo .bf-tile__txt em { font-size: 20px; }
.bf-bento--duo .bf-tile__txt strong { font-size: 32px; }
.bf-bento--duo .bf-tile__img img { max-height: 250px; transition: transform .5s var(--hg-ease); }
.bf-bento--duo .bf-tile:hover .bf-tile__img img { transform: scale(1.06) rotate(-2deg); }

@media (max-width: 720px) {
	.bf-bento--duo { grid-template-columns: 1fr; grid-auto-rows: auto; }
	.bf-bento--duo .bf-tile { padding: 20px; min-height: 200px; }
	.bf-bento--duo .bf-tile__txt strong { font-size: 24px; }
	.bf-bento--duo .bf-tile__img img { max-height: 140px; }
	.bf-fire__grid { background-size: 40px 40px; }
}
@media (prefers-reduced-motion: reduce) {
	.bf-fire__blob, .bf-fire__grid, .bf-ember, .bf-fire .bf-tile::before { animation: none; }
}
