/*
Theme Name: Dir IPS
Description: Thème sur-mesure Dir IPS — refonte 2026 (Wizz You)
Author: Wizz You
Version: 0.1.0
Text Domain: dirips
*/

:root {
	--navy: #2A2586;
	--navy-deep: #1E1A66;
	--navy-ink: #17143F;
	--violet: #7C4DFF;
	--violet-bright: #CF7BFF;
	--green: #0E9E82;
	--green-bright: #64D2B9;
	--azure: #4A54D6;
	--azure-soft: #EDEEFB;
	--azure-line: #DCDEF7;
	--amber: #F5A623;
	--ink: #171633;
	--muted: #5C6078;
	--line: #E5EAF3;
	--soft: #F6F9FE;
	--bg: #fff;

	--font-heading: 'Montserrat', sans-serif;
	--font-body: 'Open Sans', system-ui, sans-serif;

	--radius: 16px;
	--radius-sm: 10px;
	--container: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
	margin: 0;
	font-family: var(--font-body);
	color: var(--ink);
	background: var(--bg);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .font-heading {
	font-family: var(--font-heading);
	color: var(--navy-ink);
	line-height: 1.2;
	margin: 0 0 .5em;
}

h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }

p { margin: 0 0 1em; color: var(--muted); }

a { color: var(--azure); text-decoration: none; }
a:hover { color: var(--violet); }

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

.container {
	max-width: var(--container);
	margin: 0 auto;
	padding: 0 24px;
}

.btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 14px 28px;
	border-radius: 999px;
	font-weight: 600;
	font-family: var(--font-heading);
	font-size: .95rem;
	border: 2px solid transparent;
	cursor: pointer;
	transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
	background: linear-gradient(135deg, var(--navy), var(--violet));
	color: #fff;
	box-shadow: 0 8px 20px rgba(42, 37, 134, .25);
}
.btn-primary:hover { color: #fff; box-shadow: 0 12px 28px rgba(42, 37, 134, .35); }

.btn-outline {
	background: #fff;
	color: var(--navy);
	border-color: var(--azure-line);
}
.btn-outline:hover { color: var(--violet); border-color: var(--violet-bright); }

.eyebrow {
	display: inline-block;
	font-family: var(--font-heading);
	font-size: .75rem;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--violet);
	background: var(--azure-soft);
	padding: 6px 14px;
	border-radius: 999px;
	margin-bottom: 16px;
}

.section { padding: 88px 0; }
.section-alt { background: var(--soft); }

.section-head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.section-head p { font-size: 1.05rem; }

.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	background: var(--navy);
	color: #fff;
	padding: 12px 20px;
	z-index: 10000;
}
.skip-link:focus { left: 16px; top: 16px; }

/* Header */
.site-header {
	position: sticky;
	top: 0;
	z-index: 500;
	background: rgba(255,255,255,.92);
	backdrop-filter: blur(8px);
	border-bottom: 1px solid var(--line);
}
.site-header .container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 84px;
}
.site-logo { display: inline-flex; align-items: center; font-family: var(--font-heading); font-weight: 800; font-size: 1.3rem; color: var(--navy-ink); }
.site-logo img { height: 44px; width: auto; display: block; }

.main-nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.main-nav > ul { align-items: center; }
.main-nav li { position: relative; }
.main-nav a {
	display: block;
	padding: 10px 16px;
	color: var(--navy-ink);
	font-weight: 600;
	font-size: .95rem;
	border-radius: 999px;
}
.main-nav a:hover { background: var(--azure-soft); color: var(--navy); }

.main-nav .menu-item-has-children > a::after {
	content: '';
	display: inline-block;
	width: 6px; height: 6px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg);
	margin-left: 6px;
}

.main-nav ul ul {
	position: absolute;
	top: 100%;
	left: 0;
	flex-direction: column;
	min-width: 260px;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
	box-shadow: 0 20px 40px rgba(23,20,63,.12);
	padding: 8px;
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: opacity .15s ease, transform .15s ease, visibility .15s;
}
.main-nav li:hover > ul,
.main-nav li:focus-within > ul { opacity: 1; visibility: visible; transform: translateY(0); }
.main-nav ul ul a { padding: 10px 14px; border-radius: 8px; }
.main-nav ul ul a:hover { background: var(--soft); }

