/* ==========================================================================
   EcoPMS Site - One Page Styles
   Colors: Green theme for railway transport management
   ========================================================================== */

:root {
	/* Palette principale */
	--primary: #059669;
	--primary-dark: #047857;
	--primary-light: #10b981;
	--dark: #1e293b;
	--dark-light: #334155;
	/* Couleurs d'accent */
	--blue: #3b82f6;
	--blue-bg: rgba(59, 130, 246, 0.1);
	--amber: #f59e0b;
	--amber-bg: rgba(245, 158, 11, 0.1);
	--violet: #8b5cf6;
	--violet-bg: rgba(139, 92, 246, 0.1);
	--teal: #14b8a6;
	--teal-bg: rgba(20, 184, 166, 0.1);
	--rose: #f43f5e;
	--rose-bg: rgba(244, 63, 94, 0.1);
	--green-bg: rgba(5, 150, 105, 0.1);
	/* Neutres */
	--gray-100: #f8fafc;
	--gray-200: #e2e8f0;
	--gray-300: #cbd5e1;
	--gray-400: #94a3b8;
	--gray-500: #64748b;
	--gray-600: #475569;
	--white: #ffffff;
	--shadow-sm: 0 1px 2px rgba(30, 41, 59, 0.05);
	--shadow: 0 4px 6px -1px rgba(30, 41, 59, 0.1), 0 2px 4px -1px rgba(30, 41, 59, 0.06);
	--shadow-lg: 0 10px 15px -3px rgba(30, 41, 59, 0.1), 0 4px 6px -2px rgba(30, 41, 59, 0.05);
	--shadow-xl: 0 20px 25px -5px rgba(30, 41, 59, 0.1), 0 10px 10px -5px rgba(30, 41, 59, 0.04);
	--transition: all 0.3s ease;
}

/* Reset & Base */
*,
*::before,
*::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html {
	scroll-behavior: smooth;
}

body {
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	font-size: 16px;
	line-height: 1.6;
	color: var(--dark);
	background: var(--white);
	-webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
	font-weight: 600;
	line-height: 1.3;
	color: var(--dark);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.5rem; }

@media (max-width: 768px) {
	h1 { font-size: 2rem; }
	h2 { font-size: 1.75rem; }
	h3 { font-size: 1.25rem; }
}

p {
	color: var(--gray-600);
}

a {
	color: var(--primary);
	text-decoration: none;
	transition: var(--transition);
}

a:hover {
	color: var(--primary-dark);
}

/* Container */
.container {
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 1.5rem;
}

/* Buttons */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.875rem 1.75rem;
	font-size: 0.9375rem;
	font-weight: 500;
	border-radius: 8px;
	border: none;
	cursor: pointer;
	transition: var(--transition);
	text-decoration: none;
}

.btn-primary {
	background: var(--primary);
	color: var(--white);
}

.btn-primary:hover {
	background: var(--primary-dark);
	color: var(--white);
	transform: translateY(-2px);
	box-shadow: var(--shadow-lg);
}

.btn-outline {
	background: transparent;
	color: var(--dark);
	border: 2px solid var(--gray-300);
}

.btn-outline:hover {
	border-color: var(--primary);
	color: var(--primary);
}

.btn-white {
	background: var(--white);
	color: var(--primary);
}

.btn-white:hover {
	background: var(--gray-100);
	transform: translateY(-2px);
	box-shadow: var(--shadow-lg);
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.navbar {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 1000;
	background: rgba(255, 255, 255, 0.95);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--gray-200);
	transition: var(--transition);
}

.navbar.scrolled {
	box-shadow: var(--shadow);
}

.navbar .container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 72px;
}

.navbar-logo {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--dark);
}

.navbar-logo img {
	height: 32px;
	width: auto;
}

.navbar-logo:hover {
	color: var(--dark);
}

.navbar-menu {
	display: flex;
	align-items: center;
	gap: 2rem;
	list-style: none;
}

