/* Mont-Orignal – page d'accueil (sections avec la classe .mo-accueil) */

.mo-accueil {
	--mo-teal: #1c3b42;
	--mo-teal-cta: #163a3f;
	--mo-orange: #b5714b;
	--mo-orange-dark: #9c5f3e;
	--mo-cream: #f3eee5;
	--mo-yellow: #f2c14e;
	--mo-title: "Bricolage Grotesque", "Barlow", sans-serif;
	--mo-text: "Manrope", "Palanquin", sans-serif;
	--mo-label: "Barlow", "Palanquin", sans-serif;
}

/* ===== Polices (absentes de la liste WPBakery) ===== */
.mo-accueil h2.vc_custom_heading,
.mo-accueil h3.vc_custom_heading {
	font-family: var(--mo-title) !important;
	font-weight: 700 !important;
	letter-spacing: -0.01em;
}

.mo-accueil p.vc_custom_heading,
.mo-accueil .wpb_text_column p {
	font-family: var(--mo-text) !important;
}

/* Petits libellés (À propos, En vidéo, Restez informé…) */
.mo-accueil div.vc_custom_heading {
	font-family: var(--mo-label) !important;
	font-weight: 700 !important;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

/* ===== Cartes : animation au survol ===== */
.mo-cartes .vc_inner .wpb_column > .vc_column-inner {
	position: relative;
	transition: transform 0.35s ease, box-shadow 0.35s ease;
	will-change: transform;
}

.mo-cartes .vc_inner .wpb_column > .vc_column-inner:hover {
	transform: translateY(-6px);
	box-shadow: 0 18px 34px rgba(28, 59, 66, 0.22);
}

/* Toute la carte est cliquable (lien du titre étendu) */
.mo-cartes h3.vc_custom_heading a::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}

.mo-cartes .wpb_single_image img {
	transition: transform 0.35s ease;
}

/* Flèche en bas à droite */
.mo-cartes .vc_inner .wpb_column > .vc_column-inner:hover .vc_align_right img {
	transform: translate(3px, -3px) scale(1.08);
}

/* Pictogramme en haut */
.mo-cartes .vc_inner .wpb_column > .vc_column-inner:hover .vc_align_left img {
	transform: translateY(-2px);
}

@media (prefers-reduced-motion: reduce) {
	.mo-cartes .vc_inner .wpb_column > .vc_column-inner,
	.mo-cartes .wpb_single_image img {
		transition: none;
	}
}

/* ===== À propos ===== */
/* Encart « Station 4 saisons » sur la photo */
.mo-apropos .wpb_text_column span[style*="letter-spacing"] {
	font-family: var(--mo-label) !important;
	font-size: 11px !important;
	letter-spacing: 0.12em !important;
	text-transform: uppercase;
}

.mo-apropos .wpb_text_column span[style*="13px"] {
	font-family: var(--mo-text) !important;
	font-weight: 600;
}

/* ===== Chiffres ===== */
.mo-chiffres .stat-number img {
	padding-top: 0 !important;
	margin-bottom: 12px;
}

.mo-chiffres .skill-count {
	display: block;
	font-family: var(--mo-title) !important;
	font-size: 64px !important;
	font-weight: 700 !important;
	line-height: 1 !important;
	letter-spacing: -0.02em;
}

.mo-chiffres .skill-count::after {
	display: none !important; /* trait du thème sous le chiffre */
}

.mo-chiffres .stats-content p {
	margin-top: 14px;
	font-family: var(--mo-label) !important;
	font-size: 13px !important;
	font-weight: 600;
	line-height: 1.4;
	letter-spacing: 0.1em;
	text-transform: uppercase !important;
}

/* ===== Vidéo et infolettre ===== */
.mo-medias .vc_col-has-fill > .vc_column-inner {
	border: 1px solid rgba(28, 59, 66, 0.12) !important;
	border-radius: 22px !important;
}

