/*
 * SG Conseil — Candidature page
 *
 * Loaded only when the Candidature page template is active.
 * Pairs with templates/pages/candidature.php.
 */

/* =============================================================================
   Page base
   ========================================================================== */
.sgc-page-candidature {
	background-color: var(--sgc-brand-50, #f5f7fb);
	color: #1f2937;
	padding-bottom: 5rem;
	overflow-x: hidden;
}

/* =============================================================================
   Hero
   ========================================================================== */
.sgc-candidature-hero {
	position: relative;
	padding: 5rem 0 6.5rem;
	color: #fff;
	background: linear-gradient(135deg, var(--sgc-brand) 0%, var(--sgc-brand-dark) 100%);
	overflow: hidden;
}

.sgc-candidature-hero::before,
.sgc-candidature-hero::after {
	content: '';
	position: absolute;
	border-radius: 50%;
	pointer-events: none;
}

.sgc-candidature-hero::before {
	width: 480px;
	height: 480px;
	top: -160px;
	right: -120px;
	background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 60%);
}

.sgc-candidature-hero::after {
	width: 360px;
	height: 360px;
	bottom: -180px;
	left: -80px;
	background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 60%);
}

.sgc-candidature-hero .container {
	position: relative;
	z-index: 1;
}

.sgc-candidature-eyebrow {
	display: inline-block;
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.7);
	margin-bottom: 1rem;
	padding: 0.375rem 0.875rem;
	border-radius: 999px;
	background-color: rgba(255, 255, 255, 0.08);
	backdrop-filter: blur(8px);
}

.sgc-candidature-title {
	font-size: clamp(2.125rem, 4.5vw, 3.5rem);
	font-weight: 700;
	margin: 0 0 1.25rem;
	line-height: 1.1;
	letter-spacing: -0.02em;
	color: #fff;
}

.sgc-candidature-intro {
	font-size: 1.125rem;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.85);
	max-width: 36rem;
	margin: 0 auto;
}

/* =============================================================================
   Step indicator
   ========================================================================== */
.sgc-candidature-steps {
	display: flex;
	justify-content: center;
	align-items: flex-start;
	gap: 0;
	list-style: none;
	margin: 3.5rem auto 0;
	padding: 0;
	max-width: 720px;
	position: relative;
}

.sgc-step {
	flex: 1 1 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	position: relative;
	padding: 0 0.5rem;
}

.sgc-step:not(:last-child)::after {
	content: '';
	position: absolute;
	top: 1.375rem;
	left: calc(50% + 1.625rem);
	right: calc(-50% + 1.625rem);
	height: 2px;
	background: rgba(255, 255, 255, 0.18);
	z-index: 0;
}

.sgc-step-num {
	width: 2.75rem;
	height: 2.75rem;
	border-radius: 50%;
	background-color: rgba(255, 255, 255, 0.1);
	border: 2px solid rgba(255, 255, 255, 0.25);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 1rem;
	margin-bottom: 0.875rem;
	position: relative;
	z-index: 1;
	transition: all 0.2s ease;
}

