/* Mont-Orignal – nouvel en-tête et pied de page (actif seulement avec body.mo-v2) */

body.mo-v2 {
	--mo-teal: #1c3b42;
	--mo-teal-dark: #163035;
	--mo-cream: #f3eee5;
	--mo-light: #fbf8f3;
	--mo-orange: #a96f4b;
	--mo-green: #6bbf72;
	--mo-font: "Barlow", "Palanquin", sans-serif;
	--mo-title: "Bricolage Grotesque", "Barlow", sans-serif;
}

/* ===== Barre du haut ===== */
body.mo-v2 .topbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 0;
	padding: 9px max(15px, calc((100% - 1170px) / 2 + 15px));
	background: var(--mo-teal);
	color: var(--mo-cream);
	font-size: 0; /* masque les « | » et « Tél.: » en texte brut */
	text-align: left;
	text-transform: none;
}

body.mo-v2 .topbar br {
	display: none;
}

body.mo-v2 .topbar a {
	position: relative;
	padding: 0;
	margin-right: 26px;
	font-family: var(--mo-font);
	font-size: 12.5px;
	font-weight: 500;
	line-height: 20px;
	letter-spacing: 0.02em;
	text-transform: none;
	color: rgba(243, 238, 229, 0.85);
	text-decoration: none;
	transition: color 0.2s;
}

body.mo-v2 .topbar a:hover,
body.mo-v2 .topbar a:focus {
	color: #fff;
}

/* Point vert avant le premier lien */
body.mo-v2 .topbar a:first-child::before {
	content: "";
	display: inline-block;
	width: 7px;
	height: 7px;
	margin-right: 10px;
	border-radius: 50%;
	background: var(--mo-green);
	vertical-align: 1px;
}

/* Séparateur entre les liens */
body.mo-v2 .topbar a:not(:first-child):not([href^="tel:"])::before {
	content: "";
	position: absolute;
	left: -15px;
	top: 50%;
	width: 4px;
	height: 1px;
	background: rgba(243, 238, 229, 0.4);
}

/* Téléphone à droite */
body.mo-v2 .topbar a[href^="tel:"] {
	margin-left: auto;
	margin-right: 0;
	font-weight: 600;
	color: var(--mo-cream);
}

body.mo-v2 .topbar a[href^="tel:"]::before {
	content: "\f095";
	margin-right: 8px;
	font-family: FontAwesome;
	font-weight: normal;
	color: var(--mo-orange);
}

/* ===== En-tête ===== */
body.mo-v2 header.header5,
body.mo-v2 #modeltheme-main-head {
	background-color: var(--mo-light) !important;
	background-image: none !important;
	color: var(--mo-teal);
}

body.mo-v2 #modeltheme-main-head {
	box-shadow: 0 1px 0 rgba(28, 59, 66, 0.08);
}

body.mo-v2 #modeltheme-main-head h1.logo {
	margin: 20px 0 6px;
	line-height: 1;
}

body.mo-v2 #modeltheme-main-head h1.logo img {
	max-width: 240px;
	height: auto;
}

/* Sécurité : logo foncé pas encore configuré */
body.mo-v2.mo-v2-nologo #modeltheme-main-head h1.logo img {
	filter: brightness(0) invert(19%) sepia(14%) saturate(1300%) hue-rotate(145deg);
}

body.mo-v2 #navbar {
	border-top: 0;
}

/* Menu principal */
body.mo-v2 #navbar ul.menu > li > a {
	position: relative;
	padding: 16px 10px 20px;
	font-family: var(--mo-font);
	font-size: 12.5px;
	font-weight: 600;
	line-height: 20px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--mo-teal) !important;
	background: transparent !important;
}

body.mo-v2 #navbar ul.menu > li.menu-item-has-children > a {
	padding-right: 21px;
}

body.mo-v2 #navbar ul.menu > li > a:hover,
body.mo-v2 #navbar ul.menu > li:hover > a,
body.mo-v2 #navbar ul.menu > li.current-menu-item > a,
body.mo-v2 #navbar ul.menu > li.current-menu-ancestor > a,
body.mo-v2 #navbar ul.menu > li.current_page_item > a {
	color: var(--mo-orange) !important;
}

