.tvp-historique-page {
	max-width: 1120px;
	margin: 0 auto;
	padding: 0.25rem 0 1rem;
}

.tvp-historique-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 0.82rem;
	align-items: start;
}

.tvp-historique-layout-main,
.tvp-historique-layout-side {
	min-width: 0;
}

.tvp-historique-layout-main {
	max-width: 760px;
	width: 100%;
}

.tvp-historique-main-stack {
	display: grid;
	gap: 0.9rem;
}

.tvp-historique-layout.is-no-side .tvp-historique-layout-main {
	margin: 0 auto;
}

.tvp-historique-layout-side-sticky {
	position: static;
}

.tvp-historique-layout-side .tvp-historique-inline-slot {
	margin-top: 0;
}

.tvp-historique-card {
	border: 1px solid #dbe5f1;
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 10px 28px rgb(15 23 42 / 0.08);
	padding: 1.1rem;
}

.tvp-historique-form {
	display: grid;
	gap: 0.9rem;
}

.tvp-historique-day-grid {
	display: grid;
	grid-template-columns: minmax(110px, 1fr) minmax(140px, 1.6fr) minmax(90px, 1fr);
	gap: 0.6rem;
}

.tvp-historique-field {
	display: grid;
	gap: 0.35rem;
}

.tvp-historique-label {
	font-weight: 700;
	font-size: 0.95rem;
}

.tvp-historique-input,
.tvp-historique-select {
	width: 100%;
	border: 1px solid #c9d9ec;
	border-radius: 10px;
	padding: 0.7rem 0.8rem;
	font: inherit;
	color: #1f2937;
	background: #fff;
}

.tvp-historique-input:focus,
.tvp-historique-select:focus {
	outline: 2px solid rgb(37 99 235 / 0.25);
	outline-offset: 1px;
	border-color: #2563eb;
}

.tvp-historique-error {
	margin: 0 0 0.9rem;
	border: 1px solid #fecaca;
	background: #fef2f2;
	color: #991b1b;
	border-radius: 10px;
	padding: 0.7rem 0.85rem;
	font-weight: 600;
}

.tvp-historique-submit {
	width: 100%;
	border: 0;
	border-radius: 10px;
	background: #2563eb;
	color: #fff;
	font: inherit;
	font-weight: 700;
	padding: 0.7rem 0.95rem;
	min-height: 44px;
	cursor: pointer;
}

.tvp-historique-submit:hover {
	background: #1d4ed8;
}

.tvp-historique-help {
	margin-top: 1rem;
	padding-top: 1rem;
	border-top: 1px solid #e5edf7;
	color: #334155;
}

.tvp-historique-archive {
	color: #334155;
}

.tvp-historique-help-title,
.tvp-historique-archive-title {
	margin: 0 0 0.45rem;
	font-size: 1.05rem;
	font-weight: 800;
	color: #0f172a;
}

.tvp-historique-help p,
.tvp-historique-archive-intro {
	margin: 0 0 0.55rem;
	line-height: 1.55;
}

.tvp-historique-help ul,
.tvp-historique-archive-list {
	margin: 0;
	padding: 0;
}

.tvp-historique-help ul {
	margin-left: 1.15rem;
}

.tvp-historique-help li {
	margin: 0.2rem 0;
	line-height: 1.45;
}

.tvp-historique-help-note {
	font-size: 0.84rem;
	color: #64748b;
}

.tvp-historique-archive-backlinks {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 0.75rem;
	margin: 0 0 0.65rem;
	font-size: 0.92rem;
}

.tvp-historique-archive-backlinks a {
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
	padding: 0.34rem 0.72rem;
	border: 1px solid #d8e4f4;
	border-radius: 999px;
	background: #f8fbff;
	color: #1d4ed8;
	text-decoration: none;
	box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.7);
}

.tvp-historique-archive-list a {
	color: #1d4ed8;
	text-decoration: none;
}

.tvp-historique-archive-backlinks a:hover,
.tvp-historique-archive-list a:hover {
	text-decoration: underline;
}

.tvp-historique-archive-list {
	list-style: none;
	display: grid;
	gap: 0.65rem;
}

.tvp-historique-archive-list li {
	border: 1px solid #dbe5f1;
	border-radius: 14px;
	background: linear-gradient(180deg, #ffffff, #f7fbff);
	box-shadow: 0 8px 20px rgb(15 23 42 / 0.05);
	padding: 0.85rem 0.95rem;
	line-height: 1.45;
	transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.tvp-historique-archive-list li:hover {
	border-color: #c3d7ee;
	box-shadow: 0 12px 28px rgb(15 23 42 / 0.08);
	transform: translateY(-1px);
}

.tvp-historique-archive-primary-link {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.9rem;
	text-decoration: none !important;
}

.tvp-historique-archive-primary-copy {
	display: grid;
	gap: 0.14rem;
	min-width: 0;
}

.tvp-historique-archive-primary-title {
	font-weight: 800;
	font-size: 1rem;
	color: #0f172a;
}

.tvp-historique-archive-primary-meta {
	font-size: 0.84rem;
	color: #64748b;
}

.tvp-historique-archive-primary-arrow {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2rem;
	height: 2rem;
	border-radius: 999px;
	background: #e8f1fd;
	color: #1d4ed8;
	font-size: 1rem;
	font-weight: 800;
}

.tvp-historique-archive-list--days li {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 0.85rem 1rem;
	align-items: center;
}

.tvp-historique-archive-day-head {
	min-width: 0;
}

.tvp-historique-archive-day-label {
	display: block;
	font-weight: 800;
	font-size: 1rem;
	line-height: 1.2;
	color: #0f172a;
}

.tvp-historique-archive-day-actions {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-start;
	gap: 0.22rem;
	padding: 0.22rem;
	border: 1px solid #d8e4f4;
	border-radius: 999px;
	background: linear-gradient(180deg, #f8fbff, #eef5fd);
	box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.9);
}

.tvp-historique-archive-day-action {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.34rem 0.72rem;
	border: 0;
	border-radius: 999px;
	background: transparent;
	white-space: nowrap;
	font-weight: 700;
	font-size: 0.88rem;
	line-height: 1.1;
	text-decoration: none !important;
	color: #314264 !important;
}

.tvp-historique-archive-day-action:hover {
	background: #fff;
	box-shadow: 0 1px 3px rgb(15 23 42 / 0.08);
	color: #1d4ed8 !important;
}

@media (max-width: 620px) {
	.tvp-historique-day-grid {
		grid-template-columns: 1fr;
	}

	.tvp-historique-archive-list--days li {
		grid-template-columns: 1fr;
		align-items: start;
	}
}

@media (min-width: 992px) {
	.tvp-historique-layout {
		grid-template-columns: minmax(0, 760px) 300px;
		align-items: stretch;
	}

	.tvp-historique-layout.is-no-side {
		grid-template-columns: minmax(0, 760px);
		justify-content: center;
	}

	.tvp-historique-layout-side {
		align-self: stretch;
	}

	.tvp-historique-layout-side-sticky {
		width: 100%;
	}

	.tvp-historique-layout-side .tvp-historique-inline-slot {
		margin: 0 0 0 auto;
	}
}
