/* Présentation commune des tableaux d'horaires. */
.horaires-heading {
	width: min(1100px, calc(100% - 32px));
	margin: 34px auto 16px;
	color: #f7e671;
	font-size: clamp(1.8rem, 4vw, 2.7rem);
	line-height: 1.15;
	text-align: center;
}

.horaires-table {
	width: min(1100px, calc(100% - 32px)) !important;
	margin: 0 auto 34px;
	border-collapse: separate !important;
	border-spacing: 0 12px;
	table-layout: fixed;
}

.horaires-table tr {
	filter: drop-shadow(0 6px 12px rgba(67, 0, 0, 0.2));
}

.horaires-table td {
	box-sizing: border-box;
	padding: 20px 24px !important;
	border: 0 !important;
	vertical-align: top;
}

.horaires-table tr > td:first-child:not([colspan]) {
	width: 28% !important;
	border-radius: 12px 0 0 12px;
	background: linear-gradient(145deg, #fff1a3 0%, #f2cf45 100%);
	color: #651010;
	text-align: center;
}

.horaires-table tr > td:last-child:not([colspan]) {
	width: 72% !important;
	border-radius: 0 12px 12px 0;
	background: rgba(105, 8, 14, 0.78);
	color: #fff;
}

.horaires-table td[colspan] {
	border-radius: 12px;
	background: linear-gradient(135deg, #8c1016 0%, #b7191e 100%);
	color: #f7e671;
	text-align: center;
}

.horaires-table h3 {
	margin: 0;
	font-size: clamp(1.25rem, 2.4vw, 1.75rem);
	line-height: 1.2;
}

.horaires-table tr > td:first-child:not([colspan]) h3 {
	color: #651010;
	text-shadow: none;
}

.horaires-table tr > td:first-child:not([colspan]) .horaire-address {
	margin: 10px 0 0;
	color: #651010;
	font-size: clamp(0.92rem, 1.35vw, 1.05rem);
	font-weight: 700;
	line-height: 1.4;
	text-align: center;
}

.horaires-table td[colspan] h3 {
	color: #f7e671;
}

.horaires-table p {
	margin: 0;
	font-family: Arial, Helvetica, sans-serif;
	font-size: clamp(1rem, 1.7vw, 1.16rem);
	line-height: 1.65;
	text-align: left;
}

@media screen and (max-width: 700px) {
	.horaires-heading {
		width: min(100% - 24px, 1100px);
		margin-top: 26px;
	}

	.horaires-table {
		display: block;
		width: min(100% - 24px, 1100px) !important;
		border-spacing: 0;
	}

	.horaires-table tbody,
	.horaires-table tr,
	.horaires-table td {
		display: block;
		width: 100% !important;
	}

	.horaires-table tr {
		margin-bottom: 16px;
		filter: drop-shadow(0 5px 10px rgba(67, 0, 0, 0.22));
	}

	.horaires-table tr > td:first-child:not([colspan]) {
		width: 100% !important;
		padding: 13px 18px !important;
		border-radius: 12px 12px 0 0;
	}

	.horaires-table tr > td:last-child:not([colspan]) {
		width: 100% !important;
		padding: 18px !important;
		border-radius: 0 0 12px 12px;
	}

	.horaires-table td[colspan] {
		padding: 16px 18px !important;
	}

	.horaires-table p {
		font-size: 1rem;
		line-height: 1.6;
	}
}
