/* Formulaire de candidature */

.cand {
	box-sizing: border-box;
	max-width: 1200px;
	margin: 0 auto;
	padding: clamp(24px, 3vw, 44px) clamp(16px, 4vw, 40px) clamp(40px, 5vw, 72px);
	font-family: 'Source Sans 3', system-ui, sans-serif;
	color: #121212;
}

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

.cand a[href] {
	color: #121212;
	text-decoration: underline;
}

.cand a[href]:hover {
	color: #b00014;
}

/* Disposition */

.cand-grille {
	display: flex;
	flex-wrap: wrap;
	gap: clamp(24px, 3vw, 48px);
	align-items: flex-start;
}

.cand-form {
	flex: 999 1 560px;
	min-width: 0;
	border-top: 2px solid #121212;
	padding-top: 30px;
	margin: 0;
}

.cand-aside {
	flex: 1 1 300px;
	min-width: 0;
	border-top: 2px solid #e4e4e0;
	padding-top: 30px;
	display: flex;
	flex-direction: column;
	gap: 26px;
}

.cand-bloc h2 {
	margin: 0 0 10px;
	font-family: 'Archivo', system-ui, sans-serif;
	font-weight: 700;
	font-size: 21px;
	line-height: 1.2;
	letter-spacing: -0.015em;
	color: #121212;
}

.cand-bloc p {
	margin: 0;
	font-size: 16px;
	line-height: 1.7;
	color: #55554f;
}

/* Champs */

.cand-champ {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin: 0 0 26px;
}

.cand-duo {
	display: grid;
	grid-template-columns: repeat(2, minmax(190px, 1fr));
	gap: 20px;
}

.cand-duo .cand-champ {
	margin-bottom: 26px;
}

.cand label {
	font-size: 15px;
	font-weight: 600;
	line-height: 1.4;
	color: #121212;
}

.cand-etoile {
	color: #e2001a;
}

.cand-aide {
	font-size: 14px;
	line-height: 1.55;
	font-weight: 400;
	color: #55554f;
}

.cand input[type="text"],
.cand input[type="tel"],
.cand input[type="file"] {
	width: 100%;
	max-width: 100%;
	min-height: 48px;
	padding: 0 14px;
	border: 1px solid #c9c9c3;
	border-radius: 0;
	background: #ffffff;
	font-size: 16px;
	color: #121212;
	box-shadow: none;
}

.cand input[type="text"]:focus,
.cand input[type="tel"]:focus,
.cand input[type="file"]:focus {
	outline: 2px solid #121212;
	outline-offset: 1px;
	border-color: #121212;
}

.cand input[type="file"] {
	padding: 12px 14px;
	border-style: dashed;
	border-color: #a8a8a1;
	color: #55554f;
}

/* Telephone */

.cand-tel {
	display: flex;
	align-items: stretch;
}

.cand-tel__prefixe {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	padding: 0 14px;
	min-height: 48px;
	border: 1px solid #c9c9c3;
	border-right: 0;
	background: #f4f4f2;
	font-weight: 600;
	color: #55554f;
}

.cand-tel input[type="tel"] {
	flex: 1 1 auto;
	min-width: 0;
}

/* Code de validation */

.cand-code {
	padding: 22px;
	margin: 0 0 26px;
	background: #f4f4f2;
	border-left: 3px solid #e2001a;
}

.cand-code .cand-champ {
	margin-bottom: 0;
}

