/**
 * Modale Demande d'étude — formulaire court
 * navy #022b60 · orange #fbaf3f
 */
.wpcursor-component.wpcursor-modal-etude {
	--sr-navy: #022b60;
	--sr-navy-deep: #011a3d;
	--sr-orange: #fbaf3f;
	--sr-orange-soft: #fff4e4;
	--sr-orange-hover: #e09a2e;
	--sr-white: #ffffff;
	--sr-muted: #5b6b82;
	--sr-line: #d9e2ef;
	--sr-bg: #eef3f8;
	--sr-card: #f5f8fc;
	--sr-font: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
	box-sizing: border-box;
	font-family: var(--sr-font);
	inset: 0;
	position: fixed;
	z-index: 100050;
}

.wpcursor-component.wpcursor-modal-etude *,
.wpcursor-component.wpcursor-modal-etude *::before,
.wpcursor-component.wpcursor-modal-etude *::after {
	box-sizing: border-box;
}

.wpcursor-component.wpcursor-modal-etude[hidden] {
	display: none !important;
}

.wpcursor-component.wpcursor-modal-etude .wpcursor-modal-etude__backdrop {
	background: rgba(1, 26, 61, 0.62);
	inset: 0;
	position: absolute;
}

.wpcursor-component.wpcursor-modal-etude .wpcursor-modal-etude__dialog {
	background: var(--sr-bg);
	border-radius: 1rem;
	box-shadow: 0 24px 60px rgba(1, 26, 61, 0.28);
	color: var(--sr-navy);
	display: flex;
	flex-direction: column;
	left: 50%;
	max-height: min(94vh, 52rem);
	max-width: min(44rem, calc(100vw - 1.25rem));
	overflow: hidden;
	overscroll-behavior: contain;
	position: absolute;
	top: 50%;
	transform: translate(-50%, -50%);
	width: calc(100% - 1.25rem);
}

.wpcursor-component.wpcursor-modal-etude .wpcursor-modal-etude__close {
	align-items: center;
	background: rgba(255, 255, 255, 0.72);
	border: 0;
	border-radius: 999px;
	color: var(--sr-navy);
	cursor: pointer;
	display: inline-flex;
	font-size: 1.55rem;
	height: 44px;
	justify-content: center;
	line-height: 1;
	min-height: 44px;
	min-width: 44px;
	padding: 0;
	position: absolute;
	right: 0.75rem;
	top: 0.75rem;
	width: 44px;
	z-index: 2;
}

.wpcursor-component.wpcursor-modal-etude .wpcursor-modal-etude__close:hover,
.wpcursor-component.wpcursor-modal-etude .wpcursor-modal-etude__close:focus-visible {
	background: var(--sr-white);
	color: var(--sr-navy-deep);
}

.wpcursor-component.wpcursor-modal-etude .wpcursor-modal-etude__header {
	background: var(--sr-orange);
	color: var(--sr-navy-deep);
	flex: 0 0 auto;
	padding: 1.35rem 3.4rem 1.25rem 1.4rem;
}

.wpcursor-component.wpcursor-modal-etude .wpcursor-modal-etude__eyebrow {
	color: var(--sr-navy-deep) !important;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	margin: 0 0 0.45rem;
	text-transform: uppercase;
}

.wpcursor-component.wpcursor-modal-etude .wpcursor-modal-etude__title {
	color: var(--sr-navy-deep) !important;
	font-size: clamp(1.35rem, 3vw, 1.85rem);
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.2;
	margin: 0 0 0.45rem;
}

.wpcursor-component.wpcursor-modal-etude .wpcursor-modal-etude__intro {
	color: rgba(1, 26, 61, 0.82) !important;
	font-size: 0.92rem;
	line-height: 1.45;
	margin: 0;
	max-width: 36rem;
}

.wpcursor-component.wpcursor-modal-etude .wpcursor-modal-etude__progress {
	background: rgba(1, 26, 61, 0.16);
	border-radius: 999px;
	height: 0.35rem;
	margin: 1rem 0 0.55rem;
	overflow: hidden;
	width: 100%;
}

