* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
	line-height: 1.6;
	color: #333;
	background-color: #f8f9fa;
}

/* Couleurs de la charte Ameli */
:root {
	--ameli-blue: #2A61B1;
	--ameli-light-blue: #4A7BC8;
	--ameli-dark-blue: #1A4A8A;
	--ameli-gray: #6c757d;
	--ameli-light-gray: #f8f9fa;
	--ameli-white: #ffffff;
	--ameli-success: #28a745;
	--ameli-warning: #ffc107;
}

/* Header */
.header {
	background: linear-gradient(135deg, var(--ameli-blue) 0%, var(--ameli-dark-blue) 100%);
	color: white;
	padding: 1rem 0;
	box-shadow: 0 2px 10px rgba(42, 97, 177, 0.3);
}

.header-content {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 2rem;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

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

.logo-icon {
	width: 125px;
	height: 66px;
	/*background: white;*/
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: bold;
	color: var(--ameli-blue);
	font-size: 1.2rem;
	background-image: url(../img/logoCnam2020.png);
	background-repeat: no-repeat;
}

.logo-text {
	font-size: 1.5rem;
	font-weight: 600;
}

.logo-subtitle {
	font-size: 0.9rem;
	opacity: 0.9;
}

.header-actions {
	display: flex;
	gap: 1rem;
	align-items: center;
}

.btn {
	padding: 0.7rem 1.5rem;
	border: none;
	border-radius: 6px;
	cursor: pointer;
	font-weight: 500;
	text-decoration: none;
	display: inline-block;
	transition: all 0.3s ease;
	font-size: 0.9rem;
}

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

.btn-primary:hover {
	background: #f0f4ff;
	transform: translateY(-1px);
}

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

.btn-outline:hover {
	background: white;
	color: var(--ameli-blue);
}

/* Navigation */
.nav {
	background: white;
	border-bottom: 1px solid #e9ecef;
	position: sticky;
	top: 0;
	z-index: 100;
}

.nav-content {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 2rem;
	display: flex;
	gap: 2rem;
}

.nav-item {
	padding: 1rem 0;
	color: var(--ameli-gray);
	text-decoration: none;
	font-weight: 500;
	border-bottom: 3px solid transparent;
	transition: all 0.3s ease;
}

.nav-item:hover, .nav-item.active {
	color: var(--ameli-blue);
	border-bottom-color: var(--ameli-blue);
}

/* Hero Section */
.hero {
	background: linear-gradient(135deg, rgba(42, 97, 177, 0.1) 0%, rgba(26, 74, 138, 0.1) 100%);
	padding: 3rem 0;
	text-align: center;
}

.hero-content {
	max-width: 800px;
	margin: 0 auto;
	padding: 0 2rem;
}

.hero h1 {
	font-size: 2.5rem;
	color: var(--ameli-blue);
	margin-bottom: 1rem;
	font-weight: 700;
}

.hero p {
	font-size: 1.2rem;
	color: var(--ameli-gray);
	margin-bottom: 2rem;
}

/* Cards Grid */
.services {
	padding: 4rem 0;
	background: white;
}

.container {
	max-width: 1600px;
	margin: 0 auto;
	padding: 0 2rem;
}

.section-title {
	text-align: center;
	font-size: 2rem;
	color: var(--ameli-blue);
	margin-bottom: 3rem;
	font-weight: 600;
}

.cards-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 2rem;
	margin-bottom: 3rem;
}

.card {
	background: white;
	border-radius: 12px;
	padding: 2rem;
	box-shadow: 0 4px 20px rgba(42, 97, 177, 0.1);
	border: 1px solid #e9ecef;
	transition: all 0.3s ease;
	position: relative;
	overflow: hidden;
}

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

.card:hover {
	transform: translateY(-5px);
	box-shadow: 0 8px 30px rgba(42, 97, 177, 0.2);
}

.card-icon {
	width: 60px;
	height: 60px;
	background: linear-gradient(135deg, var(--ameli-blue), var(--ameli-light-blue));
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 1.5rem;
	color: white;
	font-size: 1.5rem;
}

.card h3 {
	color: var(--ameli-blue);
	margin-bottom: 1rem;
	font-size: 1.3rem;
	font-weight: 600;
}

