/**
 * AssmatApp - Styles site vitrine
 * @package FlavorAssmat
 */

/* ============================================
   Variables CSS
   ============================================ */
:root {
	--primary-color: #4f46e5;
	--primary-hover: #4338ca;
	--secondary-color: #0ea5e9;
	--dark-color: #1e293b;
	--light-color: #f8fafc;
}

/* ============================================
   Base
   ============================================ */
body {
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
	color: #334155;
}

/* ============================================
   Header / Navbar
   ============================================ */
.navbar {
	padding: 1rem 0;
	transition: all 0.3s ease;
}

.navbar-brand {
	font-weight: 700;
	font-size: 1.5rem;
	color: var(--primary-color);
}

.navbar-brand img {
	height: 40px;
	margin-right: 0.5rem;
}

.navbar-nav .nav-link {
	font-weight: 500;
	color: #475569;
	padding: 0.5rem 1rem;
	transition: color 0.2s ease;
}

.navbar-nav .nav-link:hover {
	color: var(--primary-color);
}

.navbar.scrolled {
	background: #fff;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	padding: 10rem 0 8rem;
	color: #fff;
	position: relative;
	overflow: hidden;
}

.hero h1 {
	font-size: 3rem;
	font-weight: 800;
	margin-bottom: 1.5rem;
	line-height: 1.2;
}

.hero p.lead {
	font-size: 1.25rem;
	opacity: 0.9;
	margin-bottom: 2rem;
}

.hero .btn-light {
	padding: 0.875rem 2rem;
	font-weight: 600;
	border-radius: 0.5rem;
}

.hero-image {
	max-width: 100%;
	border-radius: 1rem;
	box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
}

.hero-illustration {
	position: relative;
}

.hero-illustration svg {
	width: 100%;
	height: auto;
	max-width: 500px;
}

.hero-stats {
	margin-top: 2rem;
}

.hero-stat {
	text-align: center;
}

.hero-stat strong {
	display: block;
	font-size: 1.5rem;
	font-weight: 700;
}

.hero-stat span {
	font-size: 0.875rem;
	opacity: 0.8;
}

.hero-wave {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	line-height: 0;
}

.hero-wave svg {
	width: 100%;
	height: 60px;
}

/* ============================================
   Problem / Solution Section
   ============================================ */
.problem-solution {
	padding: 4rem 0;
}

.problem-card,
.solution-card {
	padding: 2rem;
	border-radius: 1rem;
	height: 100%;
}

.problem-card {
	background: #fef2f2;
	border: 1px solid #fecaca;
}

.solution-card {
	background: #f0fdf4;
	border: 1px solid #bbf7d0;
}

.problem-header,
.solution-header {
	display: flex;
	align-items: center;
	gap: 1rem;
	margin-bottom: 1.5rem;
}

.problem-header i,
.solution-header i {
	font-size: 2rem;
}

.problem-header i {
	color: #ef4444;
}

.solution-header i {
	color: #22c55e;
}

.problem-header h3,
.solution-header h3 {
	margin: 0;
	font-size: 1.25rem;
	font-weight: 600;
}

.problem-list,
.solution-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.problem-list li,
.solution-list li {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	padding: 0.5rem 0;
}

.problem-list li i,
.solution-list li i {
	flex-shrink: 0;
	margin-top: 0.25rem;
}

/* ============================================
   Features
   ============================================ */
.features {
	padding: 6rem 0;
}

.feature-card {
	text-align: center;
	padding: 2rem;
	border-radius: 1rem;
	transition: all 0.3s ease;
}

.feature-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.feature-icon {
	width: 80px;
	height: 80px;
	background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
	border-radius: 1rem;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 1.5rem;
}

.feature-icon i {
	font-size: 2rem;
	color: #fff;
}

.feature-card h3 {
	font-size: 1.25rem;
	font-weight: 600;
	margin-bottom: 1rem;
}

.feature-card p {
	color: #64748b;
	margin-bottom: 0;
}

/* ============================================
   Section commune
   ============================================ */
section {
	padding: 5rem 0;
}

.section-title {
	font-size: 2.5rem;
	font-weight: 700;
	margin-bottom: 1rem;
}

.section-subtitle {
	font-size: 1.125rem;
	color: #64748b;
	margin-bottom: 3rem;
}

.bg-light {
	background-color: var(--light-color) !important;
}

/* ============================================
   CTA Section
   ============================================ */
.cta {
	background: var(--dark-color);
	padding: 5rem 0;
	color: #fff;
}