/* Soulignement orange (réutilise le ::before du thème) */
body.mo-v2 #navbar ul.menu > li > a::before {
	content: "";
	position: absolute;
	left: 10px;
	right: 10px;
	bottom: 12px;
	width: auto;
	height: 2px;
	margin: 0;
	background: var(--mo-orange) !important;
	opacity: 1;
	transform: scaleX(0);
	transform-origin: left center;
	transition: transform 0.25s ease;
}

body.mo-v2 #navbar ul.menu > li.menu-item-has-children > a::before {
	right: 21px;
}

body.mo-v2 #navbar ul.menu > li > a:hover::before,
body.mo-v2 #navbar ul.menu > li:hover > a::before,
body.mo-v2 #navbar ul.menu > li.current-menu-item > a::before,
body.mo-v2 #navbar ul.menu > li.current-menu-ancestor > a::before,
body.mo-v2 #navbar ul.menu > li.current_page_item > a::before {
	transform: scaleX(1);
}

/* Flèche des sous-menus (remplace l'icône du thème) */
body.mo-v2 #navbar ul.menu > li > a::after {
	display: none;
}

body.mo-v2 #navbar ul.menu > li.menu-item-has-children > a::after {
	content: "";
	display: block;
	position: absolute;
	top: 50%;
	right: 9px;
	bottom: auto;
	width: 5px;
	height: 5px;
	margin-top: -5px;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	background: none;
	font-family: inherit;
	transform: rotate(45deg);
}

/* Sous-menus */
body.mo-v2 #navbar ul.menu > li > .sub-menu {
	top: 100%;
}

body.mo-v2 #navbar .sub-menu {
	min-width: 230px;
	padding: 8px;
	border-radius: 10px;
	background-color: #fff !important;
	box-shadow: 0 14px 34px rgba(28, 59, 66, 0.16);
}

body.mo-v2 #navbar .sub-menu li {
	background: transparent !important;
}

body.mo-v2 #navbar .sub-menu a,
body.mo-v2 #navbar ul.sub-menu li a:link {
	padding: 9px 14px;
	border-radius: 6px;
	font-family: var(--mo-font);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.04em;
	color: var(--mo-teal) !important;
	background: transparent !important;
}

body.mo-v2 #navbar .sub-menu li:hover > a,
body.mo-v2 #navbar .sub-menu a:hover,
body.mo-v2 #navbar .sub-menu .current-menu-item > a {
	color: var(--mo-orange) !important;
	background: var(--mo-cream) !important;
}

/* Bouton menu mobile */
body.mo-v2 #modeltheme-main-head .navbar-toggle {
	border-color: rgba(28, 59, 66, 0.25);
	background: transparent;
}

body.mo-v2 #modeltheme-main-head .navbar-toggle .icon-bar {
	background-color: var(--mo-teal) !important;
}

@media (max-width: 1199px) {
	body.mo-v2 #navbar ul.menu > li > a {
		padding: 12px 8px 16px;
		font-size: 11.5px;
		letter-spacing: 0.02em;
	}

	body.mo-v2 #navbar ul.menu > li.menu-item-has-children > a {
		padding-right: 19px;
	}

	body.mo-v2 #navbar ul.menu > li > a::before {
		left: 8px;
		right: 8px;
		bottom: 9px;
	}

	body.mo-v2 #navbar ul.menu > li.menu-item-has-children > a::before {
		right: 19px;
	}

	body.mo-v2 #navbar ul.menu > li.menu-item-has-children > a::after {
		right: 7px;
	}
}

@media (max-width: 767px) {
	body.mo-v2 .topbar {
		justify-content: center;
		padding: 8px 15px;
	}

	body.mo-v2 .topbar a {
		margin-right: 22px;
	}

	body.mo-v2 .topbar a[href^="tel:"] {
		flex-basis: 100%;
		margin: 0;
		text-align: center;
	}

	body.mo-v2 #modeltheme-main-head h1.logo img {
		max-width: 180px;
	}

	body.mo-v2 #navbar ul.menu > li {
		display: block;
		border-top: 1px solid rgba(28, 59, 66, 0.08);
	}

	body.mo-v2 #navbar ul.menu > li > a {
		padding: 12px 15px;
		text-align: left;
	}

	body.mo-v2 #navbar ul.menu > li > a::before,
	body.mo-v2 #navbar ul.menu > li.menu-item-has-children > a::after {
		display: none;
	}

	body.mo-v2 #navbar .sub-menu {
		box-shadow: none;
		border-radius: 0;
		background-color: var(--mo-cream) !important;
	}
}

