/* Modern Homepage Design for PalCalc */

/* Hero section moderne */
.hero {
	position: relative;
	min-height: 85vh;
	display: flex;
	align-items: center;
	padding: var(--space-8) var(--space-6);
	overflow: hidden;
	background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 50%, #e2e8f0 100%);
}

.hero::before {
	content: '';
	position: absolute;
	top: 0;
	right: -20%;
	width: 40%;
	height: 120%;
	background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(16, 185, 129, 0.05));
	border-radius: 50%;
	z-index: 0;
}

.hero::after {
	content: '';
	position: absolute;
	bottom: -10%;
	left: -15%;
	width: 30%;
	height: 60%;
	background: linear-gradient(135deg, rgba(16, 185, 129, 0.06), rgba(37, 99, 235, 0.03));
	border-radius: 50%;
	z-index: 0;
}

.hero-content {
	max-width: 1200px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--space-12);
	align-items: center;
	position: relative;
	z-index: 1;
}

.hero-text {
	animation: slideInLeft 0.8s ease-out;
}

.hero-text h1 {
	font-size: 3.5rem;
	font-weight: 800;
	line-height: 1.1;
	margin-bottom: var(--space-6);
	color: var(--text-primary);
	letter-spacing: -0.025em;
}

.hero-text p {
	font-size: 1.25rem;
	line-height: 1.6;
	margin-bottom: var(--space-8);
	color: var(--text-secondary);
}

.highlight {
	background: linear-gradient(135deg, var(--primary), var(--tertiary));
	background-clip: text;
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	font-weight: 900;
}

.hero-image {
	position: relative;
	animation: slideInRight 0.8s ease-out;
}

.hero-image img {
	width: 100%;
	height: auto;
	border-radius: var(--radius-xl);
	box-shadow: var(--shadow-xl);
	transform: perspective(1000px) rotateX(5deg) rotateY(-5deg);
	transition: transform 0.3s ease;
}

.hero-image:hover img {
	transform: perspective(1000px) rotateX(0deg) rotateY(0deg);
}

/* Boîtes flottantes modernes */
.floating-box {
	position: absolute;
	border-radius: var(--radius);
	box-shadow: var(--shadow-lg);
	animation: modernFloat 4s infinite ease-in-out;
}

.floating-box:nth-child(2) {
	top: 15%;
	left: 5%;
	width: 60px;
	height: 60px;
	background: linear-gradient(135deg, var(--primary), var(--primary-light));
	animation-delay: 0.5s;
}

.floating-box:nth-child(3) {
	top: 60%;
	left: 15%;
	width: 80px;
	height: 80px;
	background: linear-gradient(135deg, var(--tertiary), #0d9488);
	animation-delay: 1s;
}

.floating-box:nth-child(4) {
	top: 30%;
	right: 10%;
	width: 50px;
	height: 50px;
	background: linear-gradient(135deg, var(--accent), #f59e0b);
	animation-delay: 1.5s;
}

@keyframes modernFloat {
	0%, 100% {
		transform: translateY(0) rotate(0deg);
	}
	25% {
		transform: translateY(-15px) rotate(2deg);
	}
	50% {
		transform: translateY(-25px) rotate(0deg);
	}
	75% {
		transform: translateY(-10px) rotate(-2deg);
	}
}

/* Boutons CTA modernes */
.cta-buttons {
	display: flex;
	gap: var(--space-4);
	flex-wrap: wrap;
	align-items: center;
}

.btn-hero {
	padding: var(--space-4) var(--space-8);
	font-size: 1rem;
	font-weight: 600;
	border-radius: var(--radius-lg);
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	position: relative;
	overflow: hidden;
}

.btn-hero::before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
	transition: left 0.5s;
}

.btn-hero:hover::before {
	left: 100%;
}

.btn-primary-hero {
	background: linear-gradient(135deg, var(--primary), var(--primary-light));
	color: white;
	box-shadow: var(--shadow-lg);
}

.btn-primary-hero:hover {
	transform: translateY(-3px);
	box-shadow: var(--shadow-xl);
}

.btn-outline-hero {
	background: transparent;
	border: 2px solid var(--primary);
	color: var(--primary);
}

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

/* Section des fonctionnalités moderne */
.features {
	padding: var(--space-16) var(--space-6);
	background: white;
	position: relative;
}

.section-title {
	text-align: center;
	font-size: 2.75rem;
	font-weight: 700;
	margin-bottom: var(--space-12);
	color: var(--text-primary);
	position: relative;
}

.section-highlight {
	position: relative;
	display: inline-block;
}

.section-highlight::after {
	content: '';
	position: absolute;
	bottom: -8px;
	left: 0;
	width: 100%;
	height: 4px;
	background: linear-gradient(90deg, var(--primary), var(--tertiary));
	border-radius: 2px;
}

.features-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
	gap: var(--space-8);
	max-width: 1200px;
	margin: 0 auto;
}

