button,
input,
select,
textarea {
	font-family: var(--wp--preset--font-family--sans);
}

header.wp-block-template-part .wp-block-site-logo a {
	display: block;
	width: 100%;
}

header.wp-block-template-part .wp-block-site-logo img {
	width: 100%;
	height: auto;
}

.mf-back-to-top {
	inset-inline-end: 100px;
}

/* Liens du texte courant soulignés. Le bleu d'action (#1a6993) contraste à
   6:1 avec le fond mais à 2,35:1 seulement avec le texte : la couleur ne
   suffit pas à distinguer un lien. Titres, menus, boutons et cartes à lien
   étendu gardent leur présentation. */
:where(p, ul.wp-block-list li, ol.wp-block-list li) a:where(:not(.wp-element-button)) {
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.15em;
}

/* Focus clavier sur fond sombre : le contour bleu y descendrait sous 3:1
   (1,66:1 sur le bleu nuit). Il passe au blanc cassé des titres sur fond
   sombre, au moins 6:1 sur chacun d'eux. */
:where(footer.wp-block-template-part, .has-bg-dark-background-color, .wp-block-cover:not(.is-light)) :where(a, button, input, select, textarea, summary):focus-visible {
	outline-color: var(--wp--preset--color--text-title-dark);
}

/* Numérotation de la démarche, conservée en texte éditable dans Gutenberg. */
.mi-steps > .wp-block-column > p:first-child {
	align-items: center;
	border: 2px solid var(--wp--preset--color--accent-primary);
	border-radius: 50%;
	color: var(--wp--preset--color--text-content);
	display: flex;
	font-weight: 600;
	justify-content: center;
	line-height: 1;
	min-height: 48px;
	min-width: 48px;
	width: 48px;
}

.mi-price-card--featured {
	background-image: radial-gradient(circle at 125% -12%, transparent 34%, rgb(255 255 255 / 18%) 34.2%, transparent 34.5%, transparent 37%, rgb(255 255 255 / 18%) 37.2%, transparent 37.5%, transparent 40%, rgb(255 255 255 / 18%) 40.2%, transparent 40.5%);
	background-size: 100% 220px;
	background-repeat: no-repeat;
}

/* Le balisage et les données structurées restent fournis par le bloc Yoast FAQ. */
.wp-block-yoast-faq-block {
	border-top: 1px solid #ddd;
	margin-block: 24px 48px;
}

.wp-block-yoast-faq-block .schema-faq-section {
	border-bottom: 1px solid #ddd;
}

.wp-block-yoast-faq-block .schema-faq-question {
	cursor: pointer;
	display: block;
	/* <strong> fournit un 700 synthétique ; la charte locale s'arrête à 600. */
	font-weight: 600;
	padding: 24px 48px 24px 0;
	position: relative;
}

.wp-block-yoast-faq-block .schema-faq-question::after {
	align-items: center;
	border: 1px solid #777;
	border-radius: 50%;
	content: "+";
	display: flex;
	font-size: 18px;
	font-weight: 400;
	height: 26px;
	justify-content: center;
	position: absolute;
	right: 2px;
	top: 22px;
	width: 26px;
}

.wp-block-yoast-faq-block .schema-faq-section.is-open > .schema-faq-question::after {
	content: "−";
}

.wp-block-yoast-faq-block .schema-faq-question:focus-visible {
	border-radius: 2px;
	outline: 2px solid var(--wp--preset--color--bg-dark);
	outline-offset: 4px;
}

.wp-block-yoast-faq-block .schema-faq-answer {
	margin: 0;
	overflow: hidden;
	padding: 0 48px 36px 0;
}

.wp-block-yoast-faq-block .schema-faq-answer[hidden] {
	display: none;
}

/* Flèche des fiches d'équipe. Marqueur, curseur, carte cliquable et
   biographie plein écran : style « Membre d'équipe » de mf-theme 0.38.0. */
.mi-team-bio summary {
	font-size: 24px;
}

