/**
 * PARCOURS DE CARRIÈRE PAGE - Ouralearn E-Learning Platform
 * Premium Sales Page for Complete Career Paths and Coaching Services
 * Design strictly follows the specified blue/gray visual identity
 */

/* ==============================================
   CSS VARIABLES - Visual Identity Colors
   ============================================== */
:root {
	/* Primary Color: Dark Blue for main headlines and CTAs */
	--pc-color-primary: #3B82F6;
	--pc-color-primary-hover: #2563EB;
	--pc-color-primary-dark: #1E3A8A;
	
	/* Accent Bright Blue for step numbers and guidance elements */
	--pc-color-accent: #3B82F6;
	--pc-color-accent-light: #DBEAFE;
	
	/* Background Color: Calm Gray */
	--pc-color-bg: #F8FAFF;
	--pc-color-bg-alt: #FFFFFF;
	
	/* Body Text Color: Calm Dark Gray */
	--pc-color-text: #1E293B;
	--pc-color-text-muted: #64748B;
	--pc-color-text-light: #94A3B8;
	
	/* Icon Colors */
	--pc-color-icon: #3B82F6;
	--pc-color-icon-light: #DBEAFE;
	
	/* Borders & Shadows */
	--pc-color-border: #E2E8F0;
	--pc-shadow-soft: 0 4px 12px rgba(30, 41, 59, 0.06);
	--pc-shadow-card: 0 6px 18px rgba(30, 41, 59, 0.08);
	--pc-shadow-hover: 0 12px 28px rgba(30, 41, 59, 0.12);
	--pc-shadow-lift: 0 8px 24px rgba(30, 41, 59, 0.1);
	--pc-radius: 16px;
	--pc-radius-sm: 12px;
}

/* ==============================================
   BASE STYLING
   ============================================== */
.parcours-carriere-page {
	font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
	color: var(--pc-color-text);
	background: var(--pc-color-bg);
	line-height: 1.6;
	min-height: 100vh;
}

/* ==============================================
   REVEAL ON SCROLL ANIMATION
   ============================================== */
.reveal-on-scroll {
	opacity: 0;
	transform: translateY(20px);
	transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-on-scroll.is-visible {
	opacity: 1;
	transform: translateY(0);
}

/* ==============================================
   SECTION A: HERO PARCOURS
   ============================================== */
.hero-parcours {
	padding: 100px 20px 80px;
	background: linear-gradient(180deg, var(--pc-color-bg-alt) 0%, var(--pc-color-bg) 100%);
	border-bottom: 1px solid var(--pc-color-border);
}

.hero-parcours__inner {
	max-width: 1200px;
	margin: 0 auto;
	text-align: center;
}

.hero-parcours__title {
	color: var(--pc-color-primary);
	font-size: 2.5rem;
	line-height: 1.2;
	font-weight: 700;
	margin: 0 0 32px;
	letter-spacing: -0.02em;
}

.hero-parcours__content {
	max-width: 900px;
	margin: 0 auto 48px;
}

.hero-parcours__text {
	font-size: 1.25rem;
	color: var(--pc-color-text);
	margin: 0;
	line-height: 1.8;
}

.hero-parcours__text strong {
	color: var(--pc-color-primary);
	font-weight: 600;
}

/* Video Container */
.hero-parcours__video {
	margin-top: 48px;
}

.video-container {
	max-width: 900px;
	margin: 0 auto;
	border-radius: var(--pc-radius);
	overflow: hidden;
	box-shadow: var(--pc-shadow-card);
}

.video-wrapper {
	position: relative;
	padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
	height: 0;
	overflow: hidden;
	background: #000;
}

.video-wrapper iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border: none;
}

/* Video Placeholder (when no video is set) */
.video-placeholder {
	padding: 80px 40px;
	background: linear-gradient(135deg, var(--pc-color-primary) 0%, var(--pc-color-primary-hover) 100%);
	color: #FFFFFF;
	text-align: center;
	border-radius: var(--pc-radius);
}

.video-placeholder i {
	font-size: 4rem;
	margin-bottom: 20px;
	opacity: 0.9;
}

.video-placeholder__text {
	font-size: 1.5rem;
	font-weight: 600;
	margin: 0 0 8px;
}

.video-placeholder__subtext {
	font-size: 1rem;
	opacity: 0.8;
	margin: 0;
	line-height: 1.6;
}

.video-placeholder code {
	background: rgba(255, 255, 255, 0.2);
	padding: 2px 8px;
	border-radius: 4px;
	font-size: 0.9em;
	font-family: 'Courier New', monospace;
}

/* ==============================================
   SECTION B: PATHS GRID (Max 3 Columns)
   ============================================== */
.paths-section {
	padding: 80px 20px;
	background: var(--pc-color-bg);
}

