/*
Theme Name: Videosafe
Description: Thème sur mesure pour Videosafe, installateur de vidéosurveillance. Il habille les pages importées de Joomla sans modifier leur contenu : menu à panneaux, colonne « Devis gratuit », pied de page, grille compatible avec le HTML d'origine.
Version: 1.0.6
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: videosafe
*/

/* ------------------------------------------------------------------ */
/* Polices (servies par le site, licence SIL OFL)                      */
/* ------------------------------------------------------------------ */

@font-face {
	font-family: "Source Sans 3";
	font-style: normal;
	font-weight: 300 800;
	font-display: swap;
	src: url("assets/fonts/source-sans-3-latin-wght-normal.woff2") format("woff2");
}

@font-face {
	font-family: "Source Sans 3";
	font-style: italic;
	font-weight: 300 800;
	font-display: swap;
	src: url("assets/fonts/source-sans-3-latin-wght-italic.woff2") format("woff2");
}

@font-face {
	font-family: "Barlow Semi Condensed";
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url("assets/fonts/barlow-semi-condensed-latin-600-normal.woff2") format("woff2");
}

@font-face {
	font-family: "Barlow Semi Condensed";
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url("assets/fonts/barlow-semi-condensed-latin-700-normal.woff2") format("woff2");
}

/* ------------------------------------------------------------------ */
/* Repères                                                             */
/* ------------------------------------------------------------------ */

:root {
	/* Bleu marine pour la structure, bleu soutenu pour les boutons et les repères.
	   Ces quatre valeurs sont recalculées d'après les réglages (Personnaliser > Videosafe). */
	--steel: #0f2f57;
	--steel-2: #2d496d;
	--steel-deep: #0b223f;
	--accent: #1c6dd0;
	--accent-strong: #185eb3;
	--on-accent: #fff;
	--accent-on-dark: #fff;

	--ink: #18222d;
	--muted: #53616f;
	--mist: #f0f4f9;
	--line: #cdd7e3;
	--paper: #fff;
	--link: #185eb3;

	/* Boutons « Demandez un devis » / « Contactez-nous » du texte des pages */
	--cta: #e8590c;
	--cta-strong: #c84d0a;
	--on-cta: #fff;

	--font-head: "Barlow Semi Condensed", "Arial Narrow", Arial, sans-serif;
	--font-body: "Source Sans 3", "Segoe UI", Roboto, Arial, sans-serif;

	--wrap: 1240px;
	--gutter: clamp(16px, 3.2vw, 32px);
	--radius: 3px;
	--header-h: 78px;
	--frame: var(--accent);
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: 1.0625rem;
	line-height: 1.6;
	text-rendering: optimizeLegibility;
}

img,
video,
iframe {
	max-width: 100%;
}

img {
	height: auto;
}

a {
	color: var(--link);
	text-underline-offset: 0.16em;
}

a:hover {
	color: var(--steel);
}

:focus-visible {
	outline: 3px solid var(--accent);
	outline-offset: 2px;
}

.vs-top :focus-visible,
.vs-call :focus-visible,
.vs-band :focus-visible,
.vs-footer :focus-visible,
.vs-dock :focus-visible,
.header-dark .vs-header__in > :focus-visible,
.header-dark .vs-menu > li > a:focus-visible,
.header-mid .vs-header__in > :focus-visible,
.header-mid .vs-menu > li > a:focus-visible {
	outline-color: #fff;
}

h1,
h2,
h3,
h4,
.vs-h {
	font-family: var(--font-head);
	font-weight: 600;
	color: var(--steel);
	line-height: 1.15;
	text-wrap: balance;
}

/* .vs-h : intitulés de la colonne et du pied de page. Même dessin qu'un titre, sans en être un
   pour Google : les titres d'une page sont ceux de son texte. */