/* Titres ciblés par une ancre (experts liés depuis les articles, sections de
   la FAQ) : ils s'arrêtent sous l'en-tête collant. */
:where(.wp-block-heading[id]) {
	scroll-margin-block-start: calc(var(--mf-header-height, 100px) + var(--wp--preset--spacing--40));
}

.mi-contact__form {
	box-shadow: 0 24px 70px rgb(19 69 110 / 10%);
	min-width: 0;
}

.mi-contact__form .wpcf7-form {
	display: grid;
	gap: 22px 20px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mi-contact__form .hidden-fields-container {
	display: none;
}

.mi-contact__form .wpcf7-form > p {
	grid-column: 1 / -1;
	margin: 0;
}

.mi-contact__form .wpcf7-form > p:nth-of-type(1) {
	grid-column: 1;
}

.mi-contact__form .wpcf7-form > p:nth-of-type(2) {
	grid-column: 2;
}

.mi-contact__form label {
	color: var(--wp--preset--color--text-content);
	font-size: 14px;
	font-weight: 500;
	line-height: 1.5;
}

.mi-contact__form :is(input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]), textarea) {
	background: var(--wp--preset--color--bg-page);
	border: 1px solid var(--wp--preset--color--border-field);
	border-radius: 6px;
	box-sizing: border-box;
	color: var(--wp--preset--color--text-content);
	font-size: 16px;
	margin-top: 7px;
	padding: 13px 14px;
	transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
	width: 100%;
}

.mi-contact__form textarea {
	min-height: 190px;
	resize: vertical;
}

.mi-contact__form :is(input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]), textarea):focus {
	background: var(--wp--preset--color--bg-surface);
	border-color: var(--wp--preset--color--bg-dark);
	box-shadow: 0 0 0 3px rgb(47 164 229 / 18%);
}

.mi-contact__form input[type="submit"] {
	min-width: 140px;
}

.mi-contact__form .wpcf7-not-valid-tip {
	font-size: 13px;
	margin-top: 6px;
}

.mi-contact__form .wpcf7-response-output {
	grid-column: 1 / -1;
	margin: 0 !important;
	padding: 14px 16px !important;
}

.mi-uploader > * {
	margin-inline: auto;
	width: 100%;
	max-width: 900px;
}

.mi-uploader fieldset {
	min-width: 0;
	max-width: 100%;
	box-sizing: border-box;
}

.mi-uploader :is(input, select, textarea) {
	max-width: 100%;
	box-sizing: border-box;
}

#mesimpots_uploader_wrapper {
	color: var(--wp--preset--color--text-content);
}

#mesimpots_uploader_wrapper form {
	margin: 0;
}

#mesimpots_uploader_wrapper h3 {
	margin: 42px 0 18px;
}

#mesimpots_uploader_wrapper form > h3:first-of-type {
	margin-top: 0;
}

#mesimpots_uploader_wrapper fieldset {
	border: 0;
	margin: 0;
	padding: 0;
}

#mesimpots_uploader_wrapper .cols {
	align-items: flex-start;
	display: flex;
	flex-wrap: wrap;
	gap: 18px 20px;
	margin: 0;
}

#mesimpots_uploader_wrapper .cols > [class^="col-"] {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

#mesimpots_uploader_wrapper .cols > .col-100 {
	flex: 0 0 100%;
	width: 100%;
}

#mesimpots_uploader_wrapper .cols > .col-50 {
	flex: 0 0 calc(50% - 10px);
	width: calc(50% - 10px);
}

#mesimpots_uploader_wrapper label {
	color: var(--wp--preset--color--text-content);
	display: block;
	font-weight: 400;
	line-height: 1.5;
	margin-bottom: 7px;
}

#mesimpots_uploader_wrapper .required,
#mesimpots_uploader_wrapper .prix {
	color: var(--wp--preset--color--accent-secondary);
}

