/* Capwise — feuille de style unique. Pas de framework, pas de build. */

@font-face {
	font-family: "Inter";
	src: url("../fonts/inter-var-latin.woff2") format("woff2");
	font-weight: 100 900;
	font-display: swap;
}
@font-face {
	font-family: "Archivo";
	src: url("../fonts/archivo-var-latin.woff2") format("woff2");
	font-weight: 100 900;
	font-stretch: 62% 125%;
	font-display: swap;
}

:root {
	--navy: #0a264e;          /* couleur du logo */
	--navy-900: #061a37;
	--navy-700: #1d3a66;
	--ink: #16202e;
	--muted: #556070;
	--line: #e2e6ec;
	--bg: #ffffff;
	--bg-soft: #f2f4f8;
	--accent: #9cffe7;        /* aquamarine Capwise */
	--accent-soft: #e3fbf5;
	--accent-ink: #0d7f6b;    /* déclinaison lisible sur fond clair */
	--on-dark: #c3cfe0;

	--font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--font-display: "Archivo", "Inter", system-ui, sans-serif;

	--container: 1180px;
	--gutter: clamp(1.25rem, 4vw, 2rem);
	--section: clamp(4rem, 9vw, 6.5rem);
	--radius: 16px;
	--shadow: 0 1px 2px rgba(10, 38, 78, .06), 0 18px 40px -16px rgba(10, 38, 78, .25);
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5rem; }

body {
	margin: 0;
	font-family: var(--font-sans);
	font-size: 1.0625rem;
	line-height: 1.65;
	color: var(--ink);
	background: var(--bg);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

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

h1, h2, h3 {
	font-family: var(--font-display);
	font-weight: 800;
	font-stretch: 85%;
	line-height: 1.05;
	letter-spacing: -0.015em;
	color: var(--navy);
	margin: 0 0 .55em;
	text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 5.4vw, 4.4rem); }
h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); }
h3 { font-size: 1.35rem; font-weight: 700; font-stretch: 100%; line-height: 1.2; letter-spacing: -0.005em; }
h1 em, h2 em { font-style: normal; color: var(--accent-ink); }

p, ul, ol { margin: 0 0 1em; }
p { text-wrap: pretty; }

a { color: var(--navy); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--navy-700); }

:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 860px; }

.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 1rem; top: 1rem; z-index: 100; background: #fff; padding: .5rem 1rem; }

.eyebrow, .kicker {
	font-family: var(--font-display);
	font-size: .85rem;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--accent-ink);
	margin: 0 0 1.25rem;
}
.eyebrow em {
	font-style: normal;
	background: var(--accent);
	color: var(--navy);
	padding: .12em .45em;
	border-radius: 5px;
}

/* ---------- Boutons ---------- */

.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.75rem 0 0; }

