/* ifs-Calendrier de l'Avent — porte du jour (fenêtre ou bandeau). Couleurs reprises du calendrier. */
.ifs-pj {
	--ifs-pj-couleur: #0e7b96;
	--ifs-pj-accent: #c8372d;
	--ifs-pj-encre: #1d2a30;
	--ifs-pj-doux: #5b6b72;
	--ifs-pj-rayon: 18px;
	color: var(--ifs-pj-encre);
}
.ifs-pj__lecteur {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	margin: -1px !important;
	padding: 0 !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

/* ---------------------------------------------------------------- Fenêtre */
.ifs-pj--fenetre {
	--ifs-pj-creme: #fbf4e8;
	width: min(27rem, calc(100vw - 2rem));
	max-height: calc(100dvh - 2rem);
	padding: 0;
	border: 0;
	border-radius: var(--ifs-pj-rayon);
	background:
		radial-gradient(circle, color-mix(in srgb, var(--ifs-pj-accent) 14%, transparent) 0 1.2px, transparent 1.7px) 0 0 / 20px 20px,
		var(--ifs-pj-creme);
	box-shadow: 0 0 0 6px #fff, 0 0 0 9px var(--ifs-pj-accent), 0 28px 70px rgb(40 10 5 / .35);
	overflow: auto;
	overscroll-behavior: contain;
}
/* Liseré « sucre d'orge » en haut de la fenêtre */
.ifs-pj--fenetre::before {
	content: "";
	position: sticky;
	top: 0;
	z-index: 2;
	display: block;
	height: 8px;
	background: repeating-linear-gradient(135deg, var(--ifs-pj-accent) 0 10px, #fff 10px 20px, var(--ifs-pj-couleur-2, var(--ifs-pj-couleur)) 20px 30px, #fff 30px 40px);
}
.ifs-pj--fenetre::backdrop {
	background:
		radial-gradient(ellipse at 50% 40%, rgb(120 30 20 / .35), transparent 70%),
		rgb(20 22 24 / .6);
}
.ifs-pj--fenetre[open] { animation: ifs-pj-entree .45s cubic-bezier(.2, .9, .25, 1.15); }
.ifs-pj--fenetre[open]::backdrop { animation: ifs-pj-fondu .35s ease-out; }
@keyframes ifs-pj-entree { from { opacity: 0; transform: translateY(18px) scale(.94) rotate(-1deg); } }
@keyframes ifs-pj-fondu { from { opacity: 0; } }

.ifs-pj__visuel {
	position: relative;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: color-mix(in srgb, var(--ifs-pj-couleur) 12%, var(--ifs-pj-creme));
}
.ifs-pj__visuel img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* Fondu de l'image vers le fond crème */
.ifs-pj__visuel::after {
	content: "";
	position: absolute;
	inset: auto 0 0;
	height: 35%;
	background: linear-gradient(transparent, var(--ifs-pj-creme));
}
/* Photo de produit : entière, sur fond blanc, sans fondu */
.ifs-pj__visuel--photo { aspect-ratio: auto; height: 16rem; padding: .9rem 1rem 1.9rem; background: #fff; }
.ifs-pj__visuel--photo img { object-fit: contain; }
.ifs-pj__visuel--photo::after { height: 22%; }
/* Paquet cadeau quand il n'y a aucune image */
.ifs-pj__visuel--cadeau {
	aspect-ratio: 16 / 7;
	background:
		radial-gradient(circle, rgb(255 255 255 / .16) 0 1.5px, transparent 2px) 0 0 / 18px 18px,
		linear-gradient(160deg, var(--ifs-pj-couleur), color-mix(in srgb, var(--ifs-pj-couleur-2, var(--ifs-pj-couleur)) 85%, #000));
}
.ifs-pj__ruban,
.ifs-pj__ruban::before {
	position: absolute;
	background: var(--ifs-pj-accent);
	box-shadow: inset 0 0 0 1px rgb(0 0 0 / .1);
}
.ifs-pj__ruban { top: 0; bottom: 0; left: 50%; width: 11%; transform: translateX(-50%); }
.ifs-pj__ruban::before { content: ""; top: 50%; left: 50%; width: 1200%; height: 22%; transform: translate(-50%, -50%); }

/* Flocons : deux couches de points blancs qui descendent lentement */
.ifs-pj__neige {
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	background:
		radial-gradient(circle, rgb(255 255 255 / .9) 0 1.6px, transparent 2.2px) 0 0 / 46px 46px,
		radial-gradient(circle, rgb(255 255 255 / .65) 0 1.1px, transparent 1.6px) 23px 11px / 31px 31px;
	animation: ifs-pj-neige 14s linear infinite;
	opacity: .85;
}
@keyframes ifs-pj-neige { to { background-position: 18px 184px, 41px 135px; } }

/* Étiquette cadeau : numéro de la porte */
.ifs-pj .ifs-pj__numero {
	position: relative;
	z-index: 3;
	display: grid;
	place-items: center;
	width: 3.4rem;
	height: 3.4rem;
	margin: -1.9rem auto 0;
	border-radius: 50%;
	background: var(--ifs-pj-accent);
	color: #fff;
	font-size: 1.45rem;
	font-weight: 800;
	line-height: 1;
	box-shadow: 0 0 0 4px #fff, 0 8px 18px rgb(120 20 10 / .35);
	transform: rotate(-6deg);
}
.ifs-pj__numero::before {
	content: "";
	position: absolute;
	inset: 4px;
	border: 1.5px dashed rgb(255 255 255 / .7);
	border-radius: 50%;
}

.ifs-pj .ifs-pj__corps { padding: .9rem 1.75rem 1.9rem; text-align: center; }
.ifs-pj .ifs-pj__surtitre {
	margin: 0 0 .35rem;
	font-size: .8rem;
	font-weight: 700;
	letter-spacing: .02em;
	color: var(--ifs-pj-accent);
}
.ifs-pj--fenetre .ifs-pj__nom::before,
.ifs-pj--fenetre .ifs-pj__nom::after { content: "★"; margin: 0 .45rem; font-size: .7rem; color: var(--ifs-pj-couleur-2, var(--ifs-pj-couleur)); }
.ifs-pj--fenetre .ifs-pj__date { display: block; margin-top: .1rem; font-weight: 600; color: var(--ifs-pj-doux); }
.ifs-pj--bandeau .ifs-pj__date::before { content: " · "; }
.ifs-pj .ifs-pj__titre { margin: .15rem 0 .6rem; font-size: clamp(1.35rem, 4.6vw, 1.7rem); font-weight: 800; line-height: 1.15; color: var(--ifs-pj-encre); text-wrap: balance; }
.ifs-pj__titre:focus { outline: none; }
.ifs-pj .ifs-pj__accroche { margin: 0 0 1.4rem; color: var(--ifs-pj-doux); text-wrap: balance; }
.ifs-pj .ifs-pj__prix { margin: -.4rem 0 1.4rem; font-size: 1.05rem; }
.ifs-pj .ifs-pj__prix s { color: var(--ifs-pj-doux); margin-right: .35rem; }
.ifs-pj .ifs-pj__prix strong { color: var(--ifs-pj-accent); font-size: 1.35rem; font-weight: 800; }
.ifs-pj .ifs-pj__actions { margin: 0; line-height: 1; }
.ifs-pj--fenetre .ifs-pj__bouton {
	padding: .7rem 1.6rem;
	border: 0;
	border-radius: 999px;
	background: var(--ifs-pj-accent);
	color: #fff;
	font-weight: 700;
	white-space: nowrap;
	box-shadow: 0 6px 16px color-mix(in srgb, var(--ifs-pj-accent) 40%, transparent);
	transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.ifs-pj--fenetre .ifs-pj__bouton:hover { background: color-mix(in srgb, var(--ifs-pj-accent) 85%, #000); color: #fff; transform: translateY(-1px); }
.ifs-pj--fenetre .ifs-pj__bouton:focus-visible { outline: 3px solid var(--ifs-pj-couleur); outline-offset: 3px; }
.ifs-pj__bouton { white-space: nowrap; }
.ifs-pj .ifs-pj__conditions { margin: 1.6rem 0 0; padding-top: 1rem; border-top: 1px dashed color-mix(in srgb, var(--ifs-pj-accent) 30%, transparent); font-size: .75rem; line-height: 1.4; color: var(--ifs-pj-doux); }

.ifs-pj__fermer {
	position: absolute;
	top: .9rem;
	right: .6rem;
	z-index: 4;
	display: grid;
	place-items: center;
	width: 2.5rem;
	height: 2.5rem;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgb(255 255 255 / .92);
	color: var(--ifs-pj-encre);
	font-size: 1.6rem;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 2px 8px rgb(0 0 0 / .2);
}
.ifs-pj__fermer:hover { background: #fff; color: var(--ifs-pj-accent); }
.ifs-pj__fermer:focus-visible { outline: 3px solid var(--ifs-pj-accent); outline-offset: 2px; }

/* ---------------------------------------------------------------- Bandeau */
.ifs-pj--bandeau {
	position: fixed;
	left: 50%;
	bottom: max(1rem, env(safe-area-inset-bottom));
	z-index: 1040;
	display: flex;
	align-items: center;
	gap: .9rem;
	width: min(46rem, calc(100vw - 1.5rem));
	padding: .6rem 3.2rem .6rem .6rem;
	border-radius: var(--ifs-pj-rayon);
	background: #fff;
	background: #fbf4e8;
	box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--ifs-pj-accent), 0 14px 40px rgb(40 10 5 / .25);
	transform: translateX(-50%);
	animation: ifs-pj-bandeau .35s cubic-bezier(.2, .8, .2, 1);
}
.ifs-pj--bandeau[hidden] { display: none; }
@keyframes ifs-pj-bandeau { from { opacity: 0; transform: translate(-50%, 16px); } }
.ifs-pj__vignette { flex: none; width: 4rem; height: 4rem; border-radius: 12px; object-fit: cover; }
.ifs-pj__texte { flex: 1; min-width: 0; }
.ifs-pj--bandeau .ifs-pj__surtitre { justify-content: flex-start; margin: 0 0 .1rem; font-size: .75rem; }
.ifs-pj--bandeau .ifs-pj__titre { margin: 0; font-size: 1.05rem; }
.ifs-pj__prix-court { color: var(--ifs-pj-accent); }
.ifs-pj--bandeau .ifs-pj__fermer { top: 50%; right: .5rem; transform: translateY(-50%); box-shadow: none; }
@media (max-width: 575.98px) {
	.ifs-pj--bandeau { flex-wrap: wrap; }
	.ifs-pj--bandeau .ifs-pj__bouton { flex: 1 1 100%; }
	.ifs-pj--bandeau .ifs-pj__fermer { top: .5rem; transform: none; }
	.ifs-pj__vignette { width: 3.2rem; height: 3.2rem; }
}

/* ---------------------------------------------------------------- Bande pleine largeur (comme le bandeau de garde) */
.ifs-pj--bande {
	position: relative;
	margin: 0 0 0 calc(50% - 50vw);
	width: 100vw;
	max-width: 100vw;
	background:
		radial-gradient(circle, rgb(255 255 255 / .14) 0 1.4px, transparent 2px) 0 0 / 22px 22px,
		linear-gradient(120deg, var(--ifs-pj-accent), color-mix(in srgb, var(--ifs-pj-accent) 78%, #000));
	color: #fff;
	box-shadow: 0 10px 30px color-mix(in srgb, var(--ifs-pj-accent) 30%, transparent);
}
/* Liseré sucre d'orge en bas de la bande */
.ifs-pj--bande::after {
	content: "";
	position: absolute;
	inset: auto 0 0;
	height: 5px;
	background: repeating-linear-gradient(135deg, #fff 0 8px, var(--ifs-pj-couleur-2, var(--ifs-pj-couleur)) 8px 16px);
	opacity: .9;
}
body:has(.ifs-pj--bande) { overflow-x: clip; }
.ifs-pj__bande-inner {
	max-width: var(--container, 1200px);
	margin: 0 auto;
	padding: 18px 32px 22px;
	display: flex;
	align-items: center;
	gap: 18px;
	flex-wrap: wrap;
}
.ifs-pj__bande-icone {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: #fff;
	color: var(--ifs-pj-accent);
	box-shadow: 0 0 0 3px rgb(255 255 255 / .35);
	animation: ifs-pj-pulse 2.4s ease-in-out infinite;
}
.ifs-pj__bande-num { font-size: 22px; font-weight: 800; line-height: 1; }
@keyframes ifs-pj-pulse {
	0%, 100% { box-shadow: 0 0 0 3px rgb(255 255 255 / .35), 0 0 0 0 rgb(255 255 255 / .35); }
	50% { box-shadow: 0 0 0 3px rgb(255 255 255 / .35), 0 0 0 12px rgb(255 255 255 / 0); }
}
.ifs-pj__bande-texte { flex: 1 1 320px; min-width: 0; }
.ifs-pj .ifs-pj__bande-sur { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; opacity: .9; }
.ifs-pj .ifs-pj__bande-sur::before { content: "★ "; }
.ifs-pj .ifs-pj__bande-titre { margin: 2px 0 0; font-family: 'Lora', Georgia, serif; font-size: 22px; font-weight: 600; line-height: 1.2; color: #fff; }
.ifs-pj .ifs-pj__bande-detail { margin: 4px 0 0; font-size: 15px; opacity: .95; }
.ifs-pj__bande-detail s { opacity: .8; white-space: nowrap; }
.ifs-pj__bande-detail strong { font-size: 17px; white-space: nowrap; }
.ifs-pj__bande-bouton {
	flex: 0 0 auto;
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	gap: 1px;
	padding: 12px 24px;
	border-radius: 999px;
	background: #fff;
	color: var(--ifs-pj-accent);
	font-weight: 700;
	text-decoration: none;
	box-shadow: 0 4px 14px rgb(0 0 0 / .14);
	transition: transform .15s ease, box-shadow .15s ease;
}
.ifs-pj__bande-bouton:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgb(0 0 0 / .2); color: var(--ifs-pj-accent); text-decoration: none; }
.ifs-pj__bande-bouton:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.ifs-pj__bande-bouton-libelle { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; opacity: .8; }
.ifs-pj__bande-bouton-texte { font-size: 17px; }
@media (max-width: 640px) {
	.ifs-pj__bande-inner { padding: 16px 18px 20px; gap: 12px; }
	.ifs-pj__bande-icone { width: 44px; height: 44px; }
	.ifs-pj__bande-texte { flex: 1 1 0; }
	.ifs-pj .ifs-pj__bande-titre { font-size: 19px; }
	.ifs-pj__bande-bouton { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
	.ifs-pj--fenetre[open],
	.ifs-pj--fenetre[open]::backdrop,
	.ifs-pj--bandeau,
	.ifs-pj__neige,
	.ifs-pj__bande-icone { animation: none; }
	.ifs-pj__bande-bouton { transition: none; }
	.ifs-pj--fenetre .ifs-pj__bouton { transition: none; }
}
