:root {
	--blue: #1a6fd4;
	--blue-dark: #1256a8;
	--blue-soft: #e8f2fc;
	--text: #1e2d3d;
	--text-muted: #5c6f82;
	--bg: #ffffff;
	--bg-alt: #f6f9fc;
	--border: #dde5ef;
	--radius: 12px;
	--shadow: 0 8px 30px rgba(26, 45, 61, 0.08);
	--max: 1120px;
	--header-h: 142px;
}

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

html {
	scroll-behavior: smooth;
	color-scheme: only light;
	/* Ancres menu : léger décalage sous le header (≈ moitié de la hauteur barre) */
	scroll-padding-top: calc(var(--header-h) / 2 + 0.15rem);
}

section[id] {
	scroll-margin-top: calc(var(--header-h) / 2 + 0.15rem);
}

body {
	margin: 0;
	font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
	font-size: 17px;
	line-height: 1.6;
	color: var(--text);
	background: var(--bg);
}

/* Secours si Chrome applique quand même le thème sombre auto (menu « Site lumineux ») */
html.chrome-auto-dark,
html.chrome-auto-dark body {
	background-color: #ffffff !important;
	color: #1e2d3d !important;
}

html.chrome-auto-dark .site-header,
html.chrome-auto-dark .site-header__inner,
html.chrome-auto-dark .site-logo,
html.chrome-auto-dark .site-nav,
html.chrome-auto-dark .nav-toggle {
	background-color: #ffffff !important;
	color-scheme: only light !important;
}

html.chrome-auto-dark .site-nav a:not(.btn--primary) {
	color: #1e2d3d !important;
}

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

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

a:hover {
	color: var(--blue-dark);
}

.container {
	width: min(var(--max), 100% - 2rem);
	margin-inline: auto;
}

/* Header */
.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(255, 255, 255, 0.95);
	backdrop-filter: blur(8px);
	border-bottom: 1px solid var(--border);
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: var(--header-h);
	gap: 1rem;
}

.site-logo img {
	max-height: 130px;
	width: auto;
}

.site-header__inner {
	padding-block: 0.35rem;
}

.site-nav {
	display: flex;
	align-items: center;
	gap: 1.5rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.site-nav a {
	color: var(--text);
	font-weight: 500;
	font-size: 0.95rem;
}

.site-nav a:hover {
	color: var(--blue);
}

.nav-toggle {
	display: none;
	border: 1px solid var(--border);
	background: var(--bg);
	border-radius: 8px;
	padding: 0.45rem 0.65rem;
	cursor: pointer;
	font-size: 1.25rem;
	line-height: 1;
}

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.65rem 1.25rem;
	border-radius: 999px;
	font-weight: 600;
	font-size: 0.95rem;
	border: none;
	cursor: pointer;
	transition: background 0.2s, color 0.2s;
}

.btn--primary {
	background: var(--blue);
	color: #fff;
}

.btn--primary:hover {
	background: var(--blue-dark);
	color: #fff;
}

.btn--outline {
	background: transparent;
	color: var(--blue);
	border: 2px solid var(--blue);
}

.btn--outline:hover {
	background: var(--blue-soft);
}

/* Hero */
.hero {
	padding: 3rem 0 4rem;
	background: linear-gradient(180deg, var(--blue-soft) 0%, var(--bg) 55%);
}

.hero__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 2.5rem;
	align-items: center;
}

.hero__eyebrow {
	text-transform: uppercase;
	letter-spacing: 0.12em;
	font-size: 0.75rem;
	font-weight: 700;
	color: var(--blue);
	margin: 0 0 0.75rem;
}

.hero h1 {
	font-size: clamp(1.85rem, 4vw, 2.65rem);
	line-height: 1.15;
	margin: 0 0 1rem;
	font-weight: 700;
	color: var(--text);
}

.hero__lead {
	font-size: 1.1rem;
	color: var(--text-muted);
	margin: 0 0 1.5rem;
	max-width: 34rem;
}

.hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}

.hero__visual {
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: var(--shadow);
	border: 1px solid var(--border);
}

.hero__visual img {
	width: 100%;
	object-fit: cover;
	max-height: 420px;
}