.cta h2 {
	font-size: 2rem;
	font-weight: 700;
}

.cta p {
	opacity: 0.8;
	margin-bottom: 2rem;
}

/* ============================================
   Footer
   ============================================ */
.footer {
	background: var(--dark-color);
	color: #94a3b8;
	padding: 4rem 0 2rem;
}

.footer h5 {
	color: #fff;
	font-weight: 600;
	margin-bottom: 1.5rem;
}

.footer a {
	color: #94a3b8;
	text-decoration: none;
	transition: color 0.2s ease;
}

.footer a:hover {
	color: #fff;
}

.footer ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.footer ul li {
	margin-bottom: 0.75rem;
}

.footer-bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	margin-top: 3rem;
	padding-top: 2rem;
}

/* ============================================
   Forms (contact, register)
   ============================================ */
.form-page {
	min-height: calc(100vh - 200px);
	display: flex;
	align-items: center;
	padding: 4rem 0;
}

.form-card {
	background: #fff;
	border-radius: 1rem;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
	padding: 2.5rem;
	max-width: 500px;
	margin: 0 auto;
}

.form-card h1 {
	font-size: 1.75rem;
	font-weight: 700;
	margin-bottom: 0.5rem;
}

.form-card p.text-muted {
	margin-bottom: 2rem;
}

.form-control {
	padding: 0.75rem 1rem;
	border-radius: 0.5rem;
	border-color: #d1d5db;
}