.vs-wrap {
	width: 100%;
	max-width: var(--wrap);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.vs-skip {
	position: absolute;
	left: 8px;
	top: -60px;
	z-index: 100;
	padding: 10px 16px;
	background: var(--accent);
	color: var(--on-accent);
	font-weight: 600;
	text-decoration: none;
}

.vs-skip:focus {
	top: 8px;
}

/* ------------------------------------------------------------------ */
/* Cadre de visée : le repère visuel du site                            */
/* (quatre coins, comme dans le viseur d'une caméra)                    */
/* ------------------------------------------------------------------ */

.vs-frame {
	position: relative;
}

.vs-frame::before {
	content: "";
	position: absolute;
	inset: -1px;
	pointer-events: none;
	background:
		linear-gradient(var(--frame), var(--frame)) top left / 26px 3px no-repeat,
		linear-gradient(var(--frame), var(--frame)) top left / 3px 26px no-repeat,
		linear-gradient(var(--frame), var(--frame)) top right / 26px 3px no-repeat,
		linear-gradient(var(--frame), var(--frame)) top right / 3px 26px no-repeat,
		linear-gradient(var(--frame), var(--frame)) bottom left / 26px 3px no-repeat,
		linear-gradient(var(--frame), var(--frame)) bottom left / 3px 26px no-repeat,
		linear-gradient(var(--frame), var(--frame)) bottom right / 26px 3px no-repeat,
		linear-gradient(var(--frame), var(--frame)) bottom right / 3px 26px no-repeat;
}

/* ------------------------------------------------------------------ */
/* Boutons                                                             */
/* ------------------------------------------------------------------ */

.vs-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 10px 22px;
	border: 2px solid transparent;
	border-radius: var(--radius);
	font-family: var(--font-head);
	font-size: 1.125rem;
	font-weight: 600;
	letter-spacing: 0.01em;
	line-height: 1.2;
	text-decoration: none;
	transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.vs-btn--accent {
	background: var(--accent);
	color: var(--on-accent);
}

.vs-btn--accent:hover {
	background: var(--accent-strong);
	color: var(--on-accent);
}

.vs-btn--solid {
	background: #fff;
	color: var(--steel);
}

.vs-btn--solid:hover {
	background: var(--mist);
	color: var(--steel-deep);
}

.vs-btn--ghost {
	border-color: currentColor;
	color: inherit;
}

.vs-btn--ghost:hover {
	background: rgba(255, 255, 255, 0.14);
	color: inherit;
}

/* ------------------------------------------------------------------ */
/* Bandeau du haut                                                     */
/* ------------------------------------------------------------------ */

.vs-top {
	background: var(--steel-deep);
	color: #dfe7ed;
	font-size: 0.9375rem;
}

.vs-top__in {
	display: flex;
	align-items: center;
	gap: 28px;
	min-height: 38px;
}

.vs-top__hours {
	margin-left: auto;
}

.vs-top__tel {
	color: #fff;
	font-family: var(--font-head);
	font-size: 1.125rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	text-decoration: none;
	white-space: nowrap;
}

.vs-top__tel:hover {
	color: var(--accent-on-dark);
	text-decoration: underline;
}

/* ------------------------------------------------------------------ */
/* En-tête et menu principal                                           */
/* ------------------------------------------------------------------ */

.vs-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: var(--paper);
	color: var(--steel);
	border-bottom: 1px solid var(--line);
}

/* Barre d'administration de WordPress, pour les personnes connectées */
.admin-bar .vs-header {
	top: 32px;
}

@media (max-width: 782px) {
	.admin-bar .vs-header {
		top: 46px;
	}
}

@media (max-width: 600px) {
	.admin-bar .vs-header {
		top: 0;
	}
}

.header-dark .vs-header {
	background: var(--steel);
	color: #fff;
	border-bottom-color: var(--steel);
}

.header-mid .vs-header {
	background: var(--accent);
	color: var(--on-accent);
	border-bottom-color: var(--accent);
}

.vs-header__in {
	position: relative;
	display: flex;
	align-items: center;
	gap: 20px;
	min-height: var(--header-h);
}

.vs-logo {
	display: inline-flex;
	align-items: center;
	flex: none;
	margin-right: auto;
	color: inherit;
	text-decoration: none;
}

.vs-logo img {
	display: block;
	width: auto;
	height: auto;
	max-width: min(240px, 52vw);
	max-height: 54px;
}

.vs-logo--text {
	font-family: var(--font-head);
	font-size: 1.75rem;
	font-weight: 700;
	letter-spacing: 0.01em;
}

.vs-header__tel,
.vs-burger {
	display: none;
}

.vs-menu,
.vs-menu ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.vs-menu > li > a {
	font-family: var(--font-head);
	font-size: 1.125rem;
	font-weight: 600;
	letter-spacing: 0.01em;
	color: inherit;
	text-decoration: none;
}

.vs-sub-toggle {
	display: none;
}

