/* PrintMe — page de lancement
   Direction « plan technique » : encre, papier, bleu plan. */

:root {
  --paper: #F4F6F9;
  --surface: #FFFFFF;
  --surface-2: #EBEFF5;
  --ink: #13233F;
  --ink-2: #3F4E67;
  --ink-3: #66748B;
  --rule: #D5DCE6;
  --plan: #1E56D6;
  --plan-hover: #1745B0;
  --plan-soft: #E3EBFB;
  --signal: #FFC400;
  --ok: #15803D;
  --ok-soft: #E3F4E8;
  --warn: #A45308;
  --warn-soft: #FCF0DC;
  --shadow: 0 1px 2px rgba(19,35,63,.06), 0 8px 24px rgba(19,35,63,.08);
  --f-display: "Barlow Semi Condensed", "Arial Narrow", sans-serif;
  --f-body: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  --radius: 6px;
  --max: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
}
img, svg { max-width: 100%; }
a { color: var(--plan); text-underline-offset: 3px; }
a:hover { color: var(--plan-hover); }
:focus-visible { outline: 2px solid var(--plan); outline-offset: 2px; }
[hidden] { display: none !important; }
h1, h2, h3 { font-family: var(--f-display); line-height: 1.1; margin: 0; text-wrap: balance; }
p { margin: 0; }
.mono { font-family: var(--f-mono); }
.num { font-variant-numeric: tabular-nums; }
.wrap { max-width: var(--max); margin: 0 auto; padding-inline: 16px; }
@media (min-width: 760px) { .wrap { padding-inline: 32px; } }
.eyebrow { font-family: var(--f-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--plan); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── En-tête ── */
.top { background: var(--surface); border-bottom: 1px solid var(--rule); position: sticky; top: 0; z-index: 20; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-mark { width: 22px; height: 22px; border: 3px solid var(--plan); border-radius: 3px; position: relative; flex: none; }
.brand-mark::after { content: ""; position: absolute; inset: 3px; background: var(--plan); }
.brand-name { font-family: var(--f-display); font-weight: 700; font-size: 24px; line-height: 1; }
.brand-sub { display: block; font-family: var(--f-body); font-weight: 400; font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.nav { display: flex; align-items: center; gap: 22px; font-size: 15px; }
.nav a { color: var(--ink-2); text-decoration: none; }
.nav a:hover { color: var(--plan); }
.nav .call { font-family: var(--f-mono); font-size: 14px; color: var(--ink); border: 1px solid var(--rule); border-radius: var(--radius); padding: 7px 12px; white-space: nowrap; }
@media (max-width: 760px) { .nav .link { display: none; } .brand-sub { display: none; } }

/* ── Accroche ── */
.hero { padding-block: 48px 36px; }
.hero .wrap { display: grid; gap: 18px; }
.hero h1 { font-size: clamp(38px, 6.4vw, 64px); font-weight: 700; letter-spacing: -.01em; max-width: 16ch; }
.hero .lede { font-size: clamp(17px, 2.2vw, 20px); color: var(--ink-2); max-width: 56ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 10px; font-size: 14px; color: var(--ink-2); list-style: none; padding: 0; }
.trust li { display: flex; align-items: center; gap: 8px; }
.trust li::before { content: ""; width: 8px; height: 8px; background: var(--plan); border-radius: 1px; flex: none; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 600; font-size: 16px; border-radius: var(--radius); padding: 12px 18px; cursor: pointer; border: 1px solid transparent; text-decoration: none; }
.btn-primary { background: var(--plan); color: #fff; }
.btn-primary:hover { background: var(--plan-hover); color: #fff; }
.btn-ghost { background: var(--surface); border-color: var(--rule); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink-3); color: var(--ink); }
.btn-block { width: 100%; }

/* ── Sections ── */
.section { padding-block: 40px; }
.section-head { display: grid; gap: 8px; margin-bottom: 24px; }
.section-head h2 { font-size: clamp(28px, 4vw, 38px); font-weight: 600; }
.section-head p { color: var(--ink-2); max-width: 62ch; }

/* ── Calculateur ── */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; }
.tab { font: inherit; font-size: 15px; font-weight: 600; background: var(--surface); color: var(--ink-2); border: 1px solid var(--rule); border-radius: var(--radius); padding: 10px 16px; cursor: pointer; }
.tab[aria-selected="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.calc { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px; align-items: start; }
@media (max-width: 900px) { .calc { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); padding: 20px; }
.calc-left { display: grid; gap: 20px; }
.figure svg { display: block; width: 100%; height: auto; }
.figcap { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 13px; color: var(--ink-3); padding-top: 8px; }
.product-intro { display: grid; gap: 6px; }
.product-intro h3 { font-size: 30px; font-weight: 700; }
.product-intro p { color: var(--ink-2); font-size: 15px; }
.options { display: grid; gap: 18px; }
.group-title { font-size: 14px; color: var(--ink-3); margin-bottom: 8px; }
.fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.field { display: grid; gap: 4px; font-size: 14px; color: var(--ink-3); }
.field .box { display: flex; align-items: center; border: 1px solid var(--rule); border-radius: 5px; background: var(--surface); }
.field .box:focus-within { border-color: var(--plan); box-shadow: 0 0 0 3px var(--plan-soft); }
.field input, .field select { font-family: var(--f-mono); font-size: 16px; color: var(--ink); background: transparent; border: 0; padding: 10px 4px 10px 12px; width: 100%; min-width: 0; outline: none; }
.field select { font-family: var(--f-body); padding-right: 12px; }
.field .u { font-family: var(--f-mono); font-size: 13px; color: var(--ink-3); padding-right: 12px; }
.field.is-invalid .box { border-color: var(--warn); }
.hint { font-size: 13px; color: var(--ink-3); }
.hint.warn { color: var(--warn); }
.opts { display: grid; gap: 8px; }
.opts.row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.opts.row-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 520px) { .opts.row, .opts.row-2, .fields { grid-template-columns: 1fr 1fr; } .fields .field:last-child { grid-column: span 2; } }
.opt { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 10px; border: 1px solid var(--rule); border-radius: var(--radius); padding: 11px 13px; background: var(--surface); cursor: pointer; font-size: 15px; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt:has(input:checked) { border-color: var(--plan); background: var(--plan-soft); box-shadow: inset 0 0 0 1px var(--plan); }
.opt:has(input:focus-visible) { outline: 2px solid var(--plan); outline-offset: 2px; }
.opt .n small { display: block; font-size: 13px; color: var(--ink-3); line-height: 1.4; }
.opt .p { font-family: var(--f-mono); font-size: 13px; color: var(--ink-3); white-space: nowrap; }
.opts.row .opt, .opts.row-2 .opt { justify-content: center; text-align: center; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--ink-2); cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--plan); flex: none; }
.check small { display: block; color: var(--ink-3); font-size: 13px; }

/* Bloc prix */
.calc-right { display: grid; gap: 16px; position: sticky; top: 84px; }
@media (max-width: 900px) { .calc-right { position: static; } }
.pricebox { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; display: grid; gap: 14px; }
.price-title { font-size: 14px; color: var(--ink-3); }
.price-summary { font-weight: 600; font-size: 16px; }
.lines { display: grid; gap: 6px; font-size: 14px; }
.lines .l { display: flex; justify-content: space-between; gap: 12px; color: var(--ink-2); }
.lines .l span:last-child { font-family: var(--f-mono); font-size: 13px; white-space: nowrap; color: var(--ink); }
.lines .l.sub { border-top: 1px dashed var(--rule); padding-top: 6px; }
.big { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; border-top: 1px solid var(--rule); padding-top: 14px; }
.big .amt { font-family: var(--f-display); font-weight: 700; font-size: 44px; line-height: 1; font-variant-numeric: tabular-nums; }
.big .tax { font-family: var(--f-mono); font-size: 14px; color: var(--ink-3); }
.small-tax { font-size: 14px; color: var(--ink-3); }
.fine { font-size: 13px; color: var(--ink-3); }

/* Formulaire de demande */
.request { display: grid; gap: 12px; }
.request h3 { font-size: 22px; font-weight: 600; }
.request .field input, .request .field textarea { font-family: var(--f-body); font-size: 16px; }
.request .field textarea { font: inherit; color: var(--ink); border: 0; background: transparent; padding: 10px 12px; width: 100%; min-height: 84px; resize: vertical; outline: none; }
.req-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 520px) { .req-grid { grid-template-columns: 1fr; } }
.sent { background: var(--ok-soft); border-radius: var(--radius); padding: 14px 16px; display: grid; gap: 10px; font-size: 15px; }
.sent strong { color: var(--ok); }
.recap { font-family: var(--f-mono); font-size: 12.5px; white-space: pre-wrap; background: var(--surface); border: 1px solid var(--rule); border-radius: 5px; padding: 10px 12px; max-height: 220px; overflow: auto; }
.sent-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.sent-actions .btn { padding: 8px 12px; font-size: 14px; }

/* Barre prix mobile */
.mobilebar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--ink); color: #fff; display: none; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px)); }
.mobilebar .amt { font-family: var(--f-display); font-weight: 700; font-size: 26px; line-height: 1; }
.mobilebar .tax { font-family: var(--f-mono); font-size: 12px; opacity: .75; margin-left: 4px; }
.mobilebar .btn { padding: 9px 14px; font-size: 15px; background: #fff; color: var(--ink); }
@media (max-width: 900px) { .mobilebar.show { display: flex; } body.has-bar { padding-bottom: 72px; } }

/* Tracé technique */
.sv-sheet { fill: var(--plan-soft); stroke: var(--plan); stroke-width: 1.5; }
.sv-support { fill: var(--surface-2); stroke: var(--ink-3); stroke-width: 1; }
.sv-hem { fill: none; stroke: var(--plan); stroke-width: 1; stroke-dasharray: 4 3; opacity: .7; }
.sv-hole { fill: var(--surface); stroke: var(--ink); stroke-width: 1.4; }
.sv-base { fill: var(--ink-2); }
.sv-cote { stroke: var(--ink-3); stroke-width: 1; fill: none; }
.sv-txt { fill: var(--ink-2); font-family: var(--f-mono); font-size: 12px; }
.sv-lbl { fill: var(--plan); font-family: var(--f-display); font-weight: 600; font-size: 20px; letter-spacing: .04em; }

/* ── Services ── */
.services { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.service { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); padding: 18px; display: grid; gap: 6px; align-content: start; }
.service h3 { font-size: 21px; font-weight: 600; }
.service p { font-size: 14.5px; color: var(--ink-2); }
.service .tag { font-family: var(--f-mono); font-size: 12px; color: var(--ink-3); }
.service a { font-size: 14.5px; font-weight: 600; }

/* ── Histoire ── */
.story { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: start; }
@media (max-width: 760px) { .story { grid-template-columns: 1fr; } }
.story .prose { display: grid; gap: 14px; color: var(--ink-2); font-size: 17px; max-width: 60ch; }
.story .prose strong { color: var(--ink); }
.years { display: grid; border: 1.5px solid var(--ink); background: var(--surface); }
.years div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--rule); font-size: 15px; color: var(--ink-2); }
.years div:last-child { border-bottom: 0; }
.years b { font-family: var(--f-mono); font-weight: 500; color: var(--plan); }

