/* VisualyScan — corrections minimales pour le site statique Astro */

html,
body {
	margin: 0;
	padding: 0;
	overflow-x: hidden;
}

#loading {
	display: none !important;
}

/* Pages légales : liens repérables dans le texte */
.privacy-policy #content a,
.page-id-12119 #content a,
.vs-legal a {
	text-decoration: underline;
}

.vs-legal {
	padding: 140px 0 80px;
}

.vs-legal .vs-wrap {
	max-width: 820px;
}

.vs-landing .vs-legal h1 {
	margin: 0 0 8px;
	font-size: clamp(1.9rem, 4vw, 2.6rem);
}

.vs-landing .vs-legal h2 {
	margin: 36px 0 12px;
	font-size: 1.3rem;
}

.vs-landing .vs-legal p,
.vs-landing .vs-legal ul {
	margin: 0 0 14px;
}

.vs-legal p,
.vs-legal li {
	line-height: 1.7;
}

.vs-legal ul {
	padding-left: 1.2em;
}

.vs-legal li + li {
	margin-top: 8px;
}

.vs-legal-meta {
	color: #6b7280;
	font-size: 0.95rem;
}

/* Perf — animations non compositées (box-shadow) : désactivées */

/* YouTube — miniature + chargement iframe au clic */
.vs-youtube-facade {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 180px;
	cursor: pointer;
	background-color: #1a1a1a;
	background-size: cover;
	background-position: center;
	overflow: hidden;
}

.vs-youtube-facade::before {
	content: '';
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.18);
}

.vs-youtube-facade::after {
	content: '';
	position: relative;
	z-index: 1;
	width: 68px;
	height: 48px;
	background: center / contain no-repeat
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 68 48'%3E%3Cpath fill='%23f00' d='M66.5 7.7a8.5 8.5 0 0 0-6-2.4C55.8 4.5 34 4.5 34 4.5s-21.8 0-26.5 1.2a8.5 8.5 0 0 0-6 2.4A59 59 0 0 0 0 24.5a59 59 0 0 0 1.5 16.8 8.5 8.5 0 0 0 6 2.4c4.7 1.1 26.5 1.1 26.5 1.1s21.8 0 26.5-1.1a8.5 8.5 0 0 0 6-2.4A59 59 0 0 0 68 24.5a59 59 0 0 0-1.5-16.8Z'/%3E%3Cpath fill='%23fff' d='M27 34.6V14.4L45.2 24.5 27 34.6Z'/%3E%3C/svg%3E");
}

body {
	font-family: 'Rubik', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.btn,
a.btn {
	font-family: 'Rubik', 'Helvetica Neue', Helvetica, Arial, sans-serif !important;
	font-weight: 600 !important;
}

h1,
h2,
h3,
h4,
h5 {
	font-family: 'Plus Jakarta Sans', 'Rubik', sans-serif;
}

/* Hero — fond route (road-5743713-1-scaled.jpg ne se sert pas correctement en dev) */

/* Header — même comportement que le thème Martex (scroll sur .wsmainfull) */
.header-wrapper {
	z-index: 1050;
}

#header .wsmainfull {
	position: relative;
}

#header.navbar-light .wsmainfull:not(.scroll) .logo-black {
	display: none !important;
}

#header.navbar-light .wsmainfull:not(.scroll) .logo-white {
	display: block !important;
}

/* Header mobile — logo foncé sur fond blanc (accueil) */
@media (max-width: 991px) {
	#header.navbar-light .wsmobileheader .logo-black {
		display: block !important;
	}

	#header.navbar-light .wsmobileheader .logo-white {
		display: none !important;
	}

	#header .wsmobileheader > a.logo-black,
	#header .wsmobileheader > a.logo-white {
		display: block;
		line-height: 0;
		flex-shrink: 0;
	}

	#header .wsmobileheader img {
		display: block;
		width: 148px;
		max-width: min(46vw, 148px);
		height: auto;
	}

	.wsmobileheader {
		display: flex !important;
		align-items: center !important;
		justify-content: space-between;
		min-height: 0 !important;
		height: auto !important;
		min-height: 50px;
		padding: 5px 12px !important;
	}

	#header .wsmobileheader #wsnavtoggle,
	.wsmobileheader .wsanimated-arrow {
		float: none !important;
		margin-top: 9px !important;
		margin-bottom: 2px !important;
		width: 26px !important;
		height: 22px !important;
		flex-shrink: 0;
		align-self: flex-end;
	}
}