@media (min-width: 1100px) {
	.vs-menu {
		display: flex;
		align-items: stretch;
		gap: 2px;
		height: var(--header-h);
	}

	.vs-menu > li {
		display: flex;
		align-items: center;
	}

	.vs-menu > li > a {
		position: relative;
		display: flex;
		align-items: center;
		height: 100%;
		padding: 0 13px;
		white-space: nowrap;
	}

	/* Trait d'accent sous l'élément survolé ou courant */
	.vs-menu > li > a::after {
		content: "";
		position: absolute;
		left: 13px;
		right: 13px;
		bottom: 0;
		height: 4px;
		background: var(--accent);
		transform: scaleX(0);
		transform-origin: left;
		transition: transform 0.18s ease;
	}

	.vs-menu > li:hover > a::after,
	.vs-menu > li:focus-within > a::after,
	.vs-menu > li.is-open > a::after,
	.vs-menu > li.current-menu-item > a::after,
	.vs-menu > li.current-menu-ancestor > a::after,
	.vs-menu > li.current-page-ancestor > a::after {
		transform: scaleX(1);
	}

	.vs-menu > li.menu-item-has-children > a {
		padding-right: 26px;
	}

	.vs-menu > li.menu-item-has-children > a::before {
		content: "";
		position: absolute;
		right: 11px;
		top: 50%;
		width: 7px;
		height: 7px;
		margin-top: -6px;
		border-right: 2px solid currentColor;
		border-bottom: 2px solid currentColor;
		transform: rotate(45deg);
		opacity: 0.7;
	}

	/* Panneau : toute la largeur du site, en colonnes */
	.vs-menu > li > .sub-menu {
		position: absolute;
		left: var(--gutter);
		right: var(--gutter);
		top: 100%;
		z-index: 60;
		display: block;
		padding: 22px 26px 26px;
		background: var(--paper);
		border: 1px solid var(--line);
		border-top: 4px solid var(--accent);
		box-shadow: 0 22px 34px -22px rgba(13, 36, 54, 0.45);
		column-gap: 30px;
		column-rule: 1px solid var(--mist);
		visibility: hidden;
		opacity: 0;
		transition: opacity 0.14s ease, visibility 0s linear 0.14s;
	}

	.vs-menu > li.vs-cols-2 > .sub-menu { column-count: 2; }
	.vs-menu > li.vs-cols-3 > .sub-menu { column-count: 3; }
	.vs-menu > li.vs-cols-4 > .sub-menu { column-count: 4; }

	.vs-menu > li:hover > .sub-menu,
	.vs-menu > li:focus-within > .sub-menu,
	.vs-menu > li.is-open > .sub-menu {
		visibility: visible;
		opacity: 1;
		transition-delay: 0s;
	}

	/* Fermé d'un appui sur Échap, même si la souris est encore dessus */
	.vs-menu > li.is-closed > .sub-menu {
		visibility: hidden;
		opacity: 0;
	}

	.vs-menu .sub-menu li {
		break-inside: avoid;
	}

	.vs-menu .sub-menu a {
		display: block;
		padding: 7px 10px;
		border-radius: var(--radius);
		color: var(--ink);
		font-size: 1rem;
		line-height: 1.3;
		text-decoration: none;
	}

	.vs-menu .sub-menu a:hover,
	.vs-menu .sub-menu .current-menu-item > a {
		background: var(--mist);
		color: var(--steel);
	}

	.vs-menu .sub-menu .current-menu-item > a {
		box-shadow: inset 3px 0 0 var(--accent);
	}

	/* Troisième niveau : liste en retrait, dans la même colonne */
	.vs-menu .sub-menu .sub-menu {
		margin: 0 0 4px 12px;
		padding-left: 8px;
		border-left: 2px solid var(--line);
	}

	.vs-menu .sub-menu .sub-menu a {
		padding-block: 5px;
		color: var(--muted);
		font-size: 0.9375rem;
	}

	/* Bouton « Devis » */
	.vs-menu > li.vs-menu-cta {
		margin-left: 12px;
	}

	.vs-menu > li.vs-menu-cta > a {
		height: 46px;
		padding: 0 20px;
		border-radius: var(--radius);
		background: var(--accent);
		color: var(--on-accent);
	}

	.vs-menu > li.vs-menu-cta > a::after {
		display: none;
	}

	.vs-menu > li.vs-menu-cta > a:hover {
		background: var(--accent-strong);
	}

	/* Sur un en-tête coloré, le trait et le bouton passent en blanc pour rester visibles */
	.header-dark .vs-menu > li > a::after,
	.header-mid .vs-menu > li > a::after {
		background: #fff;
	}

	.header-dark .vs-menu > li.vs-menu-cta > a,
	.header-mid .vs-menu > li.vs-menu-cta > a {
		background: #fff;
		color: var(--steel);
	}

	.header-dark .vs-menu > li.vs-menu-cta > a:hover,
	.header-mid .vs-menu > li.vs-menu-cta > a:hover {
		background: var(--mist);
	}
}

/* --- Menu sur tablette et téléphone ---------------------------------- */

