/* ==========================================================================
   BH IT — composants des pages (chargé sur le site et dans l'éditeur)
   Les sélecteurs commencent par :is(.entry-content, .editor-styles-wrapper)
   pour l'emporter sur les styles propres à chaque bloc Kadence.
   ========================================================================== */

/* --- Titres : styles de bloc « Souligné orange » (charte : trait 70×4 px) --- */
.is-style-bhit-underline::after,
.is-style-bhit-underline-center::after {
	content: "";
	display: block;
	width: 70px;
	height: 4px;
	border-radius: 2px;
	background: var(--global-palette10);
	margin-top: 16px;
}
.is-style-bhit-underline-center::after {
	margin-left: auto;
	margin-right: auto;
}
@media (max-width: 1024px) {
	/* sous 1024 px les colonnes s'empilent et le texte est centré */
	.is-style-bhit-underline::after {
		margin-left: auto;
		margin-right: auto;
	}
}

/* --- Illustrations (images à fond transparent, sans cadre) --- */
:is(.entry-content, .editor-styles-wrapper) :is(.bhit-illu, .bhit-qsj-illu) {
	margin: 0;
}
:is(.entry-content, .editor-styles-wrapper) .bhit-illu img {
	width: 100% !important;
	max-width: 580px;
	height: auto;
}
:is(.entry-content, .editor-styles-wrapper) .bhit-qsj-illu img {
	width: 100% !important;
	max-width: 620px;
	height: auto;
}

/* --- Photo avec arrondi + ombre (classe de colonne bhit-photo) --- */
:is(.entry-content, .editor-styles-wrapper) .bhit-photo img {
	border-radius: 20px;
	box-shadow: 20px 20px 80px 0 rgba(27, 0, 79, 0.15);
}

/* --- Encadré « Me contacter » façon carte de visite ---
   Colonne .bhit-cta contenant 2 colonnes : .bhit-cta-logo (panneau blanc) et .bhit-cta-txt (dégradé).
   Titre : classe bhit-cta-title ; texte d'intro : classe bhit-cta-lead. */
:is(.entry-content, .editor-styles-wrapper) .bhit-cta > .kt-inside-inner-col {
	background-image:
		linear-gradient(101deg, var(--global-palette9) 0 35%, transparent 35.05%),
		linear-gradient(90deg, var(--global-palette1) 30%, var(--global-palette2) 100%) !important;
	overflow: hidden;
}
:is(.entry-content, .editor-styles-wrapper) .bhit-cta .kt-row-column-wrap {
	grid-template-columns: 35% 1fr !important;
}
:is(.entry-content, .editor-styles-wrapper) .bhit-cta-logo > .kt-inside-inner-col {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	height: 100%;
	padding: 50px 40px 50px 0;
}
:is(.entry-content, .editor-styles-wrapper) .bhit-cta-logo figure {
	margin: 0;
}
:is(.entry-content, .editor-styles-wrapper) .bhit-cta-logo img {
	width: 140px;
	height: auto;
}
:is(.entry-content, .editor-styles-wrapper) p.bhit-cta-brand {
	font-size: 24px;
	color: var(--global-palette3);
	letter-spacing: 0.02em;
	margin: 22px 0 0;
	text-align: center;
}
:is(.entry-content, .editor-styles-wrapper) p.bhit-cta-brand::after {
	content: "";
	display: block;
	width: 110px;
	height: 4px;
	border-radius: 2px;
	background: var(--global-palette10);
	margin: 12px auto 0;
}
:is(.entry-content, .editor-styles-wrapper) .bhit-cta-txt > .kt-inside-inner-col {
	padding: 60px 0 60px 70px;
}
:is(.entry-content, .editor-styles-wrapper) .bhit-cta .bhit-cta-title {
	margin: 0 !important;
}
/* trait orange qui part du titre jusqu'au bord droit de l'encadré */
:is(.entry-content, .editor-styles-wrapper) .bhit-cta .bhit-cta-title::after {
	content: "";
	display: block;
	height: 3px;
	border-radius: 2px 0 0 2px;
	background: var(--global-palette10);
	margin: 16px -300px 22px 0;
}
:is(.entry-content, .editor-styles-wrapper) .bhit-cta .bhit-cta-lead {
	margin: 0 80px 18px 0 !important;
}
:is(.entry-content, .editor-styles-wrapper) ul.bhit-coords {
	list-style: none;
	margin: 0 0 26px;
	padding: 0;
	color: #fff;
	font-size: 18px;
	line-height: 1.9;
}
:is(.entry-content, .editor-styles-wrapper) ul.bhit-coords span {
	display: inline-block;
	width: 120px;
	opacity: 0.65;
	font-size: 15px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}
