/*! Décor de Fêtes – Noël & fin d'année – v1.0.0 */

/* Couches décoratives : jamais cliquables, sous la barre d'admin WordPress */
.df-neige,
.df-confettis {
	position: fixed;
	inset: 0;
	width: 100vw;
	height: 100vh;
	pointer-events: none;
	z-index: 99980;
}
.df-confettis { z-index: 99981; }

/* Guirlande */
.df-guirlande {
	position: fixed;
	top: var(--wp-admin--admin-bar--height, 0px);
	left: 0;
	right: 0;
	height: 34px;
	pointer-events: none;
	z-index: 99982;
	overflow: hidden;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='20'%3E%3Cpath d='M0 4 Q28 24 56 4' stroke='%23334033' stroke-width='1.6' fill='none'/%3E%3C/svg%3E");
	background-repeat: repeat-x;
	background-size: 56px 20px;
}
.df-ampoule {
	position: absolute;
	top: 14px;
	width: 10px;
	height: 15px;
	border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%;
	animation: df-scintille 2.4s ease-in-out infinite;
}
.df-ampoule::before { /* culot */
	content: "";
	position: absolute;
	top: -4px;
	left: 2px;
	width: 6px;
	height: 5px;
	border-radius: 1px;
	background: #4a4f45;
}
.df-rouge { background: #e53935; color: rgba(229, 57, 53, .75); }
.df-or    { background: #ffc61a; color: rgba(255, 198, 26, .8); }
.df-vert  { background: #43a047; color: rgba(67, 160, 71, .75); }
.df-bleu  { background: #1e88e5; color: rgba(30, 136, 229, .75); }

@keyframes df-scintille {
	0%, 100% { opacity: 1;   box-shadow: 0 2px 10px 2px currentColor; }
	50%      { opacity: .45; box-shadow: 0 1px 3px 0 currentColor; }
}
.df-allege .df-ampoule { animation-duration: 3.6s; }

/* Bandeau de message */
.df-bandeau {
	position: relative;
	z-index: 99979;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	padding: 10px 48px 10px 16px;
	font: 500 15px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	text-align: center;
}
.df-avec-guirlande .df-bandeau { padding-top: 30px; }
.df-bandeau-texte { margin: 0; }
.df-bandeau a { text-decoration: underline; font-weight: 600; }
.df-bandeau-fermer {
	position: absolute;
	right: 8px;
	bottom: 6px;
	width: 32px;
	height: 32px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
}
.df-bandeau-fermer:hover { background: rgba(255, 255, 255, .15); }
.df-bandeau a:focus-visible,
.df-bandeau-fermer:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }

/* Bouton visiteur */
.df-bouton {
	position: fixed;
	left: 16px;
	bottom: 16px;
	z-index: 99983;
	width: 40px;
	height: 40px;
	padding: 0;
	display: grid;
	place-items: center;
	border: 1px solid rgba(0, 0, 0, .15);
	border-radius: 50%;
	background: rgba(255, 255, 255, .92);
	color: #1f4d3a;
	box-shadow: 0 2px 8px rgba(0, 0, 0, .15);
	cursor: pointer;
	transition: transform .15s ease;
}
.df-bouton:hover { transform: scale(1.06); }
.df-bouton:focus-visible { outline: 3px solid #1e88e5; outline-offset: 2px; }
.df-bouton-off { color: #8a8f88; }
.df-bouton-off::after { /* barre « désactivé » */
	content: "";
	position: absolute;
	width: 24px;
	height: 2px;
	background: currentColor;
	transform: rotate(-45deg);
}

/* Visiteurs qui ont demandé moins d'animations : guirlande fixe */
.df-reduit .df-ampoule { animation: none; box-shadow: 0 1px 4px 0 currentColor; }

@media print {
	.df-neige, .df-confettis, .df-guirlande, .df-bandeau, .df-bouton { display: none !important; }
}
