/*
 Theme Name:   Vent & Clim Saguenay
 Description:  Thème enfant de Sinatra pour Vent & Clim Saguenay (mise en page Elementor).
 Template:     sinatra
 Version:      1.0.0
 Text Domain:  sinatra-child
*/

:root {
	--vc-bleu: #4a92b1;
	--vc-bleu-fonce: #3a7a96;
	--vc-noir: #000;
	--vc-gris: #e8e8e7;
	--vc-bordure: #e7e7e6;
	--vc-placeholder: #9ba1a7;
	--vc-bande: 290px; /* hauteur de la bande bleue de l'entête de page */
}

/* -------------------------------------------------------------
 * Entête (modèle Header Footer Elementor)
 * ---------------------------------------------------------- */
.vc-topbar .hfe-nav-menu a.hfe-menu-item,
.vc-mainbar .hfe-nav-menu a.hfe-menu-item,
.vc-topbar .elementor-button,
.vc-mainbar .elementor-button { white-space: nowrap; }
.vc-topbar .hfe-nav-menu { flex-wrap: nowrap; }
@media (min-width: 1025px) {
	.vc-mainbar .hfe-nav-menu { flex-wrap: nowrap; }
}
@media (max-width: 1024px) {
	.vc-mainbar .elementor-widget-image { flex: 0 0 auto; }
	.vc-mainbar .elementor-widget-image img { width: 150px; max-width: none; }
	.vc-mainbar .elementor-widget-navigation-menu { margin-left: auto; flex-grow: 0 !important; }
	.vc-mainbar .hfe-nav-menu__toggle { margin-left: auto !important; margin-right: 0 !important; }
	.vc-mainbar .elementor-widget-navigation-menu .elementor-widget-container { display: flex; justify-content: flex-end; }
}

/* -------------------------------------------------------------
 * Page Contact : bande bleue + motif décoratif
 * ---------------------------------------------------------- */