#mesimpots_uploader_wrapper :is(
	input[type="text"],
	input[type="email"],
	input[type="date"],
	select,
	textarea
) {
	background-color: #f4f4f4;
	border: 1px solid transparent;
	border-radius: 3px;
	color: var(--wp--preset--color--text-content);
	font-size: 14px;
	line-height: 1.4;
	min-height: 48px;
	padding: 11px 14px;
	transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
	width: 100%;
}

#mesimpots_uploader_wrapper select {
	cursor: pointer;
}

#mesimpots_uploader_wrapper textarea {
	min-height: 180px;
	resize: vertical;
}

#mesimpots_uploader_wrapper :is(
	input[type="text"],
	input[type="email"],
	input[type="date"],
	select,
	textarea
):focus {
	background-color: var(--wp--preset--color--bg-surface);
	border-color: var(--wp--preset--color--accent-primary);
	box-shadow: 0 0 0 3px rgb(47 164 229 / 16%);
}

#mesimpots_uploader_wrapper input[type="radio"] {
	accent-color: var(--wp--preset--color--accent-primary);
	flex: 0 0 auto;
	height: 17px;
	margin: 3px 0 0;
	width: 17px;
}

#mesimpots_uploader_wrapper #prestation {
	display: grid;
	gap: 11px;
}

#mesimpots_uploader_wrapper #prestation > div {
	align-items: flex-start;
	display: flex;
	gap: 10px;
}

#mesimpots_uploader_wrapper #prestation br,
#mesimpots_uploader_wrapper #prestation > div > p {
	display: none;
}

#mesimpots_uploader_wrapper #prestation label {
	cursor: pointer;
	display: inline;
	margin: 0;
}

#mesimpots_uploader_wrapper #specialiste fieldset > .cols {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
}

#mesimpots_uploader_wrapper #specialiste .col-25 {
	margin: 0;
	padding: 0;
	width: auto;
}

#mesimpots_uploader_wrapper #specialiste .col-25:empty {
	display: none;
}

#mesimpots_uploader_wrapper #specialiste label {
	background: var(--wp--preset--color--bg-surface);
	border: 1px solid #e0e3e7;
	border-radius: 6px;
	box-sizing: border-box;
	cursor: pointer;
	display: block;
	height: 100%;
	margin: 0;
	padding: 8px 8px 14px;
	transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

#mesimpots_uploader_wrapper #specialiste label:hover {
	border-color: #b8c4cc;
	transform: translateY(-2px);
}

#mesimpots_uploader_wrapper #specialiste label:has(input:checked) {
	border-color: var(--wp--preset--color--accent-primary);
	box-shadow: 0 0 0 3px rgb(47 164 229 / 16%);
}

#mesimpots_uploader_wrapper #specialiste figure {
	margin: 0 0 12px;
}

#mesimpots_uploader_wrapper #specialiste figure img {
	aspect-ratio: 261 / 300;
	border-radius: 3px;
	display: block;
	height: auto;
	margin: 0;
	object-fit: cover;
	width: 100%;
}

#mesimpots_uploader_wrapper #specialiste input[type="radio"] {
	display: inline-block;
	margin-right: 7px;
	vertical-align: -3px;
}

#mesimpots_uploader_wrapper #document > fieldset + fieldset,
#mesimpots_uploader_wrapper #document > fieldset > .cols + .cols {
	margin-top: 18px;
}

#mesimpots_uploader_wrapper #recu_lrar {
	align-items: center;
	display: flex;
	gap: 8px 12px;
	min-height: 48px;
}

#mesimpots_uploader_wrapper #recu_lrar br {
	display: none;
}

#mesimpots_uploader_wrapper #recu_lrar label {
	cursor: pointer;
	margin: 0 10px 0 0;
}

#mesimpots_uploader_wrapper #mesimpots_uploader > span {
	display: block;
	margin-bottom: 10px;
}

#mesimpots_uploader_wrapper #dropZone {
	align-items: center;
	background: #fafafa;
	border: 1px dashed #b9bec4;
	border-radius: 4px;
	color: #707781;
	display: flex;
	justify-content: center;
	min-height: 120px;
	padding: 20px;
	text-align: center;
	transition: background-color 160ms ease, border-color 160ms ease;
}

