/* ==========================================================================
   CAMP : thèmes de saison — partie commune, réglée par les variables de chaque saison
   (fetes.css, paques.css, ete.css, halloween.css). Chargé par logo.php pendant la saison
   ou avec ?apercu_saison=fetes|paques|ete|halloween
   ========================================================================== */

/* Liseré aux couleurs de la saison sous l'en-tête */
#t4-header {
	position: relative;
}
#t4-header::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -4px;
	height: 4px;
	background: var(--saison-lisere);
	pointer-events: none;
	z-index: 2;
}

/* Particules qui tombent sur l'en-tête (neige, pétales, feuilles…) */
.header-top {
	position: relative;
	overflow: hidden;
	background-image: var(--saison-fond, none);
	background-repeat: no-repeat;
	background-position: var(--saison-fond-position, left top);
	background-size: var(--saison-fond-taille, auto 85%);
}
.header-top::before,
.header-top::after {
	content: "";
	position: absolute;
	inset: -120px 0 0 0;
	pointer-events: none;
	z-index: 1;
	background-image: var(--saison-particules, none);
	background-size: 300px 120px;
	filter: drop-shadow(0 0 1px rgba(80, 100, 140, .45));
	opacity: .9;
}
.header-top::after {
	background-size: 220px 100px;
	background-position: 60px 0;
	opacity: .6;
}
.header-top .container {
	position: relative;
	z-index: 0;
}

@media (prefers-reduced-motion: no-preference) {
	.header-top::before {
		animation: camp-chute 14s linear infinite;
	}
	.header-top::after {
		animation: camp-chute 22s linear infinite;
	}
}

@keyframes camp-chute {
	from { transform: translateY(0); }
	to { transform: translateY(120px); }
}

/* Décorations de part et d'autre du bandeau (masquées sur mobile, comme le bandeau) */
.camp-bandeau-link {
	position: relative;
}
.camp-bandeau-link::before,
.camp-bandeau-link::after {
	content: "";
	position: absolute;
	pointer-events: none;
	background-repeat: no-repeat;
	background-size: contain;
	z-index: 2;
}
.camp-bandeau-link::before {
	left: -1.5rem;
	bottom: -.5rem;
	width: var(--saison-deco-g-largeur, 0);
	height: var(--saison-deco-g-hauteur, 0);
	background-image: var(--saison-deco-g, none);
	background-position: left bottom;
}
.camp-bandeau-link::after {
	right: -3.25rem;
	top: -.75rem;
	width: var(--saison-deco-d-largeur, 0);
	height: var(--saison-deco-d-hauteur, 0);
	background-image: var(--saison-deco-d, none);
	background-position: right top;
}

/* Encart de message de saison (module personnalisé) */
.camp-voeux {
	background: var(--saison-encart);
	color: var(--saison-encart-texte, #fff);
	border-radius: .75rem;
	padding: 1rem 1.25rem;
	text-align: center;
}
.camp-voeux h2,
.camp-voeux .h2 {
	color: inherit;
	margin: 0 0 .25rem;
	font-size: 1.5rem;
}
.camp-voeux p {
	margin: 0;
}
#t4-slideshow > .custom:has(.camp-voeux) {
	grid-column: 1 / -1;
}