.navbar-menu a {
	font-size: 0.9375rem;
	font-weight: 500;
	color: var(--gray-600);
}

.navbar-menu a:hover {
	color: var(--primary);
}

.navbar-menu .btn-primary {
	color: var(--white);
}

.navbar-menu .btn-primary:hover {
	color: var(--white);
}

.navbar-toggle {
	display: none;
	flex-direction: column;
	gap: 5px;
	background: none;
	border: none;
	cursor: pointer;
	padding: 0.5rem;
}

.navbar-toggle span {
	width: 24px;
	height: 2px;
	background: var(--dark);
	border-radius: 2px;
	transition: var(--transition);
}

@media (max-width: 768px) {
	.navbar-menu {
		position: fixed;
		top: 72px;
		left: 0;
		right: 0;
		bottom: 0;
		flex-direction: column;
		justify-content: flex-start;
		padding: 2rem;
		gap: 1.5rem;
		background: var(--white);
		transform: translateX(100%);
		transition: var(--transition);
	}

	.navbar-menu.active {
		transform: translateX(0);
	}

	.navbar-toggle {
		display: flex;
	}
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
	min-height: 100vh;
	display: flex;
	align-items: center;
	padding: 120px 0 80px;
	background: linear-gradient(135deg, var(--gray-100) 0%, var(--white) 100%);
	position: relative;
	overflow: hidden;
}

.hero::before {
	content: '';
	position: absolute;
	top: -50%;
	right: -20%;
	width: 70%;
	height: 140%;
	background: linear-gradient(135deg, rgba(5, 150, 105, 0.02) 0%, rgba(59, 130, 246, 0.05) 100%);
	border-radius: 50%;
	pointer-events: none;
}

.hero .container {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 4rem;
	align-items: center;
	position: relative;
	z-index: 1;
}

.hero-content {
	max-width: 540px;
}

.hero h1 {
	font-size: 3.5rem;
	font-weight: 700;
	line-height: 1.15;
	margin-bottom: 1.5rem;
}

.hero h1 span {
	color: var(--primary);
}

.hero p {
	font-size: 1.125rem;
	margin-bottom: 2rem;
	max-width: 480px;
}

.hero-buttons {
	display: flex;
	gap: 1rem;
	flex-wrap: wrap;
}

.hero-visual {
	display: flex;
	justify-content: center;
	align-items: center;
}

.hero-image {
	width: 100%;
	max-width: 500px;
	border-radius: 16px;
	box-shadow: var(--shadow-xl);
}

.hero-mockup {
	width: 100%;
	max-width: 480px;
	background: var(--white);
	border-radius: 16px;
	box-shadow: var(--shadow-xl);
	overflow: hidden;
}

.mockup-header {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 12px 16px;
	background: var(--gray-100);
	border-bottom: 1px solid var(--gray-200);
}

.mockup-dot {
	width: 12px;
	height: 12px;
	border-radius: 50%;
}

.mockup-dot.red { background: #ff5f57; }
.mockup-dot.yellow { background: #febc2e; }
.mockup-dot.green { background: #28c840; }

.mockup-body {
	padding: 24px;
}

.mockup-stat {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px;
	background: var(--gray-100);
	border-radius: 12px;
	margin-bottom: 12px;
}

.mockup-stat:last-child {
	margin-bottom: 0;
}

.mockup-stat-label {
	font-size: 0.875rem;
	color: var(--gray-600);
}

.mockup-stat-value {
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--dark);
}

.mockup-stat-value.primary { color: var(--primary); }
.mockup-stat-value.blue { color: var(--blue); }
.mockup-stat-value.amber { color: var(--amber); }
.mockup-stat-value.violet { color: var(--violet); }

@media (max-width: 992px) {
	.hero .container {
		grid-template-columns: 1fr;
		text-align: center;
	}

	.hero-content {
		max-width: 100%;
	}

	.hero h1 {
		font-size: 2.5rem;
	}

	.hero p {
		max-width: 100%;
	}

	.hero-buttons {
		justify-content: center;
	}

	.hero-visual {
		order: -1;
	}
}

/* ==========================================================================
   Features Section
   ========================================================================== */
.features {
	padding: 100px 0;
	background: var(--white);
}

.section-header {
	text-align: center;
	max-width: 640px;
	margin: 0 auto 4rem;
}

.section-header h2 {
	margin-bottom: 1rem;
}

.section-header p {
	font-size: 1.125rem;
}

.features-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 2rem;
}

.feature-card {
	padding: 2rem;
	background: var(--white);
	border: 1px solid var(--gray-200);
	border-radius: 16px;
	transition: var(--transition);
}

.feature-card:hover {
	border-color: var(--primary);
	box-shadow: var(--shadow-lg);
	transform: translateY(-4px);
}

.feature-icon {
	width: 56px;
	height: 56px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--green-bg);
	color: var(--primary);
	font-size: 1.5rem;
	border-radius: 12px;
	margin-bottom: 1.25rem;
}

