/* =====================================================================
   Formulaire d'inscription (maquette Figma "Form") — styles partagés
   landing mini-formation + landing masterclass.
   Carte blanche 550px, bordure #0B0F1C, radius 16 ; champs 48px radius 8.
   Big Neurons — 2026-07
   ===================================================================== */

.aa-form {
	background: #fff;
	border: 1px solid #0B0F1C;
	border-radius: 16px;
	padding: 32px;
	width: 550px;
	max-width: 100%;
	box-sizing: border-box;
}
.aa-form *,
.aa-form *::before,
.aa-form *::after { box-sizing: border-box; }

.aa-form__inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 24px;
	padding-top: 16px;
	margin: 0;
	width: 100%;
}

.aa-form__title {
	font-family: 'Avenir Black', 'Avenir Regular', sans-serif;
	font-size: 40px;
	line-height: 1.1;
	color: #0B0F1C;
	text-align: center;
	margin: 0;
}
.aa-form__subtitle {
	font-family: 'Avenir Regular', sans-serif;
	font-size: 16px;
	line-height: 1.3;
	color: #0B0F1C;
	text-align: center;
	margin: -8px 0 0;
}
.aa-form__sep {
	display: block;
	width: 100%;
	height: 1px;
	background: #E3E6F0;
}

.aa-form__fields {
	display: flex;
	flex-direction: column;
	gap: 16px;
	width: 100%;
}
.aa-form__row {
	display: flex;
	gap: 16px;
	width: 100%;
}
.aa-form__row > * { flex: 1 1 0; min-width: 0; }

.aa-input {
	height: 48px;
	width: 100%;
	background: #fff;
	border: 1px solid #0B0F1C;
	border-radius: 8px;
	padding: 0 24px;
	font-family: 'Avenir Regular', sans-serif;
	font-size: 14px;
	line-height: 16px;
	color: #0B0F1C;
	outline: none;
	appearance: none;
	-webkit-appearance: none;
}
.aa-input::placeholder { color: #0B0F1C; opacity: 1; }
.aa-input:focus { border-color: #377EF4; }
.aa-input.aa-error { border-color: #EB5757; }

/* select "Fonction" : chevron custom (maquette) */
.aa-select-wrap { position: relative; display: block; }
.aa-select { padding-right: 48px; cursor: pointer; }
.aa-select-wrap::after {
	content: "";
	position: absolute;
	right: 18px;
	top: 50%;
	width: 14px;
	height: 8px;
	transform: translateY(-50%);
	background: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 8' fill='none'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%230B0F1C' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
	pointer-events: none;
}

/* consentement */
.aa-form__consent {
	display: flex;
	align-items: center;
	gap: 14px;
	width: 100%;
	cursor: pointer;
}
.aa-checkbox {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
}
.aa-checkbox__box {
	flex: 0 0 auto;
	width: 24px;
	height: 24px;
	border: 1px solid #0B0F1C;
	border-radius: 5px;
	background: #fff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: transparent;
	transition: all .15s ease;
}
.aa-checkbox__box svg { width: 12px; height: 9px; }
.aa-checkbox:checked + .aa-checkbox__box {
	background: #377EF4;
	border-color: #377EF4;
	color: #fff;
}
.aa-checkbox:focus-visible + .aa-checkbox__box { outline: 2px solid #377EF4; outline-offset: 2px; }
.aa-form__consent.aa-error .aa-checkbox__box { border-color: #EB5757; }
.aa-form__consent-text {
	font-family: 'Poppins', 'Avenir Regular', sans-serif;
	font-size: 12px;
	line-height: 1.5;
	color: #0B0F1C;
}
.aa-form__consent-text a { color: inherit; text-decoration: underline; }

/* honeypot */
.aa-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	opacity: 0;
}

/* CTA — !important : le kit Elementor impose couleur/bordure rouges (#C36)
   aux <button> avec des règles plus spécifiques */
.aa-form__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	background: linear-gradient(to right, #367EF3, #3AEEEB) !important;
	border: 0 !important;
	outline: 0;
	border-radius: 40px !important;
	padding: 20px 36px;
	font-family: 'Avenir Regular', sans-serif;
	font-size: 18px;
	line-height: 18px;
	color: #fff !important;
	cursor: pointer;
	transition: filter .25s ease, opacity .25s ease;
}
.aa-form__cta:hover { filter: brightness(1.06); }
.aa-form__cta[disabled] { opacity: .6; cursor: wait; }

.aa-form__note {
	font-family: 'Avenir Regular', sans-serif;
	font-size: 16px;
	line-height: 1;
	color: #0B0F1C;
	text-align: center;
	margin: 0;
}

.aa-form__logos {
	width: 100%;
	max-width: 486px;
	height: auto;
	display: block;
	margin-top: 8px;
}

.aa-form__feedback {
	display: none;
	font-family: 'Avenir Regular', sans-serif;
	font-size: 14px;
	color: #EB5757;
	text-align: center;
	margin: 0;
}
.aa-form__feedback.is-visible { display: block; }

/* état succès */
.aa-form__success { text-align: center; padding: 48px 0; }
.aa-form__success-title {
	font-family: 'Avenir Black', 'Avenir Regular', sans-serif;
	font-size: 32px;
	color: #0B0F1C;
	margin: 0 0 12px;
}
.aa-form__success-text {
	font-family: 'Avenir Regular', sans-serif;
	font-size: 16px;
	color: #0B0F1C;
	margin: 0;
}

/* mobile (maquette : champs empilés, carte pleine largeur) */
@media (max-width: 767px) {
	.aa-form { width: 100%; padding: 24px; }
	.aa-form__row { flex-direction: column; gap: 16px; }
	.aa-form__title { font-size: 26px; }
	.aa-form__cta { width: 100%; }
}
