/* ======================================================
   ALC ANNIF — V2 FESTIVE
====================================================== */

.alc-annif,
.alc-annif * {
	box-sizing: border-box;
}

.alc-annif {
	--alc-annif-orange: #f85903;
	--alc-annif-orange-dark: #d94c00;
	--alc-annif-orange-light: #ff7a2f;
	--alc-annif-black: #161616;
	--alc-annif-black-soft: #242424;
	--alc-annif-text: #292929;
	--alc-annif-muted: #727272;
	--alc-annif-border: #ececec;
	--alc-annif-background: #f8f8f8;

	width: 100%;
	max-width: 1440px;
	margin: 34px auto 60px;
	padding: 0 20px;
	color: var(--alc-annif-text);
	font-family: inherit;
}

/* ======================================================
   NAVIGATION
====================================================== */

.alc-annif-navigation {
	position: sticky;
	top: 42px;
	z-index: 20;
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 24px;
	padding: 10px;
	border: 1px solid rgba(0, 0, 0, 0.07);
	border-radius: 18px;
	background: rgba(255, 255, 255, 0.92);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
	backdrop-filter: blur(12px);
}

.alc-annif-navigation__arrow {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 46px;
	width: 46px;
	height: 46px;
	padding: 0;
	border: 0;
	border-radius: 13px;
	background: var(--alc-annif-black);
	color: #fff;
	font: inherit;
	font-size: 21px;
	font-weight: 900;
	cursor: pointer;
	transition:
		transform 0.18s ease,
		background 0.18s ease,
		box-shadow 0.18s ease;
}

.alc-annif-navigation__arrow:hover,
.alc-annif-navigation__arrow:focus {
	background: var(--alc-annif-orange);
	box-shadow: 0 7px 18px rgba(248, 89, 3, 0.25);
	transform: translateY(-2px);
}

.alc-annif-navigation__months {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	flex: 1 1 auto;
	gap: 6px;
}

.alc-annif-navigation__month {
	min-width: 0;
	height: 46px;
	padding: 0 6px;
	border: 0;
	border-radius: 11px;
	background: transparent;
	color: #777;
	font: inherit;
	font-size: 11px;
	font-weight: 800;
	cursor: pointer;
	transition:
		background 0.18s ease,
		color 0.18s ease,
		transform 0.18s ease,
		box-shadow 0.18s ease;
}

.alc-annif-navigation__month:hover,
.alc-annif-navigation__month:focus {
	background: #f3f3f3;
	color: var(--alc-annif-black);
}

.alc-annif-navigation__month.is-active {
	background: linear-gradient(
		135deg,
		var(--alc-annif-orange),
		var(--alc-annif-orange-dark)
	);
	box-shadow: 0 7px 18px rgba(248, 89, 3, 0.25);
	color: #fff;
	transform: translateY(-2px);
}

/* ======================================================
   MOIS
====================================================== */

.alc-annif-month[hidden] {
	display: none !important;
}

/* ======================================================
   HERO
====================================================== */

.alc-annif-hero {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	min-height: 330px;
	margin-bottom: 26px;
	padding: 48px 35px;
	border-radius: 28px;
	background:
		radial-gradient(
			circle at 15% 25%,
			rgba(255, 255, 255, 0.18),
			transparent 23%
		),
		radial-gradient(
			circle at 88% 80%,
			rgba(255, 255, 255, 0.14),
			transparent 26%
		),
		linear-gradient(
			135deg,
			#f85903 0%,
			#ff6a19 52%,
			#e94f00 100%
		);
	box-shadow:
		0 22px 50px rgba(248, 89, 3, 0.24),
		inset 0 1px 0 rgba(255, 255, 255, 0.22);
	color: #fff;
	text-align: center;
}

.alc-annif-hero::before {
	position: absolute;
	inset: 0;
	z-index: -2;
	background-image:
		radial-gradient(
			circle,
			rgba(255, 255, 255, 0.2) 0 3px,
			transparent 4px
		);
	background-size: 76px 76px;
	content: "";
	opacity: 0.45;
}

.alc-annif-hero::after {
	position: absolute;
	right: -75px;
	bottom: -120px;
	z-index: -1;
	width: 310px;
	height: 310px;
	border: 48px solid rgba(255, 255, 255, 0.07);
	border-radius: 76px;
	content: "";
	transform: rotate(25deg);
}

.alc-annif-hero__month-watermark {
	position: absolute;
	top: 50%;
	left: 50%;
	z-index: -1;
	color: rgba(255, 255, 255, 0.07);
	font-size: clamp(95px, 16vw, 220px);
	font-weight: 1000;
	line-height: 0.8;
	letter-spacing: -0.07em;
	white-space: nowrap;
	transform: translate(-50%, -50%);
}