.sgc-step.is-active .sgc-step-num {
	background-color: #fff;
	color: var(--sgc-brand);
	border-color: #fff;
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.sgc-step-label {
	font-size: 0.875rem;
	color: rgba(255, 255, 255, 0.75);
	font-weight: 500;
	line-height: 1.3;
}

.sgc-step.is-active .sgc-step-label {
	color: #fff;
	font-weight: 600;
}

/* =============================================================================
   Body — overlap hero
   ========================================================================== */
.sgc-candidature-body {
	margin-top: -3.5rem;
	position: relative;
	z-index: 2;
}

/* =============================================================================
   Aside (trust + USPs)
   ========================================================================== */
.sgc-candidature-aside {
	background-color: #fff;
	border-radius: 16px;
	padding: 2rem;
	box-shadow:
		0 2px 6px rgba(26, 43, 92, 0.04),
		0 16px 40px rgba(26, 43, 92, 0.08);
	position: sticky;
	top: 1.5rem;
}

.sgc-aside-title {
	font-size: 1rem;
	font-weight: 700;
	color: var(--sgc-brand);
	margin: 0 0 1.5rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

.sgc-feature-list {
	list-style: none;
	margin: 0 0 2rem;
	padding: 0;
}

.sgc-feature-list li {
	display: flex;
	gap: 0.875rem;
	margin-bottom: 1.5rem;
	align-items: flex-start;
}

.sgc-feature-list li:last-child {
	margin-bottom: 0;
}

.sgc-feature-list i {
	flex: 0 0 auto;
	width: 2.75rem;
	height: 2.75rem;
	border-radius: 12px;
	background-color: rgba(var(--sgc-brand-rgb), 0.08);
	color: var(--sgc-brand);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.25rem;
}

.sgc-feature-list h3 {
	font-size: 0.9375rem;
	font-weight: 600;
	color: #111827;
	margin: 0 0 0.25rem;
	line-height: 1.3;
}

.sgc-feature-list p {
	font-size: 0.875rem;
	color: #6b7280;
	margin: 0;
	line-height: 1.5;
}

.sgc-trust-card {
	background-color: rgba(var(--sgc-brand-rgb), 0.04);
	border-radius: 12px;
	padding: 1.25rem;
	display: flex;
	gap: 0.875rem;
	align-items: flex-start;
}

.sgc-trust-card > i {
	color: var(--sgc-brand);
	font-size: 1.5rem;
	flex-shrink: 0;
	margin-top: 0.125rem;
}

.sgc-trust-card strong {
	color: var(--sgc-brand);
	display: block;
	margin-bottom: 0.25rem;
	font-size: 0.9375rem;
}

.sgc-trust-card p {
	font-size: 0.8125rem;
	color: #4b5563;
	margin: 0 0 0.5rem;
	line-height: 1.4;
}

.sgc-trust-card a {
	color: var(--sgc-brand);
	font-weight: 600;
	font-size: 0.875rem;
	text-decoration: none;
}

.sgc-trust-card a:hover {
	text-decoration: underline;
}

/* =============================================================================
   Form card
   ========================================================================== */
.sgc-form-card {
	background-color: #fff;
	border-radius: 16px;
	padding: 2.5rem;
	box-shadow:
		0 2px 6px rgba(26, 43, 92, 0.04),
		0 16px 40px rgba(26, 43, 92, 0.08);
}

.sgc-form-section {
	border: 0;
	padding: 0;
	margin: 0 0 2rem;
	min-width: 0;
}

.sgc-form-section:last-of-type {
	margin-bottom: 1.5rem;
}

.sgc-form-section > legend {
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: #6b7280;
	padding: 0 0 0.875rem;
	margin: 0 0 1.25rem;
	width: 100%;
	border-bottom: 1px solid rgba(var(--sgc-brand-rgb), 0.1);
	display: flex;
	align-items: center;
	gap: 0.625rem;
	float: none;
}

.sgc-section-num {
	width: 1.5rem;
	height: 1.5rem;
	border-radius: 50%;
	background-color: var(--sgc-brand);
	color: #fff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 0.75rem;
	font-weight: 700;
}

/* =============================================================================
   Form fields
   ========================================================================== */
.sgc-page-candidature .form-label {
	font-size: 0.875rem;
	font-weight: 600;
	color: #1f2937;
	margin-bottom: 0.375rem;
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
}

.sgc-required {
	color: #dc3545;
	font-weight: 700;
}

.sgc-page-candidature .form-control,
.sgc-page-candidature .form-select {
	border: 1.5px solid #e5e7eb;
	border-radius: 10px;
	padding: 0.625rem 0.875rem;
	font-size: 0.9375rem;
	color: #1f2937;
	background-color: #fff;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
	min-height: 46px;
}

.sgc-page-candidature .form-control::placeholder {
	color: #9ca3af;
}

.sgc-page-candidature .form-control:focus,
.sgc-page-candidature .form-select:focus {
	border-color: var(--sgc-brand);
	box-shadow: 0 0 0 4px rgba(var(--sgc-brand-rgb), 0.12);
	outline: 0;
}

.sgc-page-candidature .form-control.is-invalid,
.sgc-page-candidature .form-select.is-invalid {
	border-color: #dc3545;
	background-image: none;
	padding-right: 0.875rem;
}

.sgc-page-candidature .form-control.is-invalid:focus,
.sgc-page-candidature .form-select.is-invalid:focus {
	box-shadow: 0 0 0 4px rgba(220, 53, 69, 0.15);
}

.sgc-page-candidature .invalid-feedback {
	font-size: 0.8125rem;
	color: #dc2626;
	font-weight: 500;
	margin-top: 0.375rem;
}

.sgc-page-candidature textarea.form-control {
	min-height: 8rem;
	resize: vertical;
	line-height: 1.5;
}

/* =============================================================================
   RGPD
   ========================================================================== */
.sgc-form-rgpd {
	background-color: rgba(var(--sgc-brand-rgb), 0.03);
	border: 1px solid rgba(var(--sgc-brand-rgb), 0.1);
	border-radius: 12px;
	padding: 1.125rem 1.25rem;
	margin: 0.5rem 0 1.75rem;
}

.sgc-form-rgpd .form-check {
	margin: 0;
	display: flex;
	gap: 0.625rem;
	align-items: flex-start;
}

.sgc-form-rgpd .form-check-input {
	width: 1.125rem;
	height: 1.125rem;
	border: 1.5px solid #cbd5e0;
	border-radius: 5px;
	margin-top: 0.1875rem;
	margin-left: 0;
	flex-shrink: 0;
	cursor: pointer;
}

.sgc-form-rgpd .form-check-input:checked {
	background-color: var(--sgc-brand);
	border-color: var(--sgc-brand);
}

.sgc-form-rgpd .form-check-input:focus {
	box-shadow: 0 0 0 4px rgba(var(--sgc-brand-rgb), 0.15);
	border-color: var(--sgc-brand);
}

.sgc-form-rgpd .form-check-label {
	font-size: 0.8125rem;
	color: #4b5563;
	line-height: 1.55;
	margin: 0;
	cursor: pointer;
}

.sgc-form-rgpd .form-check-label a {
	color: var(--sgc-brand);
	font-weight: 600;
}

/* =============================================================================
   Submit button
   ========================================================================== */
.sgc-btn-submit {
	background-color: var(--sgc-brand);
	color: #fff;
	border: 0;
	width: 100%;
	padding: 0.875rem 1.5rem;
	font-size: 1rem;
	font-weight: 600;
	border-radius: 12px;
	transition: background-color 0.15s ease, transform 0.05s ease, box-shadow 0.15s ease;
	box-shadow: 0 6px 18px rgba(var(--sgc-brand-rgb), 0.28);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	min-height: 54px;
	cursor: pointer;
}

.sgc-btn-submit:hover {
	background-color: var(--sgc-brand-dark);
	box-shadow: 0 8px 22px rgba(var(--sgc-brand-rgb), 0.38);
}

.sgc-btn-submit:focus-visible {
	outline: 3px solid rgba(var(--sgc-brand-rgb), 0.5);
	outline-offset: 2px;
}

.sgc-btn-submit:active {
	transform: translateY(1px);
	box-shadow: 0 3px 10px rgba(var(--sgc-brand-rgb), 0.3);
}

.sgc-btn-submit:disabled {
	opacity: 0.7;
	cursor: not-allowed;
}

.sgc-btn-submit .sgc-submit-label,
.sgc-btn-submit .sgc-submit-spinner {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
}

.sgc-form-footer-note {
	text-align: center;
	margin: 1rem 0 0;
	font-size: 0.8125rem;
	color: #6b7280;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.375rem;
	width: 100%;
}

.sgc-form-footer-note i {
	font-size: 0.9375rem;
}

/* =============================================================================
   Alerts
   ========================================================================== */
.sgc-page-candidature .alert {
	border-radius: 12px;
	border: 0;
	padding: 1rem 1.25rem;
	margin-bottom: 1.5rem;
	font-size: 0.9375rem;
	line-height: 1.5;
}

.sgc-page-candidature .alert-success {
	background-color: #ecfdf5;
	color: #065f46;
	border-left: 4px solid #10b981;
}

.sgc-page-candidature .alert-danger {
	background-color: #fef2f2;
	color: #991b1b;
	border-left: 4px solid #dc3545;
}

/* =============================================================================
   Responsive
   ========================================================================== */
@media (max-width: 991.98px) {
	.sgc-candidature-hero {
		padding: 3.5rem 0 5rem;
	}

	.sgc-candidature-aside {
		position: static;
		margin-bottom: 0;
	}

	.sgc-candidature-body {
		margin-top: -2.5rem;
	}

	.sgc-form-card {
		padding: 2rem;
	}
}

@media (max-width: 575px) {
	.sgc-page-candidature {
		padding-bottom: 3rem;
	}

	.sgc-candidature-hero {
		padding: 3rem 0 4rem;
	}

	.sgc-candidature-steps {
		margin-top: 2.5rem;
	}

	.sgc-step {
		padding: 0 0.25rem;
	}

	.sgc-step:not(:last-child)::after {
		left: calc(50% + 1.25rem);
		right: calc(-50% + 1.25rem);
		top: 1.125rem;
	}

	.sgc-step-num {
		width: 2.25rem;
		height: 2.25rem;
		font-size: 0.875rem;
		margin-bottom: 0.625rem;
	}

	.sgc-step-label {
		font-size: 0.75rem;
	}

	.sgc-candidature-aside,
	.sgc-form-card {
		padding: 1.5rem;
		border-radius: 12px;
	}

	.sgc-form-section {
		margin-bottom: 1.5rem;
	}
}