/* Lisibilité du menu principal sur le ciel clair du hero (desktop uniquement) */
@media (min-width: 992px) {
	#header.navbar-light .wsmainfull:not(.scroll) .wsmenu > .wsmenu-list > li > a.h-link {
		color: #fff !important;
		text-shadow:
			0 1px 2px rgba(0, 0, 0, 0.65),
			0 0 12px rgba(0, 0, 0, 0.35);
	}

	#header.navbar-light .wsmainfull:not(.scroll)::before {
		content: '';
		position: absolute;
		top: 0;
		right: 0;
		left: 0;
		height: 110px;
		background: linear-gradient(to bottom, rgba(0, 0, 0, 0.42), transparent);
		pointer-events: none;
		z-index: -1;
	}
}

/* Menu mobile — panneau latéral comme sur le site live */
@media (max-width: 991px) {
	#header.navbar-light .wsmainfull:not(.scroll)::before {
		display: none !important;
	}

	#header .wsmainfull {
		position: static !important;
		overflow: visible !important;
	}

	#header .wsmenu > .wsmenu-list > li > a.h-link,
	#header .wsmenu > .wsmenu-list > li > a.h-link:hover,
	#header .wsmenu > .wsmenu-list > li:hover > a.h-link {
		color: #666 !important;
		text-shadow: none !important;
	}

	#header .wsmenu > .wsmenu-list > li > ul.sub-menu a.h-link,
	#header .wsmenu > .wsmenu-list > li > .wsmegamenu a,
	#header .wsmenu > .wsmenu-list > li > .wsmegamenu .link-list a {
		color: #383838 !important;
		text-shadow: none !important;
	}

	#header .wsmenu > .wsmenu-list > li > a.btn {
		color: #fff !important;
		text-shadow: none !important;
		text-align: center !important;
		margin: 12px 17px !important;
		width: calc(100% - 34px) !important;
		border-bottom: none !important;
	}

	.wsmobileheader {
		background: #fff !important;
		box-shadow: 0 2px 3px rgba(96, 96, 96, 0.1);
		z-index: 100003 !important;
	}

	#header.navbar-light .wsmobileheader .wsanimated-arrow span::before,
	#header.navbar-light .wsmobileheader .wsanimated-arrow span::after {
		background-color: #666 !important;
	}

	body.wsactive #header .wsmobileheader .wsanimated-arrow span,
	body.vs-menu-open #header .wsmobileheader .wsanimated-arrow span {
		background-color: transparent !important;
	}

	body.wsactive {
		overflow: hidden !important;
	}

	body.wsactive .wsmenu {
		visibility: visible !important;
		z-index: 100000 !important;
		overflow-y: auto !important;
		-webkit-overflow-scrolling: touch !important;
	}

	body.wsactive .wsmenu > .wsmenu-list {
		float: right !important;
		margin-right: 0 !important;
		background: #fff !important;
		position: relative !important;
		z-index: 100002 !important;
		box-shadow: -4px 0 16px rgba(0, 0, 0, 0.12) !important;
	}

	body.wsactive .wsmenu .overlapblackbg {
		opacity: 1 !important;
		visibility: visible !important;
		z-index: 100001 !important;
	}

	body.wsactive .vs-whatsapp-float,
	body.wsactive .progressCounter {
		z-index: 1 !important;
	}

	/* Masquer l’ancien panneau Martex — remplacé par #vs-mobile-nav */
	#header .wsmenu > .wsmenu-list {
		display: none !important;
	}

	body.wsactive .wsmenu .overlapblackbg {
		display: none !important;
	}
}

/* Menu mobile dédié (drawer plein écran) */
.vs-mobile-nav {
	position: fixed;
	inset: 0;
	z-index: 100010;
	pointer-events: none;
	visibility: hidden;
}

.vs-mobile-nav__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(8, 16, 28, 0.52);
	opacity: 0;
	transition: opacity 0.25s ease;
}

.vs-mobile-nav__panel {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	width: min(100%, 400px);
	max-width: 100%;
	background: #fff;
	display: flex;
	flex-direction: column;
	box-shadow: -8px 0 32px rgba(0, 0, 0, 0.14);
	transform: translateX(100%);
	transition: transform 0.28s ease;
}

body.vs-menu-open {
	overflow: hidden !important;
}