.vc-contact {
	position: relative;
	overflow: hidden;
	background: linear-gradient(to bottom, var(--vc-bleu) 0, var(--vc-bleu) var(--vc-bande), #fff var(--vc-bande));
}

/* -------------------------------------------------------------
 * Section « Nous joindre » + motif décoratif à cheval sur les deux sections
 * ---------------------------------------------------------- */
.vc-joindre { position: relative; }
.vc-joindre::before {
	content: "";
	position: absolute;
	z-index: 0;
	top: -300px;
	left: calc(50% - 335px);
	width: 520px;
	height: 650px;
	background: url("assets/vc-mark-pale.png") no-repeat center / contain;
	pointer-events: none;
	opacity: 1;
	inset-inline-end: auto;
	bottom: auto;
}
.vc-joindre > .e-con-inner { position: relative; z-index: 1; }
.vc-joindre__item .elementor-icon { transition: background-color .2s, color .2s; }
@media (max-width: 1024px) {
	.vc-joindre::before { display: none; }
}

.vc-contact__head {
	min-height: calc(var(--vc-bande) - 60px); /* 60px = marge haute de la section */
}

.vc-breadcrumb a { color: #fff; text-decoration: none; }
.vc-breadcrumb a:hover { text-decoration: underline; }
.vc-breadcrumb .sep { margin: 0 .5em; }
.vc-breadcrumb strong { font-weight: 700; }

@media (min-width: 1025px) {
	.vc-contact__body { padding-right: 40px; }
}
.vc-contact__body p { margin: 0 0 1em; }
.vc-contact__body p:last-child { margin-bottom: 0; }

.vc-contact__card { position: relative; z-index: 2; }

@media (max-width: 1024px) {
	/* Empilé : la bande bleue couvre seulement le titre */
	.vc-contact { background: url("assets/vc-mark-pale.png") no-repeat right -80px bottom -120px / 300px auto, #fff; }
	.vc-contact__head {
		min-height: 0;
		background: var(--vc-bleu);
		margin-inline: calc(50% - 50vw) !important;
		padding: 40px 20px 50px !important;
		width: 100vw !important;
		max-width: 100vw !important;
		margin-top: -40px !important;
	}
}

/* -------------------------------------------------------------
 * Formulaire de soumission (Contact Form 7)
 * ---------------------------------------------------------- */
.vc-form { font-family: "Lato", sans-serif; }

.vc-form label,
.vc-form legend {
	display: block;
	margin: 0 0 6px;
	padding: 0;
	font-family: "Amaranth", sans-serif;
	font-size: 14px;
	font-weight: 400;
	color: var(--vc-bleu);
}

.vc-form .vc-field { margin-bottom: 22px; }

.vc-form input[type="text"],
.vc-form input[type="email"],
.vc-form input[type="tel"],
.vc-form textarea {
	display: block;
	width: 100%;
	box-sizing: border-box;
	padding: 10px 12px;
	border: 1px solid var(--vc-bordure);
	border-radius: 2px;
	background: #fff;
	box-shadow: inset 0 1px 2px rgba(0, 0, 0, .06);
	font: 400 15px/1.4 "Lato", sans-serif;
	color: #23282d;
	transition: border-color .2s, box-shadow .2s;
}
.vc-form input:not([type="checkbox"]):not([type="submit"]) { height: 44px; }
.vc-form textarea { height: 150px; resize: vertical; }

.vc-form ::placeholder { color: var(--vc-placeholder); }

.vc-form input:focus,
.vc-form textarea:focus {
	outline: none;
	border-color: var(--vc-bleu);
	box-shadow: 0 0 0 3px rgba(74, 146, 177, .2);
}

/* Cases à cocher « Service souhaité » */
.vc-form fieldset { border: 0; margin: 0 0 22px; padding: 0; min-width: 0; }
.vc-form .wpcf7-checkbox {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px 20px;
	margin-top: 6px;
}
.vc-form .wpcf7-list-item { margin: 0; }
.vc-form .wpcf7-list-item label {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	font-size: 13px;
	cursor: pointer;
}
.vc-form input[type="checkbox"] {
	appearance: none;
	flex: 0 0 18px;
	width: 18px;
	height: 18px;
	margin: 0;
	border: 1px solid #23282d;
	border-radius: 2px;
	background: #fff;
	cursor: pointer;
	display: grid;
	place-content: center;
}
.vc-form input[type="checkbox"]::before {
	content: "";
	width: 10px;
	height: 10px;
	transform: scale(0);
	transition: transform .12s;
	background: var(--vc-bleu);
	clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0, 43% 62%);
}
.vc-form input[type="checkbox"]:checked { border-color: var(--vc-bleu); }
.vc-form input[type="checkbox"]:checked::before { transform: scale(1); }
.vc-form input[type="checkbox"]:focus-visible { outline: 2px solid var(--vc-bleu); outline-offset: 2px; }

/* Bouton Envoyer */
.vc-form .vc-submit { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
/* Sélecteur renforcé : Sinatra cible body:not(.wp-customizer) input[type="submit"] */
.vc-form .vc-submit input.wpcf7-submit[type="submit"] {
	appearance: none;
	border: 0;
	border-radius: 999px;
	padding: 12px 30px;
	background: var(--vc-bleu);
	color: #fff;
	font: 700 15px/1 "Amaranth", sans-serif;
	cursor: pointer;
	transition: background-color .2s;
}
.vc-form .vc-submit input.wpcf7-submit[type="submit"]:hover,
.vc-form .vc-submit input.wpcf7-submit[type="submit"]:focus-visible { background: var(--vc-bleu-fonce); }
.vc-form .wpcf7-spinner { margin: 0; }

/* Messages de validation */
.vc-form .wpcf7-not-valid { border-color: #c0392b !important; }
.vc-form .wpcf7-not-valid-tip { font-size: 13px; margin-top: 4px; }
.wpcf7 form .wpcf7-response-output { margin: 20px 0 0; border-radius: 4px; font-size: 14px; }

@media (max-width: 767px) {
	.vc-form .wpcf7-checkbox { grid-template-columns: 1fr; }
}

/* =============================================================
 * CARRIÈRES
 * ========================================================== */

/* Boutons « pilule » partagés */
.vc-btn {
	display: inline-flex;
	align-items: center;
	gap: .4em;
	padding: 11px 24px;
	border-radius: 999px;
	background: var(--vc-bleu);
	color: #fff !important;
	font: 700 15px/1 "Amaranth", sans-serif;
	text-decoration: none !important;
	transition: background-color .2s;
}
.vc-btn:hover,
.vc-btn:focus-visible { background: var(--vc-bleu-fonce); }

/* Bandeau : moitié bleue alignée sur le contenu, moitié photo jusqu'au bord */
.vc-hero-split__texte {
	padding-left: max(20px, calc((100vw - 1100px) / 2 + 20px)) !important;
}
.vc-hero-split__photo { min-height: 400px; }
@media (max-width: 1024px) {
	.vc-hero-split__texte { padding-left: 20px !important; }
	.vc-hero-split__photo { min-height: 280px; }
}

/* Lien « ← Retour aux offres d'emploi » */
.vc-retour a { color: #fff; text-decoration: none; }
.vc-retour a:hover { text-decoration: underline; }

/* ---- Liste des postes [vc_postes] ---- */
.vc-postes { display: grid; gap: 16px; }
.vc-postes--grille { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.vc-postes--vide { background: var(--vc-gris); border-radius: 30px; padding: 40px; }
.vc-postes--vide p { margin: 0; }

.vc-poste {
	display: flex;
	background: var(--vc-gris);
	border-radius: 30px;
	overflow: hidden;
}
.vc-poste__body {
	flex: 1 1 50%;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 18px;
	padding: 30px 36px 36px;
}
.vc-poste--photo .vc-poste__body { justify-content: center; padding: 30px 50px; }
.vc-poste__media { flex: 1 1 50%; min-height: 240px; }
.vc-poste__img { display: block; width: 100%; height: 100%; object-fit: cover; }

.vc-poste__head { display: flex; align-items: center; gap: 22px; }
.vc-poste__icone {
	flex: 0 0 64px;
	width: 64px;
	height: 64px;
	border-radius: 50%;
	background: var(--vc-bleu);
	color: #fff;
	display: grid;
	place-items: center;
}
.vc-poste__icone svg { width: 34px; height: 34px; }
.vc-poste__titre {
	margin: 0;
	font: 700 26px/1.15 "Amaranth", sans-serif;
	color: var(--vc-bleu);
}
.vc-poste__titre a { color: inherit; text-decoration: none; }
.vc-poste__titre a:hover { text-decoration: underline; }
.vc-poste__resume { margin: 0; font-size: 15px; line-height: 1.6; color: #000; }

@media (max-width: 1024px) {
	.vc-postes--grille { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
	.vc-poste { flex-direction: column-reverse; border-radius: 20px; }
	.vc-poste__body,
	.vc-poste--photo .vc-poste__body { padding: 26px 22px 30px; }
	.vc-poste__media { min-height: 200px; }
	.vc-poste__titre { font-size: 22px; }
	.vc-poste__icone { flex-basis: 52px; width: 52px; height: 52px; }
	.vc-poste__icone svg { width: 28px; height: 28px; }
}

/* ---- Listes à crochets ---- */
.vc-checks ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.vc-checks li { position: relative; padding-left: 34px; margin: 0; line-height: 1.5; }
.vc-checks li::before {
	content: "";
	position: absolute;
	left: 0;
	top: .15em;
	width: 20px;
	height: 20px;
	background: var(--vc-bleu);
	-webkit-mask: url("assets/icone-check.svg") no-repeat center / contain;
	mask: url("assets/icone-check.svg") no-repeat center / contain;
}
.vc-checks strong { display: block; font-weight: 700; }

/* Variante pastille ronde (Nos avantages) */
.vc-checks--rond li { padding-left: 46px; }
.vc-checks--rond li::before {
	top: 0;
	width: 32px;
	height: 32px;
	-webkit-mask: none;
	mask: none;
	border-radius: 50%;
	background: var(--vc-bleu) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath fill='%23fff' d='M173.898 439.404l-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204-.001z'/%3E%3C/svg%3E") no-repeat center / 15px;
}

/* Variante trois colonnes (Votre rôle au quotidien) */
.vc-checks--3col ul { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 36px; }
@media (max-width: 1024px) { .vc-checks--3col ul { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px)  { .vc-checks--3col ul { grid-template-columns: 1fr; } }

/* ---- Section candidature : bande bleue en haut, photo en bas, carte du formulaire par-dessus ---- */
/* La photo est l'image de fond Elementor du conteneur ; la bande bleue est un calque par-dessus. */
.vc-cta { --vc-cta-bande: 310px; position: relative; }
/* La photo ne remplit que la zone sous la bande bleue (sinon elle est trop zoomée). */
.vc-cta.e-con { background-size: auto calc(100% - var(--vc-cta-bande) + 40px) !important; background-color: #d9d6d2; }
.vc-cta.e-con::before {
	content: "";
	display: block;
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: var(--vc-cta-bande);
	background: var(--vc-bleu);
	opacity: 1;
	mix-blend-mode: normal;
	border-radius: 0;
	z-index: 0;
}
.vc-cta > .e-con-inner { position: relative; z-index: 1; }
.vc-cta__card { position: relative; z-index: 2; }
@media (max-width: 1024px) {
	.vc-cta { --vc-cta-bande: 100%; }
	.vc-cta.e-con { background-size: cover !important; }
}

/* ---- Formulaire : menu déroulant et pièce jointe ---- */
.vc-form select {
	display: block;
	width: 100%;
	height: 44px;
	padding: 0 40px 0 12px;
	border: 1px solid var(--vc-bordure);
	border-radius: 2px;
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath fill='%234a92b1' d='M207.029 381.476L12.686 187.132c-9.373-9.373-9.373-24.569 0-33.941l22.667-22.667c9.357-9.357 24.522-9.375 33.901-.04L224 284.505l154.745-154.021c9.379-9.335 24.544-9.317 33.901.04l22.667 22.667c9.373 9.373 9.373 24.569 0 33.941L240.971 381.476c-9.373 9.372-24.569 9.372-33.942 0z'/%3E%3C/svg%3E") no-repeat right 14px center / 12px;
	box-shadow: inset 0 1px 2px rgba(0, 0, 0, .06);
	font: 400 15px/1.4 "Lato", sans-serif;
	color: #23282d;
	appearance: none;
	cursor: pointer;
}
.vc-form select:focus { outline: none; border-color: var(--vc-bleu); box-shadow: 0 0 0 3px rgba(74, 146, 177, .2); }

.vc-form .vc-file { margin-bottom: 22px; }
.vc-form .vc-file__zone { position: relative; }
.vc-form .vc-file label {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	min-height: 44px;
	margin: 0;
	padding: 6px 8px 6px 14px;
	background: var(--vc-gris);
	border-radius: 2px;
	cursor: pointer;
}
.vc-form .vc-file__nom { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vc-form .vc-file__icone {
	flex: 0 0 30px;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: var(--vc-bleu) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath fill='%23fff' d='M326.612 185.391c59.747 59.809 58.927 155.698.36 214.59-.11.12-.24.25-.36.37l-67.2 67.2c-59.27 59.27-155.699 59.262-214.96 0-59.27-59.26-59.27-155.7 0-214.96l37.106-37.106c9.84-9.84 26.786-3.3 27.294 10.606.648 17.722 3.826 35.527 9.69 52.721 1.986 5.822.567 12.262-3.783 16.612l-13.087 13.087c-28.026 28.026-28.905 73.66-1.155 101.96 28.024 28.579 74.086 28.749 102.325.51l67.2-67.19c28.191-28.191 28.073-73.757 0-101.83-3.701-3.694-7.429-6.564-10.341-8.569a16.037 16.037 0 0 1-6.947-12.606c-.396-10.567 3.348-21.456 11.698-29.806l21.054-21.055c5.521-5.521 14.182-6.199 20.584-1.731a152.482 152.482 0 0 1 20.522 17.197zM467.547 44.449c-59.261-59.262-155.69-59.27-214.96 0l-67.2 67.2c-.12.12-.25.25-.36.37-58.566 58.892-59.387 154.781.36 214.59a152.454 152.454 0 0 0 20.521 17.196c6.402 4.468 15.064 3.789 20.584-1.731l21.054-21.055c8.35-8.35 12.094-19.239 11.698-29.806a16.037 16.037 0 0 0-6.947-12.606c-2.912-2.005-6.64-4.875-10.341-8.569-28.073-28.073-28.191-73.639 0-101.83l67.2-67.19c28.239-28.239 74.3-28.069 102.325.51 27.75 28.3 26.872 73.934-1.155 101.96l-13.087 13.087c-4.35 4.35-5.769 10.79-3.783 16.612 5.864 17.194 9.042 34.999 9.69 52.721.509 13.906 17.454 20.446 27.294 10.606l37.106-37.106c59.271-59.259 59.271-155.699.001-214.959z'/%3E%3C/svg%3E") no-repeat center / 14px;
}
/* Le vrai champ fichier reste accessible au clavier mais invisible */
.vc-form .vc-file input[type="file"] {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	cursor: pointer;
}
.vc-form .vc-file__zone:focus-within label { outline: 2px solid var(--vc-bleu); outline-offset: 2px; }
.vc-form .vc-file .wpcf7-form-control-wrap { position: static; }
.vc-form .vc-aide { display: block; margin-top: 4px; font-size: 12px; color: #5f6368; }

/* Formulaire de candidature : plus compact que celui de Contact (comme la maquette) */
.vc-cta__card .vc-form .vc-field,
.vc-cta__card .vc-form .vc-file { margin-bottom: 16px; }
.vc-cta__card .vc-form label,
.vc-cta__card .vc-form legend { margin-bottom: 4px; font-size: 13px; }
.vc-cta__card .vc-form input:not([type="checkbox"]):not([type="submit"]):not([type="file"]),
.vc-cta__card .vc-form select { height: 40px; }
.vc-cta__card .vc-form textarea { height: 110px; }
.vc-cta__card .vc-form .vc-submit { margin-top: 4px; }
