/* L'Recrute Formulaires. Tout est préfixé .lrf pour ne pas croiser les styles de Divi. */

.lrf {
	--lrf-accent: #117A74;
	--lrf-texte: #2B2F2F;
	--lrf-doux: #707070;
	--lrf-bord: #C9CED6;
	--lrf-fond: #F3F4F9;
	--lrf-alerte: #B3261E;
	color: var(--lrf-texte);
	font-family: var(--lrf-police, inherit);
	text-align: left;
	container-type: inline-size;
}

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

.lrf .lrf-form,
.lrf-succes {
	background: #fff;
	border-radius: 16px;
	padding: 36px;
	box-shadow: 0 8px 30px rgba(43, 47, 47, 0.08);
	display: flex;
	flex-direction: column;
	gap: 18px;
	margin: 0;
}

.lrf .lrf-titre {
	margin: 0;
	padding: 0;
	font-size: 22px;
	line-height: 1.3;
	font-weight: 700;
}

.lrf .lrf-texte {
	margin: 0;
	padding: 0;
	font-size: 15px;
	line-height: 1.6;
	color: #50565C;
}

.lrf .lrf-bloc {
	border: 0;
	margin: 0;
	padding: 0;
	min-width: 0;
}

.lrf .lrf-bloc + .lrf-bloc {
	margin-top: 8px;
}

.lrf .lrf-bloc-titre {
	padding: 0;
	margin: 0 0 14px;
	font-size: 18px;
	line-height: 1.3;
	font-weight: 700;
	color: var(--lrf-texte);
}

.lrf .lrf-grille {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
	align-items: end;
}

.lrf .lrf-champ {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
	grid-column: 1 / -1;
}

.lrf .lrf-champ--demi {
	grid-column: auto;
}

.lrf .lrf-label {
	font-size: 13px;
	line-height: 1.4;
	font-weight: 600;
	color: #444848;
}

.lrf .lrf-requis {
	color: var(--lrf-alerte);
}

.lrf .lrf-facultatif {
	font-weight: 500;
	color: var(--lrf-doux);
}

.lrf .lrf-form input.lrf-input,
.lrf .lrf-form textarea.lrf-input {
	width: 100%;
	height: 48px;
	margin: 0;
	padding: 0 14px;
	font-family: inherit;
	font-size: 16px;
	line-height: 1.4;
	color: var(--lrf-texte);
	background: #fff;
	border: 1px solid var(--lrf-bord);
	border-radius: 10px;
	box-shadow: none;
	text-align: left;
}

.lrf .lrf-form textarea.lrf-input {
	height: auto;
	min-height: 104px;
	padding: 12px 14px;
	resize: vertical;
}

.lrf .lrf-form .lrf-input::placeholder {
	color: #8A9099;
	opacity: 1;
}

.lrf .lrf-form .lrf-input:focus,
.lrf .lrf-form .lrf-fichier:focus-visible {
	outline: 2px solid var(--lrf-accent);
	outline-offset: 1px;
	border-color: var(--lrf-accent);
}

.lrf .lrf-fichier {
	width: 100%;
	padding: 12px 14px;
	font-family: inherit;
	font-size: 14px;
	color: var(--lrf-texte);
	background: var(--lrf-fond);
	border: 1px dashed var(--lrf-bord);
	border-radius: 10px;
}

.lrf .lrf-aide {
	font-size: 12px;
	line-height: 1.4;
	color: var(--lrf-doux);
}

.lrf .lrf-case {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 13px;
	line-height: 1.5;
	color: #444848;
	cursor: pointer;
}

.lrf .lrf-case input {
	flex: none;
	width: 18px;
	height: 18px;
	margin: 2px 0 0;
	accent-color: var(--lrf-accent);
}

.lrf .lrf-champ--invalide .lrf-input,
.lrf .lrf-champ--invalide .lrf-fichier {
	border-color: var(--lrf-alerte);
}

.lrf .lrf-champ--invalide .lrf-label,
.lrf .lrf-champ--invalide .lrf-case {
	color: var(--lrf-alerte);
}