.alc-annif-hero__content {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.alc-annif-hero__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	margin-bottom: 10px;
	font-size: 11px;
	font-weight: 900;
	letter-spacing: 0.18em;
	text-transform: uppercase;
}

.alc-annif-hero__eyebrow::before,
.alc-annif-hero__eyebrow::after {
	width: 42px;
	height: 2px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.65);
	content: "";
}

.alc-annif-hero__cake {
	margin-bottom: 8px;
	font-size: 58px;
	line-height: 1;
	filter: drop-shadow(0 8px 15px rgba(0, 0, 0, 0.15));
	animation: alcAnnifCake 3s ease-in-out infinite;
}

.alc-annif-hero h1 {
	display: flex;
	flex-direction: column;
	margin: 0;
	padding: 0;
	color: #fff;
	font-size: clamp(34px, 5vw, 68px);
	font-weight: 900;
	line-height: 0.98;
	letter-spacing: -0.04em;
	text-transform: uppercase;
}

.alc-annif-hero h1 strong {
	color: var(--alc-annif-black);
	font-weight: 1000;
}

.alc-annif-hero p {
	max-width: 720px;
	margin: 18px 0 0;
	color: rgba(255, 255, 255, 0.94);
	font-size: 16px;
	font-weight: 600;
}

.alc-annif-hero__stats {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-top: 24px;
	padding: 8px;
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: 18px;
	background: rgba(18, 18, 18, 0.88);
	box-shadow: 0 12px 26px rgba(0, 0, 0, 0.2);
	backdrop-filter: blur(8px);
}

.alc-annif-hero__stat {
	display: flex;
	align-items: baseline;
	gap: 7px;
	padding: 8px 18px;
}

.alc-annif-hero__stat + .alc-annif-hero__stat {
	border-left: 1px solid rgba(255, 255, 255, 0.15);
}

.alc-annif-hero__stat strong {
	color: #fff;
	font-size: 26px;
	font-weight: 1000;
	line-height: 1;
}

.alc-annif-hero__stat span {
	color: rgba(255, 255, 255, 0.72);
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
}

.alc-annif-hero__decoration {
	position: absolute;
	z-index: 1;
	font-size: 115px;
	opacity: 0.13;
	filter: grayscale(1) brightness(4);
	pointer-events: none;
}

.alc-annif-hero__decoration--left {
	bottom: 10px;
	left: 30px;
	transform: rotate(-18deg);
}

.alc-annif-hero__decoration--right {
	top: 25px;
	right: 45px;
	transform: rotate(14deg);
}

/* ======================================================
   GRILLE
====================================================== */

.alc-annif-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 18px;
	align-items: stretch;
}

/* ======================================================
   CARTES
====================================================== */

.alc-annif-card {
	position: relative;
	display: flex;
	flex-direction: column;
	isolation: isolate;
	overflow: hidden;
	min-height: 170px;
	height: 100%;
	border: 1px solid var(--alc-annif-border);
	border-radius: 18px;
	background: #fff;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.07);
	transition:
		transform 0.2s ease,
		box-shadow 0.2s ease,
		border-color 0.2s ease;
}

.alc-annif-card:hover {
	z-index: 3;
	border-color: rgba(248, 89, 3, 0.4);
	box-shadow: 0 18px 36px rgba(0, 0, 0, 0.13);
	transform: translateY(-6px) rotate(-0.25deg);
}

.alc-annif-card__watermark {
	position: absolute;
	right: 10px;
	bottom: -15px;
	z-index: -1;
	color: rgba(0, 0, 0, 0.035);
	font-size: 105px;
	font-weight: 1000;
	line-height: 1;
	pointer-events: none;
}

.alc-annif-card__header {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	align-items: center;
	min-height: 58px;
	padding: 10px 14px;
	background: linear-gradient(
		135deg,
		var(--alc-annif-orange),
		var(--alc-annif-orange-dark)
	);
	color: #fff;
}

.alc-annif-card__date {
	display: flex;
	align-items: center;
	gap: 9px;
	min-width: 0;
}

.alc-annif-card__date > span:last-child {
	display: flex;
	align-items: baseline;
	gap: 4px;
	font-size: 12px;
	font-weight: 800;
}

.alc-annif-card__date strong {
	font-size: 21px;
	font-weight: 1000;
	line-height: 1;
}