body.vs-menu-open .vs-mobile-nav {
	pointer-events: auto;
	visibility: visible;
}

body.vs-menu-open .vs-mobile-nav__backdrop {
	opacity: 1;
}

body.vs-menu-open .vs-mobile-nav__panel {
	transform: translateX(0);
}

body.vs-menu-open .vs-sticky-cta,
body.vs-menu-open .vs-whatsapp-float {
	visibility: hidden !important;
	pointer-events: none !important;
}

.vs-mobile-nav__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 14px 16px 10px;
	border-bottom: 1px solid #e8ecf1;
	flex-shrink: 0;
}

.vs-mobile-nav__logo img {
	display: block;
	width: 156px;
	height: auto;
}

.vs-mobile-nav__close {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border: 0;
	border-radius: 10px;
	background: #f3f5f8;
	color: #1c2430;
	font-size: 1.75rem;
	line-height: 1;
	cursor: pointer;
}

.vs-mobile-nav__close:hover {
	background: #e8ecf1;
}

.vs-mobile-nav__body {
	flex: 1;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	padding: 8px 16px 16px;
}

.vs-mobile-nav__label {
	margin: 16px 0 8px;
	font-family: 'Plus Jakarta Sans', Rubik, sans-serif;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #6b7280;
}

.vs-mobile-nav__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.vs-mobile-nav__list li {
	border-bottom: 1px solid #eef1f5;
}

.vs-mobile-nav__list a {
	display: block;
	padding: 14px 4px;
	font-family: 'Plus Jakarta Sans', Rubik, sans-serif;
	font-size: 1rem;
	font-weight: 600;
	color: #1c2430 !important;
	text-decoration: none !important;
}

.vs-mobile-nav__list a:hover {
	color: #0d6efd !important;
}

.vs-mobile-nav__list--main a {
	padding: 16px 4px;
	font-size: 1.05rem;
}

.vs-mobile-nav__phone-link {
	color: #4b5563 !important;
	font-weight: 600 !important;
}

.vs-mobile-nav__foot {
	flex-shrink: 0;
	padding: 12px 16px calc(16px + env(safe-area-inset-bottom, 0px));
	border-top: 1px solid #e8ecf1;
	background: #fff;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.vs-mobile-nav__cta {
	display: block;
	width: 100%;
	text-align: center;
	padding: 14px 18px;
	border-radius: 10px;
	font-family: 'Plus Jakarta Sans', Rubik, sans-serif;
	font-size: 1rem;
	font-weight: 700;
	text-decoration: none !important;
	background: #0d6efd;
	color: #fff !important;
	box-shadow: 0 10px 28px rgba(13, 110, 253, 0.32);
}

.vs-mobile-nav__cta:hover {
	background: #0b5ed7;
	color: #fff !important;
}

@media (min-width: 992px) {
	.vs-mobile-nav {
		display: none !important;
	}
}

/* Sous-menus desktop — texte foncé sur fond blanc */
@media (min-width: 992px) {
	#header .wsmenu {
		margin-right: 48px;
	}

	.wsmenu > .wsmenu-list > li > ul.sub-menu a.h-link,
	.wsmenu > .wsmenu-list > li > .wsmegamenu a,
	.wsmenu > .wsmenu-list > li > .wsmegamenu .link-list a {
		color: #383838 !important;
		text-shadow: none !important;
	}

	.wsmenu > .wsmenu-list > li > ul.sub-menu a.h-link:hover,
	.wsmenu > .wsmenu-list > li > .wsmegamenu a:hover,
	.wsmenu > .wsmenu-list > li > .wsmegamenu .link-list a:hover {
		color: #1d222f !important;
	}

	/* Menus déroulants au-dessus du contenu Elementor */
	.wsmenu > .wsmenu-list > li > ul.sub-menu,
	.wsmenu > .wsmenu-list > li > .wsmegamenu {
		z-index: 1060 !important;
		background-color: #fff !important;
		box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
	}
}

/* Hero — mockup tablette en <img> (LCP) avec grille pour éviter le CLS */

.vs-lcp-mockup {
	grid-area: 1 / 1;
	display: block;
	width: auto;
	max-width: 100%;
	height: auto;
	aspect-ratio: 444 / 504;
	margin: 0 auto;
	align-self: center;
	justify-self: center;
	object-fit: contain;
	z-index: 0;
	pointer-events: none;
}

