/* Features Section - Design Moderne */

.features-section {
	padding: 100px 0;
	background: linear-gradient(to bottom, #ffffff 0%, #f8f9fa 100%);
	position: relative;
	overflow: hidden;
}

.features-section::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%238B1538' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
	opacity: 0.5;
	pointer-events: none;
}

/* Feature Card */
.feature-card {
	position: relative;
	background: white;
	border-radius: 20px;
	padding: 40px 30px;
	transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
	box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
	height: 100%;
	display: flex;
	align-items: center;
	gap: 25px;
	cursor: pointer;
	overflow: hidden;
	margin-bottom: 30px;
}

.feature-card::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 5px;
	height: 100%;
	background: linear-gradient(180deg, #8B1538 0%, #A91D4A 100%);
	transform: scaleY(0);
	transform-origin: top;
	transition: transform 0.4s ease;
}

.feature-card:hover::before {
	transform: scaleY(1);
}

.feature-card:hover {
	transform: translateY(-10px);
	box-shadow: 0 20px 50px rgba(139, 21, 56, 0.15);
}

/* Feature Icon */
.feature-icon {
	position: relative;
	width: 80px;
	height: 80px;
	flex-shrink: 0;
	background: linear-gradient(135deg, #8B1538 0%, #A91D4A 100%);
	border-radius: 20px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 32px;
	color: white;
	transition: all 0.4s ease;
	box-shadow: 0 10px 30px rgba(139, 21, 56, 0.3);
}

.feature-card:hover .feature-icon {
	transform: rotate(5deg) scale(1.1);
	box-shadow: 0 15px 40px rgba(139, 21, 56, 0.4);
}

.feature-icon i {
	transition: transform 0.4s ease;
}

.feature-card:hover .feature-icon i {
	transform: scale(1.2);
}

/* Feature Content */
.feature-content {
	flex: 1;
}

.feature-content h5 {
	font-size: 22px;
	font-weight: 700;
	color: #2C3E50;
	margin-bottom: 12px;
	transition: color 0.3s ease;
}

.feature-card:hover .feature-content h5 {
	color: #8B1538;
}

.feature-content p {
	font-size: 15px;
	color: #6c757d;
	line-height: 1.6;
	margin: 0;
}

/* Badge sur l'icône */
.feature-badge {
	position: absolute;
	top: -8px;
	right: -8px;
	width: 28px;
	height: 28px;
	background: white;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 14px;
	box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
	z-index: 1;
}

/* Section Title (si ajouté) */
.features-title {
	text-align: center;
	margin-bottom: 60px;
	animation: fadeInUp 0.6s ease;
}

.features-title h2 {
	font-size: 42px;
	font-weight: 700;
	color: #2C3E50;
	margin-bottom: 15px;
}

.features-title p {
	font-size: 18px;
	color: #6c757d;
	max-width: 700px;
	margin: 0 auto;
}

/* Animation d'entrée */
@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(30px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.feature-card {
	animation: fadeInUp 0.6s ease forwards;
	opacity: 0;
}

.feature-card:nth-child(1) {
	animation-delay: 0.1s;
}

.feature-card:nth-child(2) {
	animation-delay: 0.2s;
}

.feature-card:nth-child(3) {
	animation-delay: 0.3s;
}

/* Effet de pulse sur les icônes */
@keyframes iconPulse {
	0%, 100% {
		box-shadow: 0 10px 30px rgba(139, 21, 56, 0.3);
	}
	50% {
		box-shadow: 0 10px 40px rgba(139, 21, 56, 0.5);
	}
}

.feature-card:hover .feature-icon {
	animation: iconPulse 2s infinite;
}

/* Responsive */
@media (max-width: 992px) {
	.features-section {
		padding: 80px 0;
	}

	.feature-card {
		padding: 35px 25px;
		gap: 20px;
	}

	.feature-icon {
		width: 70px;
		height: 70px;
		font-size: 28px;
	}

	.feature-content h5 {
		font-size: 20px;
	}

	.feature-content p {
		font-size: 14px;
	}

	.features-title h2 {
		font-size: 36px;
	}
}

@media (max-width: 768px) {
	.features-section {
		padding: 60px 0;
	}

	.feature-card {
		max-width: 500px;
		margin-left: auto;
		margin-right: auto;
		margin-bottom: 25px;
		padding: 30px 20px;
		flex-direction: row;
		text-align: left;
	}

	.feature-icon {
		width: 65px;
		height: 65px;
		font-size: 26px;
		border-radius: 15px;
	}

	.feature-content h5 {
		font-size: 19px;
		margin-bottom: 10px;
	}

	.feature-content p {
		font-size: 14px;
	}

	.features-title {
		margin-bottom: 40px;
	}

	.features-title h2 {
		font-size: 32px;
	}

	.features-title p {
		font-size: 16px;
		padding: 0 15px;
	}
}

@media (max-width: 576px) {
	.features-section {
		padding: 50px 0;
	}

	.feature-card {
		padding: 25px 20px;
		gap: 18px;
		border-radius: 15px;
		margin-bottom: 20px;
	}

	.feature-icon {
		width: 60px;
		height: 60px;
		font-size: 24px;
		border-radius: 12px;
	}

	.feature-badge {
		width: 24px;
		height: 24px;
		font-size: 12px;
		top: -6px;
		right: -6px;
	}

	.feature-content h5 {
		font-size: 18px;
		margin-bottom: 8px;
	}

	.feature-content p {
		font-size: 13px;
		line-height: 1.5;
	}

	.features-title h2 {
		font-size: 28px;
	}

	.features-title p {
		font-size: 15px;
	}
}

@media (max-width: 400px) {
	.feature-card {
		padding: 20px 15px;
		gap: 15px;
	}

	.feature-icon {
		width: 55px;
		height: 55px;
		font-size: 22px;
	}

	.feature-content h5 {
		font-size: 17px;
	}

	.feature-content p {
		font-size: 12px;
	}
}
