/* Black Friday — le coffre d'où sortent de vraies pièces du site.
   L'écrin est une image ; les bijoux sont les photos réelles des produits,
   cadrées en cercle. Tout est positionné en pourcentage du bloc : la
   composition reste identique à toutes les tailles d'écran. */

.bfc { position: relative; display: block; width: 100%; aspect-ratio: 1 / 1.14; }
.bfc__rays {
	position: absolute; inset: -6%; z-index: 0; pointer-events: none;
	background:
		radial-gradient(ellipse 34% 30% at 56% 51%, rgba(255, 214, 120, .55), rgba(255, 214, 120, 0) 72%),
		conic-gradient(from 300deg at 56% 51%, rgba(255, 200, 80, 0) 0deg, rgba(255, 200, 80, .22) 26deg, rgba(255, 200, 80, 0) 52deg, rgba(255, 200, 80, .18) 78deg, rgba(255, 200, 80, 0) 104deg, rgba(255, 200, 80, 0) 360deg);
	-webkit-mask-image: radial-gradient(ellipse 62% 58% at 52% 42%, #000 30%, transparent 72%);
	        mask-image: radial-gradient(ellipse 62% 58% at 52% 42%, #000 30%, transparent 72%);
	mix-blend-mode: screen; animation: bfc-aura 3.4s ease-in-out infinite;
}
/* Fusion « écran » : le noir de l'image disparaît, seul l'écrin lumineux
   reste, sans bord visible sur le fond. */
.bfc__box { position: absolute; left: 0; bottom: 0; z-index: 1; display: block; width: 100%; height: auto; mix-blend-mode: screen; }

.bfc__orb {
	position: absolute; z-index: 3; aspect-ratio: 1; border-radius: 50%;
	background-color: #1B1416; background-repeat: no-repeat;
	box-shadow: 0 0 0 2.5px #FFC531, 0 0 0 5px rgba(255, 197, 49, .2), 0 0 26px 3px rgba(255, 190, 60, .5), 0 14px 26px rgba(0, 0, 0, .5);
	animation: bfc-rise 1.5s cubic-bezier(.2, .9, .25, 1) var(--d, 0s) both, bfc-float 5.4s ease-in-out calc(var(--d, 0s) + 1.5s) infinite;
}
.bfc__orb::after {
	content: ''; position: absolute; inset: 0; border-radius: 50%;
	background: linear-gradient(135deg, rgba(255, 255, 255, .34) 0%, rgba(255, 255, 255, 0) 38%);
}

/* Une pièce (Nos produits). */
.bfc--1 .bfc__orb--1 { width: 36%; left: 18%; top: 6%; --fx: 61%; --fy: 98%; --d: .2s; }

/* Trois pièces en arc (page Black Friday). */
.bfc--3 .bfc__orb--1 { width: 27%; left: 5.5%; top: 21%; --fx: 144%; --fy: 84%; --d: .15s; }
.bfc--3 .bfc__orb--2 { width: 31%; left: 33.5%; top: 3.5%; --fx: 29%; --fy: 132%; --d: .45s; }
.bfc--3 .bfc__orb--3 { width: 25%; left: 67.5%; top: 16%; --fx: -88%; --fy: 119%; --d: .75s; }

.bfc__spark { position: absolute; z-index: 2; display: block; color: #FFD35A; filter: drop-shadow(0 0 5px rgba(255, 197, 49, .9)); animation: bfc-twinkle 2.6s ease-in-out infinite; }
.bfc__spark svg { display: block; width: 100%; height: 100%; }
.bfc__spark--1 { left: 50%; top: 40%; width: 6%; height: 6%; }
.bfc__spark--2 { left: 38%; top: 46%; width: 4%; height: 4%; animation-delay: .7s; }
.bfc__spark--3 { left: 63%; top: 38%; width: 4.5%; height: 4.5%; animation-delay: 1.3s; }
.bfc__spark--4 { left: 90%; top: 4%; width: 7%; height: 7%; animation-delay: 1.9s; }

@keyframes bfc-rise {
	0% { transform: translate(var(--fx), var(--fy)) scale(.12); opacity: 0; }
	35% { opacity: 1; }
	100% { transform: none; opacity: 1; }
}
@keyframes bfc-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5%); } }
@keyframes bfc-aura { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
@keyframes bfc-twinkle { 0%, 100% { transform: scale(1) rotate(0); opacity: 1; } 50% { transform: scale(.45) rotate(45deg); opacity: .4; } }

/* Version claire : l'écrin sur fond ivoire (page Black Friday). */
.bfc--light { aspect-ratio: 900 / 1096; background: url('../img/black-friday-ecrin-clair.webp') center / contain no-repeat; }
.bfc--light .bfc__orb { box-shadow: 0 0 0 3px #FFC531, 0 0 0 7px rgba(255, 197, 49, .26), 0 16px 30px rgba(120, 78, 12, .3); }
.bfc--light .bfc__orb--1 { width: 24%; left: 12%; top: 21%; --fx: 140%; --fy: 159%; --d: .15s; }
.bfc--light .bfc__orb--2 { width: 27%; left: 38.5%; top: 6%; --fx: 21%; --fy: 204%; --d: .45s; }
.bfc--light .bfc__orb--3 { width: 22%; left: 69%; top: 19%; --fx: -101%; --fy: 190%; --d: .75s; }
.bfc--light .bfc__spark { color: #E0A21A; filter: drop-shadow(0 0 4px rgba(255, 197, 49, .7)); }
.bfc--light .bfc__spark--1 { left: 30%; top: 46%; width: 5%; height: 5%; }
.bfc--light .bfc__spark--2 { left: 92%; top: 12%; width: 6%; height: 6%; }
.bfc--light .bfc__spark--3 { left: 6%; top: 10%; width: 4.5%; height: 4.5%; }

@media (prefers-reduced-motion: reduce) {
	.bfc__orb, .bfc__rays, .bfc__spark { animation: none; }
}