@media (max-width: 1099.98px) {
	:root {
		--header-h: 64px;
	}

	.vs-logo img {
		max-height: 44px;
	}

	.vs-header__tel {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 46px;
		height: 46px;
		border-radius: var(--radius);
		color: inherit;
	}

	.vs-burger {
		display: inline-flex;
		align-items: center;
		gap: 10px;
		height: 46px;
		padding: 0 12px;
		border: 1px solid currentColor;
		border-radius: var(--radius);
		background: none;
		color: inherit;
		font-family: var(--font-head);
		font-size: 1.0625rem;
		font-weight: 600;
		cursor: pointer;
	}

	.vs-burger__bars,
	.vs-burger__bars::before,
	.vs-burger__bars::after {
		display: block;
		width: 20px;
		height: 2px;
		background: currentColor;
		transition: transform 0.18s ease, opacity 0.18s ease;
	}

	.vs-burger__bars {
		position: relative;
	}

	.vs-burger__bars::before,
	.vs-burger__bars::after {
		content: "";
		position: absolute;
		left: 0;
	}

	.vs-burger__bars::before { top: -6px; }
	.vs-burger__bars::after { top: 6px; }

	.vs-burger[aria-expanded="true"] .vs-burger__bars { background: transparent; }
	.vs-burger[aria-expanded="true"] .vs-burger__bars::before { transform: translateY(6px) rotate(45deg); }
	.vs-burger[aria-expanded="true"] .vs-burger__bars::after { transform: translateY(-6px) rotate(-45deg); }

	.vs-nav {
		position: fixed;
		inset: calc(var(--header-top, 0px) + var(--header-h)) 0 0 0;
		z-index: 49;
		display: none;
		overflow-y: auto;
		overscroll-behavior: contain;
		padding: 8px var(--gutter) 120px;
		background: var(--paper);
		color: var(--steel);
		border-top: 1px solid var(--line);
	}

	.vs-nav.is-open {
		display: block;
	}

	.vs-menu > li {
		display: grid;
		grid-template-columns: 1fr auto;
		align-items: center;
		border-bottom: 1px solid var(--line);
	}

	.vs-menu > li > a {
		display: block;
		padding: 15px 2px;
		font-size: 1.25rem;
	}

	.vs-sub-toggle {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 48px;
		height: 48px;
		border: 0;
		border-left: 1px solid var(--line);
		background: none;
		color: inherit;
		cursor: pointer;
	}

	.vs-sub-toggle::before {
		content: "";
		width: 9px;
		height: 9px;
		margin-top: -4px;
		border-right: 2px solid currentColor;
		border-bottom: 2px solid currentColor;
		transform: rotate(45deg);
		transition: transform 0.18s ease;
	}

	.vs-sub-toggle[aria-expanded="true"]::before {
		margin-top: 4px;
		transform: rotate(-135deg);
	}

	.vs-menu > li > .sub-menu {
		grid-column: 1 / -1;
		display: none;
		padding: 0 0 12px;
	}

	.vs-menu > li.is-open > .sub-menu {
		display: block;
	}

	.vs-menu .sub-menu a {
		display: block;
		padding: 10px 2px 10px 14px;
		border-left: 2px solid var(--line);
		color: var(--ink);
		font-size: 1.0625rem;
		text-decoration: none;
	}

	.vs-menu .sub-menu .sub-menu a {
		padding-left: 30px;
		color: var(--muted);
	}

	.vs-menu > li.vs-menu-cta {
		border-bottom: 0;
		padding-top: 18px;
	}

	.vs-menu > li.vs-menu-cta > a {
		grid-column: 1 / -1;
		padding: 13px 18px;
		border-radius: var(--radius);
		background: var(--accent);
		color: var(--on-accent);
		text-align: center;
	}

	body.vs-nav-open {
		overflow: hidden;
	}
}

@media (max-width: 720px) {
	.vs-top__area,
	.vs-top__hours {
		display: none;
	}

	.vs-top__in {
		justify-content: center;
	}
}

/* ------------------------------------------------------------------ */
/* Mise en page : contenu + colonne                                    */
/* ------------------------------------------------------------------ */

.vs-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 40px;
	padding-block: 26px 64px;
}

@media (min-width: 1024px) {
	.vs-layout {
		grid-template-columns: minmax(0, 1fr) 332px;
		gap: 56px;
		align-items: start;
	}

	.vs-layout--single {
		grid-template-columns: minmax(0, 760px);
	}

	/* La colonne suit la lecture. Si elle est plus haute que la fenêtre, le script la cale par le bas
	   (--aside-top) pour que le bouton d'envoi reste toujours atteignable. */
	.vs-aside__in {
		position: sticky;
		top: var(--aside-top, calc(var(--header-h) + 24px));
	}
}

/* --- Fil d'Ariane ------------------------------------------------------ */

.vs-crumbs ol {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 0;
	margin: 0 0 22px;
	padding: 0;
	list-style: none;
	color: var(--muted);
	font-size: 0.9375rem;
}

.vs-crumbs li + li::before {
	content: "/";
	margin: 0 9px;
	color: var(--line);
}

.vs-crumbs a {
	color: var(--muted);
	text-decoration: none;
}

.vs-crumbs a:hover {
	color: var(--steel);
	text-decoration: underline;
}

.vs-crumbs [aria-current] {
	color: var(--steel);
	font-weight: 600;
}

/* --- Bandeau de page : l'image vue dans le viseur ---------------------- */

.vs-banner {
	--frame: #fff;
	width: fit-content;
	max-width: 100%;
	margin: 0 auto 26px;
	background: var(--mist);
}

.vs-banner p {
	margin: 0;
}

.vs-banner img {
	display: block;
}

.vs-banner.vs-frame::before {
	inset: 12px;
	filter: drop-shadow(0 0 2px rgba(13, 36, 54, 0.55));
}

/* --- Titre ------------------------------------------------------------- */

.vs-title {
	margin: 0 0 22px;
	font-size: clamp(2rem, 1.4rem + 2.1vw, 2.875rem);
	font-weight: 700;
	letter-spacing: -0.005em;
	line-height: 1.08;
}