.alc-annif-card__calendar {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 27px;
	height: 27px;
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.17);
	font-size: 10px;
}

.alc-annif-card__count {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 29px;
	width: 29px;
	height: 29px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.18);
	font-size: 11px;
	font-weight: 900;
}

.alc-annif-card__content {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	justify-content: center;
	padding: 15px 17px;
}

.alc-annif-card__person {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 9px 0;
	border-bottom: 1px solid rgba(0, 0, 0, 0.065);
	color: #3a3a3a;
	font-size: 14px;
	line-height: 1.35;
}

.alc-annif-card__person:last-child {
	border-bottom: 0;
}

.alc-annif-card__person-icon {
	flex: 0 0 auto;
	color: var(--alc-annif-orange);
	font-size: 8px;
}

/* ======================================================
   INTENSITÉ
====================================================== */

.alc-annif-card--intensity-2 {
	background:
		linear-gradient(
			145deg,
			#fff,
			#fff9f5
		);
}

.alc-annif-card--intensity-3 {
	border-color: rgba(248, 89, 3, 0.22);
	background:
		linear-gradient(
			145deg,
			#fff,
			#fff5ee
		);
}

.alc-annif-card--intensity-4 {
	border-color: rgba(248, 89, 3, 0.34);
	background:
		linear-gradient(
			145deg,
			#fff,
			#ffede2
		);
}

.alc-annif-card--intensity-5 {
	border-color: rgba(248, 89, 3, 0.48);
	background:
		linear-gradient(
			145deg,
			#fff,
			#ffe4d2
		);
	box-shadow: 0 12px 28px rgba(248, 89, 3, 0.13);
}

/* ======================================================
   AUJOURD’HUI
====================================================== */

.alc-annif-card--today {
	border: 2px solid var(--alc-annif-orange);
	background:
		linear-gradient(
			145deg,
			#181818,
			#262626
		);
	box-shadow:
		0 0 0 5px rgba(248, 89, 3, 0.09),
		0 18px 38px rgba(248, 89, 3, 0.24);
	animation: alcAnnifTodayGlow 3s ease-in-out infinite;
}