:is(.entry-content, .editor-styles-wrapper) ul.bhit-coords a {
	color: #fff;
	text-decoration: none;
}
:is(.entry-content, .editor-styles-wrapper) ul.bhit-coords a:hover {
	text-decoration: underline;
}
@media (max-width: 1024px) {
	:is(.entry-content, .editor-styles-wrapper) .bhit-cta > .kt-inside-inner-col {
		background-image: linear-gradient(90deg, var(--global-palette1) 30%, var(--global-palette2) 100%) !important;
	}
	:is(.entry-content, .editor-styles-wrapper) .bhit-cta .kt-row-column-wrap {
		grid-template-columns: 1fr !important;
	}
	:is(.entry-content, .editor-styles-wrapper) .bhit-cta-logo > .kt-inside-inner-col {
		background: var(--global-palette9);
		padding: 40px 20px 60px;
		clip-path: polygon(0 0, 100% 0, 100% 78%, 0 100%);
	}
	:is(.entry-content, .editor-styles-wrapper) .bhit-cta-logo img {
		width: 100px !important;
	}
	:is(.entry-content, .editor-styles-wrapper) .bhit-cta-txt > .kt-inside-inner-col {
		padding: 30px 40px 50px;
	}
	:is(.entry-content, .editor-styles-wrapper) .bhit-cta .bhit-cta-lead {
		margin: 0 0 18px 0 !important;
	}
}
@media (max-width: 600px) {
	:is(.entry-content, .editor-styles-wrapper) .bhit-cta-txt > .kt-inside-inner-col {
		padding: 20px 24px 40px;
	}
	:is(.entry-content, .editor-styles-wrapper) ul.bhit-coords li {
		line-height: 1.4;
		margin-bottom: 10px;
	}
	:is(.entry-content, .editor-styles-wrapper) ul.bhit-coords span {
		display: block;
		width: auto;
		font-size: 13px;
	}
}

/* --- Formulaire de contact (Contact Form 7, balisage .bhit-form) --- */
:is(.entry-content, .editor-styles-wrapper) .bhit-form {
	display: flex;
	flex-direction: column;
	gap: 22px;
}
:is(.entry-content, .editor-styles-wrapper) .bhit-form p {
	margin: 0;
}
:is(.entry-content, .editor-styles-wrapper) .bhit-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 22px;
}
:is(.entry-content, .editor-styles-wrapper) .bhit-field label {
	display: block;
	margin: 0 0 8px;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.02em;
	color: var(--global-palette2);
}
:is(.entry-content, .editor-styles-wrapper) .bhit-req {
	color: var(--global-palette10);
}
:is(.entry-content, .editor-styles-wrapper) .bhit-form .wpcf7-form-control-wrap {
	display: block;
}
:is(.entry-content, .editor-styles-wrapper) .bhit-form :is(input[type=text], input[type=email], select, textarea) {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	margin: 0;
	padding: 13px 16px;
	font-family: inherit;
	font-size: 16px;
	line-height: 1.4;
	color: var(--global-palette3);
	background-color: var(--global-palette8);
	border: 1px solid #dbe4ef;
	border-radius: 10px;
	box-shadow: none;
	transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}