.feature-card {
	background: white;
	border: 1px solid var(--gray-200);
	border-radius: var(--radius-xl);
	padding: var(--space-8);
	box-shadow: var(--shadow);
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	position: relative;
	overflow: hidden;
}

.feature-card::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 4px;
	background: linear-gradient(90deg, var(--primary), var(--tertiary));
}

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

.feature-icon {
	font-size: 3rem;
	margin-bottom: var(--space-4);
	display: block;
	filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.feature-card h3 {
	font-size: 1.5rem;
	font-weight: 600;
	margin-bottom: var(--space-3);
	color: var(--text-primary);
}

.feature-card p {
	color: var(--text-secondary);
	line-height: 1.6;
	font-size: 0.95rem;
}

/* Section démo moderne */
.demo {
	padding: var(--space-16) var(--space-6);
	background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
	position: relative;
}

.demo-content {
	max-width: 1200px;
	margin: 0 auto;
	position: relative;
	z-index: 1;
}

.demo-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
	gap: var(--space-8);
	margin-top: var(--space-12);
}

.demo-card {
	background: white;
	border-radius: var(--radius-xl);
	overflow: hidden;
	box-shadow: var(--shadow-lg);
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	border: 1px solid var(--gray-200);
}

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

.demo-image {
	height: 220px;
	overflow: hidden;
	position: relative;
}

.demo-image::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 4px;
	background: linear-gradient(90deg, var(--primary), var(--tertiary));
	z-index: 1;
}

.demo-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.demo-card:hover .demo-image img {
	transform: scale(1.05);
}

.demo-text {
	padding: var(--space-6);
}

.demo-text h3 {
	font-size: 1.375rem;
	font-weight: 600;
	margin-bottom: var(--space-3);
	color: var(--text-primary);
}

.demo-text p {
	color: var(--text-secondary);
	line-height: 1.6;
	font-size: 0.95rem;
}

/* Section Social Proof */
.social-proof {
	padding: var(--space-16) var(--space-6);
	background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
	position: relative;
}

.stats-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: var(--space-6);
	margin: var(--space-12) 0;
	max-width: 1000px;
	margin-left: auto;
	margin-right: auto;
}

.stat-card {
	background: white;
	padding: var(--space-6);
	border-radius: var(--radius-xl);
	text-align: center;
	box-shadow: var(--shadow);
	border: 1px solid var(--gray-200);
	transition: all 0.3s ease;
}

.stat-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--shadow-lg);
}

.stat-number {
	font-size: 2.5rem;
	font-weight: 800;
	background: linear-gradient(135deg, var(--primary), var(--tertiary));
	background-clip: text;
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	margin-bottom: var(--space-2);
}

.stat-label {
	color: var(--text-secondary);
	font-weight: 500;
	font-size: 0.9rem;
}

.testimonials-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
	gap: var(--space-6);
	margin: var(--space-12) 0;
}

.testimonial-card {
	background: white;
	padding: var(--space-6);
	border-radius: var(--radius-xl);
	box-shadow: var(--shadow);
	border: 1px solid var(--gray-200);
	position: relative;
	transition: all 0.3s ease;
}

.testimonial-card::before {
	content: '"';
	position: absolute;
	top: -10px;
	left: var(--space-6);
	font-size: 4rem;
	color: var(--primary);
	font-weight: bold;
	line-height: 1;
}

.testimonial-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--shadow-lg);
}

.testimonial-content {
	margin-bottom: var(--space-4);
	padding-top: var(--space-4);
}

.testimonial-content p {
	font-style: italic;
	color: var(--text-secondary);
	line-height: 1.6;
	margin: 0;
}

.author-name {
	font-weight: 600;
	color: var(--text-primary);
	margin-bottom: var(--space-1);
}

.author-role {
	font-size: 0.85rem;
	color: var(--text-muted);
}

.client-logos {
	margin-top: var(--space-12);
	padding: var(--space-8) 0;
	border-top: 1px solid var(--gray-200);
}