.feature-icon.green { background: var(--green-bg); color: var(--primary); }
.feature-icon.blue { background: var(--blue-bg); color: var(--blue); }
.feature-icon.amber { background: var(--amber-bg); color: var(--amber); }
.feature-icon.violet { background: var(--violet-bg); color: var(--violet); }
.feature-icon.teal { background: var(--teal-bg); color: var(--teal); }
.feature-icon.rose { background: var(--rose-bg); color: var(--rose); }

.feature-card h3 {
	font-size: 1.25rem;
	margin-bottom: 0.75rem;
}

.feature-card p {
	font-size: 0.9375rem;
}

@media (max-width: 992px) {
	.features-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 576px) {
	.features-grid {
		grid-template-columns: 1fr;
	}
}


/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
	padding: 24px 0;
	background: var(--gray-100);
	border-top: 1px solid var(--gray-200);
}

.footer-bottom {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1rem;
}

.footer-bottom p {
	font-size: 0.875rem;
}

.footer-logo-inline a {
	display: flex;
	align-items: center;
}

.footer-logo-inline img {
	height: 22px;
	width: auto;
	opacity: 0.6;
	transition: var(--transition);
}

.footer-logo-inline img:hover {
	opacity: 1;
}

/* ==========================================================================
   Utilities
   ========================================================================== */
.text-primary { color: var(--primary); }
.text-dark { color: var(--dark); }
.text-muted { color: var(--gray-600); }

/* Animations */
@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.animate-fade-in-up {
	animation: fadeInUp 0.6s ease forwards;
}

.animate-delay-100 { animation-delay: 0.1s; }
.animate-delay-200 { animation-delay: 0.2s; }
.animate-delay-300 { animation-delay: 0.3s; }

/* ==========================================================================
   Auth Pages (Login, Register, Reset Password)
   ========================================================================== */
.auth-page {
	min-height: 100vh;
	display: flex;
	background: linear-gradient(135deg, var(--gray-100) 0%, var(--white) 100%);
	position: relative;
	overflow: hidden;
}

.auth-page::before {
	content: '';
	position: absolute;
	top: -30%;
	right: -15%;
	width: 60%;
	height: 120%;
	background: linear-gradient(135deg, rgba(5, 150, 105, 0.03) 0%, rgba(5, 150, 105, 0.08) 100%);
	border-radius: 50%;
	pointer-events: none;
}

.auth-page::after {
	content: '';
	position: absolute;
	bottom: -20%;
	left: -10%;
	width: 40%;
	height: 80%;
	background: linear-gradient(135deg, rgba(5, 150, 105, 0.02) 0%, rgba(5, 150, 105, 0.05) 100%);
	border-radius: 50%;
	pointer-events: none;
}

.auth-container {
	display: flex;
	width: 100%;
	min-height: 100vh;
	position: relative;
	z-index: 1;
}

.auth-left {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 2rem;
}