.wpcursor-component.wpcursor-modal-etude .wpcursor-modal-etude__progress-bar {
	background: var(--sr-navy);
	border-radius: inherit;
	display: block;
	height: 100%;
	transition: width 0.25s ease;
	width: var(--sr-progress, 33%);
}

.wpcursor-component.wpcursor-modal-etude .wpcursor-modal-etude__step-label {
	color: rgba(1, 26, 61, 0.78) !important;
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.01em;
	margin: 0;
}

.wpcursor-component.wpcursor-modal-etude .wpcursor-modal-etude__body {
	-webkit-overflow-scrolling: touch;
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	overflow: auto;
	overscroll-behavior: contain;
	padding: 1.15rem 1.15rem 1.4rem;
}

.wpcursor-component.wpcursor-modal-etude .wpcursor-modal-etude__error {
	color: var(--sr-muted);
	margin: 0;
}

/* Form */
.wpcursor-component.wpcursor-modal-etude .sr-etude-form {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: 1.15rem;
	min-height: 0;
}

.wpcursor-component.wpcursor-modal-etude .sr-etude-form__step {
	display: grid;
	gap: 1.15rem;
}

.wpcursor-component.wpcursor-modal-etude .sr-etude-form__step[hidden] {
	display: none !important;
}

.wpcursor-component.wpcursor-modal-etude .sr-etude-form__section {
	background: var(--sr-white);
	border: 1px solid rgba(2, 43, 96, 0.06);
	border-radius: 0.9rem;
	padding: 1rem 1rem 1.05rem;
}

.wpcursor-component.wpcursor-modal-etude .sr-etude-form__nav {
	align-items: center;
	display: flex;
	flex: 0 0 auto;
	flex-wrap: wrap;
	gap: 0.65rem;
	justify-content: space-between;
	margin-top: 0.15rem;
	padding-top: 0.15rem;
	position: static;
}

.wpcursor-component.wpcursor-modal-etude .sr-etude-form__nav-btn {
	appearance: none;
	border-radius: 0.65rem;
	cursor: pointer;
	font: inherit;
	font-size: 0.92rem;
	font-weight: 700;
	line-height: 1.2;
	min-height: 48px;
	padding: 0.8rem 1.15rem;
	transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.15s ease;
}

.wpcursor-component.wpcursor-modal-etude .sr-etude-form__nav-btn--prev {
	background: transparent;
	border: 1.5px solid rgba(2, 43, 96, 0.22);
	color: var(--sr-navy);
}

.wpcursor-component.wpcursor-modal-etude .sr-etude-form__nav-btn--prev:hover,
.wpcursor-component.wpcursor-modal-etude .sr-etude-form__nav-btn--prev:focus-visible {
	background: var(--sr-white);
	border-color: var(--sr-navy);
}

.wpcursor-component.wpcursor-modal-etude .sr-etude-form__nav-btn--next {
	background: var(--sr-navy);
	border: 0;
	color: var(--sr-white);
	margin-left: auto;
}

.wpcursor-component.wpcursor-modal-etude .sr-etude-form__nav-btn--next:hover,
.wpcursor-component.wpcursor-modal-etude .sr-etude-form__nav-btn--next:focus-visible {
	background: var(--sr-navy-deep);
	transform: translateY(-1px);
}

.wpcursor-component.wpcursor-modal-etude .sr-etude-form__nav-btn[hidden] {
	display: none !important;
}

.wpcursor-component.wpcursor-modal-etude .sr-etude-form__step-error {
	color: #b42318;
	display: block;
	font-size: 0.8rem;
	font-weight: 600;
	margin-top: 0.4rem;
}

.wpcursor-component.wpcursor-modal-etude .is-step-invalid {
	border-color: #f04438 !important;
}

.wpcursor-component.wpcursor-modal-etude .sr-etude-form__section-title {
	color: var(--sr-navy) !important;
	font-size: 1rem;
	font-weight: 700;
	letter-spacing: -0.01em;
	line-height: 1.3;
	margin: 0 0 0.55rem;
}

