:root {
  --brand: #b7111f;
  --brand-dark: #8f0d18;
  --brand-tint: #fbeced;
  --ink: #1d1d1f;
  --ink-2: #333333;
  --ink-3: #7a7a7a;
  --line: #e6e4df;
  --paper: #f4f3f0;
  --white: #ffffff;
  --night: #161616;
  --ok: #1f7a4d;
  --radius: 6px;
  --shadow: 0 1px 2px rgba(0,0,0,.05), 0 8px 24px rgba(0,0,0,.06);
  --head: "Montserrat", Arial, sans-serif;
  --body: "Roboto", Arial, sans-serif;
  --wrap: 1200px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--body); color: var(--ink-2); background: var(--white); line-height: 1.6; font-size: 16px; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--head); color: var(--ink); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.6rem); font-weight: 800; text-transform: uppercase; }
h2 { font-size: clamp(1.5rem, 2.8vw, 2.25rem); font-weight: 800; text-transform: uppercase; }
h3 { font-size: 1.1rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.eyebrow { font-family: var(--head); font-weight: 600; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--brand); margin-bottom: .75rem; display: inline-flex; align-items: center; gap: .6rem; }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.lead { font-size: 1.125rem; color: var(--ink-2); max-width: 62ch; }
.muted { color: var(--ink-3); }
.small { font-size: .875rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; padding: .85rem 1.4rem; border-radius: var(--radius); border: 2px solid transparent; font-family: var(--head); font-weight: 700; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; transition: background .15s, color .15s, border-color .15s, transform .15s; white-space: nowrap; }
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; }
.btn-ghost { border-color: currentColor; background: transparent; }
.btn-ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.on-dark .btn-ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn-sm { padding: .55rem .9rem; font-size: .72rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; cursor: pointer; }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn:hover { border-color: var(--ink); }

/* ---------- Header ---------- */
.topbar { background: var(--night); color: #cfcfcf; font-size: .8rem; }
.topbar .wrap { display: flex; justify-content: space-between; gap: 1rem; padding-top: .45rem; padding-bottom: .45rem; flex-wrap: wrap; }
.topbar a { display: inline-flex; align-items: center; gap: .4rem; }
.topbar a:hover { color: #fff; }
.topbar svg { width: 14px; height: 14px; }
.topbar .tb-left { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.97); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 1.5rem; height: 76px; }
.logo { display: flex; align-items: center; gap: .7rem; flex-shrink: 0; }
.logo img { height: 46px; width: auto; }
.logo-text { font-family: var(--head); font-weight: 800; font-size: 1.45rem; letter-spacing: .04em; color: var(--ink); line-height: 1; }
.logo-text small { display: block; font-size: .55rem; font-weight: 600; letter-spacing: .12em; color: var(--ink-3); margin-top: 4px; }
.logo-text b { color: var(--brand); }
.nav { margin-left: auto; display: flex; align-items: center; gap: .25rem; }
.nav > .nav-item { position: relative; }
.nav-link { display: inline-flex; align-items: center; gap: .35rem; padding: .7rem .9rem; font-family: var(--head); font-weight: 700; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); border-radius: var(--radius); }
.nav-link:hover, .nav-link.active { color: var(--brand); }
.nav-link .caret { width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); }
.nav-fe { position: relative; }
.nav-fe::after { content: "Nouveau"; position: absolute; top: -2px; right: -6px; background: var(--brand); color: #fff; font-size: .55rem; letter-spacing: .06em; padding: 1px 5px; border-radius: 3px; }
.mega { position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(6px); width: min(720px, 92vw); background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); padding: 1rem; display: grid; grid-template-columns: repeat(2, 1fr); gap: .25rem; opacity: 0; visibility: hidden; transition: opacity .15s, transform .15s; }
.nav-item:hover .mega, .nav-item:focus-within .mega { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.mega a { display: flex; align-items: center; gap: .75rem; padding: .6rem .7rem; border-radius: var(--radius); }
.mega a:hover { background: var(--paper); }
.mega .mi { width: 40px; height: 40px; flex-shrink: 0; background: var(--paper); border-radius: var(--radius); padding: 4px; }
.mega b { display: block; font-family: var(--head); font-size: .82rem; color: var(--ink); }
.mega span { font-size: .78rem; color: var(--ink-3); line-height: 1.35; display: block; }
.mega .mega-all { grid-column: 1 / -1; justify-content: center; border-top: 1px solid var(--line); border-radius: 0; margin-top: .25rem; padding-top: .8rem; font-family: var(--head); font-weight: 700; font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--brand); }
.devis-pill { position: relative; margin-left: .5rem; }
.devis-pill .count { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--ink); color: #fff; font-size: .7rem; font-weight: 700; display: grid; place-items: center; }
.devis-pill .count[data-n="0"] { display: none; }
.burger { display: none; }
.devis-mini { display: none; margin-left: auto; }