.auth-right {
	flex: 1;
	display: none;
	align-items: center;
	justify-content: center;
	background: var(--dark);
	position: relative;
	overflow: hidden;
}

.auth-right::before {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 150%;
	height: 150%;
	background: radial-gradient(circle, rgba(5, 150, 105, 0.15) 0%, transparent 60%);
	pointer-events: none;
}

.auth-right-content {
	position: relative;
	z-index: 1;
	text-align: center;
	padding: 3rem;
	max-width: 480px;
}

.auth-right-content h2 {
	font-size: 2.5rem;
	font-weight: 700;
	color: var(--white);
	margin-bottom: 1rem;
}

.auth-right-content p {
	font-size: 1.125rem;
	color: var(--gray-400);
	line-height: 1.7;
}

.auth-right-content .highlight {
	color: var(--primary);
}

@media (min-width: 992px) {
	.auth-right {
		display: flex;
	}
}

.auth-card {
	width: 100%;
	max-width: 420px;
	background: var(--white);
	border-radius: 20px;
	box-shadow: var(--shadow-xl);
	padding: 3rem;
}

.auth-logo {
	display: block;
	margin-bottom: 2rem;
	text-align: center;
}

.auth-logo img {
	height: 40px;
	width: auto;
}

.auth-header {
	text-align: center;
	margin-bottom: 2rem;
}

.auth-header h1 {
	font-size: 1.75rem;
	font-weight: 700;
	color: var(--dark);
	margin-bottom: 0.5rem;
}

.auth-header p {
	font-size: 0.9375rem;
	color: var(--gray-600);
}

.auth-form {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
}

.form-group {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.form-label {
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--dark);
}

.form-input {
	width: 100%;
	padding: 0.875rem 1rem;
	font-size: 0.9375rem;
	color: var(--dark);
	background: var(--gray-100);
	border: 2px solid transparent;
	border-radius: 10px;
	outline: none;
	transition: var(--transition);
}

.form-input::placeholder {
	color: var(--gray-500);
}

.form-input:focus {
	background: var(--white);
	border-color: var(--primary);
	box-shadow: 0 0 0 4px rgba(5, 150, 105, 0.1);
}

.form-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.form-link {
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--primary);
}

.form-link:hover {
	color: var(--primary-dark);
	text-decoration: underline;
}

.auth-alert {
	padding: 1rem;
	border-radius: 10px;
	font-size: 0.875rem;
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.auth-alert-error {
	background: rgba(239, 68, 68, 0.1);
	color: #dc2626;
	border: 1px solid rgba(239, 68, 68, 0.2);
}

.auth-alert-success {
	background: rgba(34, 197, 94, 0.1);
	color: #16a34a;
	border: 1px solid rgba(34, 197, 94, 0.2);
}

.auth-alert svg {
	flex-shrink: 0;
}

.auth-divider {
	display: flex;
	align-items: center;
	gap: 1rem;
	margin: 0.5rem 0;
}

.auth-divider::before,
.auth-divider::after {
	content: '';
	flex: 1;
	height: 1px;
	background: var(--gray-300);
}

.auth-divider span {
	font-size: 0.8125rem;
	color: var(--gray-500);
}

.auth-footer {
	text-align: center;
	margin-top: 1.5rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--gray-200);
}

.auth-footer p {
	font-size: 0.875rem;
	color: var(--gray-600);
}

.auth-footer a {
	font-weight: 600;
	color: var(--primary);
}

.auth-footer a:hover {
	text-decoration: underline;
}

.auth-back-link {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.875rem;
	color: var(--gray-600);
	margin-bottom: 1.5rem;
}

.auth-back-link:hover {
	color: var(--primary);
}

/* Checkbox custom */
.form-checkbox-wrapper {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.form-checkbox {
	width: 18px;
	height: 18px;
	accent-color: var(--primary);
	cursor: pointer;
}

.form-checkbox-label {
	font-size: 0.875rem;
	color: var(--gray-600);
	cursor: pointer;
}