/* ── Boutique ── */
.shop { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 760px) { .shop { grid-template-columns: 1fr; } }
.shop .card { display: grid; gap: 6px; align-content: start; }
.shop .label { font-family: var(--f-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.shop .v { font-size: 18px; font-weight: 600; }

/* ── Mentions légales ── */
.legal { display: grid; gap: 28px; max-width: 820px; }
.legal h1 { font-size: clamp(32px, 5vw, 44px); font-weight: 700; }
.legal section { display: grid; gap: 10px; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); padding: 20px; }
.legal h2 { font-size: 22px; font-weight: 600; }
.legal p { color: var(--ink-2); max-width: 68ch; }
.legal dl { display: grid; grid-template-columns: 170px 1fr; gap: 8px 18px; margin: 0; font-size: 15px; }
.legal dt { color: var(--ink-3); }
.legal dd { margin: 0; color: var(--ink); }
@media (max-width: 520px) { .legal dl { grid-template-columns: 1fr; gap: 2px; } .legal dd { margin-bottom: 8px; } }
.todo { color: var(--warn); background: var(--warn-soft); border-radius: 4px; padding: 0 6px; justify-self: start; }

.foot { margin-top: 40px; border-top: 1px solid var(--rule); padding-block: 24px 40px; font-size: 13.5px; color: var(--ink-3); }
.foot .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