.mo-medias .vc_col-md-5.vc_col-has-fill > .vc_column-inner {
	background-image: linear-gradient(160deg, #f2f1ed 0%, #e6edf0 100%) !important;
}

/* Deux cartes de même hauteur */
@media (min-width: 992px) {
	.mo-medias .vc_row.vc_inner {
		display: flex;
		flex-wrap: wrap;
	}

	.mo-medias .vc_row.vc_inner::before,
	.mo-medias .vc_row.vc_inner::after {
		display: none;
	}

	.mo-medias .vc_row.vc_inner > .wpb_column > .vc_column-inner {
		height: 100%;
	}

	/* Vidéo calée en bas de sa carte, comme la maquette */
	.mo-medias .vc_col-md-7 > .vc_column-inner > .wpb_wrapper {
		display: flex;
		flex-direction: column;
		height: 100%;
	}

	.mo-medias .vc_col-md-7 .wpb_video_widget {
		margin-top: auto;
		margin-bottom: 0 !important;
	}
}

/* Vidéo aux coins arrondis */
.mo-medias .wpb_video_wrapper {
	overflow: hidden;
	border-radius: 16px;
	isolation: isolate;
	transform: translateZ(0);
}

/* Formulaire Infolettre (Cyberimpact, version HTML) */
.mo-sr {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.mo-infolettre-form fieldset {
	margin: 0;
	padding: 0;
	border: 0;
}

.mo-infolettre-form p:empty {
	display: none; /* paragraphe vide ajouté par WordPress */
}

.mo-infolettre-form fieldset > div:not([style]),
.mo-infolettre-noms > div {
	margin-bottom: 12px;
}

.mo-infolettre-noms {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}

.mo-infolettre-noms > div {
	margin-bottom: 0;
}

.mo-infolettre-form input[type="text"],
.mo-infolettre-form input[type="email"] {
	display: block;
	width: 100%;
	height: 46px;
	margin: 0;
	padding: 0 16px;
	border: 1px solid rgba(28, 59, 66, 0.1);
	border-radius: 10px;
	background: #fff;
	box-shadow: 0 2px 6px rgba(28, 59, 66, 0.04);
	font-family: var(--mo-text);
	font-size: 14px;
	color: var(--mo-teal);
	transition: border-color 0.2s, box-shadow 0.2s;
}

.mo-infolettre-form input::placeholder {
	color: #9aa3a1;
	opacity: 1;
}

.mo-infolettre-form input[type="text"]:focus,
.mo-infolettre-form input[type="email"]:focus {
	border-color: var(--mo-orange);
	outline: 0;
	box-shadow: 0 0 0 3px rgba(181, 113, 75, 0.15);
}

/* Champs de configuration cachés : ne pas prendre de place */
.mo-infolettre-form fieldset > div[style] {
	height: 0 !important;
	overflow: hidden;
}

.mo-infolettre-form input[type="submit"] {
	display: block;
	width: 100%;
	height: 48px;
	margin: 4px 0 0;
	border: 0;
	border-radius: 10px;
	background: var(--mo-teal);
	box-shadow: 0 8px 18px rgba(28, 59, 66, 0.18);
	font-family: var(--mo-label);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #fff;
	cursor: pointer;
	transition: background-color 0.2s;
	-webkit-appearance: none;
}

.mo-infolettre-form input[type="submit"]:hover,
.mo-infolettre-form input[type="submit"]:focus {
	background: var(--mo-orange);
}

.mo-infolettre-credit {
	margin-top: 8px;
	text-align: right;
	font-size: 10px;
	line-height: 1.4;
}

.mo-infolettre-credit a {
	color: #a3aaa8 !important;
	text-decoration: none;
}

/* ===== Bandeau « Le Mont-Orignal, extrêmement convivial » ===== */
.mo-cta .vc_row.vc_inner {
	position: relative;
	overflow: hidden;
	padding: 56px 48px !important;
	border: 1px solid rgba(255, 255, 255, 0.06);
	border-radius: 22px !important;
	background-color: var(--mo-teal-cta) !important;
	background-image:
		radial-gradient(circle at 0% 0%, rgba(140, 185, 185, 0.22) 0, transparent 38%),
		radial-gradient(circle at 100% 100%, rgba(181, 113, 75, 0.3) 0, transparent 36%) !important;
	box-shadow: 0 20px 44px rgba(22, 58, 63, 0.18);
}

.mo-cta .vc_row.vc_inner > .wpb_column {
	display: flex;
	align-items: center;
}

.mo-cta .vc_row.vc_inner > .wpb_column > .vc_column-inner {
	width: 100%;
}

/* Pastille */
.mo-cta div.vc_custom_heading {
	display: inline-block;
	margin: 0 0 20px !important;
	padding: 7px 14px;
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.06);
}

.mo-cta h2.vc_custom_heading {
	max-width: 720px;
	margin-bottom: 18px !important;
	text-transform: uppercase;
}

.mo-cta p.vc_custom_heading {
	max-width: 600px;
}

/* Bouton */
.mo-cta .vc_btn3.vc_btn3-style-custom {
	position: relative;
	padding: 17px 50px 17px 52px !important;
	border: 0;
	border-radius: 8px !important;
	font-family: var(--mo-label) !important;
	font-size: 14px !important;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	box-shadow: none;
	transition: background-color 0.2s, transform 0.2s;
}

.mo-cta .vc_btn3.vc_btn3-style-custom:hover,
.mo-cta .vc_btn3.vc_btn3-style-custom:focus {
	background-color: var(--mo-orange-dark) !important;
	transform: translateY(-1px);
}

.mo-cta .vc_btn3.vc_btn3-icon-left .vc_btn3-icon {
	left: 22px;
	font-size: 15px;
}

/* Icône calendrier de la maquette (remplace l'icône Font Awesome) */
.mo-cta .vc_btn3-icon.fa-calendar::before {
	content: "";
	display: block;
	width: 15px;
	height: 16px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 15 16'%3E%3Cpath fill='white' d='M1.58333 15.8333C1.14792 15.8333 0.775174 15.6783 0.465104 15.3682C0.155035 15.0582 0 14.6854 0 14.25V3.16667C0 2.73125 0.155035 2.35851 0.465104 2.04844C0.775174 1.73837 1.14792 1.58333 1.58333 1.58333H2.375V0H3.95833V1.58333H10.2917V0H11.875V1.58333H12.6667C13.1021 1.58333 13.4748 1.73837 13.7849 2.04844C14.095 2.35851 14.25 2.73125 14.25 3.16667V14.25C14.25 14.6854 14.095 15.0582 13.7849 15.3682C13.4748 15.6783 13.1021 15.8333 12.6667 15.8333H1.58333ZM1.58333 14.25H12.6667V6.33333H1.58333V14.25ZM1.58333 4.75H12.6667V3.16667H1.58333V4.75ZM7.125 9.5a.79.79 0 1 1 0-1.583.79.79 0 0 1 0 1.583ZM3.958 9.5a.79.79 0 1 1 0-1.583.79.79 0 0 1 0 1.583ZM10.292 9.5a.79.79 0 1 1 0-1.583.79.79 0 0 1 0 1.583ZM7.125 12.667a.79.79 0 1 1 0-1.584.79.79 0 0 1 0 1.584ZM3.958 12.667a.79.79 0 1 1 0-1.584.79.79 0 0 1 0 1.584ZM10.292 12.667a.79.79 0 1 1 0-1.584.79.79 0 0 1 0 1.584Z'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* Flèche à droite */
.mo-cta .vc_btn3.vc_btn3-style-custom::after {
	content: "\2192";
	position: absolute;
	top: 50%;
	right: 22px;
	font-size: 17px;
	font-weight: 500;
	letter-spacing: 0;
	transform: translateY(-50%);
	transition: transform 0.2s;
}

.mo-cta .vc_btn3.vc_btn3-style-custom:hover::after {
	transform: translate(3px, -50%);
}

/* ===== Partenaires (sélecteurs renforcés : le CSS du carrousel se charge après) ===== */
.mo-partenaires-section .vc_images_carousel .vc_carousel-control {
	display: block;
	top: 50%;
	bottom: auto;
	width: 44px;
	height: 44px;
	margin-top: -22px;
	border: 1px solid rgba(28, 59, 66, 0.12);
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 6px 16px rgba(28, 59, 66, 0.12);
	opacity: 1;
	color: var(--mo-teal);
	text-shadow: none;
	transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.mo-partenaires-section .vc_images_carousel .vc_carousel-control.vc_left {
	left: -10px;
}

.mo-partenaires-section .vc_images_carousel .vc_carousel-control.vc_right {
	right: -10px;
}

.mo-partenaires-section .vc_images_carousel .vc_carousel-control span {
	display: none !important; /* flèches texte du thème */
}

/* Chevron */
.mo-partenaires-section .vc_images_carousel .vc_carousel-control::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 18px;
	height: 18px;
	margin: -9px 0 0 -9px;
	background-color: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 18l-6-6 6-6'/%3E%3C/svg%3E") no-repeat center / contain;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 18l-6-6 6-6'/%3E%3C/svg%3E") no-repeat center / contain;
}

.mo-partenaires-section .vc_images_carousel .vc_carousel-control.vc_right::after {
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 18l6-6-6-6'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 18l6-6-6-6'/%3E%3C/svg%3E");
}

.mo-partenaires-section .vc_images_carousel .vc_carousel-control:hover,
.mo-partenaires-section .vc_images_carousel .vc_carousel-control:focus {
	border-color: var(--mo-teal);
	background: var(--mo-teal);
	color: #fff;
	opacity: 1;
}

@media (min-width: 1300px) {
	.mo-partenaires-section .vc_images_carousel .vc_carousel-control.vc_left {
		left: -64px;
	}

	.mo-partenaires-section .vc_images_carousel .vc_carousel-control.vc_right {
		right: -64px;
	}
}

/* ===== Slider : icônes des boutons au survol ===== */
.mo-ic path {
	transition: fill 0.2s;
}

.rs-layer:hover .mo-ic path {
	fill: currentColor;
}

/* ===== Tablette ===== */
@media (max-width: 991px) {
	.mo-cta .vc_row.vc_inner > .wpb_column {
		display: block;
	}

	.mo-cta .vc_btn3-container {
		margin-top: 24px;
		text-align: left !important;
	}

	.mo-chiffres .skill-count {
		font-size: 52px !important;
	}
}

/* ===== Mobile (WPBakery n'a qu'une taille par titre) ===== */
@media (max-width: 767px) {
	.mo-apropos h2.vc_custom_heading {
		font-size: 30px !important;
	}

	.mo-medias h2.vc_custom_heading {
		font-size: 27px !important;
	}

	.mo-cta .vc_row.vc_inner {
		padding: 36px 24px !important;
	}

	.mo-cta h2.vc_custom_heading {
		font-size: 28px !important;
	}

	.mo-cta p.vc_custom_heading {
		font-size: 15px !important;
	}

	.mo-cta .vc_btn3.vc_btn3-style-custom {
		display: block;
		width: 100%;
		font-size: 13px !important;
		letter-spacing: 0.05em;
		text-align: center;
	}

	.mo-chiffres .skill-count {
		font-size: 44px !important;
	}

	.mo-chiffres .stats-content p {
		font-size: 11.5px !important;
	}

	.mo-infolettre-noms {
		grid-template-columns: 1fr;
	}
}
