/**
 * A PROPOS PAGE - Ouralearn E-Learning Platform
 * Modern Next.js/React-style page with smooth animations
 * GPU-accelerated animations (transform/opacity only)
 */

/* ==============================================
   CSS VARIABLES - Visual Identity Colors
   ============================================== */
:root {
	--ap-color-primary: #3B82F6;
	--ap-color-primary-hover: #2563EB;
	--ap-color-primary-dark: #1E3A8A;
	--ap-color-bg: #F8FAFF;
	--ap-color-bg-alt: #FFFFFF;
	--ap-color-bg-section-1: #f9fbfc;
	--ap-color-bg-section-2: #ffffff;
	--ap-color-text: #1E293B;
	--ap-color-text-muted: #64748B;
	--ap-color-icon: #3B82F6;
	--ap-color-icon-hover: #2563EB;
	--ap-color-border: #E2E8F0;
	--ap-shadow-card: 0 6px 20px rgba(0, 0, 0, 0.05);
	--ap-shadow-hover: 0 10px 25px rgba(0, 0, 0, 0.08);
	--ap-radius: 16px;
}

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

/* ==============================================
   HERO SECTION
   ============================================== */
.hero-apropos {
	padding: 60px 0;
	background: #f8fbfd;
	border-bottom: 1px solid var(--ap-color-border);
}

.hero-apropos__inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}

.hero-apropos__container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 2rem;
}

.apropos__content {
	flex: 1;
	flex-shrink: 0;
}

.hero-title {
	font-size: 2.2rem;
	font-weight: 700;
	color: #212529;
	margin-bottom: 1rem;
}

.hero-subtitle {
	color: #495057;
	text-align: justify;
	line-height: 1.6;
	margin-bottom: 2rem;
	max-width: 550px;
}

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

.hero-cta {
	background-color: #007bff;
	color: #fff;
	padding: 0.9rem 1.8rem;
	border-radius: 8px;
	font-weight: 600;
	transition: background-color 0.3s ease;
	text-decoration: none;
	display: inline-block;
}

.hero-cta:hover {
	background-color: #0056b3;
	color: #fff;
	text-decoration: none;
}

.apropos__image {
	flex: 1;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}

.apropos__image-img {
	max-width: 85%;
	height: auto;
	object-fit: cover;
	display: block;
	border-radius: var(--ap-radius);
	transform: translateY(-10px);
}

.certification-badge {
	display: flex;
	align-items: flex-start;
	gap: 20px;
	background: var(--ap-color-bg-alt);
	border: 2px solid var(--ap-color-primary);
	border-radius: var(--ap-radius);
	padding: 32px 40px;
	box-shadow: var(--ap-shadow-card);
	max-width: 700px;
	width: 100%;
}

.certification-badge i {
	font-size: 3rem;
	color: var(--ap-color-icon);
	flex-shrink: 0;
	margin-top: 4px;
}

.certification-badge__content {
	flex: 1;
}

.certification-badge__title {
	color: var(--ap-color-primary);
	font-size: 1.5rem;
	margin: 0 0 12px;
	font-weight: 600;
}

.certification-badge__text {
	font-size: 1.125rem;
	color: var(--ap-color-text);
	margin: 0;
	line-height: 1.6;
}

.certification-badge__text strong {
	color: var(--ap-color-primary-dark);
	font-weight: 700;
}

/* ==============================================
   APROPOS SECTIONS - Modern Layout
   ============================================== */
.hero-apropos,
.apropos-section {
	padding: 80px 0;
	transition: background-color 0.6s ease, transform 0.6s ease;
}

.apropos-section:nth-child(even) {
	background-color: var(--ap-color-bg-section-1);
}

.apropos-section:nth-child(odd) {
	background-color: var(--ap-color-bg-section-2);
}

/* Container for sections */
.container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 40px;
}

/* ==============================================
   SECTION 1: MISSION & VISION
   ============================================== */
.mission .container {
	flex-direction: row-reverse; /* Image à gauche, texte à droite */
}

.mission__text {
	flex: 1;
	min-width: 300px;
}

.mission__text h2 {
	color: var(--ap-color-primary);
	font-size: 2rem;
	font-weight: 700;
	margin: 0 0 24px;
	line-height: 1.3;
}

.mission__text p {
	font-size: 1.125rem;
	color: var(--ap-color-text);
	margin: 0 0 20px;
	line-height: 1.8;
	text-align: justify;
}

.mission__text strong {
	color: var(--ap-color-primary);
	font-weight: 600;
}