/* Sections */
.section {
	padding: 4rem 0;
}

.section--alt {
	background: var(--bg-alt);
}

.section__head {
	text-align: center;
	max-width: 40rem;
	margin: 0 auto 2.5rem;
}

.section__label {
	display: inline-block;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--blue);
	margin-bottom: 0.5rem;
}

.section__head h2 {
	margin: 0 0 0.75rem;
	font-size: clamp(1.5rem, 3vw, 2rem);
}

.section__head p {
	margin: 0;
	color: var(--text-muted);
}

/* Cards grid */
.cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 1.25rem;
}

.card {
	background: var(--bg);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 1.5rem;
	box-shadow: 0 2px 12px rgba(26, 45, 61, 0.04);
}

.card__num {
	font-size: 0.8rem;
	font-weight: 700;
	color: var(--blue);
	margin-bottom: 0.35rem;
}

.card h3 {
	margin: 0 0 0.5rem;
	font-size: 1.1rem;
}

.card p {
	margin: 0;
	color: var(--text-muted);
	font-size: 0.95rem;
}

/* Split feature */
.split {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 2rem;
	align-items: center;
}

.split__media {
	border-radius: var(--radius);
	overflow: hidden;
	border: 1px solid var(--border);
	box-shadow: var(--shadow);
}

.split__media img {
	width: 100%;
	object-fit: cover;
	min-height: 280px;
}

.split ul {
	margin: 1rem 0 0;
	padding-left: 1.2rem;
	color: var(--text-muted);
}

.split li {
	margin-bottom: 0.35rem;
}

/* Steps */
.steps {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 0.75rem;
	counter-reset: step;
}

.step {
	background: var(--bg);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 1rem;
	text-align: center;
}

.step strong {
	display: block;
	font-size: 0.85rem;
	margin-bottom: 0.35rem;
	color: var(--text);
}

.step span {
	font-size: 0.8rem;
	color: var(--text-muted);
	line-height: 1.4;
}

/* Realisations */
.real-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 1.5rem;
}

.real-card {
	background: var(--bg);
	border-radius: var(--radius);
	overflow: hidden;
	border: 1px solid var(--border);
	box-shadow: var(--shadow);
}

.real-card__img img {
	width: 100%;
	height: 220px;
	object-fit: cover;
}

/* Photos produit sur fond blanc — pas de recadrage */
.real-card__img--contain {
	background: #f8fafc;
	padding: 1rem 1.25rem;
}

.real-card__img--contain img {
	height: 240px;
	object-fit: contain;
	object-position: center;
}

.real-card__img--duo {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0;
	background: #f0f4f8;
}

.real-card__img--duo figure {
	margin: 0;
}

.real-card__img--duo img {
	height: 180px;
	object-fit: contain;
	background: #fff;
}

.real-card__img--duo figcaption {
	font-size: 0.72rem;
	text-align: center;
	padding: 0.35rem;
	color: var(--text-muted);
	background: var(--bg-alt);
}

.real-card__body {
	padding: 1.25rem 1.5rem 1.5rem;
}

.real-card__tag {
	font-size: 0.72rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--blue);
}

.real-card h3 {
	margin: 0.35rem 0 0.5rem;
	font-size: 1.15rem;
}

.real-card p {
	margin: 0;
	color: var(--text-muted);
	font-size: 0.95rem;
}

.real-card ul {
	margin: 0.75rem 0 0;
	padding-left: 1.1rem;
	color: var(--text-muted);
	font-size: 0.9rem;
}

/* CTA band */
.cta {
	background: var(--blue);
	color: #fff;
	text-align: center;
	padding: 3rem 1.5rem;
	border-radius: var(--radius);
	margin: 0 1rem;
	max-width: calc(var(--max) + 2rem);
	margin-inline: auto;
}

.cta h2 {
	margin: 0 0 0.5rem;
	font-size: 1.75rem;
}

.cta p {
	margin: 0 0 1.25rem;
	opacity: 0.92;
}

.cta .btn--outline {
	border-color: #fff;
	color: #fff;
}

.cta .btn--outline:hover {
	background: rgba(255, 255, 255, 0.15);
}

