/* =============================================================================================
   Swiss Made Culture site styles
   1. Former CSS Hero customisations (red header and footer bar, white menu)
   2. Page layouts formerly produced by WPBakery
   ============================================================================================= */

/* 1. Brand customisations ------------------------------------------------------------------- */
body > #page > #masthead .header-fixed { background-color: #dc0a14; }
#na-menu-primary .nav > .menu-item > a { color: #ffffff; }
#sbi_load > span > a { color: #ffffff; background-color: #545454; }
#sbi_load > span > a > span { color: #ffffff; }
body > #page .footer-bottom { background-color: #dc0a14; }
.container-inner .coppy-right > span { color: #ffffff; }
.footer-bottom-left > #boal_social-1 .fa { color: #ffffff; }
@media screen and (max-width: 768px) {
	#page > #masthead > #boal-header .slicknav_btn { filter: invert(100%); }
}

/* 2. Page layouts --------------------------------------------------------------------------- */

/* Content + sidebar (Home, Cercle des Amis) */
.smc-with-sidebar > .smc-main { padding-top: 0; margin-top: 0; }
.smc-with-sidebar { margin-bottom: 21px; }
.home .smc-with-sidebar { margin-top: -29px; }
.smc-with-sidebar > .sidebar { margin-top: 60px; margin-bottom: -35px; padding-right: 15px; padding-left: 35px; }
@media (max-width: 991px) {
	.smc-with-sidebar > .sidebar { padding-left: 15px; }
}

/* Full-width white band (Nos Sponsors) */
.smc-band { position: relative; left: 50%; right: 50%; width: 100vw; margin-left: -50vw; margin-right: -50vw; background: #ffffff; }
.smc-band > .container { padding-top: 0; }
.smc-sponsors-title { margin: 0 0 35px; padding: 0; }
.smc-sponsors img { display: block; margin: 0 auto; max-width: 100%; height: auto; }
.page-id-1103 .site-main.page-content { padding-bottom: 15px; }

/* Contact page */
.smc-map { margin: 5px 5px 70px; }
.smc-map iframe { display: block; width: 100%; max-width: 100%; height: 450px; border: 0; }
.smc-contact-heading { font-size: 24px; color: #262626; text-align: left; margin: 0 0 10px; }
.smc-contact-details .smc-contact-heading { margin-bottom: 35px; }
.smc-contact-details { padding-left: 80px; margin-right: -50px; }
.smc-contact-details img { margin-top: 15px; max-width: 100%; height: auto; }
@media (max-width: 991px) {
	.smc-contact-details { padding-left: 15px; margin-right: 0; margin-top: 35px; }
}

/* Generic: page content spacing that WPBakery rows used to add */
.page-content > .smc-block { margin-bottom: 35px; }
/* 3. Uniform post cards (category archives, Presse, Events, Photos, Vidéos, search) --------- */
.smc-cards {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 30px;
	margin: 0 0 40px;
}
.smc-cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.smc-cards--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.smc-card {
	display: flex;
	flex-direction: column;
	min-width: 0;
	height: 100%;
	margin: 0;
	background: #ffffff;
	border: 1px solid #eeeeee;
	transition: box-shadow .2s ease, transform .2s ease;
}
.smc-card:hover { box-shadow: 0 6px 18px rgba(0, 0, 0, .08); }

.smc-card__media {
	position: relative;
	display: block;
	aspect-ratio: 3 / 2;
	overflow: hidden;
	background: #f2f2f2;
}
.smc-card__media img,
.smc-card__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	transition: transform .4s ease;
}
.smc-card:hover .smc-card__media img { transform: scale(1.04); }
.smc-card__media--empty {
	display: flex;
	align-items: center;
	justify-content: center;
	background: #dc0a14;
}
.smc-card__media--empty img.smc-card__logo { position: static; width: 55%; height: auto; max-width: 220px; object-fit: contain; box-shadow: 0 2px 10px rgba(0,0,0,.15); }
.smc-card:hover .smc-card__media--empty img { transform: none; }
.smc-card__excerpt { overflow-wrap: anywhere; }
.smc-card__placeholder {
	color: #ffffff;
	font-weight: 600;
	font-size: 15px;
	letter-spacing: .12em;
	text-transform: uppercase;
	text-align: center;
	padding: 0 20px;
}

.smc-card__body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	align-items: flex-start;
	padding: 18px 20px 20px;
}
.smc-card__cats.post-cat {
	position: static;
	display: block;
	max-height: 24px;
	overflow: hidden;
	margin: 0 0 10px;
}
.smc-card__title.entry-title {
	margin: 0 0 8px;
	font-size: 15px;
	line-height: 1.45;
	font-weight: 500;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	line-clamp: 3;
	overflow: hidden;
	min-height: calc(1.45em * 3);
	overflow-wrap: anywhere;
}
.smc-card__title a { color: #262626; }
.smc-card__title a:hover { color: #dc0a14; }
.smc-card__meta { font-size: 12px; color: #999999; margin: 0 0 10px; }
.smc-card__excerpt {
	margin: 0 0 16px;
	font-size: 13px;
	line-height: 1.6;
	color: #5b5b5b;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	line-clamp: 3;
	overflow: hidden;
	min-height: calc(1.6em * 3);
}
.smc-card__more.btn-read { margin-top: auto; }

/* Vidéos page: cards span the full page width */
.layout-box1 .box-blog.archive-blog { margin: 0; }

/* Tablet */
@media (max-width: 991px) {
	.smc-cards--3,
	.smc-cards--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.smc-cards { gap: 24px; }
}
/* Phone */
@media (max-width: 600px) {
	.smc-cards,
	.smc-cards--3,
	.smc-cards--4 { grid-template-columns: minmax(0, 1fr); gap: 20px; }
	.smc-card__title.entry-title,
	.smc-card__excerpt { min-height: 0; }
}
@media (prefers-reduced-motion: reduce) {
	.smc-card, .smc-card__media img { transition: none; }
	.smc-card:hover .smc-card__media img { transform: none; }
}
/* 4. Homepage news list on phones: stack image and text, no masonry positioning --------------- */
@media (max-width: 767px) {
	.wrapper-posts .affect-isotope { height: auto !important; }
	.wrapper-posts .affect-isotope > .col-item {
		position: relative !important;
		left: auto !important;
		top: auto !important;
		transform: none !important;
		float: none;
		width: 100%;
		margin-bottom: 24px;
	}
	.post-tran-large,
	.post-tran-large .article-image { height: auto; }
	.post-tran-large .post-image img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
	.post-tran-large .bg-rgb { display: none; }
	.post-tran-large .article-content {
		position: static;
		height: auto;
		background: #262626;
		padding: 16px 18px 18px;
	}
	.post-tran-large .entry-title { font-size: 16px; line-height: 1.45; }
	.post-list .article-image,
	.post-list .article-content { float: none; width: 100%; }
	.post-list .article-image img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
	.post-list .article-content { padding: 15px 0 0; }
}
/* 5. Single post title on phones */
@media (max-width: 600px) {
	.single-header .entry-title { font-size: 22px; line-height: 1.35; overflow-wrap: anywhere; }
	.cat-header .title-cat, .cat-header .title-page { font-size: 24px; }
}