.wpcursor-component.wpcursor-modal-etude .sr-etude-form__opt {
	color: var(--sr-muted);
	font-size: 0.82rem;
	font-weight: 500;
}

.wpcursor-component.wpcursor-modal-etude .sr-etude-form__hint,
.wpcursor-component.wpcursor-modal-etude .sr-etude-form__field-hint {
	color: var(--sr-muted);
	font-size: 0.8rem;
	line-height: 1.4;
	margin: 0.75rem 0 0;
}

.wpcursor-component.wpcursor-modal-etude .sr-etude-form__fieldset {
	border: 0;
	margin: 0;
	min-width: 0;
	padding: 0;
}

.wpcursor-component.wpcursor-modal-etude .sr-etude-form__fieldset .wpcf7-form-control-wrap,
.wpcursor-component.wpcursor-modal-etude .sr-etude-form__fieldset .wpcf7-form-control {
	display: block;
	width: 100%;
}

.wpcursor-component.wpcursor-modal-etude .sr-etude-form__fieldset .wpcf7-radio,
.wpcursor-component.wpcursor-modal-etude .sr-etude-form__fieldset .wpcf7-checkbox {
	display: grid;
	gap: 0.55rem;
	grid-template-columns: 1fr;
}

.wpcursor-component.wpcursor-modal-etude .sr-etude-form__fieldset--inline .wpcf7-radio {
	grid-template-columns: 1fr 1fr;
}

.wpcursor-component.wpcursor-modal-etude .sr-etude-form__card,
.wpcursor-component.wpcursor-modal-etude .wpcf7-list-item {
	background: var(--sr-card);
	border: 1.5px solid transparent;
	border-radius: 0.75rem;
	display: block;
	margin: 0 !important;
	transition: background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.wpcursor-component.wpcursor-modal-etude .sr-etude-form__card.is-selected,
.wpcursor-component.wpcursor-modal-etude .wpcf7-list-item.is-selected {
	background: var(--sr-orange-soft);
	border-color: var(--sr-navy);
	box-shadow: 0 0 0 1px rgba(2, 43, 96, 0.08);
}

.wpcursor-component.wpcursor-modal-etude .wpcf7-list-item label {
	align-items: flex-start;
	cursor: pointer;
	display: flex;
	gap: 0.7rem;
	margin: 0;
	padding: 0.85rem 0.9rem;
	width: 100%;
}

.wpcursor-component.wpcursor-modal-etude .wpcf7-list-item input[type="radio"],
.wpcursor-component.wpcursor-modal-etude .wpcf7-list-item input[type="checkbox"] {
	accent-color: var(--sr-navy);
	flex: 0 0 auto;
	height: 1.05rem;
	margin-top: 0.15rem;
	width: 1.05rem;
}

.wpcursor-component.wpcursor-modal-etude .sr-etude-form__card-body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: 0.15rem;
	min-width: 0;
}

.wpcursor-component.wpcursor-modal-etude .sr-etude-form__card-title,
.wpcursor-component.wpcursor-modal-etude .wpcf7-list-item-label {
	color: var(--sr-navy);
	font-size: 0.92rem;
	font-weight: 650;
	line-height: 1.3;
}

.wpcursor-component.wpcursor-modal-etude .sr-etude-form__card-sub {
	color: var(--sr-muted);
	font-size: 0.78rem;
	font-weight: 500;
	line-height: 1.35;
}

.wpcursor-component.wpcursor-modal-etude .sr-etude-form__card--compact label {
	padding: 0.75rem 0.8rem;
}

.wpcursor-component.wpcursor-modal-etude .sr-etude-form__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem;
	margin-bottom: 0.85rem;
}