.alc-annif-card--today .alc-annif-card__header {
	background: transparent;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.alc-annif-card--today .alc-annif-card__content {
	background: transparent;
}

.alc-annif-card--today .alc-annif-card__person {
	border-color: rgba(255, 255, 255, 0.1);
	color: #fff;
}

.alc-annif-card--today .alc-annif-card__watermark {
	color: rgba(255, 255, 255, 0.04);
}

.alc-annif-card__today-label {
	padding: 7px 10px;
	border-radius: 999px;
	background: #fff;
	color: var(--alc-annif-orange);
	font-size: 9px;
	font-weight: 1000;
	letter-spacing: 0.03em;
	text-transform: uppercase;
}

/* ======================================================
   CONFETTIS — CARTE DU JOUR
====================================================== */

.alc-annif-confetti {
	position: absolute;
	inset: 0;
	z-index: 4;
	overflow: hidden;
	border-radius: inherit;
	pointer-events: none;
}

.alc-annif-confetti__piece {
	position: absolute;
	top: -14px;
	width: 8px;
	height: 14px;
	border-radius: 2px;
	opacity: 0;
	animation:
		alcAnnifConfettiFall 3.8s linear infinite,
		alcAnnifConfettiSpin 1.2s ease-in-out infinite;
}

.alc-annif-confetti__piece--1 {
	left: 8%;
	background: #f85903;
	animation-delay: 0s;
}

.alc-annif-confetti__piece--2 {
	left: 18%;
	background: #fff;
	animation-delay: 0.45s;
}

.alc-annif-confetti__piece--3 {
	left: 29%;
	background: #ffb000;
	animation-delay: 1.1s;
}

.alc-annif-confetti__piece--4 {
	left: 41%;
	background: #f85903;
	animation-delay: 1.65s;
}

.alc-annif-confetti__piece--5 {
	left: 52%;
	background: #fff;
	animation-delay: 0.8s;
}

.alc-annif-confetti__piece--6 {
	left: 63%;
	background: #ffb000;
	animation-delay: 2.1s;
}

.alc-annif-confetti__piece--7 {
	left: 72%;
	background: #f85903;
	animation-delay: 1.35s;
}

.alc-annif-confetti__piece--8 {
	left: 81%;
	background: #fff;
	animation-delay: 2.55s;
}

.alc-annif-confetti__piece--9 {
	left: 89%;
	background: #ffb000;
	animation-delay: 0.25s;
}

.alc-annif-confetti__piece--10 {
	left: 96%;
	background: #f85903;
	animation-delay: 1.9s;
}

@keyframes alcAnnifConfettiFall {

	0% {
		top: -16px;
		opacity: 0;
		transform: translateX(0) rotate(0deg);
	}

	10% {
		opacity: 1;
	}

	50% {
		transform: translateX(12px) rotate(180deg);
	}

	100% {
		top: calc(100% + 18px);
		opacity: 0;
		transform: translateX(-10px) rotate(360deg);
	}

}

@keyframes alcAnnifConfettiSpin {

	0%,
	100% {
		border-radius: 2px;
	}

	50% {
		border-radius: 50%;
	}

}

/* ======================================================
   ÉTATS VIDES
====================================================== */

.alc-annif-empty {
	padding: 45px 25px;
	border: 2px dashed rgba(248, 89, 3, 0.45);
	border-radius: 22px;
	background: var(--alc-annif-background);
	text-align: center;
}

.alc-annif-empty__icon {
	display: block;
	margin-bottom: 12px;
	font-size: 48px;
}

.alc-annif-empty h2 {
	margin: 0 0 8px;
	color: var(--alc-annif-black);
}

.alc-annif-empty p {
	margin: 0;
	color: var(--alc-annif-muted);
}

/* ======================================================
   ANIMATIONS
====================================================== */

@keyframes alcAnnifCake {

	0%,
	100% {
		transform: translateY(0) rotate(-2deg);
	}

	50% {
		transform: translateY(-7px) rotate(2deg);
	}

}

@keyframes alcAnnifTodayGlow {

	0%,
	100% {
		box-shadow:
			0 0 0 5px rgba(248, 89, 3, 0.08),
			0 18px 38px rgba(248, 89, 3, 0.2);
	}

	50% {
		box-shadow:
			0 0 0 9px rgba(248, 89, 3, 0.13),
			0 22px 45px rgba(248, 89, 3, 0.31);
	}

}

/* ======================================================
   RESPONSIVE
====================================================== */

@media only screen and (max-width: 1150px) {

	.alc-annif-navigation__months {
		grid-template-columns: repeat(6, minmax(0, 1fr));
	}

	.alc-annif-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

}

@media only screen and (max-width: 850px) {

	.alc-annif-navigation {
		position: relative;
		top: auto;
	}

	.alc-annif-navigation__months {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.alc-annif-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.alc-annif-hero {
		min-height: 300px;
	}

	.alc-annif-hero__decoration {
		font-size: 80px;
	}

}

@media only screen and (max-width: 600px) {

	.alc-annif {
		margin: 20px auto 40px;
		padding: 0 11px;
	}

	.alc-annif-navigation {
		gap: 7px;
		padding: 8px;
		border-radius: 14px;
	}

	.alc-annif-navigation__arrow {
		flex-basis: 40px;
		width: 40px;
		height: 40px;
		border-radius: 10px;
	}

	.alc-annif-navigation__months {
		display: flex;
		overflow-x: auto;
		padding: 2px;
		scrollbar-width: none;
	}

	.alc-annif-navigation__months::-webkit-scrollbar {
		display: none;
	}

	.alc-annif-navigation__month {
		flex: 0 0 65px;
		height: 40px;
	}

	.alc-annif-hero {
		min-height: 315px;
		padding: 35px 16px;
		border-radius: 20px;
	}

	.alc-annif-hero__month-watermark {
		font-size: 85px;
	}

	.alc-annif-hero__cake {
		font-size: 48px;
	}

	.alc-annif-hero h1 {
		font-size: 35px;
	}

	.alc-annif-hero p {
		font-size: 14px;
	}

	.alc-annif-hero__stats {
		width: 100%;
	}

	.alc-annif-hero__stat {
		flex: 1 1 0;
		justify-content: center;
		padding: 8px 10px;
	}

	.alc-annif-hero__stat strong {
		font-size: 21px;
	}

	.alc-annif-hero__stat span {
		font-size: 9px;
	}

	.alc-annif-hero__decoration {
		display: none;
	}

	.alc-annif-grid {
		grid-template-columns: 1fr;
		gap: 13px;
	}

	.alc-annif-card {
		min-height: 0;
		border-radius: 15px;
	}

}

@media (prefers-reduced-motion: reduce) {

	.alc-annif-confetti__piece {
	animation: none;
	display: none;
}

	.alc-annif-hero__cake,
	.alc-annif-card--today {
		animation: none;
	}

	.alc-annif-card,
	.alc-annif-navigation__month,
	.alc-annif-navigation__arrow {
		transition: none;
	}

}