.mission__image {
	flex: 1;
	min-width: 300px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.mission__image img {
	max-width: 100%;
	height: auto;
	border-radius: var(--ap-radius);
	box-shadow: var(--ap-shadow-card);
	transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.mission__image img:hover {
	transform: scale(1.02);
	box-shadow: var(--ap-shadow-hover);
}

/* ==============================================
   SECTION 2: VALEURS & ÉQUIPE
   ============================================== */
.valeurs .container {
	flex-direction: column;
	align-items: stretch;
}

.valeurs h2 {
	color: var(--ap-color-primary);
	font-size: 2rem;
	font-weight: 700;
	margin: 0 0 40px;
	text-align: center;
	line-height: 1.3;
}

.valeurs-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 30px;
	width: 100%;
}

.valeur-card {
	background: #fff;
	border-radius: 16px;
	box-shadow: var(--ap-shadow-card);
	padding: 30px;
	transition: transform 0.4s ease, box-shadow 0.4s ease;
	text-align: center;
}

.valeur-card:hover {
	transform: translateY(-6px);
	box-shadow: var(--ap-shadow-hover);
}

.valeur-card__icon {
	margin-bottom: 20px;
}

.valeur-card__icon i {
	font-size: 3rem;
	color: var(--ap-color-icon);
	transition: color 0.4s ease, transform 0.4s ease;
}

.valeur-card:hover .valeur-card__icon i {
	color: var(--ap-color-icon-hover);
	transform: scale(1.1);
}

.valeur-card h3 {
	color: var(--ap-color-primary);
	font-size: 1.5rem;
	font-weight: 600;
	margin: 0 0 16px;
}

.valeur-card p {
	font-size: 1.0625rem;
	color: var(--ap-color-text);
	margin: 0;
	line-height: 1.7;
}

/* ==============================================
   SECTION 3: CTA
   ============================================== */
.cta .container {
	flex-direction: column;
	align-items: center;
	text-align: center;
}

.cta h2 {
	color: var(--ap-color-primary);
	font-size: 2rem;
	font-weight: 700;
	margin: 0 0 32px;
	line-height: 1.3;
}

.btn-cta {
	display: inline-block;
	background: linear-gradient(90deg, #3B82F6, #2563EB);
	color: #fff;
	padding: 15px 35px;
	border-radius: 50px;
	text-decoration: none;
	font-weight: 600;
	font-size: 1.125rem;
	transition: background 0.4s ease, transform 0.4s ease, box-shadow 0.4s ease;
	box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
	animation: pulse 2s ease-in-out infinite;
}

.btn-cta:hover {
	transform: scale(1.05);
	background: linear-gradient(90deg, #2563EB, #3B82F6);
	box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
	animation: none;
}

@keyframes pulse {
	0%, 100% {
		box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
	}
	50% {
		box-shadow: 0 4px 20px rgba(59, 130, 246, 0.5);
	}
}

/* ==============================================
   ANIMATIONS - GPU Accelerated
   ============================================== */
.apropos-section,
.valeur-card {
	opacity: 0;
	transform: translateY(40px);
	transition: opacity 0.8s ease, transform 0.8s ease;
}

.apropos-section.visible,
.valeur-card.visible {
	opacity: 1;
	transform: translateY(0);
}

/* Lazy loading images */
img[loading="lazy"] {
	opacity: 0;
	transition: opacity 0.4s ease;
}

img[loading="lazy"].loaded {
	opacity: 1;
}

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

/* Tablets (max-width: 1024px) */
@media (max-width: 1024px) {
	.hero-apropos__title {
		font-size: 1.875rem;
	}
	
	.hero-apropos__container {
		gap: 32px;
	}
	
	.mission__text,
	.mission__image {
		flex: 1 1 100%;
	}
	
	.mission__image {
		order: -1;
		margin-bottom: 32px;
	}
	
	.valeurs-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 24px;
	}
}

/* Mobile (max-width: 768px) */
@media (max-width: 768px) {
	.hero-apropos,
	.apropos-section {
		padding: 60px 0;
	}
	
	.hero-apropos__inner,
	.container {
		padding: 0 16px;
	}
	
	.hero-apropos__container {
		flex-direction: column;
		text-align: center;
		gap: 32px;
	}
	
	.apropos__content {
		width: 100%;
		order: 1;
	}
	
	.apropos__image {
		width: 100%;
		order: -1;
	}
	
	.apropos__image-img {
		max-width: 90%;
		margin: 0 auto;
		transform: none;
	}
	
	.hero-title {
		font-size: 1.75rem;
		margin-bottom: 1rem;
	}
	
	.hero-subtitle {
		font-size: 1rem;
		text-align: justify;
		max-width: 100%;
	}
	
	.hero-apropos__certification {
		justify-content: center;
	}
	
	.certification-badge {
		flex-direction: column;
		align-items: center;
		text-align: center;
		padding: 24px 20px;
	}
	
	.certification-badge i {
		font-size: 2.5rem;
	}
	
	.mission__text h2,
	.valeurs h2,
	.cta h2 {
		font-size: 1.75rem;
	}
	
	.valeurs-grid {
		grid-template-columns: 1fr;
		gap: 20px;
	}
	
	.btn-cta {
		padding: 14px 28px;
		font-size: 1rem;
	}
}

/* Small Mobile (max-width: 480px) */
@media (max-width: 480px) {
	.hero-title {
		font-size: 1.25rem;
	}
	
	.mission__text h2,
	.valeurs h2,
	.cta h2 {
		font-size: 1.5rem;
	}
	
	.valeur-card {
		padding: 24px 20px;
	}
	
	.valeur-card h3 {
		font-size: 1.25rem;
	}
	
	.valeur-card p {
		font-size: 1rem;
	}
}
