:root {
	--nexcert-navy: #172452;
	--nexcert-blue: #1A59E1;
	--nexcert-teal: #0CADA0;
	--nexcert-gray: #444444;
	--nexcert-light: #F5F7FB;
	--nexcert-white: #FFFFFF;
	--nexcert-gradient: linear-gradient(135deg, var(--nexcert-navy) 0%, var(--nexcert-blue) 100%);
}

* { box-sizing: border-box; }

body {
	margin: 0;
	font-family: 'Segoe UI', Arial, sans-serif;
	color: var(--nexcert-gray);
	background: var(--nexcert-white);
	line-height: 1.6;
}

img { max-width: 100%; display: block; }

a { color: var(--nexcert-blue); text-decoration: none; }
a:hover { color: var(--nexcert-teal); }

h1, h2, h3, h4 {
	color: var(--nexcert-navy);
	font-weight: 700;
	line-height: 1.25;
	margin: 0 0 .6em;
}

.container {
	max-width: 1160px;
	margin: 0 auto;
	padding: 0 24px;
}

/* Top bar */
.topbar { background: var(--nexcert-navy); color: #cfd6e8; font-size: .82rem; }
.topbar .container { display: flex; align-items: center; justify-content: space-between; height: 38px; }
.topbar-contact { display: flex; gap: 22px; }
.topbar-contact a, .topbar-social a { color: #cfd6e8; }
.topbar-contact a:hover, .topbar-social a:hover { color: var(--nexcert-teal); }
.topbar-social { display: flex; gap: 14px; font-size: .95rem; }
@media (max-width: 700px) {
	.topbar-contact a span.topbar-label { display: none; }
}
@media (max-width: 560px) {
	.topbar .container { height: 34px; }
	.topbar-contact { gap: 14px; }
}

/* Header */
.site-header {
	background: var(--nexcert-white);
	border-bottom: 1px solid #eaedf3;
	position: sticky;
	top: 0;
	z-index: 100;
}
.site-header .container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 76px;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo-text {
	font-size: 1.5rem;
	font-weight: 800;
	background: var(--nexcert-gradient);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}
.logo-text .accent { color: var(--nexcert-teal); -webkit-text-fill-color: var(--nexcert-teal); }
.logo-icon { height: 40px; width: auto; display: block; }
.logo-icon-sm { height: 30px; }
.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a {
	color: var(--nexcert-navy);
	font-weight: 600;
	font-size: .95rem;
}
.nav-cta-mobile { display: none; }
.site-header .btn-cta { padding: 9px 18px; font-size: .88rem; white-space: nowrap; }

.nav-toggle {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 34px; height: 34px;
	background: none; border: none; cursor: pointer; padding: 0;
	flex-shrink: 0;
}
.nav-toggle span {
	display: block; width: 100%; height: 2px;
	background: var(--nexcert-navy); border-radius: 2px;
	transition: transform .25s ease, opacity .25s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.btn-cta {
	display: inline-block;
	background: var(--nexcert-blue);
	color: #fff;
	padding: 12px 26px;
	border-radius: 6px;
	font-weight: 700;
	transition: background .2s;
}
.btn-cta:hover { background: var(--nexcert-teal); color: #fff; }
.btn-outline {
	display: inline-block;
	border: 2px solid var(--nexcert-white);
	color: #fff;
	padding: 10px 24px;
	border-radius: 6px;
	font-weight: 700;
}
.btn-outline:hover { background: rgba(255,255,255,.15); color: #fff; }

/* Hero */
.hero {
	background: var(--nexcert-gradient);
	color: #fff;
	padding: 90px 0 70px;
	text-align: center;
}
.hero h1 { color: #fff; font-size: 2.4rem; max-width: 780px; margin: 0 auto .5em; }
.hero p { font-size: 1.15rem; max-width: 640px; margin: 0 auto 2em; opacity: .92; }
.hero .cta-group { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* Hero slider */
.hero-slider { position: relative; padding: 0; min-height: 560px; overflow: hidden; }
.hero-slide {
	position: absolute; inset: 0;
	display: flex; align-items: center;
	background-size: cover; background-position: center;
	opacity: 0; visibility: hidden; z-index: 1;
	transition: opacity .9s ease;
	padding: 90px 0 70px;
}
.hero-slide.active { opacity: 1; visibility: visible; z-index: 2; }
.hero-slide .container { width: 100%; }

.hero-arrow {
	position: absolute; top: 50%; transform: translateY(-50%);
	width: 44px; height: 44px; border-radius: 50%;
	background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.4);
	color: #fff; display: flex; align-items: center; justify-content: center;
	cursor: pointer; z-index: 5; font-size: 1.1rem;
	transition: background .2s ease;
}
.hero-arrow:hover { background: rgba(255,255,255,.32); }
.hero-arrow-prev { left: 20px; }
.hero-arrow-next { right: 20px; }

.hero-dots {
	position: absolute; bottom: 22px; left: 0; right: 0;
	display: flex; gap: 10px; justify-content: center; z-index: 5;
}
.hero-dot {
	width: 10px; height: 10px; border-radius: 50%;
	background: rgba(255,255,255,.4); border: none; cursor: pointer;
	padding: 0; transition: background .2s ease, transform .2s ease;
}
.hero-dot.active { background: #fff; transform: scale(1.2); }

@media (max-width: 700px) {
	.hero-slider { min-height: 480px; }
	.hero-arrow { width: 36px; height: 36px; font-size: .95rem; }
}

/* Sections */
.section { padding: 70px 0; }
.section-alt { background: var(--nexcert-light); }
.section-header { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section-header .eyebrow {
	color: var(--nexcert-teal);
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
	font-size: .85rem;
}

/* Grids */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 900px) {
	.grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
	.grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* Mobile nav (hamburger) */
@media (max-width: 860px) {
	.nav-toggle { display: flex; }
	.btn-cta-desktop { display: none; }
	.main-nav {
		flex-direction: column;
		align-items: stretch;
		position: absolute;
		top: 76px; left: 0; right: 0;
		background: #fff;
		padding: 0 24px;
		gap: 0;
		max-height: 0;
		overflow: hidden;
		box-shadow: 0 12px 24px rgba(23,36,82,.1);
		transition: max-height .3s ease, padding .3s ease;
	}
	.main-nav.is-open { max-height: 420px; padding: 8px 24px 20px; }
	.main-nav a { padding: 12px 0; border-bottom: 1px solid #eef1f7; }
	.nav-cta-mobile {
		display: block;
		margin-top: 14px;
		text-align: center;
		background: var(--nexcert-blue);
		color: #fff;
		padding: 12px;
		border-radius: 6px;
		font-weight: 700;
		border-bottom: none;
	}
}

/* Cards */
.card {
	background: #fff;
	border: 1px solid #eaedf3;
	border-radius: 10px;
	padding: 32px;
	transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 16px 32px rgba(23,36,82,.12); }

/* Project showcase cards (homepage réalisations) */
.showcase-card {
	display: block;
	border-radius: 14px;
	overflow: hidden;
	background: #fff;
	border: 1px solid #eaedf3;
	text-decoration: none;
	box-shadow: 0 8px 24px rgba(23,36,82,.06);
	transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s ease;
}
.showcase-card:hover { transform: translateY(-6px); box-shadow: 0 16px 32px rgba(23,36,82,.14); }
.showcase-image {
	height: 170px;
	background-color: var(--nexcert-light);
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
	background-origin: content-box;
	background-clip: content-box;
	padding: 26px;
	box-sizing: border-box;
	display: flex; align-items: center; justify-content: center;
}
.showcase-image-fallback { background: var(--nexcert-gradient); }
.showcase-image-fallback i { font-size: 2.6rem; color: rgba(255,255,255,.55); }
.showcase-body { padding: 22px 24px 26px; }
.showcase-body h3 { font-size: 1.1rem; margin: 8px 0 4px; }
.showcase-body p { margin: 0 0 12px; color: var(--nexcert-gray); font-size: .9rem; }
.showcase-link { font-weight: 700; font-size: .88rem; color: var(--nexcert-blue); display: inline-flex; align-items: center; gap: 6px; transition: gap .2s ease; }
.showcase-card:hover .showcase-link { gap: 10px; color: var(--nexcert-teal); }

/* Service cards (Nos solutions) */
.service-card {
	display: block;
	border-radius: 14px;
	overflow: hidden;
	background: #fff;
	border: 1px solid #eaedf3;
	text-decoration: none;
	box-shadow: 0 8px 24px rgba(23,36,82,.06);
	transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s ease;
}
.service-card:hover { transform: translateY(-6px); box-shadow: 0 16px 32px rgba(23,36,82,.14); }
.service-card-image { height: 230px; overflow: hidden; background: var(--nexcert-light); }
.service-card-image-bg {
	width: 100%; height: 100%;
	background-size: cover; background-position: center;
	transition: transform .5s ease;
}
.service-card:hover .service-card-image-bg { transform: scale(1.08); }
.service-card-body { padding: 24px; }
.service-card-body .icon-badge { margin-bottom: 16px; }
.service-card-body h2, .service-card-body h3 { font-size: 1.1rem; margin: 0 0 8px; }
.service-card-body p { margin: 0 0 14px; color: var(--nexcert-gray); font-size: .92rem; }

/* Icon badges (Bootstrap Icons) */
.icon-badge {
	width: 58px; height: 58px;
	border-radius: 16px;
	background: linear-gradient(135deg, var(--nexcert-blue), var(--nexcert-teal));
	color: #fff;
	display: flex; align-items: center; justify-content: center;
	font-size: 1.6rem;
	margin-bottom: 20px;
	transition: transform .35s cubic-bezier(.2,.8,.2,1);
	box-shadow: 0 8px 20px rgba(26,89,225,.25);
}
.card:hover .icon-badge { transform: scale(1.08) rotate(-4deg); }
.card:nth-child(even) .icon-badge {
	background: linear-gradient(135deg, var(--nexcert-navy), var(--nexcert-teal));
	box-shadow: 0 8px 20px rgba(12,173,160,.25);
}
.icon-badge.icon-badge-lg { width: 64px; height: 64px; font-size: 1.8rem; border-radius: 18px; }

/* Legacy inline-SVG icon container (kept for any remaining callers) */
.card .icon {
	width: 52px; height: 52px;
	border-radius: 10px;
	background: rgba(26,89,225,.1);
	color: var(--nexcert-blue);
	display: flex; align-items: center; justify-content: center;
	font-size: 1.4rem;
	margin-bottom: 18px;
}
.card:nth-child(even) .icon { background: rgba(12,173,160,.1); color: var(--nexcert-teal); }

/* Scroll-reveal animations */
.reveal {
	opacity: 0;
	transform: translateY(28px);
	transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal-stagger.in-view > * {
	animation: reveal-fade-up .6s cubic-bezier(.2,.7,.2,1) both;
}
.reveal-stagger.in-view > *:nth-child(1) { animation-delay: .05s; }
.reveal-stagger.in-view > *:nth-child(2) { animation-delay: .15s; }
.reveal-stagger.in-view > *:nth-child(3) { animation-delay: .25s; }
.reveal-stagger.in-view > *:nth-child(4) { animation-delay: .35s; }
.reveal-stagger.in-view > *:nth-child(5) { animation-delay: .45s; }
@keyframes reveal-fade-up {
	from { opacity: 0; transform: translateY(22px); }
	to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
	.reveal, .reveal-stagger > * { opacity: 1 !important; transform: none !important; animation: none !important; transition: none !important; }
}

/* Header scroll state */
.site-header { transition: box-shadow .3s ease; }
.site-header.is-scrolled { box-shadow: 0 4px 18px rgba(23,36,82,.08); }

/* Button micro-interactions */
.btn-cta, .btn-outline { transition: transform .2s ease, background .2s ease, box-shadow .2s ease; }
.btn-cta:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(26,89,225,.3); }
.btn-outline:hover { transform: translateY(-2px); }

/* Stats */
.stats-bar { background: var(--nexcert-navy); color: #fff; padding: 48px 0; }
.stats-bar .grid-4 { text-align: center; }
.stat-value { font-size: 2.2rem; font-weight: 800; color: var(--nexcert-teal); }
.stat-label { font-size: .9rem; opacity: .85; }

/* Team & clients */
.team-member { text-align: center; }
.team-member img, .team-member .avatar-fallback {
	width: 120px; height: 120px; border-radius: 50%;
	object-fit: cover; margin: 0 auto 16px;
	background: var(--nexcert-light);
}
.client-logos { display: flex; flex-wrap: wrap; gap: 32px; align-items: center; justify-content: center; }
.client-logos img { max-height: 42px; opacity: .75; filter: grayscale(1); }

/* Trust grid (logos clients, format vitrine) */
.trust-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 20px; }
.trust-tile {
	background: #fff;
	border: 1px solid #eaedf3;
	border-radius: 12px;
	height: 92px;
	display: flex; align-items: center; justify-content: center;
	padding: 18px;
	text-decoration: none;
	transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s ease, border-color .25s ease;
}
.trust-tile img { max-width: 100%; max-height: 100%; width: auto; height: auto; display: block; filter: grayscale(1); opacity: .7; transition: filter .3s ease, opacity .3s ease; }
.trust-tile:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(23,36,82,.1); border-color: var(--nexcert-blue); }
.trust-tile:hover img { filter: grayscale(0); opacity: 1; }
@media (max-width: 560px) {
	.trust-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Breadcrumb */
.breadcrumb { font-size: .85rem; color: #cfd6e8; margin-bottom: 14px; }
.breadcrumb a { color: #cfd6e8; }
.breadcrumb a:hover { color: var(--nexcert-teal); }

/* Prose (rich content blocks: services, blog, projets) */
.prose { max-width: 780px; }
.prose h2 { margin-top: 1.6em; font-size: 1.4rem; }
.prose h3 { margin-top: 1.2em; font-size: 1.1rem; }
.prose p { margin: 0 0 1.1em; }
.prose ul { padding-left: 1.2em; margin: 0 0 1.1em; }
.prose li { margin-bottom: .5em; }
.prose li::marker { color: var(--nexcert-teal); }

/* Filter tabs (réalisations) */
.filter-tabs { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 44px; }
.filter-tabs a {
	padding: 9px 18px;
	border-radius: 999px;
	border: 1px solid #dde2ee;
	color: var(--nexcert-navy);
	font-weight: 600;
	font-size: .9rem;
}
.filter-tabs a:hover { border-color: var(--nexcert-blue); color: var(--nexcert-blue); }
.filter-tabs a.active { background: var(--nexcert-blue); border-color: var(--nexcert-blue); color: #fff; }

.badge {
	display: inline-block;
	background: rgba(12,173,160,.12);
	color: var(--nexcert-teal);
	font-size: .78rem;
	font-weight: 700;
	padding: 4px 12px;
	border-radius: 999px;
	margin-bottom: 14px;
}
.badge-light {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: rgba(255,255,255,.15);
	border: 1px solid rgba(255,255,255,.35);
	color: #fff;
	font-size: .8rem;
	font-weight: 700;
	padding: 6px 16px;
	border-radius: 999px;
	margin-bottom: 18px;
}

.training-meta { display: flex; flex-wrap: wrap; gap: 28px; margin: 28px 0; padding: 24px; background: var(--nexcert-light); border-radius: 10px; }
.training-meta div strong { display: block; color: var(--nexcert-navy); font-size: .8rem; text-transform: uppercase; letter-spacing: .03em; margin-bottom: 4px; }

/* Blog */
.post-meta { font-size: .85rem; color: var(--nexcert-gray); margin-bottom: 10px; }
.post-meta span:not(:last-child)::after { content: '·'; margin: 0 8px; }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0; }
.tag-list a {
	background: var(--nexcert-light);
	color: var(--nexcert-navy);
	font-size: .8rem;
	font-weight: 600;
	padding: 5px 12px;
	border-radius: 999px;
}
.tag-list a:hover { background: rgba(26,89,225,.1); color: var(--nexcert-blue); }
.share-links { display: flex; gap: 10px; margin: 28px 0; }
.share-links a {
	width: 38px; height: 38px;
	border-radius: 50%;
	background: var(--nexcert-light);
	color: var(--nexcert-navy);
	display: flex; align-items: center; justify-content: center;
	font-size: .8rem; font-weight: 700;
}
.share-links a:hover { background: var(--nexcert-blue); color: #fff; }
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 44px; }
.pagination a, .pagination .page-current {
	min-width: 40px; height: 40px;
	display: flex; align-items: center; justify-content: center;
	border-radius: 8px;
	border: 1px solid #dde2ee;
	color: var(--nexcert-navy);
	font-weight: 600;
	padding: 0 8px;
}
.pagination a:hover { border-color: var(--nexcert-blue); color: var(--nexcert-blue); }
.pagination .page-current { background: var(--nexcert-blue); border-color: var(--nexcert-blue); color: #fff; }

.empty-state { text-align: center; padding: 40px 0; color: var(--nexcert-gray); }

.project-meta { display: flex; flex-wrap: wrap; gap: 28px; margin: 28px 0; padding: 24px; background: var(--nexcert-light); border-radius: 10px; }
.project-meta div strong { display: block; color: var(--nexcert-navy); font-size: .8rem; text-transform: uppercase; letter-spacing: .03em; margin-bottom: 4px; }
.client-socials { display: flex; gap: 10px; }
.client-socials a { display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: #fff; color: var(--nexcert-blue); font-size: .95rem; transition: background .15s ease, color .15s ease; }
.client-socials a:hover { background: var(--nexcert-blue); color: #fff; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; } }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 600; color: var(--nexcert-navy); margin-bottom: 6px; font-size: .92rem; }
.form-control {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid #dde2ee;
	border-radius: 8px;
	font-size: .95rem;
	font-family: inherit;
	color: var(--nexcert-gray);
}
.form-control:focus { outline: none; border-color: var(--nexcert-blue); }
textarea.form-control { resize: vertical; min-height: 140px; }
.form-error { color: #c0392b; font-size: .82rem; margin-top: 6px; }
.form-error-summary { background: #fdecea; border: 1px solid #f5c6c1; color: #c0392b; padding: 14px 18px; border-radius: 8px; margin-bottom: 24px; }
.alert-success { background: rgba(12,173,160,.1); border: 1px solid var(--nexcert-teal); color: var(--nexcert-navy); padding: 24px; border-radius: 10px; }
.info-card { background: var(--nexcert-light); border-radius: 10px; padding: 28px; }
.info-card h3 { font-size: 1rem; margin-bottom: 18px; }
.info-card p { margin-bottom: 14px; font-size: .92rem; }
.info-card .social-links { display: flex; gap: 12px; margin-top: 18px; }
.info-card .social-links a {
	width: 36px; height: 36px;
	border-radius: 50%;
	background: #fff;
	border: 1px solid #dde2ee;
	display: flex; align-items: center; justify-content: center;
	font-weight: 700; font-size: .8rem;
	color: var(--nexcert-navy);
}
.info-card .social-links a:hover { background: var(--nexcert-blue); color: #fff; border-color: var(--nexcert-blue); }

/* Footer */
.site-footer { background: var(--nexcert-navy); color: #cfd6e8; padding: 56px 0 24px; }
.site-footer h4 { color: #fff; font-size: 1rem; }
.site-footer a { color: #cfd6e8; }
.site-footer a:hover { color: var(--nexcert-teal); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 36px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 20px; font-size: .85rem; text-align: center; color: #93a0c2; }
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