/* ------------------------------------------------------------------ */
/* Contenu importé                                                     */
/* ------------------------------------------------------------------ */

.entry-content {
	overflow-wrap: break-word;
}

.entry-content > :first-child {
	margin-top: 0;
}

.entry-content p {
	margin: 0 0 1em;
}

.entry-content h1 {
	margin: 0 0 0.6em;
	font-size: clamp(2rem, 1.4rem + 2.1vw, 2.875rem);
	font-weight: 700;
	line-height: 1.08;
}

.entry-content h2 {
	position: relative;
	margin: 1.9em 0 0.7em;
	padding-top: 16px;
	font-size: clamp(1.5rem, 1.25rem + 0.9vw, 1.9375rem);
	/* Les titres portent parfois un alignement « justifié » hérité de l'éditeur */
	text-align: left !important;
}

.entry-content h2::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0;
	width: 44px;
	height: 4px;
	background: var(--accent);
}

.entry-content h3 {
	margin: 1.5em 0 0.45em;
	font-size: 1.3125rem;
	text-align: left !important;
}

.entry-content h4 {
	margin: 1.2em 0 0.4em;
	font-family: var(--font-body);
	font-size: 1rem;
	font-weight: 600;
	color: var(--muted);
}

.entry-content [class*="col-"] > h3:first-child,
.entry-content [class*="col-"] > h4:first-child {
	margin-top: 0.2em;
}

.entry-content h3 + h4 {
	margin-top: -0.2em;
}

.entry-content ul,
.entry-content ol {
	margin: 0 0 1em;
	padding-left: 1.25em;
}

.entry-content ul {
	list-style: none;
	padding-left: 0;
}

.entry-content ul > li {
	position: relative;
	margin-bottom: 0.35em;
	padding-left: 1.2em;
}

.entry-content ul > li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.62em;
	width: 7px;
	height: 7px;
	background: var(--accent);
}

.entry-content strong,
.entry-content b {
	font-weight: 650;
}

/* Texte justifié par l'éditeur d'origine : césures pour éviter les trous */
.entry-content [style*="justify"] {
	-webkit-hyphens: auto;
	hyphens: auto;
}

/* Dans une colonne étroite, la justification creuse des blancs : alignement à gauche */
.entry-content [class*="col-"][style*="justify"]:not([class*="-7"]):not([class*="-8"]):not([class*="-9"]):not([class*="-10"]):not([class*="-11"]):not([class*="-12"]) {
	text-align: left !important;
	-webkit-hyphens: manual;
	hyphens: manual;
}

/* Boutons « Demandez un devis » et « Contactez-nous » : du texte à la place des bandeaux image
   de l'ancien site, au même endroit et à peu près au même format (283 x 67). */
.entry-content .vs-cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.6em;
	box-sizing: border-box;
	min-width: min(283px, 100%);
	min-height: 67px;
	padding: 12px 28px;
	border-radius: var(--radius);
	background: var(--cta);
	color: var(--on-cta);
	font-family: var(--font-head);
	font-size: 1.375rem;
	font-weight: 700;
	letter-spacing: 0.01em;
	line-height: 1.15;
	text-align: center;
	text-decoration: none;
	-webkit-hyphens: manual;
	hyphens: manual;
	transition: background-color 0.15s ease;
}

.entry-content .vs-cta--center {
	display: flex;
	width: -moz-fit-content;
	width: fit-content;
	margin-left: auto;
	margin-right: auto;
}

.entry-content .vs-cta::after {
	content: "";
	flex: none;
	width: 0.42em;
	height: 0.42em;
	border-top: 3px solid currentColor;
	border-right: 3px solid currentColor;
	transform: rotate(45deg);
	transition: transform 0.15s ease;
}

.entry-content a.vs-cta:hover,
.entry-content a:hover > .vs-cta {
	background: var(--cta-strong);
	color: var(--on-cta);
}

.entry-content a.vs-cta:hover::after,
.entry-content a:hover > .vs-cta::after {
	transform: translateX(3px) rotate(45deg);
}

.entry-content a.vs-cta:focus-visible {
	outline-color: var(--steel);
}

/* Paragraphes vides de l'éditeur : un espacement régulier, jamais deux de suite */
.entry-content .vs-spacer {
	height: 14px;
	margin: 0;
}

.entry-content .vs-spacer + .vs-spacer,
.entry-content > .vs-spacer:first-child,
.entry-content > .vs-spacer:last-child,
.entry-content h2 + .vs-spacer {
	display: none;
}

/* --- Grille d'origine (classes Bootstrap de l'ancien site) --------------- */

.entry-content .container,
.entry-content .container-fluid {
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
}

.entry-content .row {
	display: flex;
	flex-wrap: wrap;
	margin: 0 -14px;
}

.entry-content .row > * {
	width: 100%;
	max-width: 100%;
	padding: 0 14px;
	margin-bottom: 18px;
}

