/* ==========================================================================
   Ambiance de Noël (inc/saisons.php) : chargé uniquement pendant la période.
   Petites touches par-dessus le design, sans toucher aux gabarits :
   guirlande en haut de page, bonnet sur le logo, cadeau sur le Shop,
   sapins et cadeaux posés sur le pied de page, flocons (saison-noel.js).
   Tout est décoratif (pseudo-éléments, aria-hidden) et sans impact sur la mise en page.
   ========================================================================== */

/* Guirlande lumineuse accrochée au haut de la page ----------------------- */
.saison-noel .site-header { position: relative; }
.saison-noel .site-header::before,
.saison-noel .site-header::after {
	content: "";
	position: absolute; top: 0; left: 0; right: 0;
	height: 1.5rem;
	background-repeat: repeat-x;
	background-size: 10rem 1.5rem;
	pointer-events: none;
}
/* Fil et ampoules */
.saison-noel .site-header::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 24'%3E%3Cpath d='M0 2Q20 12 40 2T80 2T120 2T160 2' fill='none' stroke='%230f2a2a' stroke-width='1.6'/%3E%3Cg stroke='%230f2a2a' stroke-width='1.4'%3E%3Crect x='18' y='6' width='4' height='3' rx='.8' fill='%230f2a2a'/%3E%3Cellipse cx='20' cy='14' rx='3.4' ry='4.8' fill='%23ff4766'/%3E%3Crect x='58' y='0' width='4' height='3' rx='.8' fill='%230f2a2a'/%3E%3Cellipse cx='60' cy='8' rx='3.4' ry='4.8' fill='%238af5d2'/%3E%3Crect x='98' y='6' width='4' height='3' rx='.8' fill='%230f2a2a'/%3E%3Cellipse cx='100' cy='14' rx='3.4' ry='4.8' fill='%23ffb3c7'/%3E%3Crect x='138' y='0' width='4' height='3' rx='.8' fill='%230f2a2a'/%3E%3Cellipse cx='140' cy='8' rx='3.4' ry='4.8' fill='%23ffd166'/%3E%3C/g%3E%3C/svg%3E");
}
/* Halos qui scintillent, une ampoule sur deux */
.saison-noel .site-header::after {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 24'%3E%3Cdefs%3E%3CradialGradient id='g'%3E%3Cstop offset='0' stop-color='%23fff' stop-opacity='.95'/%3E%3Cstop offset='1' stop-color='%23fff' stop-opacity='0'/%3E%3C/radialGradient%3E%3C/defs%3E%3Ccircle cx='19' cy='12.5' r='2.4' fill='url(%23g)'/%3E%3Ccircle cx='99' cy='12.5' r='2.4' fill='url(%23g)'/%3E%3C/svg%3E");
	animation: noel-scintille 2.6s ease-in-out infinite alternate;
}
@keyframes noel-scintille { from { opacity: 0.15; } to { opacity: 1; } }

/* Bonnet sur la pastille du logo ----------------------------------------- */
.saison-noel .brand__mark { position: relative; }
.saison-noel .brand__mark::before {
	content: "";
	position: absolute; top: -1.15rem; left: -0.7rem; z-index: 1;
	width: 2.5rem; height: 2.1rem;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 34'%3E%3Cg stroke='%230f2a2a' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M7 26Q12 5 31 6Q25 12 30 26Z' fill='%23ff4766'/%3E%3Crect x='3' y='22' width='31' height='9' rx='4.5' fill='%23fff'/%3E%3Ccircle cx='32' cy='7' r='4.6' fill='%23fff'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
	transform: rotate(-14deg);
	transform-origin: 70% 90%;
	pointer-events: none;
}
.saison-noel .brand:hover .brand__mark::before,
.saison-noel .brand:focus-visible .brand__mark::before { animation: noel-bonnet 700ms ease-in-out; }
@keyframes noel-bonnet {
	0%, 100% { transform: rotate(-14deg); }
	35% { transform: rotate(-22deg); }
	70% { transform: rotate(-9deg); }
}

/* Cadeau sur le bouton du Shop ------------------------------------------ */
.saison-noel .header-actions .btn--rose { position: relative; }
.saison-noel .header-actions .btn--rose::after {
	content: "";
	position: absolute; top: -0.95rem; right: -0.7rem;
	width: 1.75rem; height: 1.75rem;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cg stroke='%230f2a2a' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M16 10C12 3 6 5 9 9.5c1.5 1.6 4.5.5 7 .5zM16 10c4-7 10-5 7-.5-1.5 1.6-4.5.5-7 .5z' fill='%23ff4766'/%3E%3Crect x='5' y='15' width='22' height='14' rx='1.5' fill='%238af5d2'/%3E%3Crect x='3' y='10' width='26' height='6' rx='1.5' fill='%238af5d2'/%3E%3Cpath d='M16 10v19' stroke='%23ff4766' stroke-width='4'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
	transform: rotate(12deg);
	transform-origin: 50% 100%;
	animation: noel-cadeau 5s ease-in-out 2s infinite;
	pointer-events: none;
}
@keyframes noel-cadeau {
	0%, 84%, 100% { transform: rotate(12deg); }
	88% { transform: rotate(-6deg) translateY(-2px); }
	92% { transform: rotate(18deg); }
	96% { transform: rotate(6deg); }
}