/* Footer */
.site-footer {
	background: var(--text);
	color: #c8d4e0;
	padding: 2.5rem 0 1.5rem;
	margin-top: 3rem;
	font-size: 0.9rem;
}

.site-footer a {
	color: #fff;
}

.footer-grid {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr;
	gap: 2rem;
	margin-bottom: 2rem;
}

.site-footer h4 {
	color: #fff;
	margin: 0 0 0.75rem;
	font-size: 1rem;
}

.site-footer p {
	margin: 0 0 0.35rem;
}

.footer-bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	padding-top: 1rem;
	text-align: center;
	font-size: 0.85rem;
}

.footer-bottom .app-version {
	margin: 0.35rem 0 0;
	font-size: 0.75rem;
	opacity: 0.65;
	letter-spacing: 0.04em;
}

/* Contact page */
.page-hero {
	padding: 2.5rem 0 1rem;
	background: var(--bg-alt);
	border-bottom: 1px solid var(--border);
}

.page-hero h1 {
	margin: 0;
	font-size: clamp(1.75rem, 3vw, 2.25rem);
}

.contact-grid {
	display: grid;
	grid-template-columns: 1fr 1.2fr;
	gap: 2rem;
	padding: 2.5rem 0 4rem;
}

.contact-info {
	background: var(--bg-alt);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 1.5rem;
}

.contact-form {
	display: grid;
	gap: 1rem;
}

.contact-form label {
	display: block;
	font-weight: 600;
	font-size: 0.9rem;
	margin-bottom: 0.35rem;
}

.contact-form input,
.contact-form textarea {
	width: 100%;
	padding: 0.65rem 0.85rem;
	border: 1px solid var(--border);
	border-radius: 8px;
	font: inherit;
	background: var(--bg);
}

.contact-form textarea {
	min-height: 140px;
	resize: vertical;
}

.form-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
}

@media (max-width: 900px) {
	.site-logo img,
	.site-logo img.etronik-logo {
		max-height: 100px;
	}

	:root {
		--header-h: 112px;
	}
	.hero__grid,
	.split,
	.contact-grid {
		grid-template-columns: 1fr;
	}

	.footer-grid {
		grid-template-columns: 1fr 1fr;
		gap: 1.5rem 1.25rem;
	}

	.footer-grid > div:first-child {
		grid-column: 1 / -1;
	}

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

	.site-header {
		background: #ffffff;
		color-scheme: only light;
		backdrop-filter: none;
		-webkit-backdrop-filter: none;
	}

	.site-header__inner,
	.site-logo {
		background: #ffffff;
	}

	.site-logo img.etronik-logo {
		background: #ffffff;
	}

	.nav-toggle {
		display: block;
		flex-shrink: 0;
		margin-left: auto;
	}

	.site-nav {
		display: flex;
		position: fixed;
		top: 0;
		right: 0;
		left: auto;
		width: min(300px, 88vw);
		height: 100vh;
		height: 100dvh;
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		background: #ffffff;
		color-scheme: only light;
		border-left: 1px solid var(--border);
		box-shadow: -8px 0 32px rgba(26, 45, 61, 0.12);
		padding: calc(var(--header-h) + 0.75rem) 1.25rem 1.5rem;
		z-index: 99;
		transform: translateX(100%);
		visibility: hidden;
		transition: transform 0.28s ease, visibility 0.28s;
		overflow-y: auto;
	}

	.site-nav li {
		width: 100%;
		border-bottom: 1px solid var(--border);
	}

	.site-nav li:last-child {
		border-bottom: none;
		margin-top: 0.75rem;
	}

	.site-nav a {
		display: block;
		padding: 0.85rem 0;
	}

	.site-nav a.btn {
		justify-content: center;
		text-align: center;
	}

	.site-nav.is-open {
		transform: translateX(0);
		visibility: visible;
	}

	.site-header__inner {
		position: relative;
		flex-wrap: nowrap;
	}

	.nav-backdrop {
		display: none;
		position: fixed;
		inset: 0;
		z-index: 98;
		background: rgba(30, 45, 61, 0.45);
		border: none;
		padding: 0;
		cursor: pointer;
	}

	.nav-backdrop.is-visible {
		display: block;
	}
}