@media (max-width: 960px) {
  .burger { display: inline-grid; }
  .site-header .devis-mini { display: inline-grid; margin: 0 0 0 auto; }
  .site-header .wrap { gap: .6rem; }
  .nav { position: fixed; inset: 76px 0 0 0; background: #fff; flex-direction: column; align-items: stretch; padding: 1rem 24px 2rem; gap: 0; overflow-y: auto; transform: translateX(100%); transition: transform .2s; margin: 0; }
  .nav.open { transform: none; }
  .nav-link { padding: 1rem 0; border-bottom: 1px solid var(--line); border-radius: 0; width: 100%; justify-content: space-between; }
  .mega { position: static; transform: none; opacity: 1; visibility: visible; width: auto; box-shadow: none; border: 0; padding: .25rem 0 .75rem; grid-template-columns: 1fr; display: none; }
  .nav-item.open .mega { display: grid; }
  .nav-item:hover .mega { transform: none; }
  .devis-pill { margin: 1rem 0 0; }
  .nav-fe::after { right: auto; left: 120px; top: 14px; }
  .topbar .tb-right { display: none; }
}

/* ---------- Sections ---------- */
section { padding: 88px 0; }
.sec-paper { background: var(--paper); }
.sec-dark { background: var(--night); color: #cfcfcf; }
.sec-dark h1, .sec-dark h2, .sec-dark h3 { color: #fff; }
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 2rem; margin-bottom: 2.5rem; flex-wrap: wrap; }
.sec-head h2 { margin: 0; }
.sec-head p { margin: .75rem 0 0; max-width: 60ch; }
.grid { display: grid; gap: 24px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.g5 { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 1080px) { .g5 { grid-template-columns: repeat(3, 1fr); } .g4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) { .g2, .g3, .g4, .g5 { grid-template-columns: 1fr; } section { padding: 60px 0; } .g5.keep2, .g4.keep2 { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--night); color: #d6d6d6; padding: 110px 0 120px; }
.hero::before { content: ""; position: absolute; inset: 0; background:
  radial-gradient(1000px 500px at 85% 20%, rgba(183,17,31,.35), transparent 60%),
  linear-gradient(120deg, #161616 40%, #262222); }
.hero .lines { position: absolute; right: -60px; top: 50%; transform: translateY(-50%); width: min(720px, 70vw); opacity: .9; pointer-events: none; }
.hero .wrap { position: relative; }
.hero h1 { color: #fff; max-width: 14ch; }
.hero h1 em { font-style: normal; color: var(--brand); }
.hero .lead { color: #cfcfcf; }
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 2rem; }
.badge-since { display: inline-flex; align-items: center; gap: .6rem; font-family: var(--head); font-weight: 700; font-size: .75rem; letter-spacing: .2em; color: #fff; border: 1px solid rgba(255,255,255,.25); padding: .4rem .8rem; border-radius: 30px; margin-bottom: 1.5rem; }
.badge-since i { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }
@media (max-width: 760px) { .hero { padding: 72px 0 80px; } .hero .lines { opacity: .25; } }

.stats { margin-top: -56px; position: relative; z-index: 2; }
.stats .grid { background: #fff; border-radius: 10px; box-shadow: var(--shadow); padding: 28px; }
.stat { text-align: center; padding: .5rem; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat b { display: block; font-family: var(--head); font-weight: 800; font-size: clamp(1.8rem, 3.4vw, 2.6rem); color: var(--ink); line-height: 1; font-variant-numeric: tabular-nums; }
.stat span { font-family: var(--head); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
@media (max-width: 760px) { .stat + .stat { border-left: 0; } .stat:nth-child(even) { border-left: 1px solid var(--line); } }

/* ---------- Cards ---------- */
.card { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 24px; transition: border-color .15s, box-shadow .15s, transform .15s; position: relative; }
a.card:hover, .card.hover:hover { border-color: var(--ink); box-shadow: var(--shadow); transform: translateY(-2px); }
.svc-card { display: flex; flex-direction: column; gap: .75rem; min-height: 100%; }
.svc-card .art { width: 104px; height: 104px; background: radial-gradient(circle at 50% 40%, #fff, var(--paper) 70%); border-radius: 12px; padding: 4px; }
.svc-card h3 { margin: .25rem 0 0; text-transform: uppercase; font-size: .9rem; letter-spacing: .04em; }
.svc-card p { margin: 0; font-size: .9rem; color: var(--ink-3); }
.svc-card .more { margin-top: auto; display: inline-flex; align-items: center; gap: .4rem; font-family: var(--head); font-weight: 700; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--brand); }
.svc-card .more svg { width: 16px; height: 16px; transition: transform .15s; }
.svc-card:hover .more svg { transform: translateX(4px); }
.num { font-family: var(--head); font-weight: 800; color: var(--brand); font-size: .8rem; letter-spacing: .1em; }

/* Steps */
.steps { counter-reset: s; }
.step { padding: 28px; border-top: 3px solid var(--ink); background: #fff; border-radius: 0 0 10px 10px; }
.step::before { counter-increment: s; content: "0" counter(s); display: block; font-family: var(--head); font-weight: 800; font-size: 2rem; color: var(--brand); margin-bottom: .5rem; }
.sec-dark .step { background: #1f1f1f; border-top-color: var(--brand); color: #bdbdbd; }

/* Breadcrumb & page head */
.page-head { background: var(--paper); padding: 48px 0 40px; border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); margin-bottom: .4rem; }
.crumbs { display: flex; flex-wrap: wrap; gap: .4rem; font-size: .8rem; color: var(--ink-3); margin-bottom: 1rem; font-family: var(--head); letter-spacing: .04em; }
.crumbs a:hover { color: var(--brand); }
.crumbs span::before { content: "/"; margin-right: .4rem; color: #bbb; }
.page-head.dark { background: var(--night); color: #cfcfcf; border: 0; }
.page-head.dark h1 { color: #fff; }
.page-head.dark .lead, .page-head.dark .crumbs { color: #b5b5b5; }

/* ---------- Catalogue ---------- */
.cat-layout { display: grid; grid-template-columns: 260px 1fr; gap: 32px; align-items: start; }
.filters { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 1.5rem; }
.filters h4 { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: .6rem; }
.filter-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.filter-list button { width: 100%; text-align: left; background: none; border: 0; padding: .5rem .7rem; border-radius: var(--radius); cursor: pointer; display: flex; justify-content: space-between; font-size: .9rem; }
.filter-list button:hover { background: var(--paper); }
.filter-list button.on { background: var(--ink); color: #fff; }
.filter-list button em { font-style: normal; font-size: .75rem; opacity: .6; }
.searchbox { position: relative; }
.searchbox svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--ink-3); }
.searchbox input[type=search] { padding-left: 40px; }
.range-row { display: flex; justify-content: space-between; font-size: .8rem; color: var(--ink-3); }
input[type=range] { width: 100%; accent-color: var(--brand); }
.cat-tabs { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
@media (max-width: 760px) { .cat-tabs { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; } .cat-tabs a { white-space: nowrap; } .topbar .tb-left a + a { display: none; } }
.cat-tabs a { padding: .55rem 1rem; border: 1px solid var(--line); border-radius: 30px; font-size: .85rem; font-family: var(--head); font-weight: 600; }
.cat-tabs a.on, .cat-tabs a:hover { border-color: var(--ink); background: var(--ink); color: #fff; }
.results-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; font-size: .875rem; color: var(--ink-3); gap: 1rem; flex-wrap: wrap; }
.prod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px; }
.prod { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; transition: border-color .15s, box-shadow .15s; }
.prod:hover { border-color: var(--ink); box-shadow: var(--shadow); }
.prod .pimg { aspect-ratio: 4/3; background: linear-gradient(180deg, #fafaf8, var(--paper)); display: grid; place-items: center; padding: 18px; position: relative; }
.prod .pimg .art3d { width: 82%; }
.prod .pimg .art3d > svg { width: 85%; margin: auto; }
.prod .tag { position: absolute; top: 10px; left: 10px; background: #fff; border: 1px solid var(--line); font-size: .68rem; font-family: var(--head); font-weight: 700; letter-spacing: .06em; padding: 2px 8px; border-radius: 20px; color: var(--ink-2); }
.prod .pbody { padding: 16px; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.prod .fam { font-size: .7rem; font-family: var(--head); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); }
.prod h3 { font-size: .98rem; margin: 0; }
.prod .meta { font-size: .8rem; color: var(--ink-3); }
.prod .pfoot { display: flex; gap: .5rem; padding: 0 16px 16px; }
.prod .pfoot .btn { flex: 1; }
.no-price { display: inline-flex; align-items: center; gap: .35rem; font-size: .75rem; color: var(--ink-3); }
.empty { text-align: center; padding: 60px 20px; border: 1px dashed var(--line); border-radius: 10px; color: var(--ink-3); }
@media (max-width: 900px) {
  .cat-layout { grid-template-columns: 1fr; } .filters { position: static; gap: 1rem; }
  .filter-list { flex-direction: row; overflow-x: auto; gap: .4rem; padding-bottom: 4px; }
  .filter-list button { white-space: nowrap; border: 1px solid var(--line); border-radius: 30px; gap: .5rem; }
  .filters .panel { display: none; }
}

/* Product page */
.pp { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: start; }
.pp > *, .devis-layout > *, .composer > *, .cat-layout > * { min-width: 0; }
[hidden] { display: none !important; }
.pp-media { background: linear-gradient(180deg, #fafaf8, var(--paper)); border: 1px solid var(--line); border-radius: 12px; aspect-ratio: 1; display: grid; place-items: center; padding: 48px; position: sticky; top: 100px; }
.pp-media .art3d { width: 100%; height: auto; aspect-ratio: 1; }
.pp-media canvas.viewer { width: 100%; height: 100%; display: block; cursor: grab; touch-action: pan-y; }
.pp-media canvas.viewer:active { cursor: grabbing; }
.pp-media .note { position: absolute; bottom: 12px; left: 12px; right: 12px; font-size: .72rem; color: var(--ink-3); text-align: center; }
.pp h1 { font-size: clamp(1.6rem, 3vw, 2.3rem); text-transform: none; }
.chips { display: flex; gap: .5rem; flex-wrap: wrap; margin: .75rem 0 1.25rem; }
.chip { font-size: .75rem; padding: .3rem .7rem; border-radius: 20px; background: var(--paper); border: 1px solid var(--line); font-weight: 500; }
.chip.red { background: var(--brand-tint); border-color: #f2c9cc; color: var(--brand-dark); }
.feat { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: .45rem; }
.feat li { display: flex; gap: .6rem; font-size: .95rem; }
.feat svg { width: 18px; height: 18px; color: var(--brand); flex-shrink: 0; margin-top: 3px; }
@media (max-width: 900px) { .pp { grid-template-columns: 1fr; gap: 28px; } .pp-media { position: relative; top: 0; aspect-ratio: 4/3; padding: 32px; } }
.page-head:has(.crumbs:only-child) { padding: 20px 0 6px; }

/* Table */
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
table { width: 100%; border-collapse: collapse; font-size: .875rem; font-variant-numeric: tabular-nums; }
th { text-align: left; background: var(--paper); font-family: var(--head); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); padding: .75rem .8rem; white-space: nowrap; border-bottom: 1px solid var(--line); }
td { padding: .6rem .8rem; border-bottom: 1px solid var(--line); white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fcfbf9; }
td.ref { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .8rem; color: var(--ink); font-weight: 600; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.qty button { width: 30px; height: 32px; border: 0; background: #fff; cursor: pointer; display: grid; place-items: center; }
.qty button:hover { background: var(--paper); }
.qty button svg { width: 14px; height: 14px; }
.qty input { width: 46px; height: 32px; border: 0; border-left: 1px solid var(--line); border-right: 1px solid var(--line); text-align: center; padding: 0; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.sel-bar { position: sticky; bottom: 16px; margin-top: 1rem; background: var(--ink); color: #fff; border-radius: 10px; padding: .8rem 1rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; box-shadow: var(--shadow); flex-wrap: wrap; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 16px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .form .row { grid-template-columns: 1fr; } }
label.f { display: grid; gap: .35rem; font-size: .82rem; font-weight: 500; color: var(--ink); }
label.f .req { color: var(--brand); }
input[type=text], input[type=email], input[type=tel], input[type=number], input[type=search], select, textarea {
  width: 100%; padding: .75rem .9rem; border: 1px solid #d6d3cd; border-radius: var(--radius); background: #fff; font-size: .95rem; transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(29,29,31,.08); }
textarea { min-height: 120px; resize: vertical; }
.f-err input, .f-err select, .f-err textarea { border-color: var(--brand); }
.err-msg { color: var(--brand); font-size: .78rem; }
.check { display: flex; gap: .6rem; align-items: flex-start; font-size: .85rem; color: var(--ink-2); }
.check input { margin-top: 4px; accent-color: var(--brand); width: 16px; height: 16px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.drop { border: 1.5px dashed #cfcbc4; border-radius: 10px; padding: 18px; display: flex; align-items: center; gap: .9rem; cursor: pointer; background: #fcfbf9; font-size: .875rem; }
.drop:hover, .drop.over { border-color: var(--ink); }
.drop svg { width: 22px; height: 22px; color: var(--ink-3); flex-shrink: 0; }
.drop input { display: none; }
.alert { padding: .9rem 1rem; border-radius: var(--radius); font-size: .9rem; }
.alert-err { background: var(--brand-tint); color: var(--brand-dark); border: 1px solid #f2c9cc; }
.alert-ok { background: #e8f5ee; color: var(--ok); border: 1px solid #bfe3cf; }

/* Devis */
.devis-layout { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 960px) { .devis-layout { grid-template-columns: 1fr; } }
.cart-item { display: grid; grid-template-columns: 64px 1fr auto auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cart-item .ci-img { width: 64px; height: 64px; background: var(--paper); border-radius: 8px; padding: 8px; }
.cart-item h4 { font-size: .92rem; margin: 0 0 2px; }
.cart-item .ci-ref { font-family: ui-monospace, Menlo, monospace; font-size: .75rem; color: var(--ink-3); }
.cart-item .ci-opt { font-size: .78rem; color: var(--ink-3); }
@media (max-width: 560px) { .cart-item { grid-template-columns: 48px 1fr; } .cart-item .ci-img { width: 48px; height: 48px; } .cart-item .qty, .cart-item .icon-btn { grid-column: 2; justify-self: start; } }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 28px; }
.panel-dark { background: var(--night); color: #cfcfcf; border: 0; }
.success { text-align: center; padding: 48px 28px; }
.success .tick { width: 64px; height: 64px; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center; margin: 0 auto 1rem; }
.success .tick svg { width: 32px; height: 32px; }
.mail-preview { text-align: left; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; margin-top: 1.5rem; background: #fff; }
.mail-preview .mp-head { background: var(--paper); padding: .8rem 1rem; font-size: .8rem; border-bottom: 1px solid var(--line); display: grid; gap: .15rem; }
.mail-preview .mp-head b { display: inline-block; width: 70px; color: var(--ink-3); font-weight: 500; }
.mail-preview iframe { width: 100%; height: 460px; border: 0; display: block; }

/* Composer */
.composer { display: grid; grid-template-columns: 1fr 360px; gap: 32px; align-items: start; }
.cmp-step { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 24px; margin-bottom: 16px; }
.cmp-step h3 { display: flex; align-items: center; gap: .7rem; }
.cmp-step h3 i { font-style: normal; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-size: .8rem; }
.cmp-preview { position: sticky; top: 100px; }
.assembly { background: var(--paper); border-radius: 10px; padding: 18px 10px; }
.seg { display: flex; gap: .5rem; flex-wrap: wrap; }
.seg button { padding: .5rem .9rem; border: 1px solid var(--line); background: #fff; border-radius: 30px; cursor: pointer; font-size: .85rem; }
.seg button.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.warn { font-size: .82rem; background: #fff7e6; border: 1px solid #f3dca8; color: #7a5300; padding: .7rem .9rem; border-radius: var(--radius); }
.kv { display: grid; grid-template-columns: auto 1fr; gap: .35rem 1rem; font-size: .875rem; }
.kv dt { color: var(--ink-3); }
.kv dd { margin: 0; color: var(--ink); font-weight: 500; text-align: right; }
@media (max-width: 960px) { .composer { grid-template-columns: 1fr; } .cmp-preview { position: static; } }

/* Fun-e-com */
.fe-hero { background: radial-gradient(800px 400px at 80% 10%, rgba(183,17,31,.45), transparent 60%), linear-gradient(135deg, #121212, #231a1b); color: #d4d4d4; padding: 100px 0; position: relative; overflow: hidden; }
.fe-hero h1 { color: #fff; max-width: 16ch; text-transform: none; }
.fe-hero h1 span { color: var(--brand); }
.fe-logo { font-family: var(--head); font-weight: 800; letter-spacing: .02em; }
.fe-logo b { color: var(--brand); }
.fe-card .fe-ico { width: 52px; height: 52px; border-radius: 12px; background: var(--brand-tint); color: var(--brand); display: grid; place-items: center; margin-bottom: .6rem; }
.fe-card .fe-ico svg { width: 28px; height: 28px; }
.fe-card ul { padding-left: 1.1rem; margin: .5rem 0 0; font-size: .875rem; color: var(--ink-3); }
.fe-case { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.browser { background: #fff; border-radius: 10px; box-shadow: 0 30px 60px rgba(0,0,0,.35); overflow: hidden; }
.browser .bar { background: #ececec; padding: 8px 12px; display: flex; gap: 6px; align-items: center; }
.browser .bar i { width: 10px; height: 10px; border-radius: 50%; background: #d0d0d0; }
.browser .bar span { margin-left: 10px; background: #fff; border-radius: 4px; font-size: .7rem; padding: 2px 10px; color: #888; flex: 1; }
.browser .scr { padding: 16px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.browser .scr div { background: var(--paper); border-radius: 6px; aspect-ratio: 1; padding: 10px; display: flex; flex-direction: column; justify-content: space-between; }
.browser .scr div .art3d { height: 62%; }
.browser .scr div i { height: 6px; border-radius: 3px; background: #ddd; }
.browser .scr div i:last-child { background: var(--brand); width: 60%; }
@media (max-width: 900px) { .fe-case { grid-template-columns: 1fr; } }

/* Contact */
.map { border: 0; width: 100%; height: 100%; min-height: 360px; border-radius: 12px; filter: grayscale(.4); }
.info-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.1rem; }
.info-list li { display: flex; gap: .9rem; align-items: flex-start; }
.info-list .ii { width: 44px; height: 44px; border-radius: 10px; background: var(--brand); color: #fff; display: grid; place-items: center; flex-shrink: 0; }
.info-list .ii svg { width: 20px; height: 20px; }
.info-list b { display: block; font-family: var(--head); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }

/* Band & brands */
.band { background: var(--brand); color: #fff; padding: 56px 0; }
.band h2 { color: #fff; margin: 0; }
.band .wrap { display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap; }
.band .btn-ghost:hover { background: #fff; color: var(--brand); border-color: #fff; }
.quote { font-family: var(--head); font-size: clamp(1.4rem, 2.6vw, 2rem); font-weight: 800; color: var(--ink); line-height: 1.2; text-transform: uppercase; }
.quote em { font-style: normal; color: var(--brand); }
.sig { margin-top: 1rem; font-family: var(--head); font-weight: 700; font-size: .85rem; }
.sig small { display: block; font-weight: 500; color: var(--ink-3); }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; }
.check-list li { display: flex; gap: .7rem; }
.check-list svg { width: 20px; height: 20px; color: var(--brand); flex-shrink: 0; margin-top: 2px; }

/* Footer */
.site-footer { background: var(--night); color: #a9a9a9; padding: 72px 0 28px; font-size: .9rem; }
.site-footer h4 { color: #fff; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.site-footer a:hover { color: #fff; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.foot-bottom { margin-top: 48px; padding-top: 22px; border-top: 1px solid #2a2a2a; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .8rem; }
.site-footer .logo-text { color: #fff; }
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .foot-grid { grid-template-columns: 1fr; } }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(120px); background: var(--ink); color: #fff; padding: .8rem 1.1rem; border-radius: 10px; display: flex; align-items: center; gap: .9rem; box-shadow: var(--shadow); z-index: 100; transition: transform .25s; font-size: .9rem; max-width: calc(100vw - 32px); }
.toast.show { transform: translateX(-50%) translateY(0); }
.toast svg { width: 18px; height: 18px; color: #7bd3a4; }
.toast a { color: #fff; text-decoration: underline; font-weight: 600; white-space: nowrap; }

/* Admin */
.adm-table td { white-space: normal; vertical-align: top; }
.status { font-size: .72rem; font-weight: 700; padding: 3px 9px; border-radius: 20px; background: var(--paper); border: 1px solid var(--line); white-space: nowrap; }
.status.nouveau { background: var(--brand-tint); color: var(--brand-dark); border-color: #f2c9cc; }
.status.envoye { background: #e8f0fb; color: #1d4f91; border-color: #c6d8f2; }
.status.gagne { background: #e8f5ee; color: var(--ok); border-color: #bfe3cf; }

.fade-in { animation: fade .35s ease both; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } html { scroll-behavior: auto; } }

/* Rendus 3D */
.art3d { display: block; width: 100%; height: 100%; position: relative; }
.art3d > img, .art3d > svg { width: 100%; height: 100%; object-fit: contain; display: block; }
.art3d > svg { opacity: .35; transform: scale(.8); }
.art3d.ready > img { animation: pop .45s ease both; }
.art3d:not(.ready)::after { content: ""; position: absolute; inset: 30%; border-radius: 50%; background: radial-gradient(circle, rgba(183,17,31,.10), transparent 70%); animation: pulse 1.2s ease-in-out infinite; }
@keyframes pop { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }
@keyframes pulse { 50% { opacity: .3; } }
a.card:hover .art3d img, .prod:hover .art3d img { transform: translateY(-3px) scale(1.03); transition: transform .25s; }
.art3d img { transition: transform .25s; }
.mega .mi { width: 48px; height: 48px; padding: 2px; background: radial-gradient(circle at 50% 40%, #fff, var(--paper) 70%); }
.cart-item .ci-img { padding: 4px; }

/* ---------- Configurateur 3D ---------- */
.cmp2 { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.stage-col { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 14px; }
.stage { position: relative; aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden; border: 1px solid var(--line);
  background: radial-gradient(120% 90% at 50% 35%, #ffffff 0%, #f1f0ec 55%, #e4e2dc 100%); }
.stage-3d { position: absolute; inset: 0; }
.stage-3d canvas.viewer { width: 100%; height: 100%; display: block; cursor: grab; touch-action: pan-y; }
.stage-3d canvas.viewer:active { cursor: grabbing; }
.stage-bar { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; flex-wrap: wrap; z-index: 2; }
.stage-btn { border: 1px solid var(--line); background: rgba(255,255,255,.88); backdrop-filter: blur(6px); border-radius: 30px; padding: .4rem .8rem; font-size: .75rem; font-weight: 600; cursor: pointer; color: var(--ink); }
.stage-btn:hover { border-color: var(--ink); }
.stage-btn.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.stage-hint { position: absolute; bottom: 12px; left: 12px; font-size: .72rem; color: var(--ink-3); background: rgba(255,255,255,.75); padding: .25rem .6rem; border-radius: 20px; pointer-events: none; }
.stage-dim { position: absolute; bottom: 12px; right: 12px; font-size: .8rem; background: var(--ink); color: #fff; padding: .35rem .75rem; border-radius: 20px; pointer-events: none; font-variant-numeric: tabular-nums; }
.stage-tip { position: absolute; transform: translate(12px, -130%); background: var(--ink); color: #fff; font-size: .72rem; padding: .3rem .6rem; border-radius: 6px; pointer-events: none; opacity: 0; transition: opacity .12s; white-space: nowrap; z-index: 3; }
.stage-tip.show { opacity: 1; }
.spec-strip { display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.spec-strip > div { padding: 10px 12px; border-right: 1px solid var(--line); min-width: 0; }
.spec-strip > div:last-child { border-right: 0; }
.spec-strip span { display: block; font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); font-family: var(--head); font-weight: 700; }
.spec-strip b { display: block; font-size: .85rem; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.spec-strip .ps { background: var(--brand-tint); }
.spec-strip .ps b { color: var(--brand-dark); }
.add-row { display: flex; gap: 12px; align-items: center; }
.add-row .qty button, .add-row .qty input { height: 46px; }
.steps-col { display: flex; flex-direction: column; gap: 14px; }
.steps-col .cmp-step { margin: 0; scroll-margin-top: 110px; }
.cmp-step.flash { animation: flash 1.2s ease; }
@keyframes flash { 0%, 60% { box-shadow: 0 0 0 3px var(--brand); } 100% { box-shadow: 0 0 0 0 transparent; } }
.mini-h { display: block; font-family: var(--head); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin: 14px 0 8px; font-weight: 700; }
.pick-grid { display: grid; gap: 8px; }
.hose-grid { grid-template-columns: repeat(4, 1fr); }
.fit-grid { grid-template-columns: repeat(4, 1fr); }
.sleeve-grid { grid-template-columns: repeat(2, 1fr); }
.pick { display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; padding: 10px 8px; border: 1.5px solid var(--line); background: #fff; border-radius: 10px; cursor: pointer; transition: border-color .15s, transform .15s, box-shadow .15s; font-size: .8rem; }
.pick:hover { border-color: #b9b5ad; transform: translateY(-1px); }
.pick.on { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(183,17,31,.12); }
.pick svg { width: 40px; height: 40px; margin-bottom: 4px; }
.pick b { font-family: var(--head); font-size: .82rem; color: var(--ink); }
.pick span { font-size: .7rem; color: var(--ink-3); line-height: 1.3; }
.pick em { font-style: normal; font-size: .68rem; font-weight: 700; color: var(--brand); margin-top: 2px; }
.pick-img { padding: 6px 6px 10px; }
.pick-img .art3d { width: 100%; aspect-ratio: 1; height: auto; background: radial-gradient(circle at 50% 40%, #fff, var(--paper) 75%); border-radius: 8px; margin-bottom: 6px; }
.pick-img .art3d > svg { width: 70%; margin: auto; }
.chips-row { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-btn { border: 1.5px solid var(--line); background: #fff; border-radius: 30px; padding: .38rem .75rem; font-size: .8rem; cursor: pointer; font-weight: 600; color: var(--ink); }
.chip-btn small { font-weight: 400; color: var(--ink-3); margin-left: 2px; }
.chip-btn:hover { border-color: #b9b5ad; }
.chip-btn.on { border-color: var(--brand); background: var(--brand-tint); color: var(--brand-dark); }
.chip-btn.on small { color: var(--brand-dark); }
.row2 { display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: end; margin-top: 12px; }
.row2 .mini-h { margin-top: 0; }
.seg button { display: inline-flex; align-items: center; gap: 6px; }
.seg button svg { width: 16px; height: 16px; }
.len-row { display: flex; gap: 14px; align-items: center; margin-bottom: 10px; }
.len-row input[type=range] { flex: 1; }
.len-num { display: flex; align-items: center; gap: 6px; font-size: .85rem; color: var(--ink-3); }
.len-num input { width: 100px; text-align: right; font-variant-numeric: tabular-nums; }
@media (max-width: 1080px) { .hose-grid, .fit-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 960px) {
  .cmp2 { grid-template-columns: 1fr; }
  .stage-col { position: sticky; top: 76px; z-index: 5; background: #fff; padding-bottom: 8px; gap: 8px; }
  .stage { aspect-ratio: 16 / 10; }
  .spec-strip { grid-template-columns: repeat(2, 1fr); }
  .spec-strip > div:nth-child(2) { border-right: 0; }
  .spec-strip > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .stage-hint { display: none; }
}
@media (max-width: 560px) {
  .hose-grid, .fit-grid { grid-template-columns: repeat(2, 1fr); }
  .row2 { grid-template-columns: 1fr; }
  .stage-col { position: static; }
}
.cmp2 > *, .stage-col > *, .steps-col > * { min-width: 0; }
.stage-3d canvas.viewer { max-width: 100%; }
.add-row .btn { min-width: 0; white-space: normal; text-align: center; line-height: 1.25; }
.add-row .qty { flex-shrink: 0; }
html, body { overflow-x: clip; }

/* ---------- Accueil : style hydraulique ---------- */
:root { --mono: "Roboto Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace; }

/* Héros : plan de travail sombre, quadrillage de plan technique, flexible rendu en 3D et ses repères */
.hero.hx { padding: 64px 0 0; }
.hero.hx::before { background:
  radial-gradient(560px 380px at 74% 40%, rgba(255,255,255,.13), transparent 70%),
  radial-gradient(900px 480px at 92% 0%, rgba(183,17,31,.36), transparent 62%),
  linear-gradient(120deg, #141414 40%, #221c1c); }
.hx::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 44px 44px; background-position: center top;
  -webkit-mask-image: linear-gradient(90deg, transparent 8%, #000 55%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent 8%, #000 55%, #000 88%, transparent); }
.hx > .wrap { z-index: 1; }
.hx-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 16px; align-items: center; }
.hx-copy { padding: 30px 0 44px; }
.hx-shot { position: relative; margin: 0 -56px 0 0; aspect-ratio: 5 / 4; container-type: inline-size; }
.hx-shot > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 34px 36px rgba(0,0,0,.5)); animation: pop .6s ease both;
  -webkit-mask-image: linear-gradient(90deg, #000 80%, transparent 99%); mask-image: linear-gradient(90deg, #000 80%, transparent 99%); }
.hx-shot .lines { position: absolute; inset: 0; right: auto; top: 0; transform: none; width: 100%; height: 100%; opacity: 0; transition: opacity .4s; }
.hx-shot.fallback .lines { opacity: .9; }

/* Repères façon plan : pastille sur la pièce, trait de rappel, légende */
.hx-tag { position: absolute; left: 50%; top: 50%; width: 0; height: 0; opacity: 0; transition: opacity .5s .35s; --lead: 58px; }
@supports (width: 1cqw) { .hx-tag { --lead: 9cqw; } .hx-tag[data-anchor="ferrule"] { --lead: 14.5cqw; } .hx-tag[data-anchor="nut"] { --lead: 13cqw; } }
.hx-shot.ready .hx-tag { opacity: 1; }
.hx-tag i { position: absolute; left: -6px; top: -6px; width: 12px; height: 12px; border-radius: 50%; background: var(--brand); border: 2px solid #fff; box-shadow: 0 0 0 5px rgba(183,17,31,.28); }
.hx-tag span { position: absolute; left: -.5px; white-space: nowrap; padding-left: 12px; border-left: 1px solid rgba(255,255,255,.6); font: 500 .66rem/1.5 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: #aab0b8; }
.hx-tag b { display: block; font: 700 .78rem/1.3 var(--head); letter-spacing: .06em; color: #fff; }
.hx-tag.up span { bottom: 8px; padding-bottom: var(--lead); }
.hx-tag.down span { top: 8px; padding-top: var(--lead); }
.hx-tag.left span { left: auto; right: -.5px; padding-left: 0; padding-right: 12px; border-left: 0; border-right: 1px solid rgba(255,255,255,.6); text-align: right; }
.hx-tag:hover b { text-decoration: underline; text-underline-offset: 3px; }
.hx-tag:focus-visible { outline: none; }
.hx-tag:focus-visible span { outline: 2px solid #fff; outline-offset: 4px; }

/* Relevés : les chiffres clés, lus comme sur un cadran */
.hx-read { display: grid; grid-template-columns: repeat(3, 1fr); margin: 20px 0 0; border-top: 1px solid rgba(255,255,255,.16); }
.hx-read > div { padding: 22px 28px 30px; }
.hx-read > div:first-child { padding-left: 0; }
.hx-read > div + div { border-left: 1px solid rgba(255,255,255,.16); }
.hx-read dt { font: 500 .68rem/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: #8f959d; }
.hx-read dd { margin: .55rem 0 0; font: 800 clamp(1.9rem, 3.4vw, 2.7rem)/1 var(--head); color: #fff; font-variant-numeric: tabular-nums; }
.hx-read > div::after { content: ""; display: block; height: 9px; margin-top: 16px; max-width: 220px;
  background: linear-gradient(var(--brand), var(--brand)) 0 0 / 2px 100% no-repeat, repeating-linear-gradient(90deg, rgba(255,255,255,.4) 0 1px, transparent 1px 9px) 0 100% / 100% 5px no-repeat;
  -webkit-mask-image: linear-gradient(90deg, #000 40%, transparent); mask-image: linear-gradient(90deg, #000 40%, transparent); }

/* Bande « marquage de tuyau » : le texte imprimé le long d'un flexible */
.layline { position: relative; overflow: hidden; background: #0f0f10; border-top: 3px solid var(--brand); color: #dedcd6; }
.layline::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(118deg, rgba(255,255,255,.04) 0 2px, transparent 2px 7px), linear-gradient(180deg, rgba(255,255,255,.07), transparent 40%, rgba(0,0,0,.4)); }
.layline > div { display: flex; width: max-content; animation: layline 60s linear infinite; }
.layline span { display: inline-flex; align-items: center; gap: 1.5rem; padding: .72rem .75rem; font: 500 .7rem/1 var(--mono); letter-spacing: .22em; text-transform: uppercase; white-space: nowrap; }
.layline i { width: 9px; height: 9px; border: 2px solid var(--brand); border-radius: 50%; flex: none; }
@keyframes layline { to { transform: translateX(-25%); } }

/* Détails : sur-titre terminé par un joint torique, plaque signalétique, cartes de service */
.home .eyebrow::before { width: 36px; height: 9px; background:
  radial-gradient(circle at calc(100% - 4.5px) 50%, transparent 0 2px, currentColor 2.5px 4px, transparent 4.5px),
  linear-gradient(currentColor, currentColor) 0 50% / 26px 2px no-repeat; }
.home .plate { padding: 40px; border: 0; background: linear-gradient(180deg, #f8f7f4, #efede8); box-shadow: inset 0 0 0 1px rgba(0,0,0,.07); }
.home .plate::before { content: ""; position: absolute; inset: 13px; pointer-events: none; background:
  radial-gradient(circle, #a9a59c 0 2.5px, transparent 3px) 0 0 / 8px 8px no-repeat,
  radial-gradient(circle, #a9a59c 0 2.5px, transparent 3px) 100% 0 / 8px 8px no-repeat,
  radial-gradient(circle, #a9a59c 0 2.5px, transparent 3px) 0 100% / 8px 8px no-repeat,
  radial-gradient(circle, #a9a59c 0 2.5px, transparent 3px) 100% 100% / 8px 8px no-repeat; }
.svc-card .idx { position: absolute; top: 20px; right: 20px; font: 500 .68rem/1 var(--mono); letter-spacing: .1em; color: var(--ink-3); }
a.svc-card::after { content: ""; position: absolute; left: 24px; right: 24px; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--brand); transform: scaleX(0); transform-origin: left; transition: transform .28s ease; }
a.svc-card:hover::after, a.svc-card:focus-visible::after { transform: scaleX(1); }

/* Les 3 étapes du devis, reliées comme un circuit : conduite, prises numérotées, fluide en mouvement */
.circuit { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; position: relative; }
.circuit::before { content: ""; position: absolute; left: 24px; right: 10px; top: 21px; height: 6px; border-radius: 3px; background: #2b2b2d; box-shadow: inset 0 1px 0 rgba(255,255,255,.1), inset 0 -1px 0 rgba(0,0,0,.5); }
.circuit::after { content: ""; position: absolute; left: 24px; right: 12px; top: 23px; height: 2px; background: linear-gradient(90deg, var(--brand) 0 16px, transparent 16px 30px) 0 0 / 30px 100%; animation: flow 1.1s linear infinite; }
@keyframes flow { to { background-position: 30px 0; } }
@keyframes flow-y { to { background-position: 0 30px; } }
.circuit li { position: relative; padding: 76px 24px 0 0; color: #bdbdbd; }
.circuit li b { position: absolute; left: 0; top: 0; z-index: 1; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--night); border: 3px solid #fff; box-shadow: inset 0 0 0 3px var(--night), inset 0 0 0 5px var(--brand); font: 500 .78rem/1 var(--mono); color: #fff; }
.circuit li h3 { font-size: 1.05rem; text-transform: uppercase; letter-spacing: .04em; margin-bottom: .4rem; }
.circuit li p { margin: 0; max-width: 34ch; }
.circuit li:last-child::after { content: ""; position: absolute; right: 0; top: 15px; border-left: 13px solid var(--brand); border-top: 9px solid transparent; border-bottom: 9px solid transparent; }

@media (max-width: 960px) {
  .hx-grid { grid-template-columns: 1fr; gap: 0; }
  .hx-copy { padding: 8px 0 0; }
  .hx-shot { margin: -8px -24px 0; }
}
@media (max-width: 760px) {
  .hero.hx { padding-top: 44px; }
  .hx-tag span { font-size: .56rem; padding-left: 8px; }
  .hx-tag.left span { padding-right: 8px; }
  /* sur téléphone, la légende de l'écrou passe à droite de son trait pour ne pas coller au bord de l'écran */
  .hx-tag[data-anchor="nut"] span { left: -.5px; right: auto; padding-left: 8px; padding-right: 0; border-right: 0; border-left: 1px solid rgba(255,255,255,.6); text-align: left; }
  .hx-tag b { font-size: .66rem; }
  .hx-read > div { padding: 16px 12px 20px; }
  .hx-read dd { font-size: 1.5rem; }
  .hx-read dt { font-size: .58rem; letter-spacing: .1em; }
  .circuit { grid-template-columns: 1fr; gap: 30px; }
  .circuit::before { left: 21px; right: auto; top: 24px; bottom: 30px; width: 6px; height: auto; }
  .circuit::after { left: 23px; right: auto; top: 24px; bottom: 30px; width: 2px; height: auto; background: linear-gradient(180deg, var(--brand) 0 16px, transparent 16px 30px) 0 0 / 100% 30px; animation-name: flow-y; }
  .circuit li { padding: 4px 0 0 72px; min-height: 52px; }
  .circuit li:last-child::after { display: none; }
}