.form-control:focus {
	border-color: var(--primary-color);
	box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.btn-primary {
	background-color: var(--primary-color);
	border-color: var(--primary-color);
	padding: 0.75rem 1.5rem;
	font-weight: 600;
	border-radius: 0.5rem;
}

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

/* ============================================
   Pricing
   ============================================ */
.pricing-card {
	background: #fff;
	border-radius: 1rem;
	padding: 2rem;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
	transition: all 0.3s ease;
}

.pricing-card.featured {
	transform: scale(1.05);
	border: 2px solid var(--primary-color);
}

.pricing-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.pricing-card.featured:hover {
	transform: scale(1.05) translateY(-5px);
}

.pricing-price {
	font-size: 3rem;
	font-weight: 700;
	color: var(--primary-color);
}

.pricing-price span {
	font-size: 1rem;
	font-weight: 400;
	color: #64748b;
}

.pricing-features {
	list-style: none;
	padding: 0;
	margin: 2rem 0;
}

.pricing-features li {
	padding: 0.5rem 0;
	color: #475569;
}

.pricing-features li i {
	color: #10b981;
	margin-right: 0.5rem;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 767.98px) {
	.hero {
		padding: 7rem 0 5rem;
	}

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

	.section-title {
		font-size: 1.75rem;
	}

	.pricing-card.featured {
		transform: none;
	}

	.hero-stats {
		flex-wrap: wrap;
		gap: 1rem !important;
	}

	.hero-stat {
		flex: 1 1 30%;
	}
}

/* ============================================
   Demo Section
   ============================================ */
.demo-section {
	padding: 5rem 0;
}

.demo-tabs .nav-pills {
	gap: 0.5rem;
}

.demo-tabs .nav-link {
	background: #f1f5f9;
	color: #475569;
	border-radius: 2rem;
	padding: 0.75rem 1.5rem;
	font-weight: 500;
	transition: all 0.3s ease;
}

.demo-tabs .nav-link:hover {
	background: #e2e8f0;
}

.demo-tabs .nav-link.active {
	background: var(--primary-color);
	color: #fff;
}

.demo-screenshot {
	display: flex;
	justify-content: center;
}

.demo-mockup {
	background: #1e293b;
	border-radius: 1rem;
	overflow: hidden;
	box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
	max-width: 500px;
	width: 100%;
}

.mockup-header {
	background: #0f172a;
	padding: 0.75rem 1rem;
	display: flex;
	align-items: center;
	gap: 1rem;
}

.mockup-dots {
	display: flex;
	gap: 0.5rem;
}

.mockup-dots span {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: #374151;
}

.mockup-dots span:first-child {
	background: #ef4444;
}

.mockup-dots span:nth-child(2) {
	background: #f59e0b;
}

.mockup-dots span:last-child {
	background: #22c55e;
}

.mockup-title {
	color: #94a3b8;
	font-size: 0.875rem;
}

.mockup-body {
	padding: 1.5rem;
	background: #fff;
}

/* Calendar mockup */
.calendar-grid {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 0.5rem;
	margin-bottom: 1rem;
}

.cal-header {
	text-align: center;
	font-weight: 600;
	color: #64748b;
	font-size: 0.75rem;
	padding: 0.5rem;
}

.cal-day {
	aspect-ratio: 1;
	border-radius: 0.5rem;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	font-size: 0.875rem;
	background: #f8fafc;
}

.cal-day.worked {
	background: #dcfce7;
	color: #166534;
}

.cal-day.absence {
	background: #fef3c7;
	color: #92400e;
}

.cal-day.off {
	background: #f1f5f9;
	color: #94a3b8;
}

.day-num {
	font-weight: 600;
}

.day-hours {
	font-size: 0.625rem;
}

.calendar-summary-mock {
	display: flex;
	justify-content: space-around;
	padding: 1rem;
	background: #f8fafc;
	border-radius: 0.5rem;
	font-size: 0.875rem;
}

/* Payslip mockup */
.payslip-preview {
	padding: 1rem;
}

.payslip-row {
	display: flex;
	justify-content: space-between;
	padding: 0.5rem 0;
	font-size: 0.875rem;
}

.payslip-row.total {
	border-top: 2px solid #e2e8f0;
	font-weight: 600;
	margin-top: 0.5rem;
	padding-top: 1rem;
}

.payslip-row.grand-total {
	background: var(--primary-color);
	color: #fff;
	margin: 1rem -1rem -1rem;
	padding: 1rem;
	border-radius: 0 0 0.5rem 0.5rem;
	font-weight: 700;
	font-size: 1rem;
}

/* Dashboard mockup */
.dashboard-widgets {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.widget {
	display: flex;
	align-items: center;
	gap: 1rem;
	padding: 1rem;
	background: #f8fafc;
	border-radius: 0.75rem;
}

.widget-icon {
	width: 48px;
	height: 48px;
	border-radius: 0.75rem;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-size: 1.25rem;
}

.widget-icon.bg-primary {
	background: var(--primary-color);
}

.widget-icon.bg-success {
	background: #22c55e;
}

.widget-icon.bg-info {
	background: #06b6d4;
}

.widget-value {
	display: block;
	font-size: 1.25rem;
	font-weight: 700;
	color: #1e293b;
}

.widget-label {
	font-size: 0.75rem;
	color: #64748b;
}

/* ============================================
   How It Works / Steps
   ============================================ */
.how-it-works {
	padding: 5rem 0;
}

.step-card {
	text-align: center;
	padding: 2rem;
}

.step-number {
	width: 60px;
	height: 60px;
	background: var(--primary-color);
	color: #fff;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.5rem;
	font-weight: 700;
	margin: 0 auto 1.5rem;
}

.step-card h3 {
	font-size: 1.25rem;
	font-weight: 600;
	margin-bottom: 0.75rem;
}

.step-card p {
	color: #64748b;
	margin: 0;
}

/* ============================================
   Testimonials
   ============================================ */
.testimonials {
	padding: 5rem 0;
}

.testimonial-card {
	background: #fff;
	border-radius: 1rem;
	padding: 2rem;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
	height: 100%;
}

.testimonial-stars {
	color: #f59e0b;
	margin-bottom: 1rem;
}

.testimonial-text {
	font-style: italic;
	color: #475569;
	margin-bottom: 1.5rem;
	line-height: 1.7;
}

.testimonial-author {
	display: flex;
	align-items: center;
	gap: 1rem;
}

.author-avatar {
	width: 48px;
	height: 48px;
	background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
	color: #fff;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 600;
}

.testimonial-author strong {
	display: block;
	color: #1e293b;
}

.testimonial-author span {
	font-size: 0.875rem;
	color: #64748b;
}

/* ============================================
   FAQ Section
   ============================================ */
.faq-section {
	padding: 5rem 0;
}

.accordion-item {
	border: none;
	margin-bottom: 1rem;
	border-radius: 0.75rem !important;
	overflow: hidden;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.accordion-button {
	font-weight: 600;
	padding: 1.25rem 1.5rem;
}

.accordion-button:not(.collapsed) {
	background: var(--primary-color);
	color: #fff;
}

.accordion-button:focus {
	box-shadow: none;
	border-color: transparent;
}

.accordion-body {
	padding: 1.5rem;
	color: #475569;
	line-height: 1.7;
}

/* ============================================
   Badges
   ============================================ */
.badge.bg-primary-subtle {
	background: rgba(79, 70, 229, 0.1) !important;
	color: var(--primary-color);
	font-weight: 500;
	padding: 0.5rem 1rem;
	font-size: 0.875rem;
}