.cand-code input[type="text"] {
	max-width: 280px;
	font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

/* Autorisation */

.cand-accord {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin: 0 0 26px;
}

.cand-accord input[type="checkbox"] {
	flex: 0 0 auto;
	width: 20px;
	height: 20px;
	margin: 2px 0 0;
	accent-color: #e2001a;
}

.cand-accord label {
	font-size: 15px;
	font-weight: 400;
	line-height: 1.6;
	color: #55554f;
}

/* Envoi */

.cand-envoi {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 18px;
	margin: 0;
}

.cand .cand-bouton {
	min-height: 52px;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 0 32px;
	border: 0;
	border-radius: 0;
	background: #e2001a;
	color: #ffffff;
	font-family: 'Source Sans 3', system-ui, sans-serif;
	font-size: 17px;
	font-weight: 600;
	cursor: pointer;
}

.cand .cand-bouton:hover,
.cand .cand-bouton:focus {
	background: #b00014;
	color: #ffffff;
}

/* Champ piege, invisible mais atteignable par un robot */

.cand-piege {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* Message d'erreur */

.cand-erreur {
	margin: 0 0 28px;
	padding: 16px 20px;
	background: #fdeaec;
	border-left: 3px solid #e2001a;
	font-size: 16px;
	line-height: 1.6;
	color: #121212;
}

/* Confirmation */

.cand--merci {
	max-width: 760px;
	margin: 0 auto;
}

.cand-coche {
	width: 64px;
	height: 64px;
	border-radius: 50%;
	background: #e2001a;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 0 22px;
}

.cand-merci__titre {
	margin: 0 0 18px;
	font-family: 'Archivo', system-ui, sans-serif;
	font-weight: 700;
	font-size: clamp(26px, 3vw, 38px);
	line-height: 1.1;
	letter-spacing: -0.025em;
	color: #121212;
}

.cand-merci__texte {
	margin: 0 0 22px;
	max-width: 620px;
	font-size: 19px;
	line-height: 1.65;
	color: #55554f;
}

.cand-ref {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 22px;
	background: #f4f4f2;
	border-left: 3px solid #c9c9c3;
}

.cand-ref__label {
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #55554f;
}

.cand-ref__valeur {
	font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
	font-size: 22px;
	letter-spacing: 0.08em;
	color: #121212;
}

.cand-ref__aide {
	font-size: 15px;
	line-height: 1.55;
	color: #55554f;
}

/* Mobile */

@media (max-width: 600px) {
	.cand-duo {
		grid-template-columns: 1fr;
	}
}

/* En-tete de la page */

.cand-entete {
	display: flex;
	flex-direction: column;
	gap: 16px;
	margin: 0 0 clamp(28px, 3vw, 44px);
}

.cand-sur {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 0;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.18em;
	color: #e2001a;
}

.cand-sur__trait {
	flex: 0 0 44px;
	width: 44px;
	height: 3px;
	background: #e2001a;
}

.cand .cand-titre {
	margin: 0;
	font-family: 'Archivo', system-ui, sans-serif;
	font-weight: 800;
	font-size: clamp(34px, 4.4vw, 56px);
	line-height: 1.04;
	letter-spacing: -0.03em;
	color: #121212;
}

.cand-chapo {
	margin: 0;
	max-width: 620px;
	font-size: 19px;
	line-height: 1.6;
	color: #55554f;
}

.cand-merci {
	max-width: 760px;
	border-top: 2px solid #121212;
	padding-top: 34px;
}

/* Liste deroulante et zone de texte */

.cand select {
	width: 100%;
	max-width: 100%;
	min-height: 48px;
	padding: 0 40px 0 14px;
	border: 1px solid #c9c9c3;
	border-radius: 0;
	background-color: #ffffff;
	background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9' fill='none'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%23121212' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 16px center;
	font-size: 16px;
	color: #121212;
	appearance: none;
	box-shadow: none;
}

.cand textarea {
	width: 100%;
	max-width: 100%;
	min-height: 130px;
	padding: 12px 14px;
	border: 1px solid #c9c9c3;
	border-radius: 0;
	background: #ffffff;
	font-family: inherit;
	font-size: 16px;
	line-height: 1.6;
	color: #121212;
	resize: vertical;
	box-shadow: none;
}

.cand select:focus,
.cand textarea:focus {
	outline: 2px solid #121212;
	outline-offset: 1px;
	border-color: #121212;
}