.card p {
	color: var(--ameli-gray);
	margin-bottom: 1.5rem;
}

.card-link {
	color: var(--ameli-blue);
	text-decoration: none;
	font-weight: 600;
	display: flex;
	align-items: center;
	gap: 0.5rem;
	transition: gap 0.3s ease;
}

.card-link:hover {
	gap: 1rem;
}

/* Quick Access */
.quick-access {
	background: var(--ameli-light-gray);
	padding: 3rem 0;
}

.quick-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 1.5rem;
}

.quick-item {
	background: white;
	padding: 1.5rem;
	border-radius: 8px;
	text-align: center;
	text-decoration: none;
	color: var(--ameli-gray);
	transition: all 0.3s ease;
	border: 2px solid transparent;
}

.quick-item:hover {
	border-color: var(--ameli-blue);
	color: var(--ameli-blue);
	transform: translateY(-2px);
}

.quick-icon {
	font-size: 2rem;
	margin-bottom: 1rem;
	color: var(--ameli-blue);
}

/* Contact Section */
.contact {
	background: var(--ameli-blue);
	color: white;
	padding: 3rem 0;
	text-align: center;
}

.contact-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 2rem;
	margin-top: 2rem;
}

.contact-item {
	padding: 1.5rem;
	background: rgba(255, 255, 255, 0.1);
	border-radius: 8px;
	backdrop-filter: blur(10px);
}

.contact-item h4 {
	margin-bottom: 1rem;
	font-size: 1.1rem;
}
.contact-item a {
	color:white;
}
/* Footer */
.footer {
	background: #2c3e50;
	color: white;
	padding: 2rem 0;
	text-align: center;
}

.footer-content {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 2rem;
}

.footer-links {
	display: flex;
	justify-content: center;
	gap: 2rem;
	margin-bottom: 1rem;
	flex-wrap: wrap;
}

.footer-links a {
	color: #bdc3c7;
	text-decoration: none;
	transition: color 0.3s ease;
}

.footer-links a:hover {
	color: white;
}
       /* Social Media */
        .social-media {
            margin: 2rem 0 1rem 0;
            padding-top: 2rem;
            border-top: 1px solid #34495e;
        }

        .social-media h4 {
            margin-bottom: 1rem;
            color: white;
            font-size: 1.1rem;
        }

        .social-links {
            display: flex;
            justify-content: center;
            gap: 1.5rem;
            flex-wrap: wrap;
        }

        .social-link {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 45px;
            height: 45px;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 50%;
            color: white;
            text-decoration: none;
            transition: all 0.3s ease;
            backdrop-filter: blur(10px);
        }

        .social-link svg {
            width: 20px;
            height: 20px;
            fill: currentColor;
        }

        .social-link:hover {
            transform: translateY(-3px) scale(1.1);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
            color: white;
        }

        .social-link.facebook:hover {
            background: #1877f2;
        }

        .social-link.twitter:hover {
            background: #1da1f2;
        }

        .social-link.youtube:hover {
            background: #ff0000;
        }

        .social-link.linkedin:hover {
            background: #0077b5;
        }

        .social-link.instagram:hover {
            background: linear-gradient(45deg, #405de6, #5851db, #833ab4, #c13584, #e1306c, #fd1d1d);
        }
/* Responsive */
@media (max-width: 768px) {
	.header-content {
		flex-direction: column;
		gap: 1rem;
		text-align: center;
	}

	.nav-content {
		flex-direction: column;
		gap: 0;
	}

	.nav-item {
		padding: 0.7rem 0;
		text-align: center;
	}

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

	.cards-grid {
		grid-template-columns: 1fr;
	}

	.contact-grid {
		grid-template-columns: 1fr;
	}

	.footer-links {
		flex-direction: column;
		gap: 1rem;
	}
}

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

.card {
	animation: fadeInUp 0.6s ease forwards;
}

.card:nth-child(2) { animation-delay: 0.1s; }
.card:nth-child(3) { animation-delay: 0.2s; }
.card:nth-child(4) { animation-delay: 0.3s; }
.card:nth-child(5) { animation-delay: 0.4s; }
.card:nth-child(6) { animation-delay: 0.5s; }