/* ===== Pied de page ===== */
body.mo-v2 footer,
body.mo-v2 footer .row.footer-top {
	background-color: var(--mo-teal) !important;
	background-image: none !important;
}

body.mo-v2 footer .footer-row-1 {
	padding: 72px 15px 40px;
}

/* Grille des 3 colonnes V2 */
body.mo-v2 footer .footer-row-1 .sidebar-1 {
	display: grid;
	grid-template-columns: 1.35fr 1fr 1fr;
	gap: 48px 64px;
	float: none;
	width: 100%;
}

body.mo-v2 footer .footer-row-1 .sidebar-1::before,
body.mo-v2 footer .footer-row-1 .sidebar-1::after {
	display: none;
}

body.mo-v2 .mo-col {
	min-width: 0;
	font-family: var(--mo-font);
	font-size: 14px;
	line-height: 1.65;
	text-align: left;
	color: rgba(243, 238, 229, 0.75);
}

body.mo-v2 .mo-col .widget {
	margin: 0 0 20px;
	padding: 0;
	text-align: left;
}

body.mo-v2 .mo-col .widget:last-child {
	margin-bottom: 0;
}

body.mo-v2 .mo-col p,
body.mo-v2 .mo-col li,
body.mo-v2 .mo-col span,
body.mo-v2 .mo-col div {
	font-family: var(--mo-font);
	font-size: 14px;
	line-height: 1.65;
	text-align: left;
	color: inherit;
}

body.mo-v2 .mo-col p {
	margin: 0 0 12px;
}

body.mo-v2 .mo-col a {
	color: var(--mo-cream) !important;
	text-decoration: none;
	transition: color 0.2s, background-color 0.2s, border-color 0.2s;
}

body.mo-v2 .mo-col a:hover,
body.mo-v2 .mo-col a:focus {
	color: #fff !important;
	text-decoration: underline;
}

/* Titres des widgets */
body.mo-v2 .mo-col .widget-title,
body.mo-v2 .mo-col .widgettitle {
	margin: 4px 0 18px;
	padding: 0;
	border: 0;
	font-family: var(--mo-font);
	font-size: 12px;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: 0.14em;
	text-align: left !important;
	text-transform: uppercase;
	color: var(--mo-orange);
}

body.mo-v2 .mo-col .widget-title::before,
body.mo-v2 .mo-col .widget-title::after {
	display: none;
}

/* Images (logo, bannière) */
body.mo-v2 .mo-col .widget_media_image img {
	display: block;
	width: auto;
	max-width: 200px !important; /* WP ajoute max-width:100% en ligne */
	height: auto;
}

body.mo-v2 .mo-col-1 .widget_media_image:first-child img {
	max-width: 180px !important;
}

body.mo-v2 .mo-col-1 .widget_text {
	max-width: 360px;
}

/* Menus */
body.mo-v2 .mo-col ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

body.mo-v2 .mo-col .widget_nav_menu li {
	margin: 0 0 10px;
	padding: 0;
	border: 0;
}

body.mo-v2 .mo-col .widget_nav_menu li {
	padding-left: 0 !important;
}

body.mo-v2 .mo-col .widget_nav_menu li::before,
body.mo-v2 .mo-col-3 .widget_nav_menu a::before {
	display: none !important; /* puce du thème */
}

body.mo-v2 .mo-col-3 .widget_nav_menu a {
	padding-left: 0 !important;
	font-weight: 500;
}

/* Réseaux sociaux : menu de la colonne 1, icône selon le lien */
body.mo-v2 .mo-col-1 .widget_nav_menu ul {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

body.mo-v2 .mo-col-1 .widget_nav_menu li {
	flex: 0 0 auto;
	width: auto !important;
	margin: 0 !important;
	padding: 0 !important;
}

body.mo-v2 .mo-col-1 .widget_nav_menu a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border: 1px solid rgba(243, 238, 229, 0.25);
	border-radius: 50%;
	font-size: 0 !important;
	color: var(--mo-cream) !important;
}