/* Champ piège : hors écran, jamais annoncé ni atteint au clavier. */
.lrf .lrf-piege {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.lrf .lrf-erreur {
	margin: 0;
	padding: 12px 14px;
	font-size: 14px;
	line-height: 1.5;
	color: var(--lrf-alerte);
	background: #FDECEA;
	border-radius: 10px;
}

.lrf .lrf-erreur[hidden] {
	display: none;
}

.lrf .lrf-bouton,
.lrf-succes .lrf-bouton {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 56px;
	margin: 4px 0 0;
	padding: 12px 20px;
	font-family: inherit;
	font-size: 16px;
	line-height: 1.3;
	font-weight: 700;
	color: #fff;
	text-align: center;
	text-decoration: none;
	background: var(--lrf-accent);
	border: 0;
	border-radius: 10px;
	cursor: pointer;
	transition: filter 0.15s ease;
}

.lrf .lrf-bouton:hover,
.lrf-succes .lrf-bouton:hover {
	filter: brightness(0.88);
	color: #fff;
}

.lrf .lrf-bouton:focus-visible,
.lrf-succes .lrf-bouton:focus-visible {
	outline: 2px solid var(--lrf-texte);
	outline-offset: 2px;
}

.lrf .lrf-bouton[disabled] {
	opacity: 0.7;
	cursor: progress;
}

.lrf .lrf-reassurance,
.lrf .lrf-mention {
	margin: 0;
	padding: 0;
	text-align: center;
	color: var(--lrf-doux);
}

.lrf .lrf-reassurance {
	font-size: 13px;
	line-height: 1.5;
}

.lrf .lrf-mention {
	font-size: 12px;
	line-height: 1.5;
}

.lrf .lrf-form a {
	color: var(--lrf-accent);
	text-decoration: underline;
}

.lrf .lrf-appel {
	margin: 4px 0 0;
	padding: 0;
	font-size: 15px;
	line-height: 1.5;
	color: #444848;
	text-align: center;
}

.lrf .lrf-form .lrf-tel {
	font-weight: 700;
	white-space: nowrap;
}

/* Divi retire la marge basse du dernier paragraphe : sélecteur renforcé. */
.lrf .lrf-form p.lrf-aiguillage,
.lrf .lrf-aiguillage {
	margin: 4px 0 0;
	padding: 14px 16px;
	font-size: 14px;
	line-height: 1.5;
	color: #444848;
	text-align: center;
	background: var(--lrf-fond);
	border-radius: 10px;
}

.lrf .lrf-aiguillage a {
	font-weight: 600;
}

.lrf-succes {
	align-items: flex-start;
	gap: 12px;
	outline: none;
}

.lrf-succes .lrf-succes-titre {
	margin: 0;
	padding: 0;
	font-size: 20px;
	line-height: 1.3;
	font-weight: 700;
}

.lrf-succes .lrf-succes-texte {
	margin: 0;
	padding: 0;
	font-size: 15px;
	line-height: 1.6;
	color: #50565C;
}

.lrf-succes .lrf-bouton--lien {
	width: auto;
	margin-top: 8px;
}

/* Deux étapes. Sans JavaScript (.lrf-js-etapes absent), tout reste visible. */
.lrf .lrf-progression,
.lrf .lrf-continuer,
.lrf .lrf-recap,
.lrf .lrf-retour-ligne {
	display: none;
}

.lrf .lrf-js-etapes .lrf-progression {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.lrf .lrf-progression-texte {
	margin: 0;
	padding: 0;
	font-size: 13px;
	line-height: 1.4;
	font-weight: 600;
	color: var(--lrf-doux);
}

.lrf .lrf-progression-barre {
	height: 6px;
	background: var(--lrf-fond);
	border-radius: 3px;
	overflow: hidden;
}

.lrf .lrf-progression-barre span {
	display: block;
	width: 50%;
	height: 100%;
	background: var(--lrf-accent);
	border-radius: 3px;
	transition: width 0.25s ease;
}

.lrf .lrf-js-etapes[data-etape-active="2"] .lrf-progression-barre span {
	width: 100%;
}

.lrf .lrf-js-etapes .lrf-continuer {
	display: inline-flex;
}

.lrf .lrf-js-etapes[data-etape-active="1"] .lrf-seulement-2,
.lrf .lrf-js-etapes[data-etape-active="2"] .lrf-seulement-1 {
	display: none;
}

.lrf .lrf-js-etapes[data-etape-active="2"] .lrf-recap {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 8px 16px;
	margin: 0;
	padding: 12px 14px;
	font-size: 14px;
	line-height: 1.5;
	color: #444848;
	background: var(--lrf-fond);
	border-radius: 10px;
}

.lrf .lrf-recap-texte {
	min-width: 0;
	overflow-wrap: anywhere;
}

.lrf .lrf-js-etapes[data-etape-active="2"] .lrf-retour-ligne {
	display: block;
	margin: 0;
	padding: 0;
	text-align: center;
}

.lrf .lrf-form .lrf-lien {
	padding: 6px 2px;
	font-family: inherit;
	font-size: 14px;
	line-height: 1.4;
	font-weight: 600;
	color: var(--lrf-accent);
	text-decoration: underline;
	background: none;
	border: 0;
	cursor: pointer;
}

.lrf .lrf-form .lrf-lien:focus-visible {
	outline: 2px solid var(--lrf-accent);
	outline-offset: 2px;
}

/* Colonne moyenne : deux champs par ligne, marges réduites. */
@container (max-width: 520px) {
	.lrf .lrf-form,
	.lrf-succes {
		padding: 28px 24px;
	}

	.lrf .lrf-grille {
		gap: 14px 12px;
	}
}

/* Colonne étroite ou mobile : un champ par ligne. */
@container (max-width: 400px) {
	.lrf .lrf-grille {
		grid-template-columns: minmax(0, 1fr);
	}

	.lrf .lrf-form,
	.lrf-succes {
		padding: 24px 20px;
	}
}

@media (max-width: 480px) {
	.lrf .lrf-grille {
		grid-template-columns: minmax(0, 1fr);
	}

	.lrf .lrf-form,
	.lrf-succes {
		padding: 24px 20px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.lrf .lrf-bouton,
	.lrf .lrf-progression-barre span {
		transition: none;
	}
}