.paths-section__inner {
	max-width: 1400px;
	margin: 0 auto;
}

.paths-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 32px;
}

/* ==============================================
   PATH CARD - Premium Look
   ============================================== */
.path-card {
	background: var(--pc-color-bg-alt);
	border: 1px solid var(--pc-color-border);
	border-radius: var(--pc-radius);
	padding: 32px;
	box-shadow: var(--pc-shadow-card);
	transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
	display: flex;
	flex-direction: column;
}

.path-card:hover {
	transform: translateY(-8px);
	box-shadow: var(--pc-shadow-hover);
	border-color: var(--pc-color-primary);
}

.path-card__header {
	margin-bottom: 24px;
	text-align: center;
}

.path-card__icon {
	margin-bottom: 16px;
}

.path-card__icon i {
	font-size: 3.5rem;
	color: var(--pc-color-icon);
	transition: transform 0.3s ease;
}

.path-card:hover .path-card__icon i {
	transform: scale(1.1);
}

.path-card__title {
	color: var(--pc-color-primary);
	font-size: 1.5rem;
	font-weight: 700;
	margin: 0;
	line-height: 1.3;
}

/* Path Steps */
.path-card__steps {
	flex: 1;
	margin-bottom: 32px;
}

.path-step {
	display: flex;
	gap: 16px;
	margin-bottom: 20px;
	align-items: flex-start;
}

.path-step:last-child {
	margin-bottom: 0;
}

.path-step__number {
	flex-shrink: 0;
}

/* Step Badge - Accent Bright Blue Circle */
.step-badge {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--pc-color-accent-light);
	color: var(--pc-color-accent);
	font-size: 1.125rem;
	font-weight: 700;
	box-shadow: 0 2px 8px rgba(59, 130, 246, 0.15);
}

.path-step__content {
	flex: 1;
	min-width: 0;
}

.path-step__title {
	color: var(--pc-color-text);
	font-size: 1.0625rem;
	font-weight: 600;
	margin: 0 0 8px;
	line-height: 1.4;
}

.path-step__link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--pc-color-primary);
	font-size: 0.9375rem;
	font-weight: 600;
	text-decoration: none;
	transition: color 0.2s ease, gap 0.2s ease;
}

.path-step__link:hover {
	color: var(--pc-color-primary-hover);
	gap: 10px;
}

.path-step__link i {
	font-size: 0.875rem;
	transition: transform 0.2s ease;
}

.path-step__link:hover i {
	transform: translateX(2px);
}

/* Path CTA Button */
.path-card__cta {
	margin-top: auto;
	padding-top: 24px;
	border-top: 1px solid var(--pc-color-border);
}

/* ==============================================
   PATH CARD COMPACTION - Modern Compact Design
   ============================================== */
.path-card {
	/* Maintain reduced padding from previous step */
	padding: 24px !important;
}

.path-card__title {
	/* Set text alignment to CENTER to visually center the text block */
	text-align: center !important;
	
	/* Remove any previous left offset/padding */
	padding-left: 0 !important;
	
	/* Maintain aggressive font reduction for compaction */
	font-size: 1.15rem !important;
	
	/* Tighter line spacing */
	line-height: 1.25 !important;
	
	/* Ensure Ellipsis logic remains REMOVED for full display */
	display: block !important;
	-webkit-line-clamp: unset !important;
	line-clamp: unset !important;
	-webkit-box-orient: unset !important;
	box-orient: unset !important;
	overflow: visible !important;
	text-overflow: unset !important;
	
	/* Reduce bottom margin after the title */
	margin-bottom: 0.8rem !important;
}

/* Path Steps Compaction */
.path-card__steps {
	/* Reduce space before CTA button */
	margin-bottom: 20px !important;
}

.path-step {
	/* Reduce space between steps */
	margin-bottom: 10px !important;
}

.path-step__title {
	/* Reduce step title font size */
	font-size: 1rem;
}

.path-step__link {
	/* Reduce link font size */
	font-size: 0.875rem;
}