body.mo-v2 .mo-col-1 .widget_nav_menu a::before {
	content: "";
	position: static !important; /* remplace la puce du thème */
	display: block !important;
	width: 17px;
	height: 17px;
	margin: 0 !important;
	border: 0 !important;
	transform: none !important;
	opacity: 1 !important;
	background-color: currentColor !important;
	-webkit-mask: var(--mo-ico, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 14a4 4 0 0 0 5.7 0l3-3a4 4 0 0 0-5.7-5.7l-1 1'/%3E%3Cpath d='M14 10a4 4 0 0 0-5.7 0l-3 3a4 4 0 0 0 5.7 5.7l1-1'/%3E%3C/svg%3E")) center / contain no-repeat;
	mask: var(--mo-ico, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 14a4 4 0 0 0 5.7 0l3-3a4 4 0 0 0-5.7-5.7l-1 1'/%3E%3Cpath d='M14 10a4 4 0 0 0-5.7 0l-3 3a4 4 0 0 0 5.7 5.7l1-1'/%3E%3C/svg%3E")) center / contain no-repeat;
}

body.mo-v2 .mo-col-1 .widget_nav_menu a:hover,
body.mo-v2 .mo-col-1 .widget_nav_menu a:focus {
	border-color: var(--mo-orange);
	background-color: var(--mo-orange);
	text-decoration: none;
}

body.mo-v2 .mo-col-1 .widget_nav_menu a[href*="facebook."] { --mo-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23000'%3E%3Cpath d='M13.5 21v-7.5h2.6l.4-3h-3V8.6c0-.9.3-1.5 1.5-1.5h1.6V4.4c-.3 0-1.2-.1-2.3-.1-2.3 0-3.9 1.4-3.9 4v2.2H7.8v3h2.6V21h3.1z'/%3E%3C/svg%3E"); }
body.mo-v2 .mo-col-1 .widget_nav_menu a[href*="instagram."] { --mo-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23000'%3E%3Cpath d='M12 7.2a4.8 4.8 0 1 0 0 9.6 4.8 4.8 0 0 0 0-9.6zm0 7.9a3.1 3.1 0 1 1 0-6.2 3.1 3.1 0 0 1 0 6.2zm6.1-8.1a1.1 1.1 0 1 1-2.2 0 1.1 1.1 0 0 1 2.2 0zM12 4.6c2.4 0 2.7 0 3.6.1 2.4.1 3.6 1.3 3.7 3.7.1.9.1 1.2.1 3.6s0 2.7-.1 3.6c-.1 2.4-1.3 3.6-3.7 3.7-.9.1-1.2.1-3.6.1s-2.7 0-3.6-.1c-2.4-.1-3.6-1.3-3.7-3.7-.1-.9-.1-1.2-.1-3.6s0-2.7.1-3.6c.1-2.4 1.3-3.6 3.7-3.7.9-.1 1.2-.1 3.6-.1zM12 3c-2.4 0-2.8 0-3.7.1C5 3.2 3.2 5 3.1 8.3 3 9.2 3 9.6 3 12s0 2.8.1 3.7c.1 3.3 1.9 5.1 5.2 5.2.9.1 1.3.1 3.7.1s2.8 0 3.7-.1c3.3-.1 5.1-1.9 5.2-5.2.1-.9.1-1.3.1-3.7s0-2.8-.1-3.7c-.1-3.3-1.9-5.1-5.2-5.2C14.8 3 14.4 3 12 3z'/%3E%3C/svg%3E"); }
body.mo-v2 .mo-col-1 .widget_nav_menu a[href*="tiktok."] { --mo-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23000'%3E%3Cpath d='M16.6 5.8A4.3 4.3 0 0 1 15.5 3h-3.1v12.4a2.6 2.6 0 1 1-2.6-2.6c.3 0 .5 0 .8.1V9.7a5.7 5.7 0 1 0 4.9 5.7V9.1a7.3 7.3 0 0 0 4.3 1.4V7.4a4.3 4.3 0 0 1-3.2-1.6z'/%3E%3C/svg%3E"); }
body.mo-v2 .mo-col-1 .widget_nav_menu a[href*="youtube."] { --mo-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23000'%3E%3Cpath d='M21.6 7.2a2.5 2.5 0 0 0-1.8-1.8C18.2 5 12 5 12 5s-6.2 0-7.8.4A2.5 2.5 0 0 0 2.4 7.2C2 8.8 2 12 2 12s0 3.2.4 4.8a2.5 2.5 0 0 0 1.8 1.8c1.6.4 7.8.4 7.8.4s6.2 0 7.8-.4a2.5 2.5 0 0 0 1.8-1.8c.4-1.6.4-4.8.4-4.8s0-3.2-.4-4.8zM10 15V9l5.2 3L10 15z'/%3E%3C/svg%3E"); }
body.mo-v2 .mo-col-1 .widget_nav_menu a[href*="linkedin."] { --mo-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23000'%3E%3Cpath d='M6.9 8.8H3.6V20h3.3V8.8zM5.2 3.5a1.9 1.9 0 1 0 0 3.8 1.9 1.9 0 0 0 0-3.8zM20.4 13.6c0-3-.6-5.1-4.1-5.1-1.7 0-2.8.9-3.2 1.8V8.8H9.9V20h3.3v-5.6c0-1.5.3-2.9 2.1-2.9 1.8 0 1.8 1.7 1.8 3V20h3.3v-6.4z'/%3E%3C/svg%3E"); }

/* Coordonnées : icône selon le contenu de chaque ligne */
body.mo-v2 .mo-col-2 .widget_text p {
	position: relative;
	padding-left: 28px;
}

body.mo-v2 .mo-col-2 .widget_text p::before {
	content: "";
	position: absolute;
	left: 0;
	top: 4px;
	width: 16px;
	height: 16px;
	background-color: var(--mo-orange);
	-webkit-mask: var(--mo-ico, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s-7-6.2-7-11.5A7 7 0 0 1 19 9.5C19 14.8 12 21 12 21z'/%3E%3Ccircle cx='12' cy='9.5' r='2.5'/%3E%3C/svg%3E")) center / contain no-repeat;
	mask: var(--mo-ico, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s-7-6.2-7-11.5A7 7 0 0 1 19 9.5C19 14.8 12 21 12 21z'/%3E%3Ccircle cx='12' cy='9.5' r='2.5'/%3E%3C/svg%3E")) center / contain no-repeat;
}

body.mo-v2 .mo-col-2 .widget_text p:has(a[href^="tel:"]) { --mo-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 4h4l2 5-2.5 1.5a11 11 0 0 0 5 5L15 13l5 2v4a2 2 0 0 1-2 2A16 16 0 0 1 3 6a2 2 0 0 1 2-2'/%3E%3C/svg%3E"); }
body.mo-v2 .mo-col-2 .widget_text p:has(a[href^="mailto:"]) { --mo-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m3 7 9 6 9-6'/%3E%3C/svg%3E"); }

/* Note sur les renseignements personnels */
body.mo-v2 .mo-col-3 .widget_text {
	margin-top: 18px;
	padding-top: 16px;
	border-top: 1px solid rgba(243, 238, 229, 0.12);
}

body.mo-v2 .mo-col-3 .widget_text p {
	font-size: 12.5px;
	line-height: 1.6;
	color: rgba(243, 238, 229, 0.6);
}

body.mo-v2 .mo-col-3 .widget_text a {
	text-decoration: underline;
}

/* Barre du bas */
body.mo-v2 footer .footer-div-parent {
	padding: 0;
	background-color: var(--mo-teal) !important;
}

body.mo-v2 footer .footer-div-parent .footer {
	max-width: 1170px;
	min-height: 0;
	margin: 0 auto;
	padding: 0 15px;
	background: transparent !important;
}

body.mo-v2 footer .footer-div-parent .footer > .col-md-12 {
	float: none;
	padding: 0;
}

body.mo-v2 footer p.copyright {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 8px 24px;
	margin: 0;
	padding: 22px 0;
	border-top: 1px solid rgba(243, 238, 229, 0.12);
	font-family: var(--mo-font);
	font-size: 12.5px;
	text-align: left;
	color: rgba(243, 238, 229, 0.6);
}

body.mo-v2 footer p.copyright span {
	font-weight: 500;
}

body.mo-v2 footer p.copyright a {
	font-weight: 700;
	color: var(--mo-cream) !important;
}

@media (max-width: 991px) {
	body.mo-v2 footer .footer-row-1 .sidebar-1 {
		grid-template-columns: 1fr 1fr;
	}

	body.mo-v2 .mo-col-1 {
		grid-column: 1 / -1;
	}
}

@media (max-width: 600px) {
	body.mo-v2 footer .footer-row-1 {
		padding: 52px 15px 28px;
	}

	body.mo-v2 footer .footer-row-1 .sidebar-1 {
		grid-template-columns: 1fr;
		gap: 36px;
	}

	body.mo-v2 footer p.copyright {
		justify-content: center;
		text-align: center;
	}
}
