/* Shortcode [sc_centers] — Liste des centres */

.novia-centers {
	--novia-centers-primary: #702c39;
	--novia-centers-heading: #170f49;
	--novia-centers-border: #edf0f3;
	--novia-centers-tag-bg: #eef3fb;
	--novia-centers-bg: #f8f9fb;
	--novia-centers-white: #fff;
	padding-top: 15px;
	padding-bottom: clamp(40px, 6vw, 72px);
	font-family: Montserrat, sans-serif;
	background: var(--novia-centers-bg);
	box-sizing: border-box;
}

.novia-centers *,
.novia-centers *::before,
.novia-centers *::after {
	box-sizing: border-box;
}

.novia-centers__inner {
	width: min(100%, 1312px);
	margin: 0 auto;
	padding-inline: clamp(16px, 3vw, 24px);
}

.novia-centers__tabs {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: clamp(24px, 4vw, 48px);
	margin-bottom: clamp(28px, 4vw, 40px);
}

.novia-centers__tab {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 0 0 8px;
	border: 0;
	border-radius: 0;
	border-bottom: 2px solid transparent;
	background: transparent !important;
	background-color: transparent !important;
	box-shadow: none !important;
	color: #000;
	font-family: inherit;
	font-size: 15px;
	font-weight: 600;
	line-height: 28px;
	text-decoration: none !important;
	cursor: pointer;
	transition: color 0.2s ease, border-bottom-color 0.2s ease;
}

.novia-centers__tab:hover,
.novia-centers__tab:focus,
.novia-centers__tab:focus-visible,
.novia-centers__tab:active {
	border-radius: 0;
	background: transparent !important;
	background-color: transparent !important;
	box-shadow: none !important;
	color: var(--novia-centers-primary);
	border-bottom-color: var(--novia-centers-primary);
	text-decoration: none !important;
	outline: none;
}

.novia-centers__panel[hidden] {
	display: none !important;
}

.novia-centers__map {
	width: 100%;
	height: clamp(360px, 55vh, 520px);
	border-radius: 18px;
	overflow: hidden;
	border: 2px solid var(--novia-centers-border);
	background: #e8eef5;
}

.novia-centers__map-empty {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
	margin: 0;
	padding: 24px;
	color: var(--novia-centers-heading);
	font-size: 15px;
	text-align: center;
}

.novia-centers__map .leaflet-popup-content {
	font-family: Montserrat, sans-serif;
	font-size: 14px;
	line-height: 1.4;
	color: var(--novia-centers-heading);
}

.novia-centers__map .leaflet-popup-content a {
	color: var(--novia-centers-primary);
	font-weight: 600;
	text-decoration: none;
}

.novia-centers__map .novia-centers__marker-label {
	background: var(--novia-centers-white);
	border: 1px solid var(--novia-centers-border);
	border-radius: 8px;
	box-shadow: 0 4px 12px rgba(25, 33, 61, 0.12);
	color: var(--novia-centers-primary);
	font-family: Montserrat, sans-serif;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.2;
	padding: 6px 10px;
	text-transform: uppercase;
	white-space: nowrap;
}

.novia-centers__map .novia-centers__marker-label::before {
	display: none;
}

.novia-centers__tab--active {
	color: var(--novia-centers-primary);
	border-bottom-color: var(--novia-centers-primary);
	font-size: 14px;
}

.novia-centers__tab-icon {
	display: inline-flex;
	width: 15px;
	height: 15px;
	flex: 0 0 15px;
}

.novia-centers__tab-icon img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
}

.novia-centers__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 420px));
	justify-content: center;
	gap: clamp(20px, 3vw, 31px);
}

.novia-centers__card {
	display: flex;
	flex-direction: column;
	width: 100%;
	min-width: 0;
	overflow: hidden;
	border-radius: 18px;
	background: var(--novia-centers-white);
	border: 2px solid var(--novia-centers-border);
	text-decoration: none !important;
	color: inherit;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.novia-centers__card:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 24px rgba(25, 33, 61, 0.08);
	text-decoration: none !important;
}

.novia-centers__media {
	display: block;
	aspect-ratio: 420 / 176;
	background: #d9d9d9;
	overflow: hidden;
	text-decoration: none !important;
}

.novia-centers__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.novia-centers__body {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 12px;
	flex: 1;
	padding: 20px 22px 22px;
	text-align: left;
}

.novia-centers__title {
	margin: 0;
	width: 100%;
	color: var(--novia-centers-primary);
	font-size: 18px;
	font-weight: 700;
	line-height: 28px;
	text-transform: uppercase;
	text-align: center;
}

.novia-centers__title a {
	color: inherit;
	text-decoration: none !important;
}

.novia-centers__address {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	width: 100%;
	margin: 0;
	color: var(--novia-centers-heading);
	font-size: 14px;
	font-weight: 400;
	line-height: 1.5;
	text-align: left;
}

.novia-centers__address > span:last-child {
	flex: 1;
	min-width: 0;
	text-align: left;
}

.novia-centers__address-icon {
	display: inline-flex;
	width: 15px;
	height: 15px;
	flex: 0 0 15px;
	margin-top: 3px;
}

.novia-centers__address-icon img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
}

.novia-centers__tags {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-start;
	gap: 8px;
	margin: 4px 0 0;
	padding: 0;
	list-style: none;
}

.novia-centers__tag {
	display: inline-flex;
	align-items: center;
	padding: 4px 16px;
	border-radius: 100px;
	background: var(--novia-centers-tag-bg);
	color: var(--novia-centers-heading);
	font-size: 12px;
	font-weight: 400;
	line-height: 1.4;
	white-space: nowrap;
}

.novia-centers__more {
	margin: 0;
	color: var(--novia-centers-heading);
	font-size: 14px;
	font-weight: 400;
	line-height: 28px;
}

.novia-centers__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-start;
	gap: 12px 20px;
	width: 100%;
	margin-top: auto;
	padding-top: 8px;
}

.novia-centers__cta {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--novia-centers-primary);
	font-size: 16px;
	font-weight: 400;
	line-height: 28px;
	text-decoration: none !important;
}

.novia-centers__cta:hover {
	text-decoration: none !important;
}

.novia-centers__cta-arrow {
	display: inline-flex;
	width: 20px;
	height: 14px;
	flex: 0 0 auto;
}

.novia-centers__cta-arrow img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
}

@media screen and (min-width: 768px) {
	.novia-centers__grid {
		grid-template-columns: repeat(auto-fit, minmax(320px, 420px));
	}
}