.header-cta { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--navy-ink); margin: 5px 0; }

@media (max-width: 900px) {
	.main-nav { display: none; }
	.nav-toggle { display: block; }
	.header-cta .btn-outline { display: none; }
}

/* Footer */
.site-footer { background: var(--navy-ink); color: #fff; padding: 72px 0 32px; }
.site-footer a { color: #C7CBFB; }
.site-footer a:hover { color: #fff; }
.footer-grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr 1fr;
	gap: 40px;
	padding-bottom: 48px;
	border-bottom: 1px solid rgba(255,255,255,.12);
}
.footer-grid h4 {
	color: #fff;
	font-size: .85rem;
	text-transform: uppercase;
	letter-spacing: .06em;
	margin-bottom: 18px;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-brand p { color: #A9ADD9; max-width: 320px; }
.footer-bottom {
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
	padding-top: 24px;
	color: #8388BE;
	font-size: .85rem;
}
.footer-bottom ul { list-style: none; display: flex; gap: 20px; margin: 0; padding: 0; }

@media (max-width: 780px) {
	.footer-grid { grid-template-columns: 1fr 1fr; }
}

/* Cards */
.card {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 32px;
}

/* Skip-to-content + a11y */
.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(1px,1px,1px,1px);
}

/* ------------------------------------------------------------------ */
/* Motion & polish pass                                                */
/* ------------------------------------------------------------------ */

/* Header gains depth once the page scrolls, instead of a flat hairline always-on. */
.site-header { box-shadow: 0 1px 0 rgba(23,20,63,.04); transition: box-shadow .25s ease, background-color .25s ease; }
.site-header.is-scrolled { box-shadow: 0 12px 24px -12px rgba(23,20,63,.18); background: rgba(255,255,255,.98); }

/* Cards lift and pick up a brand-tinted shadow on hover — the one thing
   that made the flat sections feel like a spec sheet instead of a product. */
.card {
	transition: transform .25s cubic-bezier(.22,.9,.35,1), box-shadow .25s ease, border-color .25s ease;
}
a.card:hover, .card.is-interactive:hover {
	transform: translateY(-6px);
	border-color: transparent;
	box-shadow: 0 24px 48px -16px rgba(42,37,134,.22);
}

/* Buttons: press feedback instead of a flat click, exit faster than enter. */
.btn { transition: transform .15s cubic-bezier(.22,.9,.35,1), box-shadow .2s ease; }
.btn:active { transform: translateY(0) scale(.97); transition-duration: .1s; }

/* Icon badges — used for benefit/value rows instead of bare text labels. */
.icon-badge {
	width: 56px; height: 56px;
	border-radius: 16px;
	display: flex; align-items: center; justify-content: center;
	flex-shrink: 0;
}
.icon-badge svg { width: 26px; height: 26px; }

/* Scroll-reveal: fade + rise, staggered per grid item via --i.
   Respects prefers-reduced-motion (see override at the bottom). */
.reveal {
	opacity: 0;
	transform: translateY(24px);
	transition: opacity .6s cubic-bezier(.22,.9,.35,1), transform .6s cubic-bezier(.22,.9,.35,1);
	transition-delay: calc(var(--i, 0) * 70ms);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* Hero mesh gradient — subtle, brand-toned, replaces flat white space
   without turning into decoration-for-its-own-sake. */
.mesh-bg { position: relative; isolation: isolate; }
.mesh-bg::before {
	content: '';
	position: absolute;
	inset: -10%;
	z-index: -1;
	background:
		radial-gradient(circle at 15% 20%, rgba(124,77,255,.16), transparent 45%),
		radial-gradient(circle at 85% 15%, rgba(100,210,185,.16), transparent 40%),
		radial-gradient(circle at 50% 90%, rgba(74,84,214,.12), transparent 50%);
	filter: blur(20px);
}

/* Testimonial cards get a quote glyph instead of a bare guillemet in body text. */
.quote-mark { color: var(--violet-bright); font-size: 2.5rem; font-family: Georgia, serif; line-height: 1; display: block; margin-bottom: 4px; }

@media (prefers-reduced-motion: reduce) {
	.reveal { opacity: 1; transform: none; transition: none; }
	a.card:hover, .card.is-interactive:hover { transform: none; }
	.btn:hover, .btn:active { transform: none; }
	html { scroll-behavior: auto; }
}