.entry-content .row > .col {
	flex: 1 0 0%;
}

.entry-content .col-1 { flex: 0 0 8.3333%; max-width: 8.3333%; }
.entry-content .col-2 { flex: 0 0 16.6667%; max-width: 16.6667%; }
.entry-content .col-3 { flex: 0 0 25%; max-width: 25%; }
.entry-content .col-4 { flex: 0 0 33.3333%; max-width: 33.3333%; }
.entry-content .col-5 { flex: 0 0 41.6667%; max-width: 41.6667%; }
.entry-content .col-6 { flex: 0 0 50%; max-width: 50%; }
.entry-content .col-7 { flex: 0 0 58.3333%; max-width: 58.3333%; }
.entry-content .col-8 { flex: 0 0 66.6667%; max-width: 66.6667%; }
.entry-content .col-9 { flex: 0 0 75%; max-width: 75%; }
.entry-content .col-10 { flex: 0 0 83.3333%; max-width: 83.3333%; }
.entry-content .col-11 { flex: 0 0 91.6667%; max-width: 91.6667%; }
.entry-content .col-12 { flex: 0 0 100%; max-width: 100%; }

@media (min-width: 576px) {
	.entry-content .col-sm { flex: 1 0 0%; }
	.entry-content .col-sm-1 { flex: 0 0 8.3333%; max-width: 8.3333%; }
	.entry-content .col-sm-2 { flex: 0 0 16.6667%; max-width: 16.6667%; }
	.entry-content .col-sm-3 { flex: 0 0 25%; max-width: 25%; }
	.entry-content .col-sm-4 { flex: 0 0 33.3333%; max-width: 33.3333%; }
	.entry-content .col-sm-5 { flex: 0 0 41.6667%; max-width: 41.6667%; }
	.entry-content .col-sm-6 { flex: 0 0 50%; max-width: 50%; }
	.entry-content .col-sm-7 { flex: 0 0 58.3333%; max-width: 58.3333%; }
	.entry-content .col-sm-8 { flex: 0 0 66.6667%; max-width: 66.6667%; }
	.entry-content .col-sm-9 { flex: 0 0 75%; max-width: 75%; }
	.entry-content .col-sm-10 { flex: 0 0 83.3333%; max-width: 83.3333%; }
	.entry-content .col-sm-11 { flex: 0 0 91.6667%; max-width: 91.6667%; }
	.entry-content .col-sm-12 { flex: 0 0 100%; max-width: 100%; }
}

@media (min-width: 768px) {
	.entry-content .col-md { flex: 1 0 0%; }
	.entry-content .col-md-1 { flex: 0 0 8.3333%; max-width: 8.3333%; }
	.entry-content .col-md-2 { flex: 0 0 16.6667%; max-width: 16.6667%; }
	.entry-content .col-md-3 { flex: 0 0 25%; max-width: 25%; }
	.entry-content .col-md-4 { flex: 0 0 33.3333%; max-width: 33.3333%; }
	.entry-content .col-md-5 { flex: 0 0 41.6667%; max-width: 41.6667%; }
	.entry-content .col-md-6 { flex: 0 0 50%; max-width: 50%; }
	.entry-content .col-md-7 { flex: 0 0 58.3333%; max-width: 58.3333%; }
	.entry-content .col-md-8 { flex: 0 0 66.6667%; max-width: 66.6667%; }
	.entry-content .col-md-9 { flex: 0 0 75%; max-width: 75%; }
	.entry-content .col-md-10 { flex: 0 0 83.3333%; max-width: 83.3333%; }
	.entry-content .col-md-11 { flex: 0 0 91.6667%; max-width: 91.6667%; }
	.entry-content .col-md-12 { flex: 0 0 100%; max-width: 100%; }
}

@media (min-width: 992px) {
	.entry-content .col-lg { flex: 1 0 0%; }
	.entry-content .col-lg-1 { flex: 0 0 8.3333%; max-width: 8.3333%; }
	.entry-content .col-lg-2 { flex: 0 0 16.6667%; max-width: 16.6667%; }
	.entry-content .col-lg-3 { flex: 0 0 25%; max-width: 25%; }
	.entry-content .col-lg-4 { flex: 0 0 33.3333%; max-width: 33.3333%; }
	.entry-content .col-lg-5 { flex: 0 0 41.6667%; max-width: 41.6667%; }
	.entry-content .col-lg-6 { flex: 0 0 50%; max-width: 50%; }
	.entry-content .col-lg-7 { flex: 0 0 58.3333%; max-width: 58.3333%; }
	.entry-content .col-lg-8 { flex: 0 0 66.6667%; max-width: 66.6667%; }
	.entry-content .col-lg-9 { flex: 0 0 75%; max-width: 75%; }
	.entry-content .col-lg-10 { flex: 0 0 83.3333%; max-width: 83.3333%; }
	.entry-content .col-lg-11 { flex: 0 0 91.6667%; max-width: 91.6667%; }
	.entry-content .col-lg-12 { flex: 0 0 100%; max-width: 100%; }
}