.btn {
	display: inline-flex;
	align-items: center;
	gap: .55em;
	padding: .85rem 1.5rem;
	border-radius: 999px;
	border: 1.5px solid transparent;
	font-size: .95rem;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	transition: background-color .15s, border-color .15s, color .15s, transform .15s;
}
.btn::after { content: "→"; transition: transform .15s; }
.btn:hover { transform: translateY(-1px); }
.btn:hover::after { transform: translateX(3px); }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-700); color: #fff; }
.btn-secondary { background: transparent; color: var(--navy); border-color: #c9d1dc; }
.btn-secondary:hover { border-color: var(--navy); color: var(--navy); }
.btn-sm { padding: .55rem 1.1rem; font-size: .875rem; }
.btn-sm::after { content: none; }

/* Boutons sur fond sombre */
.hero .btn-primary, .cta-band .btn-primary, .site-header .btn-primary { background: var(--accent); color: var(--navy); }
.hero .btn-primary:hover, .cta-band .btn-primary:hover, .site-header .btn-primary:hover { background: #c4fff1; color: var(--navy); }
.hero .btn-secondary, .cta-band .btn-secondary { color: #fff; border-color: rgba(255, 255, 255, .35); }
.hero .btn-secondary:hover, .cta-band .btn-secondary:hover { border-color: #fff; color: #fff; }

/* ---------- En-tête ---------- */

.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: #082042;      /* entre --navy et --navy-900 : se détache légèrement du hero */
	border-bottom: 1px solid rgba(255, 255, 255, .2);
}
.header-inner { display: flex; align-items: center; gap: 2.25rem; min-height: 4.75rem; }
.brand { display: block; flex: none; }
.brand-logo { height: 36px; width: auto; }
.main-nav { flex: 1; }
.main-nav ul { display: flex; gap: 1.75rem; list-style: none; margin: 0; padding: 0; }
.main-nav a { font-size: .925rem; font-weight: 500; color: var(--on-dark); text-decoration: none; }
.main-nav a:hover, .main-nav a[aria-current] { color: #fff; }
.main-nav a[aria-current] { box-shadow: inset 0 -2px 0 var(--accent); padding-bottom: .3rem; }
.header-actions { display: flex; align-items: center; gap: 1.25rem; }
.lang-switch { font-size: .8rem; font-weight: 600; letter-spacing: .06em; color: #7f93b0; text-decoration: none; }
.lang-switch .lang-current { color: #fff; }
.lang-switch:hover { color: #fff; }

/* ---------- Sections ---------- */

.section { padding: var(--section) 0; }
.section-tight { padding: calc(var(--section) * .6) 0; }
.section-head { max-width: 780px; margin: 0 auto 3.25rem; text-align: center; }
.section-head h2 { margin: 0; }
.band { background: var(--bg-soft); }

/* Hero — fond bleu nuit, quadrillage discret, lion en filigrane */
.hero {
	position: relative;
	overflow: hidden;
	color: var(--on-dark);
	background:
		radial-gradient(60rem 30rem at 85% -10%, rgba(156, 255, 231, .16), transparent 60%),
		linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px) 0 0 / 56px 56px,
		linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px) 0 0 / 56px 56px,
		var(--navy);
	padding: clamp(4rem, 9vw, 7rem) 0 clamp(4rem, 9vw, 6.5rem);
}
.hero-lion {
	position: absolute;
	right: -6rem;
	bottom: -9rem;
	width: clamp(22rem, 42vw, 36rem);
	height: auto;
	opacity: .05;
	pointer-events: none;
}
.hero .container { position: relative; }
.hero h1 { color: #fff; }
.hero h1 em { color: var(--accent); }
.hero .eyebrow { color: #fff; }
.hero-grid { display: grid; gap: 3rem; align-items: center; }
.hero-grid.has-aside { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
.hero-main > p:not(.eyebrow):not(.actions) { font-size: 1.2rem; max-width: 40rem; }
.hero-card {
	position: relative;
	background: #fff;
	color: var(--muted);
	border-radius: var(--radius);
	padding: 2.25rem 2rem 2rem;
	box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .45);
	border-top: 5px solid var(--accent);
}
.hero-card + .hero-card { margin-top: 1rem; }
.hero-card-title { font-size: 1.6rem; color: var(--navy); }
.hero .hero-card .btn-primary { background: var(--navy); color: #fff; }
.hero .hero-card .btn-primary:hover { background: var(--navy-700); }
.hero-media img { border-radius: var(--radius); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .45); margin-inline: auto; }

/* Logos clients */
.logos-intro { max-width: 760px; margin: 0 auto 2.5rem; text-align: center; color: var(--muted); font-size: 1rem; }
.logos-intro p { margin: 0; }
.logo-wall {
	list-style: none; margin: 0; padding: 0;
	display: grid; grid-template-columns: repeat(6, 1fr); gap: 2.25rem 2.5rem; align-items: center;
}
.logo-wall li { display: flex; justify-content: center; }
.logo-wall img {
	max-height: 36px; width: auto; max-width: 100%;
	filter: grayscale(1); opacity: .6; mix-blend-mode: multiply;
	transition: filter .2s, opacity .2s;
}
.logo-wall img:hover { filter: none; opacity: 1; }

/* Cartes */
.cards-section { background: var(--bg-soft); }
.cards { display: grid; gap: 1.5rem; grid-template-columns: repeat(3, 1fr); }
.cards-2, .cards-4 { grid-template-columns: repeat(2, 1fr); }
.card {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 2rem;
	transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card p { color: var(--muted); margin: 0; }
.card-icon {
	display: inline-grid; place-items: center;
	width: 52px; height: 52px; margin-bottom: 1.25rem;
	border-radius: 14px;
	background: var(--accent-soft);
	color: var(--navy);
}
.card-icon .icon { width: 26px; height: 26px; }
.card-num {
	display: inline-grid; place-items: center;
	width: 44px; height: 44px; margin-bottom: 1.25rem;
	border-radius: 50%;
	background: var(--navy); color: var(--accent);
	font-family: var(--font-display); font-weight: 800; font-size: .95rem;
}

/* Fonctionnalités */
.feature:not(.has-kicker) { padding-top: 0; }
.feature .kicker {
	display: flex; width: fit-content; align-items: center; gap: .65rem;
	margin: 0 auto 3rem; padding: .55rem 1.15rem;
	border-radius: 999px; background: var(--navy); color: #fff; font-size: .9rem;
}
.feature .kicker::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.feature-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.feature-reverse .feature-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
.feature-reverse .feature-text { order: 2; }
.feature-text h2 { font-size: clamp(1.75rem, 2.8vw, 2.3rem); }
.feature-text p:not(.actions) { color: var(--muted); }
.feature-media { margin: 0; }
.feature-media img { border-radius: var(--radius); box-shadow: var(--shadow); background: #fff; }

/* Étapes */
.steps-section { background: var(--bg-soft); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; counter-reset: step; position: relative; }
.step {
	counter-increment: step;
	position: relative;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 1.75rem;
}
.step::before {
	content: counter(step);
	display: grid; place-items: center;
	width: 44px; height: 44px; margin-bottom: 1.25rem;
	border-radius: 50%;
	background: var(--navy); color: var(--accent);
	font-family: var(--font-display); font-weight: 800;
}
.step-title { font-family: var(--font-display); font-size: 1.6rem; font-weight: 800; font-stretch: 85%; margin-bottom: .35rem; }
.step p { color: var(--muted); margin: 0; }

/* Texte en deux colonnes */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: clamp(2rem, 6vw, 5rem); }
.split-head h2 { position: relative; padding-top: 1.5rem; }
.split-head h2::before { content: ""; position: absolute; top: 0; left: 0; width: 56px; height: 5px; border-radius: 3px; background: var(--accent); }
.split-body p:not(.actions), .split-body li { color: var(--muted); }
.split-body ul { padding-left: 1.2rem; }
.split-section + .cards-section { padding-top: var(--section); }

/* Citation */
.quote-section { text-align: center; }
.quote { margin: 0; }
.quote blockquote { margin: 0 0 2rem; position: relative; }
.quote blockquote::before {
	content: "“";
	display: block;
	font-family: var(--font-display); font-weight: 800; font-size: 6rem; line-height: .7;
	color: var(--accent);
	-webkit-text-stroke: 2px var(--navy);
	margin-bottom: 1rem;
}
.quote blockquote p { font-family: var(--font-display); font-size: clamp(1.4rem, 2.6vw, 1.95rem); font-weight: 600; line-height: 1.35; color: var(--navy); }
.quote figcaption { display: inline-flex; align-items: center; gap: 1rem; text-align: left; font-size: .95rem; color: var(--muted); }
.quote figcaption strong { color: var(--ink); }
.quote-photo { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--accent); }
.quote-section .actions { justify-content: center; }

/* Témoignages */
.testimonials-section { background: var(--bg-soft); }
.testimonials { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.testimonial {
	margin: 0; padding: 2rem;
	border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
	display: flex; flex-direction: column; justify-content: space-between; gap: 1.5rem;
}
.testimonial blockquote { margin: 0; }
.testimonial blockquote p { margin: 0; font-size: 1.02rem; }
.testimonial figcaption { display: flex; flex-direction: column; font-size: .9rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 1rem; }
.testimonial figcaption strong { color: var(--navy); }

/* Bandeau d'appel à l'action */
.cta-band {
	position: relative;
	overflow: hidden;
	color: var(--on-dark);
	background: radial-gradient(50rem 24rem at 15% 120%, rgba(156, 255, 231, .18), transparent 60%), var(--navy);
	padding: var(--section) 0;
	text-align: center;
}
.cta-lion { position: absolute; left: -5rem; top: -4rem; width: 26rem; height: auto; opacity: .05; pointer-events: none; }
.cta-band .container { position: relative; }
.cta-band h2 { color: #fff; }
.cta-band p:not(.actions) { font-size: 1.15rem; }
.cta-band .actions { justify-content: center; }

/* Texte éditorial (pages légales) */
.prose { max-width: 780px; }
.prose h1 { font-size: clamp(2.4rem, 4.5vw, 3.4rem); margin-bottom: 2rem; }
.prose h2 { font-size: 1.75rem; margin-top: 2.75rem; }
.prose h3 { font-size: 1.2rem; margin-top: 2rem; }
.prose p, .prose li { color: #2f3a49; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin-bottom: .35rem; }

/* Bandeau de version (CGUV et autres documents versionnés) */
.version-notice { padding-top: 2.5rem; }
.version-notice + .prose-section { padding-top: 2.5rem; }
.version-box {
	max-width: 780px;
	border: 1px solid var(--line); border-left: 5px solid var(--accent-ink);
	border-radius: 10px; background: var(--bg-soft);
	padding: 1rem 1.25rem; font-size: .95rem;
}
.is-archived .version-box { border-left-color: #c2410c; background: #fff7ed; }
.version-box p { margin: 0 0 .4rem; }
.version-box details { margin: .4rem 0; }
.version-box summary { cursor: pointer; font-weight: 600; color: var(--navy); }
.version-box ul { margin: .5rem 0 0; padding-left: 1.2rem; }
.version-url { color: var(--muted); font-size: .85rem; }
.version-url code { font-size: .85rem; word-break: break-all; }

/* ---------- Pied de page ---------- */

.site-footer { background: var(--navy-900); color: #a9b6c9; font-size: .925rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2.5rem; padding-top: 4rem; padding-bottom: 3rem; }
.footer-logo { height: 28px; width: auto; margin-bottom: 1.25rem; }
.footer-tagline { font-family: var(--font-display); font-weight: 800; font-stretch: 85%; font-size: 1.3rem; line-height: 1.15; color: #fff; }
.footer-title { font-family: var(--font-display); font-size: .78rem; font-weight: 700; font-stretch: 100%; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .5rem; }
.site-footer a { color: #dbe3ee; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer address { font-style: normal; margin-bottom: 1rem; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 1.5rem; padding-bottom: 2rem; font-size: .85rem; }
.footer-bottom p { margin: 0; }

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
	.hero-grid.has-aside, .feature-grid, .feature-reverse .feature-grid, .split { grid-template-columns: 1fr; }
	.feature-reverse .feature-text { order: 0; }
	.cards { grid-template-columns: 1fr 1fr; }
	.logo-wall { grid-template-columns: repeat(4, 1fr); }
	.footer-grid { grid-template-columns: 1fr 1fr; }
	.footer-about { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
	body { font-size: 1rem; }
	.main-nav { display: none; }
	.header-inner { justify-content: space-between; gap: 1rem; }
	.brand-logo { height: 28px; }
	.cards, .cards-2, .cards-4, .testimonials { grid-template-columns: 1fr; }
	.logo-wall { grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
	.hero-card, .card { padding: 1.5rem; }
}

@media (max-width: 420px) {
	.header-actions .btn { display: none; }
	.footer-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	* { transition: none !important; }
}