.wpcursor-component.wpcursor-modal-etude .sr-etude-form__chip {
	background: var(--sr-card);
	border: 1.5px solid transparent;
	border-radius: 999px;
	color: var(--sr-navy);
	cursor: pointer;
	font: inherit;
	font-size: 0.8rem;
	font-weight: 600;
	line-height: 1.2;
	min-height: 40px;
	padding: 0.45rem 0.85rem;
	transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.wpcursor-component.wpcursor-modal-etude .sr-etude-form__chip:hover,
.wpcursor-component.wpcursor-modal-etude .sr-etude-form__chip:focus-visible {
	border-color: #c9d6e8;
}

.wpcursor-component.wpcursor-modal-etude .sr-etude-form__chip.is-selected {
	background: var(--sr-navy);
	border-color: var(--sr-navy);
	color: var(--sr-white);
}

.wpcursor-component.wpcursor-modal-etude .sr-etude-form__slider-label {
	display: block;
	margin: 0 0 0.85rem;
}

.wpcursor-component.wpcursor-modal-etude .sr-etude-form__range {
	accent-color: var(--sr-navy);
	display: block;
	width: 100%;
}

.wpcursor-component.wpcursor-modal-etude .sr-etude-form__grid {
	display: grid;
	gap: 0.65rem;
	grid-template-columns: 1fr;
}

.wpcursor-component.wpcursor-modal-etude .sr-etude-form__field {
	margin: 0 !important;
}

/* CF7 / wpautop injecte des <br> entre label et champ */
.wpcursor-component.wpcursor-modal-etude .sr-etude-form__field > br,
.wpcursor-component.wpcursor-modal-etude .sr-etude-form__section > br,
.wpcursor-component.wpcursor-modal-etude .sr-etude-form__grid > br {
	display: none !important;
}

.wpcursor-component.wpcursor-modal-etude .sr-etude-form__field .wpcf7-form-control-wrap {
	display: block;
	margin: 0;
}

.wpcursor-component.wpcursor-modal-etude .sr-etude-form__field--surface {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem 0.75rem;
}

.wpcursor-component.wpcursor-modal-etude .sr-etude-form__field--surface .sr-etude-form__label {
	margin: 0;
}

.wpcursor-component.wpcursor-modal-etude .sr-etude-form__field--surface .sr-etude-form__field-hint {
	margin: 0;
}

.wpcursor-component.wpcursor-modal-etude .sr-etude-form__label {
	color: var(--sr-navy);
	display: block;
	font-size: 0.84rem;
	font-weight: 600;
	line-height: 1.25;
	margin: 0 0 0.2rem !important;
}

.wpcursor-component.wpcursor-modal-etude .sr-etude-form__unit {
	color: var(--sr-muted);
	font-weight: 500;
}

.wpcursor-component.wpcursor-modal-etude .sr-etude-form__input,
.wpcursor-component.wpcursor-modal-etude .sr-etude-form__textarea,
.wpcursor-component.wpcursor-modal-etude select.sr-etude-form__input {
	appearance: none;
	background: var(--sr-white) !important;
	border: 1.5px solid var(--sr-line) !important;
	border-radius: 0.65rem !important;
	color: var(--sr-navy) !important;
	font: inherit !important;
	font-size: 0.95rem !important;
	line-height: 1.4 !important;
	margin: 0 !important;
	min-height: 46px;
	padding: 0.65rem 0.85rem !important;
	width: 100%;
}

.wpcursor-component.wpcursor-modal-etude .sr-etude-form__input--surface {
	max-width: 8.5rem;
	text-align: right;
}

.wpcursor-component.wpcursor-modal-etude .sr-etude-form__textarea {
	min-height: 6.5rem;
	resize: vertical;
}

.wpcursor-component.wpcursor-modal-etude .sr-etude-form__input:focus,
.wpcursor-component.wpcursor-modal-etude .sr-etude-form__textarea:focus,
.wpcursor-component.wpcursor-modal-etude select.sr-etude-form__input:focus {
	border-color: var(--sr-navy) !important;
	box-shadow: 0 0 0 3px rgba(2, 43, 96, 0.12);
	outline: none;
}

.wpcursor-component.wpcursor-modal-etude .sr-etude-form__submit-row {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 0.85rem 1.1rem;
	margin: 0.15rem 0 0;
}

.wpcursor-component.wpcursor-modal-etude .sr-etude-form__submit-row[hidden] {
	display: none !important;
}

.wpcursor-component.wpcursor-modal-etude .sr-etude-form__submit,
.wpcursor-component.wpcursor-modal-etude input.wpcf7-submit.sr-etude-form__submit {
	appearance: none;
	background: var(--sr-navy) !important;
	border: 0 !important;
	border-radius: 0.65rem !important;
	color: var(--sr-white) !important;
	cursor: pointer;
	font: inherit !important;
	font-size: 0.95rem !important;
	font-weight: 700 !important;
	line-height: 1.2 !important;
	min-height: 48px;
	padding: 0.85rem 1.25rem !important;
	transition: background-color 0.18s ease, transform 0.15s ease;
	width: auto !important;
}

.wpcursor-component.wpcursor-modal-etude .sr-etude-form__submit:hover,
.wpcursor-component.wpcursor-modal-etude .sr-etude-form__submit:focus-visible {
	background: var(--sr-navy-deep) !important;
	transform: translateY(-1px);
}

.wpcursor-component.wpcursor-modal-etude .sr-etude-form__submit-note {
	color: var(--sr-muted);
	font-size: 0.88rem;
	font-weight: 500;
}

.wpcursor-component.wpcursor-modal-etude .wpcf7-not-valid-tip,
.wpcursor-component.wpcursor-modal-etude .wpcf7-response-output {
	font-size: 0.85rem;
	margin-top: 0.55rem;
}

.wpcursor-component.wpcursor-modal-etude .screen-reader-text {
	border: 0;
	clip: rect(0 0 0 0);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
}

html.wpcursor-etude-modal-open,
body.wpcursor-etude-modal-open {
	overflow: hidden !important;
}

body.wpcursor-etude-modal-open {
	left: 0;
	position: fixed;
	right: 0;
	width: 100%;
}

@media (min-width: 720px) {
	.wpcursor-component.wpcursor-modal-etude .wpcursor-modal-etude__header {
		padding: 1.55rem 3.6rem 1.4rem 1.6rem;
	}

	.wpcursor-component.wpcursor-modal-etude .wpcursor-modal-etude__body {
		padding: 1.25rem 1.35rem 1.55rem;
	}

	.wpcursor-component.wpcursor-modal-etude .sr-etude-form__fieldset .wpcf7-radio,
	.wpcursor-component.wpcursor-modal-etude .sr-etude-form__fieldset .wpcf7-checkbox {
		grid-template-columns: 1fr 1fr;
	}

	.wpcursor-component.wpcursor-modal-etude .sr-etude-form__fieldset--inline .wpcf7-radio {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.wpcursor-component.wpcursor-modal-etude .sr-etude-form__grid {
		grid-template-columns: 1fr 1fr;
	}

	.wpcursor-component.wpcursor-modal-etude .sr-etude-form__field--full {
		grid-column: 1 / -1;
	}
}

@media (max-width: 520px) {
	.wpcursor-component.wpcursor-modal-etude .wpcursor-modal-etude__dialog {
		border-radius: 0.85rem;
		max-height: 96vh;
	}

	.wpcursor-component.wpcursor-modal-etude .sr-etude-form__fieldset--inline .wpcf7-radio {
		grid-template-columns: 1fr;
	}
}

@media (prefers-reduced-motion: reduce) {
	.wpcursor-component.wpcursor-modal-etude .sr-etude-form__card,
	.wpcursor-component.wpcursor-modal-etude .sr-etude-form__chip,
	.wpcursor-component.wpcursor-modal-etude .sr-etude-form__submit,
	.wpcursor-component.wpcursor-modal-etude .sr-etude-form__nav-btn,
	.wpcursor-component.wpcursor-modal-etude .wpcursor-modal-etude__progress-bar {
		transition: none;
	}
}
