/**
 * Widget « Alertes personnalisées » : cartes de profil + formulaires par profil.
 */
.snf-alerts {
	max-width: 860px;
	margin: 0 auto;
}

/* Cartes de profil (sélecteur) */
.snf-alerts__cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 14px;
}
.snf-alerts__card {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	min-height: 118px;
	padding: 18px 16px;
	background: var(--snf-white, #fff);
	border-radius: 10px;
	overflow: hidden;
	cursor: pointer;
	transition: transform .3s ease, box-shadow .3s ease;
	--card-color: #00A8E8;
}
.snf-alerts__card::before {
	content: '';
	position: absolute;
	top: 0;
	right: 0;
	width: 0;
	height: 0;
	border-style: solid;
	border-width: 0 40px 40px 0;
	border-color: transparent var(--card-color) transparent transparent;
}
.snf-alerts__card input {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
}
.snf-alerts__card-title {
	font-family: var(--fh, 'Josefin Sans', sans-serif);
	font-size: .93rem;
	font-weight: 800;
	color: var(--snf-navy, #1A2A3A);
	line-height: 1.25;
	margin-bottom: 6px;
}
.snf-alerts__card-desc {
	font-size: .78rem;
	color: var(--snf-muted, #777);
	line-height: 1.4;
}
.snf-alerts__card:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 32px rgba(0, 0, 0, .18);
}
.snf-alerts__card:has(input:checked),
.snf-alerts__card:focus-within {
	box-shadow: 0 0 0 2px var(--card-color), 0 12px 30px rgba(0, 0, 0, .18);
}

/* Indice */
.snf-alerts__hint {
	text-align: center;
	margin: 18px 0 0;
	font-size: .82rem;
	color: rgba(255, 255, 255, .8);
	font-family: var(--fh, 'Josefin Sans', sans-serif);
}
.snf-alerts.has-selection .snf-alerts__hint {
	display: none;
}

/* Formulaires par profil : masqués, révélés à la sélection */
.snf-alerts__forms {
	margin-top: 26px;
}
.snf-alerts__form {
	display: none;
	max-width: 640px;
	margin: 0 auto;
}
.snf-alerts__form.is-active {
	display: block;
	animation: snf-alerts-in .35s ease;
}
@keyframes snf-alerts-in {
	from { opacity: 0; transform: translateY(-10px); }
	to   { opacity: 1; transform: none; }
}
/* Repli sans JavaScript : affiche le 1er formulaire. */
.snf-alerts:not(.snf-js) .snf-alerts__form:first-of-type {
	display: block;
}

@media (prefers-reduced-motion: reduce) {
	.snf-alerts__card { transition: none; }
	.snf-alerts__form.is-active { animation: none; }
}
@media (max-width: 640px) {
	.snf-alerts__cards { grid-template-columns: repeat(2, 1fr); }
}
