/* NB Provence – tableaux de repères (.nbp-table : saisons, fréquences…) */

.nbp-table { --nbp-acc: var(--nbp-blue, #1565d8); --nbp-acc-lt: #e6effc; --nbp-acc-dk: #0f4fae; }
body.page-id-1519 .nbp-table { --nbp-acc: #2f8f3e; --nbp-acc-lt: #e6f3e8; --nbp-acc-dk: #1b5e2a; }
body.page-id-1522 .nbp-table { --nbp-acc: #138a85; --nbp-acc-lt: #e1f4f3; --nbp-acc-dk: #0c615d; }
body.page-id-1596 .nbp-table { --nbp-acc: #0f6fb8; --nbp-acc-lt: #e5f0fa; --nbp-acc-dk: #0a4f86; }
body.page-id-1586 .nbp-table { --nbp-acc: #6b4fc4; --nbp-acc-lt: #eeeafb; --nbp-acc-dk: #4b3596; }

.nbp-table {
	border: 0 !important;
	border-collapse: separate !important;
	border-spacing: 0 12px !important;
	background: transparent !important;
	box-shadow: none !important;
	border-radius: 0 !important;
	overflow: visible !important;
	margin: 22px 0 8px !important;
	counter-reset: nbprow;
	font-size: 16px;
}

/* En-tête : petites étiquettes discrètes */
.nbp-table thead th {
	background: transparent !important;
	color: var(--nbp-muted, #5b6678) !important;
	font-family: var(--nbp-font-h, Montserrat, sans-serif);
	font-size: 12px !important;
	font-weight: 700 !important;
	text-transform: uppercase;
	letter-spacing: .09em;
	padding: 0 22px 0 !important;
	border: 0 !important;
}
.nbp-table thead th:first-child { padding-left: 84px !important; }

/* Chaque ligne devient une carte */
.nbp-table tbody tr {
	counter-increment: nbprow;
	filter: drop-shadow(0 8px 18px rgba(11, 43, 91, .06));
	transition: transform .25s ease, filter .25s ease;
}
.nbp-table tbody td {
	background: #fff !important;
	border: 1px solid var(--nbp-line, #dfe7f2) !important;
	border-left-width: 0 !important;
	border-right-width: 0 !important;
	padding: 18px 22px !important;
	vertical-align: middle !important;
	color: var(--nbp-text, #2b3545);
	line-height: 1.55;
	transition: border-color .25s ease, background .25s ease;
}
.nbp-table tbody td:first-child {
	position: relative;
	width: 36%;
	padding-left: 84px !important;
	border-left-width: 1px !important;
	border-radius: 18px 0 0 18px;
	background: linear-gradient(90deg, var(--nbp-acc-lt) 0%, #fff 100%) !important;
	color: var(--nbp-navy, #0b2b5b);
	font-family: var(--nbp-font-h, Montserrat, sans-serif);
	font-weight: 700;
	font-size: 15.5px;
}
/* Pastille numérotée */
.nbp-table tbody td:first-child::before {
	content: counter(nbprow, decimal-leading-zero);
	position: absolute;
	left: 22px;
	top: 50%;
	transform: translateY(-50%);
	width: 42px;
	height: 42px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 13px;
	background: var(--nbp-acc);
	color: #fff;
	font-size: 14px;
	font-weight: 800;
	box-shadow: 0 6px 14px color-mix(in srgb, var(--nbp-acc) 35%, transparent);
	transition: transform .25s ease;
}
.nbp-table tbody td:last-child {
	border-right-width: 1px !important;
	border-radius: 0 18px 18px 0;
}
.nbp-table tbody tr:last-child td { border-bottom: 1px solid var(--nbp-line, #dfe7f2) !important; }

/* Image illustrée dans la 2e colonne : le texte de la colonne sert de titre à l'image.
   Petite étiquette au-dessus = en-tête de la colonne (data-label), « Période conseillée » par défaut. */
.nbp-table .nbp-period {
	display: flex;
	align-items: center;
	gap: 18px;
	margin: 0;
}
.nbp-table .nbp-period img {
	flex: 0 0 auto;
	width: 132px !important;
	height: 88px !important;
	max-width: none;
	object-fit: cover;
	border-radius: 12px !important;
	box-shadow: 0 8px 18px -8px rgba(11, 43, 91, .35);
	transition: transform .3s ease;
}
.nbp-table .nbp-period figcaption {
	margin: 0;
	color: var(--nbp-navy, #0b2b5b);
	font-family: var(--nbp-font-h, Montserrat, sans-serif);
	font-weight: 600;
	font-size: 15px;
	line-height: 1.45;
}
.nbp-table .nbp-period figcaption::before {
	content: "Période conseillée";
	display: block;
	margin-bottom: 4px;
	color: var(--nbp-acc);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
}
.nbp-table .nbp-period figcaption[data-label]:not([data-label=""])::before { content: attr(data-label); }
.nbp-table tbody td:has(.nbp-period) { padding-top: 12px !important; padding-bottom: 12px !important; }

@media (hover: hover) {
	.nbp-table tbody tr:hover {
		transform: translateY(-3px);
		filter: drop-shadow(0 14px 26px rgba(11, 43, 91, .12));
	}
	.nbp-table tbody tr:hover td { border-color: color-mix(in srgb, var(--nbp-acc) 35%, #fff) !important; }
	.nbp-table tbody tr:hover td:first-child::before { transform: translateY(-50%) rotate(-6deg) scale(1.06); }
	.nbp-table tbody tr:hover .nbp-period img { transform: scale(1.04); }
}

/* Mobile : cartes empilées */
@media (max-width: 640px) {
	.nbp-table, .nbp-table tbody, .nbp-table tr, .nbp-table td { display: block; width: 100% !important; }
	.nbp-table thead {
		position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
	}
	.nbp-table tbody tr { margin-bottom: 14px; }
	.nbp-table tbody td:first-child {
		border-width: 1px 1px 0 !important;
		border-radius: 18px 18px 0 0;
		padding: 16px 18px 12px 72px !important;
		min-height: 70px;
		display: flex;
		align-items: center;
	}
	.nbp-table tbody td:first-child::before { left: 18px; }
	.nbp-table tbody td:last-child {
		border-width: 0 1px 1px !important;
		border-radius: 0 0 18px 18px;
		padding: 12px 18px 18px !important;
		font-size: 15px;
	}
	.nbp-table .nbp-period { flex-direction: column; align-items: stretch; gap: 12px; }
	.nbp-table .nbp-period img { width: 100% !important; height: 150px !important; }
}

@media (prefers-reduced-motion: reduce) {
	.nbp-table tbody tr, .nbp-table tbody td, .nbp-table tbody td:first-child::before, .nbp-table .nbp-period img { transition: none !important; }
	.nbp-table tbody tr:hover { transform: none; }
}
