/* Peltier-net Noël — tout est scopé sur body.noel-on */

:root {
	--noel-fir: #0f3d2e;
	--noel-fir-deep: #0a2c21;
	--noel-red: #a61e2e;
	--noel-red-deep: #84131f;
	--noel-gold: #c9a227;
	--noel-snow: #fffdf9;
	--noel-paper: #f4efe6;
	--noel-ink: #22302a;
}

/* ---------- Base ---------- */
body.noel-on {
	background: var(--noel-paper);
}
.noel-on .main,
.noel-on .main-raised {
	background-color: var(--noel-snow);
}
.noel-on ::selection {
	background: var(--noel-red);
	color: #fff;
}
.noel-on .entry-content a,
.noel-on .widget a,
.noel-on .comment-content a {
	color: var(--noel-red);
}
.noel-on .entry-content a:hover,
.noel-on .widget a:hover,
.noel-on .comment-content a:hover {
	color: var(--noel-fir);
}
.noel-on a:focus-visible,
.noel-on button:focus-visible {
	outline: 3px solid var(--noel-gold);
	outline-offset: 2px;
}

/* ---------- Bandeau d'en-tête ---------- */
.noel-on .page-header.header-filter::before {
	background: linear-gradient(160deg, rgba(10, 44, 33, .82) 0%, rgba(15, 61, 46, .66) 55%, rgba(166, 30, 46, .55) 100%) !important;
}
.noel-on .hestia-title,
.noel-on .page-header .title,
.noel-on .entry-title {
	font-family: Georgia, "Iowan Old Style", "Palatino Linotype", serif;
	letter-spacing: .01em;
}
.noel-on .page-header .hestia-title::before {
	content: "🎄 ";
	content: "🎄 " / "";
}

/* Congère de neige au sommet de la zone de contenu */
.noel-on .main-raised::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: -17px;
	height: 28px;
	z-index: 4;
	pointer-events: none;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 28' preserveAspectRatio='none'%3E%3Cpath fill='%23fffdf9' d='M0 28V16C40 2 80 22 130 12S230 0 290 14 390 24 450 10 560 4 600 16V28Z'/%3E%3C/svg%3E") repeat-x left bottom / 600px 28px;
}

/* ---------- Cartes d'articles ---------- */
.noel-on .card {
	border-top: 4px solid var(--noel-red);
}
.noel-on .hestia-blogs article:nth-of-type(even) .card,
.noel-on .hestia-blogs .card:nth-of-type(even) {
	border-top-color: var(--noel-fir);
}
.noel-on .card .card-title a,
.noel-on .card .blog-title a {
	color: var(--noel-ink);
}
.noel-on .card .card-title a:hover,
.noel-on .card .blog-title a:hover {
	color: var(--noel-red);
}
.noel-on .card .category,
.noel-on .card .category a {
	color: var(--noel-fir) !important;
}

/* ---------- Boutons, pagination, formulaires ---------- */
.noel-on .btn.btn-primary,
.noel-on .btn.btn-primary:focus,
.noel-on input[type="submit"],
.noel-on button[type="submit"] {
	background-color: var(--noel-red) !important;
	border-color: var(--noel-red) !important;
	color: #fff !important;
	box-shadow: 0 3px 10px rgba(132, 19, 31, .28) !important;
}
.noel-on .btn.btn-primary:hover,
.noel-on input[type="submit"]:hover,
.noel-on button[type="submit"]:hover {
	background-color: var(--noel-fir) !important;
	border-color: var(--noel-fir) !important;
}
.noel-on .pagination > li.active > a,
.noel-on .pagination > li.active > a:hover,
.noel-on .pagination > li.active > span,
.noel-on .nav-links .current {
	background-color: var(--noel-red) !important;
	box-shadow: 0 3px 8px rgba(132, 19, 31, .3) !important;
}
.noel-on .form-group.is-focused .form-control,
.noel-on .form-control:focus {
	background-image: linear-gradient(0deg, var(--noel-red) 2px, rgba(0, 0, 0, 0) 0), linear-gradient(0deg, rgba(0, 0, 0, .12) 1px, transparent 0) !important;
}

/* ---------- Colonne latérale et pied de page ---------- */
.noel-on .widget h5,
.noel-on .widget .widget-title,
.noel-on .widget .title {
	padding-bottom: .4em;
	border-bottom: 2px dotted var(--noel-gold);
}
.noel-on footer.footer,
.noel-on .footer.footer-black {
	background-color: var(--noel-fir-deep) !important;
	border-top: 4px solid var(--noel-red);
}
.noel-on footer.footer a:hover {
	color: var(--noel-gold) !important;
}

/* ---------- Guirlande lumineuse (générée par noel.js) ---------- */
.noel-garland {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 24px;
	margin: 0;
	padding: 0 6px;
	list-style: none;
	display: flex;
	justify-content: space-between;
	pointer-events: none;
	z-index: 1032;
	overflow: hidden;
}
.noel-garland::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: 1px;
	height: 2px;
	background: #1b2a22;
}
.noel-garland li {
	position: relative;
	width: 10px;
	height: 16px;
	margin-top: 3px;
	border-radius: 40% 40% 50% 50% / 22% 22% 78% 78%;
	color: var(--noel-red);
	background: currentColor;
	box-shadow: 0 0 9px 1px currentColor;
	animation: noel-blink 2.4s ease-in-out infinite;
}
.noel-garland li::before {
	content: "";
	position: absolute;
	left: 2px;
	top: -4px;
	width: 6px;
	height: 5px;
	background: #1b2a22;
	border-radius: 1px;
}
.noel-garland li:nth-child(4n+1) { color: #d8283b; }
.noel-garland li:nth-child(4n+2) { color: #e0b730; margin-top: 6px; animation-delay: .6s; }
.noel-garland li:nth-child(4n+3) { color: #2f9e5c; animation-delay: 1.2s; }
.noel-garland li:nth-child(4n+4) { color: #fff1c4; margin-top: 5px; animation-delay: 1.8s; }
@keyframes noel-blink {
	0%, 100% { opacity: 1; }
	50% { opacity: .35; }
}
body.admin-bar .noel-garland { top: 32px; }
@media (max-width: 782px) {
	body.admin-bar .noel-garland { top: 46px; }
}

/* ---------- Neige ---------- */
.noel-snow {
	position: fixed;
	inset: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
	z-index: 9998;
}
.noel-toggle {
	position: fixed;
	left: 14px;
	bottom: 14px;
	z-index: 9999;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 2px solid var(--noel-gold);
	border-radius: 50%;
	background: var(--noel-fir);
	color: #fff;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 2px 8px rgba(0, 0, 0, .3);
}
.noel-toggle[aria-pressed="false"] {
	background: #fff;
	color: var(--noel-fir);
	opacity: .85;
}

@media (prefers-reduced-motion: reduce) {
	.noel-garland li { animation: none; }
}
@media print {
	.noel-garland,
	.noel-snow,
	.noel-toggle { display: none !important; }
}