@media (max-width: 900px) and (prefers-color-scheme: dark) {
	.site-header,
	.site-header__inner,
	.site-logo,
	.site-nav,
	.nav-toggle {
		background-color: #ffffff !important;
		color-scheme: only light;
	}

	.site-header {
		border-bottom-color: var(--border);
		backdrop-filter: none !important;
		-webkit-backdrop-filter: none !important;
	}

	.site-logo img.etronik-logo {
		background-color: #ffffff;
	}

	.site-nav a {
		color: var(--text);
	}

	.nav-toggle {
		color: var(--text);
		border-color: var(--border);
	}
}

/* Fiche réalisation / produit */
.product-hero {
	padding: 2.5rem 0 3rem;
	background: linear-gradient(165deg, var(--blue-soft) 0%, var(--bg) 55%);
}

.product-hero__grid {
	display: grid;
	grid-template-columns: 1.1fr 0.9fr;
	gap: 2.5rem;
	align-items: center;
}

.product-hero__eyebrow {
	font-size: 0.85rem;
	color: var(--text-muted);
	margin: 0 0 0.5rem;
}

.product-hero__eyebrow a {
	color: var(--blue);
}

.product-hero h1 {
	margin: 0 0 0.35rem;
	font-size: clamp(2rem, 4vw, 2.75rem);
	line-height: 1.1;
}

.product-hero__tagline {
	font-size: 1.25rem;
	font-weight: 600;
	color: var(--blue-dark);
	margin: 0 0 1rem;
}

.product-hero__lead {
	color: var(--text-muted);
	margin: 0 0 1.25rem;
	max-width: 36rem;
}

.product-pills {
	list-style: none;
	padding: 0;
	margin: 0 0 1.5rem;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.product-pills li {
	background: var(--bg);
	border: 1px solid var(--border);
	color: var(--blue-dark);
	font-weight: 600;
	font-size: 0.9rem;
	padding: 0.35rem 0.85rem;
	border-radius: 999px;
}

.product-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}

.product-hero__media {
	background: var(--bg);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 1.5rem;
	box-shadow: var(--shadow);
	text-align: center;
}

.product-hero__media img {
	max-height: 280px;
	width: auto;
	margin: 0 auto;
	object-fit: contain;
}

.product-ui-frame {
	border-radius: var(--radius);
	overflow: hidden;
	border: 1px solid var(--border);
	box-shadow: var(--shadow);
	background: #0f1419;
	margin-bottom: 2rem;
}

.product-ui-frame--light {
	background: var(--bg);
}

.product-ui-frame img {
	width: 100%;
	display: block;
}

.product-features-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 1rem;
}

.product-feature {
	background: var(--bg-alt);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 1.15rem 1.25rem;
}

.product-feature h3 {
	margin: 0 0 0.4rem;
	font-size: 1rem;
}

.product-feature p {
	margin: 0;
	font-size: 0.92rem;
	color: var(--text-muted);
}

.product-cta {
	text-align: center;
	max-width: 40rem;
	margin: 0 auto;
}

.product-cta h2 {
	margin: 0 0 0.5rem;
}

.product-cta p {
	color: var(--text-muted);
	margin: 0 0 1.25rem;
}

.product-trial-creds {
	margin: 1rem 0 0;
	font-size: 0.92rem;
	color: var(--text-muted);
	line-height: 1.5;
}

.product-trial-creds--center {
	margin: 0 0 1.25rem;
}

.product-trial-creds code {
	font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
	font-size: 0.88em;
	padding: 0.12em 0.4em;
	background: var(--bg-alt);
	border: 1px solid var(--border);
	border-radius: 4px;
	color: var(--text);
}

.real-card__link {
	display: block;
	color: inherit;
	text-decoration: none;
	height: 100%;
}

.real-card__link:hover h3 {
	color: var(--blue);
}

.real-card__more {
	margin: 0.75rem 0 0;
	font-weight: 600;
	font-size: 0.9rem;
	color: var(--blue);
}

@media (max-width: 900px) {
	.product-hero__grid {
		grid-template-columns: 1fr;
	}
}

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

	.form-row {
		grid-template-columns: 1fr;
	}
}