/* Une rangée d'images seules (photos, logos) reste en rangée, même sur téléphone */
.entry-content .row:not(:has(> [class*="col-"] > :not(img))) > [class*="col-"] {
	flex: 1 1 0;
	max-width: none;
	margin-bottom: 10px;
}

.entry-content [class*="col-"] > img,
.entry-content .joomla-module img {
	display: block;
	margin-inline: auto;
}

.entry-content [class*="col-"] > :last-child {
	margin-bottom: 0;
}

.entry-content .joomla-module {
	margin: 0 0 1.4em;
}

.entry-content iframe {
	display: block;
	width: 100%;
	border: 1px solid var(--line);
}

.entry-content table {
	width: 100%;
	margin: 0 0 1.2em;
	border-collapse: collapse;
}

.entry-content th,
.entry-content td {
	padding: 9px 12px;
	border: 1px solid var(--line);
	text-align: left;
	vertical-align: top;
}

.entry-content th {
	background: var(--mist);
	font-family: var(--font-head);
	font-weight: 600;
	color: var(--steel);
}

@media (max-width: 640px) {
	/* Sur un petit écran, le texte justifié se lit mal */
	.entry-content [style*="justify"] {
		text-align: left !important;
	}
}

/* ------------------------------------------------------------------ */
/* Colonne : téléphone et devis                                        */
/* ------------------------------------------------------------------ */

.vs-call {
	padding: 22px 24px 20px;
	border-top: 4px solid var(--accent);
	background: var(--steel);
	color: #fff;
	text-align: center;
}

.vs-call p {
	margin: 0;
}

.vs-call__title {
	font-family: var(--font-head);
	font-size: 1.25rem;
	font-weight: 600;
}

.vs-call__number {
	display: block;
	margin: 2px 0 6px;
	color: var(--accent-on-dark);
	font-family: var(--font-head);
	font-size: 2.125rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	line-height: 1.15;
	text-decoration: none;
	white-space: nowrap;
}

.vs-call__number:hover {
	color: #fff;
	text-decoration: underline;
	text-decoration-thickness: 2px;
}

.vs-call__photo {
	display: block;
	margin: 12px auto 10px;
}

.vs-call__photo img {
	display: block;
	max-height: 190px;
	width: auto;
	margin-inline: auto;
}

.vs-call__hours {
	color: #d5dfe7;
	font-size: 0.9375rem;
}

.vs-quote {
	margin-top: 26px;
	padding: 24px 24px 26px;
	background: var(--mist);
}

.vs-quote__title {
	margin: 0 0 14px;
	font-size: 1.5rem;
}

.vs-form--page {
	max-width: 640px;
	margin: 1.4em 0;
	padding: 26px clamp(18px, 4vw, 34px) 30px;
	background: var(--mist);
}

.vs-form-fallback {
	margin: 0;
}

/* --- Formulaires WPForms, aux couleurs du site -------------------------- */

/* WPForms limite ses champs « moyens » à 60 % de la largeur : dans la colonne et sur la page Devis,
   ils occupent toute la largeur disponible. */
.vs-form .wpforms-container .wpforms-field input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
.vs-form .wpforms-container .wpforms-field select,
.vs-form .wpforms-container .wpforms-field textarea,
.vs-form .wpforms-container .wpforms-field .wpforms-field-row,
.vs-form .wpforms-container .wpforms-field .choices {
	width: 100% !important;
	max-width: 100% !important;
}

.vs-form .wpforms-container,
.entry-content .wpforms-container {
	margin: 0;
	--wpforms-button-background-color: var(--accent);
	--wpforms-button-text-color: var(--on-accent);
	--wpforms-button-border-radius: 3px;
	--wpforms-field-border-radius: 3px;
	--wpforms-label-color: var(--ink);
	--wpforms-field-border-color: #9eaebb;
}

.vs-form .wpforms-field,
.entry-content .wpforms-container .wpforms-field {
	padding: 0 0 14px;
}

.vs-form label,
.entry-content .wpforms-container label {
	display: block;
	margin-bottom: 4px;
	font-weight: 600;
}

.vs-form input[type="text"],
.vs-form input[type="email"],
.vs-form input[type="tel"],
.vs-form input[type="number"],
.vs-form input[type="url"],
.vs-form select,
.vs-form textarea,
.entry-content .wpforms-container input[type="text"],
.entry-content .wpforms-container input[type="email"],
.entry-content .wpforms-container input[type="tel"],
.entry-content .wpforms-container input[type="number"],
.entry-content .wpforms-container select,
.entry-content .wpforms-container textarea {
	width: 100%;
	max-width: 100%;
	min-height: 46px;
	padding: 9px 12px;
	border: 1px solid #9eaebb;
	border-radius: var(--radius);
	background: #fff;
	color: var(--ink);
	font: inherit;
}

.vs-form textarea,
.entry-content .wpforms-container textarea {
	min-height: 120px;
}