:is(.entry-content, .editor-styles-wrapper) .bhit-form textarea {
	min-height: 150px;
	resize: vertical;
}
:is(.entry-content, .editor-styles-wrapper) .bhit-form select {
	appearance: none;
	-webkit-appearance: none;
	padding-right: 44px;
	cursor: pointer;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%231d71b8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 16px center;
	background-size: 14px;
}
:is(.entry-content, .editor-styles-wrapper) .bhit-form ::placeholder {
	color: var(--global-palette6);
	opacity: 1;
}
:is(.entry-content, .editor-styles-wrapper) .bhit-form :is(input, select, textarea):hover {
	border-color: #b9cbe0;
}
:is(.entry-content, .editor-styles-wrapper) .bhit-form :is(input, select, textarea):focus {
	outline: none;
	border-color: var(--global-palette1);
	background-color: #fff;
	box-shadow: 0 0 0 4px rgba(29, 113, 184, 0.14);
}
:is(.entry-content, .editor-styles-wrapper) .bhit-form .wpcf7-not-valid {
	border-color: var(--global-palette13);
	background-color: #fff;
}
:is(.entry-content, .editor-styles-wrapper) .bhit-form .wpcf7-not-valid-tip {
	margin-top: 6px;
	font-size: 13px;
	color: var(--global-palette13);
}
:is(.entry-content, .editor-styles-wrapper) .bhit-actions {
	margin-top: 4px;
}
:is(.entry-content, .editor-styles-wrapper) .bhit-actions p {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 18px;
}
:is(.entry-content, .editor-styles-wrapper) .bhit-form .bhit-submit {
	margin: 0;
	padding: 15px 30px;
	font-family: inherit;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.2;
	color: #fff;
	background: linear-gradient(135deg, var(--global-palette1) 0%, var(--global-palette2) 100%);
	border: 0;
	border-radius: 10px;
	box-shadow: 0 10px 24px rgba(29, 113, 184, 0.25);
	cursor: pointer;
	transition: transform 0.2s, box-shadow 0.2s;
}
:is(.entry-content, .editor-styles-wrapper) .bhit-form .bhit-submit:is(:hover, :focus-visible) {
	transform: translateY(-2px);
	box-shadow: 0 14px 30px rgba(41, 35, 92, 0.3);
}
:is(.entry-content, .editor-styles-wrapper) .bhit-form .bhit-submit:focus-visible {
	outline: 3px solid var(--global-palette10);
	outline-offset: 3px;
}
:is(.entry-content, .editor-styles-wrapper) .bhit-note {
	flex: 1 1 200px;
	font-size: 13px;
	line-height: 1.5;
	color: var(--global-palette5);
}
:is(.entry-content, .editor-styles-wrapper) .wpcf7-spinner {
	display: none;
	margin: 0;
}
:is(.entry-content, .editor-styles-wrapper) .wpcf7 form.submitting .wpcf7-spinner {
	display: inline-block;
}
:is(.entry-content, .editor-styles-wrapper) .wpcf7 form .wpcf7-response-output {
	margin: 22px 0 0;
	padding: 14px 18px;
	font-size: 15px;
	border: 0;
	border-left: 4px solid var(--global-palette10);
	border-radius: 10px;
	background: #fdf3e4;
	color: var(--global-palette3);
}
:is(.entry-content, .editor-styles-wrapper) .wpcf7 form.sent .wpcf7-response-output {
	border-left-color: var(--global-palette11);
	background: #e9f5ee;
}
:is(.entry-content, .editor-styles-wrapper) .wpcf7 form:is(.failed, .aborted, .spam) .wpcf7-response-output {
	border-left-color: var(--global-palette13);
	background: #fbecea;
}
@media (max-width: 600px) {
	:is(.entry-content, .editor-styles-wrapper) .bhit-row {
		grid-template-columns: 1fr;
	}
	:is(.entry-content, .editor-styles-wrapper) .bhit-form .bhit-submit {
		width: 100%;
	}
	:is(.entry-content, .editor-styles-wrapper) .bhit-note {
		text-align: center;
	}
}