.vs-lcp-mockup--cover {
	aspect-ratio: 1164 / 550;
	width: 100%;
	max-width: 100%;
	object-fit: cover;
	object-position: center;
}

/* Hero mobile accueil — fond + espacement */

@media (max-width: 1024px) {

	.progressCounter {
		bottom: 18px;
		right: 18px;
	}
}

/* Police d'icônes Martex (flaticon) — servie en local */
@font-face {
	font-family: 'flaticon';
	src:
		url('/wp-content/themes/martex/assets/fonts/flaticon.woff2') format('woff2'),
		url('/wp-content/themes/martex/assets/fonts/flaticon.woff') format('woff'),
		url('/wp-content/themes/martex/assets/fonts/flaticon.ttf') format('truetype');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

/* Mockup vidéo laptop/smartphone — image inline (section bas de page) */

/* Elementor — séparateurs de section (manquants dans le bundle CSS local de l'accueil) */
.elementor-shape {
	direction: ltr;
	left: 0;
	line-height: 0;
	overflow: hidden;
	position: absolute;
	width: 100%;
}

.elementor-shape-bottom {
	bottom: -1px;
}

.elementor-shape-bottom:not([data-negative='true']) svg {
	z-index: -1;
}

.elementor-shape[data-negative='false'].elementor-shape-bottom {
	transform: rotate(180deg);
}

.elementor-shape svg {
	display: block;
	left: 50%;
	position: relative;
	transform: translateX(-50%);
	width: calc(100% + 1.3px);
}

.elementor-shape .elementor-shape-fill {
	fill: #fff;
	transform: rotateY(0deg);
	transform-origin: center;
}

/* Icônes ElementsKit (police locale — chemin WordPress 404 en dev Astro) */
@font-face {
	font-family: elementskit;
	src: url('/wp-content/fonts/ekit-icons.woff') format('woff');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}


.elementor-widget .icon:before {
	font-family: elementskit !important;
}

/* Pages intérieures — header blanc (navbar-dark) */
#header.navbar-dark .wsmainfull {
	background-color: #fff !important;
}

#header.navbar-dark .logo-white {
	display: none !important;
}

#header.navbar-dark .logo-black {
	display: block !important;
}

/* Page revendeur — correctifs minimaux */
.elementor-12514 .elementor-element.elementor-element-d70cf83 {
	padding-top: calc(40px + 78px) !important;
	padding-bottom: 10px !important;
}

/* Bouton play — pages secteurs (fond blanc, icône bleue) */

/* Bouton play — accueil (bleu comme le live) */

/* Centrage sur l'écran du mockup (pas sur toute l'image) */

/* Page revendeur — image hero (img-08.png ne se sert pas en dev Astro) */
.elementor-12514 .elementor-element.elementor-element-6177ccf:not(.elementor-motion-effects-element-type-background) > .elementor-widget-wrap {
	background-image: url('/wp-content/uploads/2023/07/revendeur-hero.png') !important;
	background-position: center center !important;
	background-repeat: no-repeat !important;
	background-size: contain !important;
}

/* Page revendeur — section contact « Devenir Partenaire » */

/* Page revendeur — section contact « Devenir Partenaire » */
body.page-id-12514 .vs-partner-contact-meta {
	margin-top: 20px;
	width: 100%;
}

body.page-id-12514 .vs-partner-contact-inner {
	display: grid;
	grid-template-columns: 1fr 1fr;
	column-gap: 24px;
	max-width: 765px;
	margin: 0 auto;
	padding: 0 15px;
	text-align: center;
}

body.page-id-12514 .vs-partner-contact-phone,
body.page-id-12514 .vs-partner-contact-email {
	font-family: 'Roboto', sans-serif;
	font-size: 20px;
	font-weight: 600;
	color: #0d6efd !important;
	line-height: 1.4;
	margin: 0;
}

body.page-id-12514 .vs-partner-contact-email a {
	color: inherit !important;
	text-decoration: none !important;
	font-weight: inherit !important;
}

body.page-id-12514 .vs-partner-contact-email a:hover,
body.page-id-12514 .vs-partner-contact-email a:focus,
body.page-id-12514 .vs-partner-contact-email a:visited {
	color: inherit !important;
}

/* Ligne avec fondu sur les bords — comme hr.divider Martex / Elementor WP */

@media (max-width: 767px) {
	body.page-id-12514 .vs-partner-contact-inner {
		grid-template-columns: 1fr;
		row-gap: 10px;
		text-align: center;
	}
}