.vs-form input:focus,
.vs-form select:focus,
.vs-form textarea:focus,
.entry-content .wpforms-container input:focus,
.entry-content .wpforms-container select:focus,
.entry-content .wpforms-container textarea:focus {
	border-color: var(--steel);
	outline: 3px solid var(--accent);
	outline-offset: 1px;
}

.vs-form button[type="submit"],
.vs-form input[type="submit"],
.entry-content .wpforms-container button[type="submit"] {
	width: 100%;
	min-height: 50px;
	padding: 10px 22px;
	border: 0 !important;
	border-radius: var(--radius) !important;
	background: var(--accent) !important;
	color: var(--on-accent) !important;
	font-family: var(--font-head);
	font-size: 1.1875rem;
	font-weight: 600;
	letter-spacing: 0.01em;
	cursor: pointer;
}

.vs-form button[type="submit"]:hover,
.vs-form input[type="submit"]:hover,
.entry-content .wpforms-container button[type="submit"]:hover {
	background: var(--accent-strong) !important;
}

/* ------------------------------------------------------------------ */
/* Bandeau d'appel et pied de page                                     */
/* ------------------------------------------------------------------ */

.vs-band {
	background: var(--accent);
	color: var(--on-accent);
}

.vs-band__in {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 18px 40px;
	padding-block: 34px;
}

.vs-band__title {
	margin: 0 0 4px;
	color: inherit;
	font-size: clamp(1.625rem, 1.3rem + 1.1vw, 2.125rem);
}

.vs-band p {
	margin: 0;
	opacity: 0.92;
}

.vs-band__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.vs-footer {
	background: var(--steel-deep);
	color: #cfdae3;
	font-size: 1rem;
}

.vs-footer__cols {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
	gap: 34px 40px;
	padding-block: 48px 36px;
}

.vs-footer p {
	margin: 0 0 6px;
}

.vs-footer ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.vs-footer li {
	margin-bottom: 6px;
}

.vs-footer a {
	color: #fff;
	text-decoration-color: rgba(255, 255, 255, 0.35);
}

.vs-footer a:hover {
	color: var(--accent-on-dark);
	text-decoration-color: currentColor;
}

.vs-footer__brand {
	color: #fff;
	font-family: var(--font-head);
	font-size: 1.625rem;
	font-weight: 700;
	letter-spacing: 0.01em;
}

.vs-footer__title {
	margin: 0 0 12px;
	padding-bottom: 9px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.2);
	color: #fff;
	font-size: 1.1875rem;
}

.vs-footer__zones {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 6px 22px;
	padding-block: 18px 20px;
	border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.vs-footer__zones-title {
	color: #fff;
	font-size: 1.0625rem;
}

.vs-footer__zones ul {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 20px;
}

.vs-footer__zones li {
	margin: 0;
}

.vs-footer__zones a {
	display: inline-block;
	padding-block: 5px;
}

.vs-footer__legal {
	padding-block: 16px 22px;
	border-top: 1px solid rgba(255, 255, 255, 0.14);
	color: #9fb2c1;
	font-size: 0.9375rem;
}

.vs-footer__legal p {
	margin: 0;
}

/* --- Barre d'action sur téléphone --------------------------------------- */

.vs-dock {
	display: none;
}

@media (max-width: 767.98px) {
	.vs-dock {
		position: fixed;
		inset: auto 0 0 0;
		z-index: 40;
		display: grid;
		grid-auto-flow: column;
		grid-auto-columns: 1fr;
		background: var(--steel-deep);
		border-top: 1px solid rgba(255, 255, 255, 0.18);
		padding-bottom: env(safe-area-inset-bottom, 0);
	}

	.vs-dock a {
		display: flex;
		align-items: center;
		justify-content: center;
		min-height: 54px;
		font-family: var(--font-head);
		font-size: 1.1875rem;
		font-weight: 600;
		text-decoration: none;
	}

	.vs-dock__call {
		color: #fff;
	}

	.vs-dock__quote {
		background: var(--accent);
		color: var(--on-accent);
	}

	.vs-footer__legal {
		padding-bottom: 76px;
	}

	.vs-band__actions,
	.vs-band__actions .vs-btn {
		width: 100%;
	}
}

/* ------------------------------------------------------------------ */
/* Divers                                                              */
/* ------------------------------------------------------------------ */

.vs-teaser {
	padding: 18px 0;
	border-bottom: 1px solid var(--line);
}

.vs-teaser__title {
	margin: 0 0 6px;
	font-size: 1.5rem;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		transition: none !important;
		scroll-behavior: auto !important;
	}
}

@media print {
	.vs-top,
	.vs-header,
	.vs-aside,
	.vs-band,
	.vs-footer,
	.vs-dock,
	.vs-crumbs {
		display: none !important;
	}

	.vs-layout {
		display: block;
		padding: 0;
	}

	.entry-content .vs-cta {
		border: 1px solid #000;
		background: none;
		color: #000;
	}
}
