/* Benjamin Marchand EI - site stylesheet. System fonts only: no remote font, no tracker. */
:root {
	--bg: #ffffff;
	--bg-soft: #f3f6fa;
	--text: #1b2430;
	--muted: #4c5a6b;
	--line: #d9e1ea;
	--accent: #0b5cad;
	--accent-text: #ffffff;
	--accent-soft: #e6f0fb;
	--ok: #17663a;
	--error: #a61b1b;
	--radius: 12px;
	--max: 1120px;
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	line-height: 1.6;
}
@media (prefers-color-scheme: dark) {
	:root {
		--bg: #10161e;
		--bg-soft: #18212c;
		--text: #e8edf3;
		--muted: #a9b6c5;
		--line: #2c3846;
		--accent: #6aa9ec;
		--accent-text: #0b1520;
		--accent-soft: #1b2b3d;
		--ok: #6fd39a;
		--error: #ff8f8f;
	}
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); color: var(--text); font-size: 1.0625rem; overflow-wrap: anywhere; }
main { flex: 1 0 auto; }
img { max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: 0.15em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
h1, h2, h3 { line-height: 1.2; overflow-wrap: break-word; }
h1 { font-size: clamp(2rem, 5vw, 3rem); margin: 0 0 0.5em; }
h2 { font-size: clamp(1.5rem, 3.4vw, 2rem); margin: 0 0 0.6em; }
h3 { font-size: 1.2rem; margin: 0 0 0.4em; }
code { font-size: 0.92em; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 4px; padding: 0 0.3em; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--accent); color: var(--accent-text); padding: 0.5em 1em; z-index: 10; }
.skip:focus { left: 0; }
.small { font-size: 0.875rem; color: var(--muted); }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 62ch; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: var(--text); text-decoration: none; }
.brand abbr { text-decoration: none; }
.nav { display: flex; flex-wrap: wrap; gap: 4px 18px; list-style: none; margin: 0; padding: 0; }
.nav a { color: var(--text); text-decoration: none; padding: 6px 0; display: inline-block; }
.nav a[aria-current="page"] { color: var(--accent); box-shadow: inset 0 -2px 0 var(--accent); }
.nav a:hover { color: var(--accent); }
.nav .lang { color: var(--muted); }

/* Sections */
.section { padding: 56px 0; }
.section.soft { background: var(--bg-soft); }
.hero { padding: 72px 0 56px; }
.eyebrow { color: var(--accent); font-weight: 600; margin: 0 0 0.5em; }
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.section.soft .card { background: var(--bg); }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card .tag { display: inline-block; font-size: 0.8rem; font-weight: 600; color: var(--accent); background: var(--accent-soft); border-radius: 999px; padding: 2px 10px; margin-bottom: 10px; }
.split { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); align-items: center; }
.checks { padding-left: 1.2em; }
.checks li { margin-bottom: 0.4em; }

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.button { display: inline-block; background: var(--accent); color: var(--accent-text); padding: 12px 22px; border-radius: 8px; font-weight: 600; text-decoration: none; border: 2px solid var(--accent); font: inherit; font-weight: 600; cursor: pointer; }
.button:hover { filter: brightness(1.08); }
.button.ghost { background: transparent; color: var(--accent); }

/* Figures and product details */
figure { margin: 0; }
.shot { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--bg-soft); }
.shot img { display: block; width: 100%; }
/* Gallery thumbnails share one 16:10 frame (top of the capture); the link opens the full image. */
.gallery .shot a { display: block; aspect-ratio: 16 / 10; overflow: hidden; }
.gallery .shot img { height: 100%; object-fit: cover; object-position: top left; }
.gallery .shot.phone img { object-position: top center; }
.shot figcaption { padding: 10px 14px; font-size: 0.9rem; color: var(--muted); }
.gallery { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 20px; margin: 0; }
.facts dt { font-weight: 600; }
.facts dd { margin: 0; }
.price { font-size: 2rem; font-weight: 700; margin: 0; }
.price s { color: var(--muted); font-size: 1.1rem; font-weight: 400; }
.note { border-left: 4px solid var(--accent); background: var(--accent-soft); padding: 14px 18px; border-radius: 0 8px 8px 0; }

/* Product catalogue: compact tiles, the whole tile links to the product page */
.catalog { padding-top: 40px; }
.page-title { font-size: clamp(1.6rem, 3vw, 2rem); margin: 0 0 0.25em; }
.intro { color: var(--muted); margin: 0 0 28px; }
.tiles { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); list-style: none; margin: 0; padding: 0; }
.tile { display: flex; flex-direction: column; gap: 8px; height: 100%; padding: 18px; background: var(--bg); color: var(--text); border: 1px solid var(--line); border-radius: var(--radius); font-size: 0.9rem; line-height: 1.45; text-decoration: none; transition: border-color 0.15s ease, box-shadow 0.15s ease; }
.tile:hover { border-color: var(--accent); box-shadow: 0 6px 18px rgb(16 24 32 / 0.1); }
.tile-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.tile-icon { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 10px; background: var(--accent); color: var(--accent-text); }
.tile-icon svg { width: 24px; height: 24px; }
.tile-status { font-size: 0.72rem; font-weight: 600; color: var(--accent); background: var(--accent-soft); border-radius: 999px; padding: 2px 9px; }
.tile-name { font-size: 1.05rem; margin: 0; }
.tile:hover .tile-name { color: var(--accent); }
.tile-desc { margin: 0; color: var(--muted); }
.tile-meta { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); font-size: 0.8rem; color: var(--muted); }
.tile-price { font-size: 0.95rem; font-weight: 700; color: var(--text); }
.catalog-more { margin: 24px 0 0; }
@media (prefers-reduced-motion: reduce) {
	.tile { transition: none; }
}

/* Long text pages (legal, documentation) */
.prose { max-width: 76ch; }
.prose h2 { margin-top: 1.8em; }
.prose h3 { margin-top: 1.4em; }
.prose table { border-collapse: collapse; width: 100%; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.toc { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 24px; }

/* Contact form */
.form { display: grid; gap: 18px; max-width: 640px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; }
.field input, .field textarea, .field select { width: 100%; font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--muted); border-radius: 8px; padding: 10px 12px; }
.field textarea { min-height: 180px; resize: vertical; }
.field .hint { font-size: 0.875rem; color: var(--muted); margin: 4px 0 0; }
.consent { display: flex; gap: 10px; align-items: flex-start; }
.consent label { font-weight: 400; }
.consent input { margin-top: 0.35em; width: 1.1em; height: 1.1em; flex: none; }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.alert { border-radius: 8px; padding: 14px 18px; border: 1px solid; }
.alert.ok { color: var(--ok); border-color: var(--ok); }
.alert.error { color: var(--error); border-color: var(--error); }
.alert ul { margin: 0.4em 0 0; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-soft); padding: 32px 0; margin-top: 40px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 20px; list-style: none; padding: 0; margin: 0 0 12px; }
.footer-links a { color: var(--text); }
.footer-links a[aria-current="page"] { color: var(--accent); }