/* Premium CTA Button - Small, Oval, Crystal/Glow Effect */
.btn--path-premium {
	/* Color and Base */
	background-color: var(--pc-color-primary-dark, #1E3A8A) !important;
	color: #FFFFFF !important;
	border: none !important;
	
	/* Small and Oval Shape */
	padding: 10px 20px !important;
	font-size: 0.95rem !important;
	border-radius: 50px !important;
	font-weight: 500 !important;
	
	/* Crystal/Glow Effect (Reintroduced) */
	box-shadow: 0 4px 15px rgba(30, 58, 138, 0.4), 0 0 10px rgba(255, 255, 255, 0.3) inset;
	transition: all 0.3s ease;
}

.btn--path-premium:hover {
	background-color: var(--pc-color-primary, #3B82F6) !important;
	box-shadow: 0 6px 20px rgba(59, 130, 246, 0.6), 0 0 15px rgba(255, 255, 255, 0.5) inset;
}

/* ==============================================
   GLOBAL CTA SECTION
   ============================================== */
.cta-global {
	padding: 80px 20px;
	background: var(--pc-color-bg-alt);
	border-top: 1px solid var(--pc-color-border);
}

.cta-global__inner {
	max-width: 900px;
	margin: 0 auto;
	text-align: center;
}

.cta-global__title {
	color: var(--pc-color-primary);
	font-size: 2rem;
	font-weight: 700;
	margin: 0 0 16px;
}

.cta-global__subtitle {
	font-size: 1.25rem;
	color: var(--pc-color-text-muted);
	margin: 0 0 40px;
	line-height: 1.6;
}

.cta-global__actions {
	display: flex;
	gap: 20px;
	justify-content: center;
	flex-wrap: wrap;
}

/* ==============================================
   EMPTY STATE (No Paths Configured)
   ============================================== */
.paths-empty {
	padding: 80px 40px;
	background: var(--pc-color-bg-alt);
	border: 2px dashed var(--pc-color-border);
	border-radius: var(--pc-radius);
	text-align: center;
}

.paths-empty__content {
	max-width: 700px;
	margin: 0 auto;
}

.paths-empty i {
	font-size: 3rem;
	color: var(--pc-color-text-light);
	margin-bottom: 24px;
}

.paths-empty__title {
	color: var(--pc-color-text);
	font-size: 1.5rem;
	font-weight: 600;
	margin: 0 0 16px;
}

.paths-empty__text {
	color: var(--pc-color-text-muted);
	font-size: 1.0625rem;
	margin: 0 0 24px;
}

.paths-empty__list {
	text-align: left;
	max-width: 600px;
	margin: 0 auto;
	padding: 0;
	list-style: none;
}

.paths-empty__list li {
	color: var(--pc-color-text);
	font-size: 0.9375rem;
	padding: 12px 0;
	border-bottom: 1px solid var(--pc-color-border);
	line-height: 1.6;
}

.paths-empty__list li:last-child {
	border-bottom: none;
}

.paths-empty__list code {
	background: var(--pc-color-bg);
	padding: 2px 6px;
	border-radius: 4px;
	font-family: 'Courier New', monospace;
	font-size: 0.875rem;
	color: var(--pc-color-primary);
}

/* ==============================================
   BUTTON STYLES
   ============================================== */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	border-radius: var(--pc-radius-sm);
	padding: 14px 28px;
	font-weight: 600;
	font-size: 1.05rem;
	text-decoration: none;
	transition: all 0.2s ease;
	border: 1px solid transparent;
	cursor: pointer;
}

.btn:active {
	transform: translateY(1px);
}

/* Primary Button */
.btn--primary {
	background: var(--pc-color-primary);
	color: #FFFFFF;
	box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
}

.btn--primary:hover {
	background: var(--pc-color-primary-hover);
	box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35);
	color: #FFFFFF;
}

/* CTA Button (Full-width for premium conversion) */
.btn--cta {
	background: var(--pc-color-primary-dark);
	color: #FFFFFF;
	padding: 16px 24px;
	font-size: 1.125rem;
	box-shadow: 0 4px 12px rgba(30, 58, 138, 0.3);
}

.btn--cta:hover {
	background: var(--pc-color-primary);
	box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
	color: #FFFFFF;
}

/* Secondary Button */
.btn--secondary {
	background: var(--pc-color-bg-alt);
	color: var(--pc-color-primary);
	border-color: var(--pc-color-border);
}

.btn--secondary:hover {
	border-color: var(--pc-color-primary);
	color: var(--pc-color-primary-hover);
	box-shadow: var(--pc-shadow-soft);
}

/* Block Button (Full Width) */
.btn--block {
	display: flex;
	width: 100%;
	text-align: center;
}

/* Large Button */
.btn--lg {
	padding: 16px 32px;
	font-size: 1.125rem;
}

/* ==============================================
   RESPONSIVE DESIGN
   ============================================== */

/* Tablets (max-width: 1024px) */
@media (max-width: 1024px) {
	.paths-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 24px;
	}

	.hero-parcours__title {
		font-size: 2rem;
	}

	.hero-parcours__text {
		font-size: 1.125rem;
	}

	.cta-global__actions {
		flex-direction: column;
		align-items: stretch;
	}

	.cta-global__actions .btn {
		width: 100%;
	}
}

