/* CJEV 2026 – Mode Noël (chargé seulement pendant la période choisie) */
.cjev-noel {
	--noel-red: #b3261e;
	--noel-red-deep: #6e1714;
	--noel-gold: #e2bd6b;
	--noel-snow: #ffffff;
}

/* Neige */
.cjev-snow { position: fixed; inset: 0; z-index: 90; pointer-events: none; }

/* Liseré de l'en-tête : rouge, blanc, vert comme un ruban de fête */
.cjev-noel .cjev-header {
	border-top: 0;
	box-shadow: inset 0 5px 0 0 transparent;
	background-image: repeating-linear-gradient(-45deg, var(--noel-red) 0 12px, #fff 12px 16px, var(--green) 16px 28px, #fff 28px 32px);
	background-size: 100% 5px; background-repeat: no-repeat; background-color: var(--paper);
	padding-top: 5px;
}

/* Accueil : message de saison au-dessus du titre, voile de givre en bas de la photo */
.cjev-hero__season {
	display: inline-flex; align-items: center; gap: .45rem; margin: 0 0 .9rem; padding: .35rem .9rem .35rem .75rem;
	border-radius: 999px; background: var(--noel-red); color: #fff; font-weight: 700; letter-spacing: .02em;
	box-shadow: 0 8px 22px -10px rgb(0 0 0 / .6);
}
.cjev-hero__season span { color: var(--noel-gold); }
.cjev-noel .cjev-hero::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 28%; z-index: -1; pointer-events: none;
	background: linear-gradient(to top, rgb(255 255 255 / .28), transparent);
}
.cjev-noel .cjev-hero .cjev-btn--gold { background: #fff; color: var(--forest); }
.cjev-noel .cjev-hero .cjev-btn--gold:hover { background: var(--noel-gold); color: var(--ink); }

/* Bandeau des fêtes */
.cjev-noelband {
	position: relative; overflow: hidden; isolation: isolate; margin-top: clamp(2.5rem, 6vw, 4.5rem);
	color: #fff;
	background:
		radial-gradient(120% 80% at 85% 0%, rgb(255 255 255 / .10), transparent 60%),
		radial-gradient(90% 120% at 0% 100%, color-mix(in srgb, var(--noel-red) 70%, #000), transparent 70%),
		linear-gradient(135deg, var(--noel-red-deep), var(--noel-red) 55%, #8f1d18);
}
/* Fine neige immobile en fond (pour les personnes qui ont réduit les animations aussi) */
.cjev-noelband::before {
	content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
	background-image:
		radial-gradient(circle, #fff 0 1.2px, transparent 1.6px),
		radial-gradient(circle, rgb(255 255 255 / .8) 0 2px, transparent 2.6px),
		radial-gradient(circle, rgb(255 255 255 / .6) 0 1px, transparent 1.4px);
	background-size: 90px 90px, 160px 160px, 50px 50px;
	background-position: 0 0, 40px 70px, 20px 10px;
}
.cjev-noelband__inner {
	max-width: var(--wide); margin-inline: auto; padding: clamp(2.5rem, 6vw, 4.5rem) var(--gutter);
	display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(1.75rem, 5vw, 4rem); align-items: center;
}
.cjev-noelband.has-photo .cjev-noelband__inner { grid-template-columns: minmax(220px, 420px) minmax(0, 1fr); }
.cjev-noelband__photo {
	margin: 0; position: relative; transform: rotate(-2.5deg);
	background: #fff; padding: .7rem .7rem 2.4rem; border-radius: 6px;
	box-shadow: 0 30px 60px -24px rgb(0 0 0 / .65), 0 2px 6px rgb(0 0 0 / .2);
}
.cjev-noelband__photo::after { /* petit ruban doré */
	content: ""; position: absolute; top: -12px; left: 50%; width: 110px; height: 26px; transform: translateX(-50%) rotate(2deg);
	background: linear-gradient(90deg, #c99a3b, var(--noel-gold), #c99a3b); opacity: .92; box-shadow: 0 4px 10px -4px rgb(0 0 0 / .4);
}
.cjev-noelband__photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 3px; }
.cjev-noelband__eyebrow { margin: 0 0 .6rem; color: var(--noel-gold); font-weight: 700; text-transform: uppercase; letter-spacing: .12em; font-size: .85rem; }
.cjev-noelband__title { margin: 0 0 1rem !important; color: #fff !important; font-family: var(--font-display); font-size: clamp(2.2rem, 1.4rem + 3.4vw, 4rem) !important; line-height: 1 !important; font-stretch: 82%; }
.cjev-noelband__lead { margin: 0 0 1.6rem; font-size: var(--step-1, 1.2rem); line-height: 1.5; max-width: 52ch; color: rgb(255 255 255 / .92); }
.cjev-noelband__actions { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.2rem; }
.cjev-noelband__when { color: rgb(255 255 255 / .85); font-weight: 600; }
.cjev-btn--noel { background: #fff; color: var(--noel-red); }
.cjev-btn--noel:hover { background: var(--noel-gold); color: var(--ink); }
.cjev-noelband__hint { margin: 0; padding: 1rem; border: 2px dashed rgb(255 255 255 / .6); border-radius: 10px; font-size: .95rem; }
.cjev-noelband__hint a { color: #fff; }
@media (max-width: 760px) {
	.cjev-noelband.has-photo .cjev-noelband__inner { grid-template-columns: 1fr; }
	.cjev-noelband__photo { max-width: 300px; margin-inline: auto; }
}

/* Forêt de sapins enneigés, posée sur le haut du pied de page */
.cjev-noel--sapins .cjev-join { border-top-color: var(--noel-red); padding-bottom: 96px; }
.cjev-noel--sapins .cjev-footer::before {
	content: ""; position: absolute; left: 0; right: 0; bottom: calc(100% - 6px); height: 104px; pointer-events: none; z-index: 1;
	background: url(../img/sapins.svg) left bottom / 208px 104px repeat-x;
}
/* Congère : la neige au pied des sapins déborde sur le pied de page */
.cjev-noel--sapins .cjev-footer::after {
	content: ""; position: absolute; left: 0; right: 0; top: 0; height: 22px; pointer-events: none;
	background: linear-gradient(#fff 0 30%, rgb(255 255 255 / 0));
}
.cjev-noel--sapins:not(.cjev-home) .cjev-footer { margin-top: 110px; }

@media print { .cjev-snow, .cjev-noelband { display: none !important; } }