/* Vidéos YouTube Elementor (sans le JS Elementor) */

.elementor-widget-video .elementor-video {
	width: 100%;
	height: 100%;
	line-height: 0;
}

.elementor-widget-video .elementor-video iframe {
	width: 100%;
	height: 100%;
	border: 0;
	display: block;
}

/* Pages secteurs — vidéo « 1 minute pour comprendre » lisible sur mobile */

/* Bouton WhatsApp flottant (remplace le plugin WordPress qlwapp) */
.qlwapp {
	display: none !important;
}

.vs-whatsapp-float {
	position: fixed;
	bottom: 25px;
	left: 25px;
	z-index: 9999;
	width: 60px;
	height: 60px;
	border-radius: 50%;
	background: #25d366;
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	transition: transform 0.2s ease;
	text-decoration: none !important;
}

@media (max-width: 991px) {
	.vs-whatsapp-float {
		bottom: 16px;
		left: 16px;
		width: 48px;
		height: 48px;
	}

	.vs-whatsapp-float svg {
		width: 26px;
		height: 26px;
	}
}

.vs-whatsapp-float:hover,
.vs-whatsapp-float:focus {
	color: #fff;
	transform: scale(1.05);
}

.vs-whatsapp-float svg {
	width: 34px;
	height: 34px;
	fill: #fff;
	flex-shrink: 0;
}

/* Scroll-to-top Martex — évite un bloc blanc si le JS ne s'initialise pas */
.progressCounter {
	position: fixed;
	bottom: 20px;
	right: 20px;
	z-index: 12345;
}

footer.footer-section {
	margin-bottom: 0 !important;
}

footer.footer-section .footer-widgets {
	padding-top: 56px !important;
	padding-bottom: 24px !important;
}

footer.footer-section .footer-col-1 .wp-block-paragraph {
	font-size: 0.88rem;
	line-height: 1.5;
	color: rgba(255, 255, 255, 0.72);
}

footer.footer-section .footer-office {
	margin-top: 12px;
}

footer.footer-section .footer-col-1 a,
footer.footer-section .footer-contact-lines a {
	color: inherit;
	text-decoration: none;
}

footer.footer-section .footer-col-1 a:hover,
footer.footer-section .footer-contact-lines a:hover {
	color: #fff;
	text-decoration: underline;
}

footer.footer-section .footer-contact-lines {
	line-height: 1.7;
}

footer.footer-section .footer-contact-lines a {
	display: inline-block;
}

footer.footer-section .copyright-section {
	padding-bottom: 28px !important;
}

footer.footer-section .footer-widgets .row {
	align-items: flex-start;
}

footer.footer-section .footer-widget-title,
footer.footer-section .wp-block-heading {
	margin: 0 0 28px !important;
	padding: 0 !important;
	font-size: 1.0625rem !important;
	font-weight: 700 !important;
	line-height: 1.3 !important;
	color: #fff !important;
}

footer.footer-section .footer-col-5 {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: flex-start;
}

footer.footer-section .footer-col-5 .footer-widget {
	width: 100%;
	margin: 0;
	padding: 0;
}

footer.footer-section .wp-block-social-links {
	display: flex !important;
	flex-direction: row !important;
	flex-wrap: nowrap;
	align-items: center;
	gap: 12px;
	margin: 10px 0 0 !important;
	padding: 0;
}

footer.footer-section .wp-block-social-link {
	width: auto !important;
	margin: 0 !important;
}

/* Page Offres — fond hero (slideshow Elementor remplacé par image statique) */

/* Elementor spacer — règle de base absente des bundles CSS locaux */

/* Section témoignages — prénom + titre alignés à gauche */

/* Section témoignages — pages secteurs (4 colonnes égales) */

/* Pages secteurs — hero (même gabarit Elementor que revendeur) */

.wpcf7-system-error,
form.wpcf7-form .wpcf7-response-output[aria-hidden='true'] {
	display: none !important;
}

/* Contact form : masquer le spinner CF7 (envoi géré par contact-form.js) */
.contact-form-msg .loading {
	display: none;
}

/* Dashicons retirées du head pour les perfs */
.menu-item i.dashicons {
	display: none !important;
}

form.wpcf7-form .wpcf7-spinner {
	display: none !important;
}

form.wpcf7-form .has-spinner::after {
	display: none !important;
}