#mesimpots_uploader_wrapper #dropZone:is(:hover, .dragover) {
	background: #f1f8fc;
	border-color: var(--wp--preset--color--accent-primary);
}

#mesimpots_uploader_wrapper .buttons-ctn {
	display: flex;
	justify-content: flex-end;
	margin-top: 18px;
}

#mesimpots_uploader_wrapper :is(#selectFilesButton, input[type="submit"]) {
	border: 0;
	color: #fff;
	cursor: pointer;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.4;
	min-height: 44px;
	padding: 11px 25px;
	transition: background-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

#mesimpots_uploader_wrapper #selectFilesButton {
	background: var(--wp--preset--color--accent-secondary);
}

#mesimpots_uploader_wrapper input[type="submit"] {
	background: var(--wp--preset--color--accent-primary);
}

#mesimpots_uploader_wrapper :is(#selectFilesButton, input[type="submit"]):hover {
	box-shadow: 0 5px 14px rgb(19 69 110 / 18%);
	transform: translateY(-1px);
}

#mesimpots_uploader_wrapper :is(.warning, .error) {
	border-radius: 4px;
	margin-top: 14px;
	padding: 12px 14px;
}

#mesimpots_uploader_wrapper .warning {
	background: #fff7e6;
	color: #72510d;
}

#mesimpots_uploader_wrapper .error {
	background: #fff0f0;
	color: #842626;
}

#mesimpots_uploader_wrapper :is(.warning, .error).off {
	display: none;
}

.mi-home-hero__card {
	overflow: hidden;
	position: relative;
}

/* Le lien du texte doit recevoir toute la surface du Cover. */
.mi-home-hero__card .wp-block-cover__inner-container {
	align-items: center;
	display: flex;
	inset: 0;
	justify-content: center;
	position: absolute;
	width: 100%;
}

.mi-home-hero__card a {
	color: #fff;
	text-decoration: none;
}

.mi-home-hero__card a::after {
	content: "";
	inset: 0;
	position: absolute;
	z-index: 2;
}

/* Le Cover utilise un <img> : le mode `--custom` du parent mesure le décalage,
   et cette composition déplace uniquement l'image, avec assez de débord pour
   garder la bande couverte même au plafond de la parallaxe. */
:where(.mf-parallax-ready) .mi-home-band.mf-parallax--custom .wp-block-cover__image-background {
	top: calc(-1 * var(--mf-parallax-max));
	height: calc(100% + var(--mf-parallax-max) + var(--mf-parallax-max));
	translate: 0 var(--mf-parallax-shift);
}

@media (max-width: 781px) {
	#mesimpots_uploader_wrapper .cols > .col-50 {
		flex-basis: 100%;
		width: 100%;
	}

	#mesimpots_uploader_wrapper #specialiste fieldset > .cols {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	/* Sur mobile, chaque service commence par son explication avant l'image. */
	.mi-service--alternate > .wp-block-columns {
		flex-direction: column-reverse;
	}


	.mi-contact__form .wpcf7-form {
		grid-template-columns: 1fr;
	}

	.mi-contact__form .wpcf7-form > p:nth-of-type(1),
	.mi-contact__form .wpcf7-form > p:nth-of-type(2) {
		grid-column: 1;
	}
}

@media (max-width: 520px) {
	#mesimpots_uploader_wrapper h3 {
		margin-top: 34px;
	}

	#mesimpots_uploader_wrapper #specialiste fieldset > .cols {
		gap: 14px;
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	#mesimpots_uploader_wrapper #specialiste label {
		padding: 6px 6px 12px;
	}

	#mesimpots_uploader_wrapper .buttons-ctn :is(button, input[type="submit"]) {
		width: 100%;
	}
}

@media (max-width: 340px) {
	#mesimpots_uploader_wrapper #specialiste fieldset > .cols {
		grid-template-columns: 1fr;
	}
}