.logo-marquee {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: var(--space-8);
	flex-wrap: wrap;
}

.client-logo {
	padding: var(--space-3) var(--space-6);
	background: white;
	border: 1px solid var(--gray-200);
	border-radius: var(--radius);
	color: var(--text-secondary);
	font-weight: 600;
	font-size: 0.9rem;
	box-shadow: var(--shadow-sm);
	transition: all 0.3s ease;
}

.client-logo:hover {
	transform: translateY(-2px);
	box-shadow: var(--shadow);
	border-color: var(--primary);
	color: var(--primary);
}

/* Section CTA moderne */
.cta {
	padding: var(--space-16) var(--space-6);
	background: linear-gradient(135deg, var(--primary), var(--primary-light), var(--tertiary));
	color: white;
	text-align: center;
	position: relative;
	overflow: hidden;
}

.cta::before {
	content: '';
	position: absolute;
	top: -50%;
	left: -50%;
	width: 200%;
	height: 200%;
	background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
	animation: pulse 4s infinite ease-in-out;
}

@keyframes pulse {
	0%, 100% {
		opacity: 0.5;
		transform: scale(1);
	}
	50% {
		opacity: 0.8;
		transform: scale(1.05);
	}
}

.cta-content {
	max-width: 800px;
	margin: 0 auto;
	position: relative;
	z-index: 1;
}

.cta h2 {
	font-size: 2.75rem;
	font-weight: 700;
	margin-bottom: var(--space-6);
	text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.cta p {
	font-size: 1.25rem;
	margin-bottom: var(--space-8);
	opacity: 0.95;
	line-height: 1.6;
}

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

.btn-cta {
	padding: var(--space-4) var(--space-8);
	font-size: 1.1rem;
	font-weight: 600;
	border-radius: var(--radius-lg);
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	transition: all 0.3s ease;
	min-width: 180px;
	justify-content: center;
}

.btn-cta-primary {
	background: white;
	color: var(--primary);
	box-shadow: var(--shadow-lg);
}

.btn-cta-primary:hover {
	transform: translateY(-3px);
	box-shadow: var(--shadow-xl);
	background: var(--gray-50);
}

.btn-cta-secondary {
	background: transparent;
	border: 2px solid white;
	color: white;
}

.btn-cta-secondary:hover {
	background: white;
	color: var(--primary);
	transform: translateY(-2px);
}

/* Animations d'entrée */
@keyframes slideInLeft {
	from {
		opacity: 0;
		transform: translateX(-50px);
	}
	to {
		opacity: 1;
		transform: translateX(0);
	}
}

@keyframes slideInRight {
	from {
		opacity: 0;
		transform: translateX(50px);
	}
	to {
		opacity: 1;
		transform: translateX(0);
	}
}

@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(30px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Responsive design */
@media (max-width: 992px) {
	.hero-content {
		grid-template-columns: 1fr;
		text-align: center;
		gap: var(--space-8);
	}
	
	.hero-image {
		order: -1;
	}
	
	.hero-text h1 {
		font-size: 2.5rem;
	}
	
	.features-grid,
	.demo-grid {
		grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
		gap: var(--space-6);
	}
}

@media (max-width: 768px) {
	.hero {
		min-height: 70vh;
		padding: var(--space-6) var(--space-4);
	}
	
	.hero-text h1 {
		font-size: 2rem;
	}
	
	.hero-text p {
		font-size: 1.1rem;
	}
	
	.section-title {
		font-size: 2rem;
	}
	
	.cta h2 {
		font-size: 2rem;
	}
	
	.cta p {
		font-size: 1.1rem;
	}
	
	.cta-buttons {
		flex-direction: column;
		align-items: stretch;
	}
	
	.btn-cta {
		width: 100%;
		max-width: 280px;
		margin: 0 auto;
	}
	
	.features,
	.demo,
	.cta {
		padding: var(--space-12) var(--space-4);
	}
	
	.features-grid,
	.demo-grid {
		grid-template-columns: 1fr;
		gap: var(--space-6);
	}
}

@media (max-width: 480px) {
	.hero-text h1 {
		font-size: 1.75rem;
	}
	
	.section-title {
		font-size: 1.75rem;
	}
	
	.feature-card,
	.demo-text {
		padding: var(--space-6);
	}
	
	.btn-hero,
	.btn-cta {
		padding: var(--space-3) var(--space-6);
		font-size: 0.95rem;
	}
}