/* Mobile (max-width: 768px) */
@media (max-width: 768px) {
	.hero-parcours {
		padding: 64px 16px 48px;
	}

	.hero-parcours__title {
		font-size: 1.75rem;
	}

	.hero-parcours__text {
		font-size: 1rem;
	}

	.video-placeholder {
		padding: 60px 24px;
	}

	.video-placeholder i {
		font-size: 3rem;
	}

	.video-placeholder__text {
		font-size: 1.25rem;
	}

	.paths-section {
		padding: 64px 16px;
	}

	.paths-grid {
		grid-template-columns: 1fr;
		gap: 24px;
	}

	.path-card {
		padding: 24px;
	}

	.path-card__title {
		font-size: 1.25rem;
	}

	.cta-global {
		padding: 64px 16px;
	}

	.cta-global__title {
		font-size: 1.75rem;
	}

	.cta-global__subtitle {
		font-size: 1.125rem;
	}

	.step-badge {
		width: 36px;
		height: 36px;
		font-size: 1rem;
	}

	.path-empty__title {
		font-size: 1.25rem;
	}
}

/* Small Mobile (max-width: 480px) */
@media (max-width: 480px) {
	.hero-parcours__title {
		font-size: 1.5rem;
	}

	.hero-parcours__text {
		font-size: 0.9375rem;
	}

	.video-placeholder {
		padding: 48px 20px;
	}

	.video-placeholder i {
		font-size: 2.5rem;
	}

	.video-placeholder__text {
		font-size: 1.125rem;
	}

	.video-placeholder__subtext {
		font-size: 0.875rem;
	}

	.path-card {
		padding: 20px;
	}

	.path-card__icon i {
		font-size: 2.5rem;
	}

	.path-card__title {
		font-size: 1.125rem;
	}

	.path-step__title {
		font-size: 1rem;
	}

	.btn {
		padding: 12px 20px;
		font-size: 1rem;
	}

	.btn--cta {
		padding: 14px 20px;
		font-size: 1rem;
	}

	.btn--lg {
		padding: 14px 24px;
		font-size: 1rem;
	}

	.cta-global__title {
		font-size: 1.5rem;
	}

	.cta-global__subtitle {
		font-size: 1rem;
	}

	.paths-empty {
		padding: 48px 20px;
	}

	.paths-empty i {
		font-size: 2.5rem;
	}

	.paths-empty__title {
		font-size: 1.125rem;
	}
}

/* ==========================
   Modal: Path Contact Styles
   ========================== */
.modal-form-overlay {
	position: fixed;
	inset: 0; /* top:0; right:0; bottom:0; left:0; */
	display: none; /* controlled with inline style/display via JS */
	align-items: center;
	justify-content: center;
	background: rgba(12, 18, 30, 0.6);
	z-index: 12000;
	padding: 24px;
}
.modal-form-overlay[aria-hidden="false"] {
	display: flex;
}
.modal-form-content {
	background-color: #fefefe;
	margin: 5% auto; /* push slightly higher to give more vertical space */
	padding: 25px; /* slightly reduced padding for compactness */
	border: none;
	border-radius: 12px;
	width: 90%;
	max-width: 450px; /* keep modal narrower for better reading */
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
	position: relative;
	animation: slideIn 0.4s ease-out;

	/* KEY FIX: limit height and allow internal scrolling */
	max-height: 85vh;
	overflow-y: auto;
}

/* Title styling (apply to existing h2 and to .modal-title if used) */
.modal-form-content .modal-form-body h2,
.modal-form-content .modal-title {
	margin-top: 0;
	color: var(--pc-color-primary);
	font-size: 2em;
	margin-bottom: 10px;
	line-height: 1.2;
}

.modal-subtitle {
	font-size: 1.1em;
	margin-bottom: 20px;
	line-height: 1.4;
}

.modal-form-content .form-row {
	margin-bottom: 12px;
}

.modal-form-content label {
	display: block;
	margin-bottom: 6px;
	font-weight: 600;
	color: var(--pc-color-text);
}

.modal-form-content input[type="text"],
.modal-form-content input[type="email"],
.modal-form-content input[type="tel"],
.modal-form-content textarea {
	width: 100%;
	padding: 10px; /* slightly reduced padding */
	margin: 6px 0; /* slightly reduced margin */
	border: 1px solid var(--pc-color-border);
	border-radius: 8px;
	font-size: 0.98rem;
	box-sizing: border-box;
}
.modal-form-content textarea { resize: vertical; }

.modal-form-content .close-btn {
	position: absolute;
	right: 12px;
	top: 12px;
	background: transparent;
	border: none;
	font-size: 1.6rem;
	line-height: 1;
	cursor: pointer;
	color: var(--pc-color-text-muted);
}
.modal-form-content .close-btn:hover { color: var(--pc-color-primary-dark); }
.path-contact-form .btn--primary { padding: 10px 18px; }

/* small entrance animation */
@keyframes slideIn {
	from { transform: translateY(-8px); opacity: 1; }
	to { transform: translateY(0); opacity: 1; }
}