/* Sapins et cadeaux posés sur le pied de page --------------------------- */
.saison-noel .site-footer { position: relative; }
.saison-noel .site-footer::before {
	content: "";
	position: absolute; bottom: 100%; left: var(--gutter); right: var(--gutter);
	height: 3.5rem;
	background:
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 150 56'%3E%3Cg stroke='%230f2a2a' stroke-width='2' stroke-linejoin='round'%3E%3Crect x='27' y='46' width='6' height='10' fill='%230f2a2a'/%3E%3Cpath d='M30 6 46 26H38L52 46H8L22 26H14Z' fill='%230a6e62'/%3E%3Cpath d='M30 1l1.8 3.6 4 .6-2.9 2.8.7 4-3.6-1.9-3.6 1.9.7-4-2.9-2.8 4-.6z' fill='%23ffd166' stroke-width='1.4'/%3E%3Crect x='58' y='38' width='22' height='18' rx='1.5' fill='%23ffb3c7'/%3E%3Cpath d='M69 38v18' stroke='%23ff4766' stroke-width='4'/%3E%3Cpath d='M69 38c-4-6-9-4-6.5-.5M69 38c4-6 9-4 6.5-.5' fill='none' stroke='%23ff4766' stroke-width='2.4'/%3E%3Crect x='104' y='48' width='5' height='8' fill='%230f2a2a'/%3E%3Cpath d='M106.5 20 118 35h-5.5L122 48H91l9.5-13H95Z' fill='%238af5d2'/%3E%3C/g%3E%3Cg fill='%23ff4766'%3E%3Ccircle cx='24' cy='34' r='2'/%3E%3Ccircle cx='38' cy='40' r='2'/%3E%3Ccircle cx='33' cy='22' r='1.8'/%3E%3C/g%3E%3C/svg%3E") left bottom / auto 100% no-repeat,
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 110 56'%3E%3Cg stroke='%230f2a2a' stroke-width='2' stroke-linejoin='round'%3E%3Crect x='6' y='40' width='18' height='16' rx='1.5' fill='%238af5d2'/%3E%3Cpath d='M15 40v16' stroke='%23ff4766' stroke-width='3.5'/%3E%3Crect x='26' y='46' width='14' height='10' rx='1.5' fill='%23ff4766'/%3E%3Cpath d='M33 46v10' stroke='%23fff' stroke-width='2.5'/%3E%3Crect x='72' y='46' width='6' height='10' fill='%230f2a2a'/%3E%3Cpath d='M75 10 89 28h-7l12 18H56l12-18h-7Z' fill='%230a6e62'/%3E%3Cpath d='M75 5l1.6 3.2 3.6.5-2.6 2.5.6 3.5-3.2-1.7-3.2 1.7.6-3.5-2.6-2.5 3.6-.5z' fill='%23ffd166' stroke-width='1.4'/%3E%3C/g%3E%3Cg fill='%23ffb3c7'%3E%3Ccircle cx='70' cy='36' r='2'/%3E%3Ccircle cx='81' cy='24' r='1.8'/%3E%3Ccircle cx='84' cy='40' r='2'/%3E%3C/g%3E%3C/svg%3E") right bottom / auto 100% no-repeat;
	pointer-events: none;
}

/* Bandeau des quartiers : flocons à la place des étoiles ---------------- */
.saison-noel .ticker__track span::after { content: "❄"; }

/* Flocons (saison-noel.js) ---------------------------------------------- */
.noel-neige {
	position: fixed; inset: 0; z-index: 15;
	width: 100%; height: 100%;
	pointer-events: none;
}

/* Mobile : guirlande et bonnet plus discrets, un peu d'air sous la guirlande. */
@media (max-width: 43.75em) {
	/* sticky (et non relative) : l'en-tête reste figé au scroll sur mobile, la guirlande avec. */
	.saison-noel .site-header { position: sticky; padding-top: calc(var(--sp-4) + 0.5rem); }
	.saison-noel .site-header::before,
	.saison-noel .site-header::after { height: 1.125rem; background-size: 7.5rem 1.125rem; }
	.saison-noel .brand__mark::before { top: -0.85rem; left: -0.55rem; width: 1.9rem; height: 1.6rem; }
	.saison-noel .site-footer::before { height: 2.75rem; }
}

@media (prefers-reduced-motion: reduce) {
	.saison-noel .site-header::after { animation: none; opacity: 0.6; }
	.noel-neige { display: none; }
}

@media print {
	.saison-noel .site-header::before,
	.saison-noel .site-header::after,
	.saison-noel .brand__mark::before,
	.saison-noel .header-actions .btn--rose::after,
	.saison-noel .site-footer::before,
	.noel-neige { display: none; }
}
