/* Configurateur chambre froide SmartCHR — thème clair, bleu glacier + orange */
:root {
  --ice: #0ea5e9; --ice-600: #0284c7; --ice-50: #f0f9ff; --ice-100: #e0f2fe; --ice-200: #bae6fd;
  --orange: #f97316; --orange-600: #ea580c; --orange-50: #fff7ed;
  --ink: #0f172a; --ink-2: #334155; --muted: #64748b; --line: #e2e8f0; --line-2: #cbd5e1; --bg: #f7fbff; --card: #fff;
  --green: #16a34a; --green-50: #f0fdf4; --amber: #d97706; --amber-50: #fffbeb; --red: #dc2626;
  --r: 16px; --shadow: 0 1px 2px rgba(15,23,42,.05), 0 10px 30px rgba(14,165,233,.08);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body { overflow-x: clip; margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.5; -webkit-font-smoothing: antialiased; }
button, input { font: inherit; color: inherit; }
a { color: var(--ice-600); }
.ic { flex: none; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; border-radius: 8px; }
.skip { position: absolute; left: -999px; } .skip:focus { left: 12px; top: 12px; z-index: 100; background: #fff; padding: 8px 12px; }

/* givre subtil sur les bords de la fenêtre */
body::before { content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 1; box-shadow: inset 0 0 70px rgba(186,230,253,.55); }

/* ---------- en-tête ---------- */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40; display: flex; align-items: center; gap: 16px; padding: 10px 20px; background: rgba(255,255,255,.9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.logo { text-decoration: none; color: var(--ink); line-height: 1; display: grid; }
.logo b { font-size: 21px; letter-spacing: -.03em; } .logo span { color: var(--orange); } .logo small { font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.top-nav { display: flex; gap: 18px; margin-left: auto; } .top-nav a { color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: 14px; } .top-nav a:hover { color: var(--ice-600); }
.btn-call { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; background: var(--ink); color: #fff; text-decoration: none; font-weight: 700; white-space: nowrap; }
@media (max-width: 860px) { .top-nav { display: none; } .btn-call { margin-left: auto; } }

/* ---------- boutons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 22px; border-radius: 14px; border: 0; font-weight: 700; font-size: 15.5px; text-decoration: none; cursor: pointer; transition: transform .12s, box-shadow .2s, background .2s; }
.btn:active { transform: scale(.98); }
.btn-main { background: linear-gradient(180deg, #fb923c, var(--orange)); color: #fff; box-shadow: 0 8px 22px rgba(249,115,22,.35); }
.btn-main:hover { box-shadow: 0 12px 28px rgba(249,115,22,.45); }
.btn-ghost { background: #fff; color: var(--ink); border: 1.5px solid var(--line-2); }
.btn-ghost:hover { border-color: var(--ice); color: var(--ice-600); }

/* ---------- bannière ---------- */
.hero { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: center; gap: 24px; max-width: 1320px; margin: 0 auto; padding: 32px 24px 24px; min-height: 520px; }
.hero::before { content: ''; position: absolute; inset: 0 -50vw; z-index: -1; background: radial-gradient(900px 420px at 75% 40%, var(--ice-100), transparent 70%), linear-gradient(180deg, #fff, var(--bg)); }
.hero-3d { order: 2; position: relative; height: 460px; }
.hero-3d canvas { width: 100%; height: 100%; display: block; }
.hero-txt { order: 1; }
.eyebrow { display: inline-block; margin: 0 0 10px; padding: 5px 12px; border-radius: 999px; background: var(--ice-100); color: var(--ice-600); font-weight: 700; font-size: 12.5px; letter-spacing: .04em; text-transform: uppercase; }
.hero .display { margin: 0; font-size: clamp(30px, 4.4vw, 54px); font-weight: 800; line-height: 1.05; letter-spacing: -.035em; text-wrap: balance; }
h1.eyebrow { font-size: 12.5px; line-height: 1.2; }
.lead { font-size: clamp(16px, 1.5vw, 19px); color: var(--ink-2); max-width: 560px; margin: 16px 0 24px; }
.ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.badges { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 22px 0 0; }
.badges li { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--ink-2); box-shadow: var(--shadow); }
.badges .ic { color: var(--ice); }
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: 0; padding: 16px 16px 8px; gap: 8px; }
  .hero-3d { order: 1; height: 40vh; max-height: 340px; }
  .hero-txt { order: 2; } .ctas { flex-direction: column; } .ctas .btn { width: 100%; }
}

/* ---------- configurateur ---------- */
.config { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 24px; max-width: 1320px; margin: 0 auto; padding: 16px 24px 48px; align-items: start; }
.col-view { position: sticky; top: 76px; display: grid; gap: 14px; }
.viewer { position: relative; height: min(56vh, 520px); border-radius: 22px; overflow: hidden; background: radial-gradient(120% 90% at 50% 20%, #fff, var(--ice-50) 60%, var(--ice-100)); border: 1px solid var(--ice-200); box-shadow: var(--shadow), inset 0 0 50px rgba(186,230,253,.6); }
.viewer canvas { width: 100%; height: 100%; display: block; touch-action: none; cursor: grab; }
.viewer canvas:active { cursor: grabbing; }
.dim { position: absolute; left: 0; top: 0; padding: 3px 9px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 12px; font-weight: 700; pointer-events: none; font-variant-numeric: tabular-nums; white-space: nowrap; }
.v-tools { position: absolute; left: 12px; bottom: 12px; display: flex; gap: 6px; flex-wrap: wrap; }
.v-tools button { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,.92); backdrop-filter: blur(6px); font-weight: 600; font-size: 13px; cursor: pointer; }
.v-tools button[aria-pressed="true"] { background: var(--ice); color: #fff; border-color: var(--ice); }
.v-temp { position: absolute; right: 14px; top: 12px; padding: 6px 12px; border-radius: 12px; background: rgba(255,255,255,.92); border: 1px solid var(--ice-200); font-weight: 800; font-size: 20px; color: var(--ice-600); font-variant-numeric: tabular-nums; }
.v-badge { position: absolute; left: 12px; top: 12px; display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 999px; background: rgba(255,255,255,.9); backdrop-filter: blur(8px); border: 1px solid var(--line); font-size: 12.5px; font-weight: 700; color: var(--ink); pointer-events: none; }
.v-badge svg { color: var(--ice); }
.v-help { position: absolute; left: 14px; top: 50px; margin: 0; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); pointer-events: none; }
.v-hint { position: absolute; left: 0; top: 0; z-index: 4; padding: 6px 11px; border-radius: 10px; background: var(--ink); color: #fff; font-size: 12.5px; font-weight: 700; pointer-events: none; white-space: nowrap; box-shadow: 0 8px 20px -8px rgba(15,23,42,.5); }
.v-hint::after { content: ' · cliquer pour modifier'; font-weight: 500; color: #93c5fd; }
@media (hover: none) { .v-hint::after { content: ' · ouvert ci-dessous'; } }
.flow-legend { position: absolute; right: 12px; top: 64px; display: grid; gap: 4px; padding: 8px 11px; border-radius: 12px; background: rgba(255,255,255,.92); backdrop-filter: blur(8px); border: 1px solid var(--line); font-size: 11.5px; font-weight: 600; color: var(--ink); pointer-events: none; }
.flow-legend span { display: flex; align-items: center; gap: 7px; } .flow-legend i { width: 10px; height: 10px; border-radius: 50%; }
.c-cold { background: #0284c7; } .c-warm { background: #f97316; } .c-out { background: #38bdf8; box-shadow: inset 0 0 0 2px #fff; outline: 1px solid #38bdf8; }
details.sub.flash { animation: subFlash 1.4s ease; }
@keyframes subFlash { 0%, 60% { box-shadow: 0 0 0 4px rgba(14,165,233,.35); border-color: var(--ice); } 100% { box-shadow: none; } }

/* récapitulatif */
.recap { background: var(--card); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); overflow: hidden; }
.recap-head { width: 100%; display: flex; align-items: center; gap: 16px; padding: 14px 18px; border: 0; background: linear-gradient(90deg, var(--ice-50), #fff); cursor: pointer; text-align: left; }
.recap-head span { display: grid; } .recap-head small { color: var(--muted); font-weight: 600; font-size: 12px; } .recap-head b { font-size: 26px; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.recap-head .r-ttc { margin-left: auto; text-align: right; } .recap-head .r-ttc b { font-size: 17px; color: var(--ink-2); }
.recap-head .chev { transition: transform .2s; color: var(--muted); }
.recap-head[aria-expanded="true"] .chev { transform: rotate(180deg); }
.recap-body { padding: 0 18px 8px; max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.recap-body.open { max-height: 900px; }
.lines { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.lines td { padding: 6px 0; border-bottom: 1px dashed var(--line); vertical-align: top; }
.lines td:last-child { text-align: right; white-space: nowrap; font-weight: 600; font-variant-numeric: tabular-nums; padding-left: 10px; }
.lines .free { color: var(--green); font-weight: 800; } .lines .quote { color: var(--amber); } .lines .sep td { border-bottom: 1px solid var(--line-2); padding-top: 10px; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.r-tot { display: grid; gap: 4px; padding: 10px 0; font-variant-numeric: tabular-nums; }
.r-tot div { display: flex; justify-content: space-between; } .r-tot .big b { font-size: 20px; } .r-tot .pay { color: var(--ice-600); font-weight: 700; }
.r-tot .pay span { display: inline-flex; gap: 6px; align-items: center; }
.r-note { font-size: 12px; color: var(--muted); margin: 0 0 8px; }
.recap-cta { display: grid; grid-template-columns: 1.4fr 1fr; gap: 8px; padding: 0 18px 14px; }
.trust { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0; padding: 0 18px 16px; font-size: 12.5px; color: var(--green); font-weight: 600; }
.trust li { display: inline-flex; align-items: center; gap: 4px; }

/* étapes */
.col-steps { display: grid; gap: 14px; min-width: 0; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); scroll-margin-top: 80px; }
.step-h { margin: 0; font-size: 18px; letter-spacing: -.02em; }
.step-toggle { width: 100%; display: flex; align-items: center; gap: 12px; padding: 16px 18px; border: 0; background: none; cursor: pointer; text-align: left; font-weight: 700; }
.step-n::before { content: attr(data-n); }
.step-n { width: 30px; height: 30px; flex: none; display: grid; place-items: center; border-radius: 10px; background: var(--ice-100); color: var(--ice-600); font-size: 14px; }
.step-sum { margin-left: auto; font-size: 13px; font-weight: 600; color: var(--muted); text-align: right; }
.step-toggle .chev { transform: rotate(180deg); transition: transform .2s; color: var(--muted); }
.step-toggle[aria-expanded="false"] .chev { transform: none; }
.step-b { padding: 0 18px 18px; }
.step-toggle[aria-expanded="false"] + * { display: none; }
.step.collapsed .step-b { display: none; }
.step-intro { margin: 0 0 14px; color: var(--muted); font-size: 14.5px; }
.step h3 { font-size: 14px; margin: 18px 0 8px; color: var(--ink-2); text-transform: uppercase; letter-spacing: .05em; }
.hint { font-size: 13px; color: var(--muted); display: flex; gap: 6px; align-items: flex-start; flex-wrap: wrap; }

/* activité */
.grid-act { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.act input, .card-opt input, .opt input, .grid-chip input, .seg input { position: absolute; opacity: 0; pointer-events: none; }
.act label { display: grid; justify-items: center; gap: 6px; padding: 14px 8px; border-radius: 14px; border: 1.5px solid var(--line); background: #fff; text-align: center; font-size: 13px; font-weight: 600; cursor: pointer; height: 100%; transition: border-color .15s, background .15s, transform .12s; }
.act label .ic { color: var(--ice); } .act label:hover { border-color: var(--ice-200); transform: translateY(-1px); }
.act input:checked + label { border-color: var(--ice); background: var(--ice-50); box-shadow: 0 0 0 3px rgba(14,165,233,.15); }
.act input:focus-visible + label, .card-opt input:focus-visible + label, .opt input:focus-visible + label, .grid-chip input:focus-visible + label, .seg input:focus-visible + label { outline: 3px solid var(--orange); outline-offset: 2px; }
.reco { display: flex; gap: 12px; margin-top: 12px; padding: 12px 14px; border-radius: 14px; background: var(--green-50); border: 1px solid #bbf7d0; }
.reco .reco-ic { color: var(--green); } .reco b { font-size: 14.5px; } .reco p { margin: 2px 0 0; font-size: 13.5px; color: var(--ink-2); }

/* cartes d'option */
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.grid-war { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.card-opt label { position: relative; display: grid; gap: 3px; padding: 14px; border-radius: 14px; border: 1.5px solid var(--line); background: #fff; cursor: pointer; height: 100%; transition: border-color .15s, background .15s; }
.card-opt label .ic { color: var(--ice); margin-bottom: 4px; }
.card-opt .range { font-weight: 700; color: var(--ice-600); font-size: 13.5px; } .card-opt small { color: var(--muted); font-size: 12.5px; }
.card-opt input:checked + label { border-color: var(--ice); background: var(--ice-50); box-shadow: 0 0 0 3px rgba(14,165,233,.15); }
.card-opt.war input:checked + label { border-color: var(--orange); background: var(--orange-50); box-shadow: 0 0 0 3px rgba(249,115,22,.15); }
.badge { font-style: normal; display: inline-block; padding: 2px 8px; border-radius: 999px; background: var(--orange); color: #fff; font-size: 10.5px; font-weight: 800; letter-spacing: .02em; white-space: nowrap; }
.badge.alt { background: var(--ice); }
.card-opt .badge { position: absolute; top: -9px; right: 10px; }

.grid-opt { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.opt { position: relative; }
.opt label { display: grid; grid-template-columns: 40px 1fr; grid-template-rows: auto auto; gap: 2px 10px; align-items: center; padding: 12px 40px 12px 12px; border-radius: 14px; border: 1.5px solid var(--line); background: #fff; cursor: pointer; height: 100%; transition: border-color .15s, background .15s; }
.opt-ic { grid-row: 1 / 3; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: var(--ice-50); color: var(--ice-600); transition: background .15s, color .15s; }
.opt-t { display: grid; } .opt-t b { font-size: 14px; } .opt-t small { color: var(--muted); font-size: 12.5px; }
.opt-p { grid-column: 2; font-size: 13px; font-weight: 700; display: flex; gap: 6px; flex-wrap: wrap; }
.p-val { color: var(--ink); } .p-inc { color: var(--green); } .p-quote { color: var(--amber); font-weight: 600; } .p-rec { color: var(--muted); font-weight: 500; }
.opt input:checked + label { border-color: var(--ice); background: var(--ice-50); }
.opt input:checked + label .opt-ic { background: var(--ice); color: #fff; }
.opt input[type=checkbox] + label::after { content: ''; position: absolute; right: 12px; bottom: 12px; width: 18px; height: 18px; border-radius: 6px; border: 1.5px solid var(--line-2); background: #fff; }
.opt input[type=checkbox]:checked + label::after { background: var(--ice) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center/14px no-repeat; border-color: var(--ice); }
.opt.forced label { opacity: .85; cursor: default; }
.tip-btn { position: absolute; top: 10px; right: 10px; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; border: 0; background: transparent; color: var(--muted); cursor: help; }
.tip-btn:hover, .tip-btn:focus-visible { color: var(--ice-600); background: var(--ice-50); }
.tip { position: absolute; z-index: 20; right: 0; top: 40px; width: min(300px, 86vw); padding: 12px 14px; border-radius: 12px; background: var(--ink); color: #fff; font-size: 13px; line-height: 1.45; box-shadow: 0 16px 40px rgba(15,23,42,.25); opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .15s, transform .15s, visibility .15s; }
.tip a { color: #7dd3fc; font-weight: 600; }
.tip-btn:hover + .tip, .tip-btn:focus + .tip, .tip:hover, .opt.tip-open .tip { opacity: 1; visibility: visible; transform: none; }

.specs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.specs div { padding: 10px 12px; border-radius: 12px; background: var(--ice-50); border: 1px solid var(--ice-100); display: grid; }
.specs span { font-size: 11.5px; color: var(--muted); font-weight: 600; } .specs b { font-size: 14.5px; font-variant-numeric: tabular-nums; }

/* dimensions */
.dims { display: grid; gap: 4px; margin-top: 14px; }
.field-range { display: grid; grid-template-columns: 96px 1fr 70px; gap: 12px; align-items: center; }
.field-range label { font-weight: 600; font-size: 14px; } .field-range output { text-align: right; font-weight: 800; font-variant-numeric: tabular-nums; }
input[type=range] { width: 100%; accent-color: var(--ice); height: 28px; }
.field-seg { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 6px 0; } .field-seg > span { font-weight: 600; font-size: 14px; }
.seg { display: inline-flex; padding: 3px; border-radius: 12px; background: var(--ice-50); border: 1px solid var(--ice-100); flex-wrap: wrap; }
.seg label { padding: 7px 12px; border-radius: 9px; font-weight: 600; font-size: 13.5px; cursor: pointer; color: var(--ink-2); }
.seg input:checked + label { background: #fff; color: var(--ice-600); box-shadow: 0 1px 4px rgba(15,23,42,.12); }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.stats div { padding: 12px; border-radius: 14px; background: linear-gradient(180deg, var(--ice-50), #fff); border: 1px solid var(--ice-100); display: grid; }
.stats span { font-size: 12px; color: var(--muted); font-weight: 600; } .stats b { font-size: 18px; font-variant-numeric: tabular-nums; }

/* puces */
.grid-chip { display: flex; flex-wrap: wrap; gap: 6px; }
.grid-chip label { display: inline-flex; align-items: center; gap: 6px; flex-direction: row; padding: 9px 13px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; font-weight: 600; font-size: 13.5px; cursor: pointer; }
.grid-chip label small { font-weight: 500; color: var(--muted); font-size: 12px; margin-left: 4px; }
.grid-chip label .ic { color: var(--ice); }
.grid-chip input:checked + label { border-color: var(--ice); background: var(--ice-50); color: var(--ice-600); }

/* zone */
.field { display: grid; gap: 6px; } .field label { font-weight: 600; font-size: 14px; }
.field input { padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--line-2); font-size: 16px; }
.field input:focus { border-color: var(--ice); outline: none; box-shadow: 0 0 0 3px rgba(14,165,233,.2); }
.zone-res { margin-top: 10px; padding: 12px 14px; border-radius: 12px; display: grid; gap: 2px; background: var(--green-50); border: 1px solid #bbf7d0; font-size: 13.5px; }
.zone-res.border { background: var(--amber-50); border-color: #fde68a; } .zone-res.out { background: #f1f5f9; border-color: var(--line); }
.legend { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 4px; font-size: 12.5px; color: var(--muted); }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 4px; margin-right: 6px; vertical-align: -1px; }
.legend .covered { background: var(--ice); } .legend .border { background: #fde68a; } .legend .out { background: #e2e8f0; }

/* photos dans les cartes d'option */
.opt.has-photo label { grid-template-rows: auto auto auto; padding-top: 0; overflow: hidden; }
.opt-photo { height: auto; grid-column: 1 / -1; width: calc(100% + 52px); max-width: none; margin: 0 -40px 8px -12px; aspect-ratio: 16 / 9; object-fit: cover; display: block; border-radius: 12px 12px 0 0; background: var(--ice-50); }
.opt.has-photo .opt-ic { grid-row: auto; } .opt.has-photo .opt-p { grid-column: 2; }
.opt-kind { position: absolute; left: 10px; top: 10px; padding: 2px 8px; border-radius: 999px; background: rgba(15,23,42,.6); color: #fff; font-size: 10.5px; font-weight: 700; backdrop-filter: blur(4px); }
.opt.has-photo .tip-btn { background: rgba(255,255,255,.9); }
.opt.has-photo input:checked + label { box-shadow: 0 0 0 3px rgba(14,165,233,.18); }

/* vue photo 3D */
.hero-3d { border-radius: 26px; overflow: hidden; box-shadow: 0 30px 60px rgba(14,165,233,.18); background: #0b1220; }
.hero-cap { position: absolute; left: 14px; bottom: 14px; padding: 6px 12px; border-radius: 999px; background: rgba(15,23,42,.6); color: #fff; font-size: 12.5px; font-weight: 700; backdrop-filter: blur(6px); transition: opacity .4s; }
.page-hero.with-photo { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; }
.page-hero.with-photo .page-3d { grid-column: 2; grid-row: 1 / span 2; position: relative; height: 340px; border-radius: 22px; overflow: hidden; background: #0b1220; box-shadow: 0 24px 50px rgba(14,165,233,.16); }
.page-hero.with-photo .page-3d canvas { width: 100%; height: 100%; display: block; }
.page-hero.with-photo .badges { grid-column: 1; align-self: start; }
@media (max-width: 900px) { .page-hero.with-photo { grid-template-columns: 1fr; } .page-hero.with-photo .page-3d { grid-column: 1; grid-row: auto; order: -1; height: 240px; } .page-hero.with-photo .badges { grid-column: 1; } }
/* inclinaison 3D des photos de cartes */
.opt.has-photo label { transform-style: preserve-3d; transition: transform .25s ease, border-color .15s, background .15s; will-change: transform; }

/* vignette « exemple » sur la vue 3D */
.pip { position: absolute; right: 12px; top: 62px; width: 168px; padding: 0; border: 2px solid #fff; border-radius: 14px; overflow: hidden; background: #fff; box-shadow: 0 10px 28px rgba(15,23,42,.22); cursor: zoom-in; text-align: left; transition: transform .15s; }
.pip:hover { transform: translateY(-2px); }
.pip img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; transition: opacity .35s; }
.pip img.fade { opacity: 0; }
.pip span { display: grid; padding: 6px 9px 7px; line-height: 1.15; } .pip small { font-size: 10px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; } .pip small.real { color: var(--green); } .pip b { font-size: 12.5px; }
.lightbox { border: 0; padding: 0; border-radius: 18px; max-width: min(1100px, calc(100vw - 24px)); background: #0b1220; color: #fff; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.lightbox::backdrop { background: rgba(2,6,23,.75); }
.lightbox img { display: block; max-width: 100%; max-height: 80vh; }
.lightbox p { margin: 0; padding: 10px 16px 14px; font-weight: 600; }
.lightbox .x { position: absolute; right: 10px; top: 10px; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255,255,255,.9); cursor: pointer; font-size: 20px; }

/* zone d'intervention : vraie carte */
.zone { display: grid; grid-template-columns: 1fr; gap: 14px; }
.zone-map { display: block; max-width: 540px; width: 100%; justify-self: center; margin: 0; padding: 10px; border-radius: 18px; background: linear-gradient(180deg, var(--ice-50), #fff); border: 1px solid var(--ice-100); }
.zone-map svg { display: block; width: 100%; height: auto; }
.zone-map figcaption { font-size: 10.5px; color: var(--muted); text-align: right; margin-top: 4px; }
.dep { stroke: #fff; stroke-width: 1.4; cursor: pointer; transition: fill .2s, opacity .2s; outline: none; }
.dep.covered { fill: #7dd3fc; } .dep.border { fill: #fde68a; }
.dep:hover, .dep:focus-visible { fill: var(--ice); } .dep.border:hover, .dep.border:focus-visible { fill: #fbbf24; }
.dep.sel { fill: var(--orange) !important; }
.dep-l { font-size: 13px; font-weight: 800; fill: #0f172a; pointer-events: none; paint-order: stroke; stroke: rgba(255,255,255,.85); stroke-width: 3px; }
.ivry circle { fill: var(--orange); stroke: #fff; stroke-width: 2; } .ivry .pulse { fill: rgba(249,115,22,.25); stroke: none; transform-box: fill-box; transform-origin: center; animation: zpulse 2s ease-out infinite; }
@keyframes zpulse { from { transform: scale(.6); opacity: 1; } to { transform: scale(2.2); opacity: 0; } }
.cp-row { display: flex; gap: 8px; flex-wrap: wrap; } .cp-row input { flex: 1; min-width: 0; }
.btn-geo { display: inline-flex; align-items: center; gap: 6px; padding: 0 14px; border-radius: 12px; border: 1.5px solid var(--line-2); background: #fff; font-weight: 600; cursor: pointer; white-space: nowrap; } .btn-geo:hover { border-color: var(--ice); color: var(--ice-600); }
.zone-res { margin-top: 10px; padding: 12px 14px; border-radius: 14px; display: flex; gap: 10px; background: var(--ice-50); border: 1px solid var(--ice-100); font-size: 13.5px; }
.zone-res > div { display: grid; gap: 2px; } .zone-res .zr-ic { color: var(--ice-600); }
.zone-res.covered { background: var(--green-50); border-color: #bbf7d0; } .zone-res.covered .zr-ic { color: var(--green); }
.zone-res.border { background: var(--amber-50); border-color: #fde68a; } .zone-res.border .zr-ic { color: var(--amber); }
.zone-res.out { background: #f1f5f9; border-color: var(--line); } .zone-res .km { font-weight: 700; color: var(--ink); }
.legend .covered { background: #7dd3fc; } .legend .pin { background: var(--orange); border-radius: 50%; }
.dep-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.dep-chips button { border: 1px solid var(--ice-100); background: #fff; border-radius: 999px; padding: 5px 10px; font-size: 12.5px; font-weight: 600; cursor: pointer; } .dep-chips button[aria-pressed="true"] { background: var(--orange); border-color: var(--orange); color: #fff; }

/* galerie des pages */
.gal { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.gal figure { margin: 0; } .gal-btn { padding: 0; border: 0; border-radius: 14px; overflow: hidden; cursor: zoom-in; display: block; width: 100%; }
.gal img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .3s; } .gal-btn:hover img { transform: scale(1.03); }
.gal figcaption { display: grid; padding: 6px 2px 0; font-size: 13px; } .gal figcaption span { color: var(--muted); font-size: 12px; } .gal figcaption span.real { color: var(--green); font-weight: 600; }

/* offre, services */
.offer { display: flex; gap: 12px; align-items: flex-start; margin: 12px 0; padding: 14px; border-radius: 14px; background: linear-gradient(90deg, var(--orange-50), #fff); border: 1px solid #fed7aa; }
.offer .ic { color: var(--orange); } .offer p { margin: 2px 0 0; font-size: 13.5px; color: var(--ink-2); }
.incl, .todo { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.incl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.incl li { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 12px; background: var(--green-50); font-size: 13.5px; font-weight: 600; } .incl .ic { color: var(--green); }
.todo li { display: flex; gap: 8px; align-items: center; font-size: 13.5px; } .todo .ic { color: var(--amber); }

/* FAQ, pied */
.faq { max-width: 900px; margin: 0 auto; padding: 24px 24px 48px; }
.faq h2 { font-size: clamp(22px, 2.6vw, 30px); letter-spacing: -.02em; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 4px 16px; margin-bottom: 8px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 12px 0; } .faq p { margin: 0 0 12px; color: var(--ink-2); }
.more ul { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; list-style: none; } .more a { display: inline-block; padding: 8px 14px; border-radius: 999px; background: var(--ice-50); border: 1px solid var(--ice-100); text-decoration: none; font-weight: 600; }
.foot { text-align: center; padding: 24px 16px 100px; color: var(--muted); font-size: 13.5px; border-top: 1px solid var(--line); } .foot .small { font-size: 12px; }

/* barre mobile et fenêtre de devis */
.mbar { display: none; }
.modal { border: 0; border-radius: 22px; padding: 0; width: min(560px, calc(100vw - 24px)); max-height: calc(100vh - 24px); box-shadow: 0 30px 80px rgba(15,23,42,.3); }
.modal::backdrop { background: rgba(15,23,42,.45); backdrop-filter: blur(3px); }
.modal form { display: grid; gap: 12px; padding: 22px; }
.modal h2 { margin: 0; font-size: 22px; } .modal .x { position: absolute; right: 14px; top: 14px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--ice-50); cursor: pointer; font-size: 18px; }
.modal .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.modal .sum { padding: 12px 14px; border-radius: 12px; background: var(--ice-50); display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; }
.modal .sum b { font-size: 20px; } .modal .consent { display: grid; grid-template-columns: 20px 1fr; gap: 8px; font-size: 12.5px; color: var(--muted); }
.modal .ok { text-align: center; padding: 30px 22px; } .modal .ok .ic { color: var(--green); }

/* ---------- pages SEO ---------- */
.bc { max-width: 1180px; margin: 0 auto; padding: 14px 24px 0; font-size: 13px; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; }
.bc a { color: var(--muted); text-decoration: none; } .bc a:hover { color: var(--ice-600); }
.page-hero { max-width: 1180px; margin: 0 auto; padding: 18px 24px 26px; display: grid; gap: 16px; }
.page-hero h1 { margin: 0; font-size: clamp(30px, 4vw, 48px); letter-spacing: -.035em; line-height: 1.08; }
.page-hero .lead { margin: 12px 0 20px; max-width: 760px; }
.page-hero .badges { margin: 0; }
.page-grid { max-width: 1180px; margin: 0 auto; padding: 0 24px 48px; display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: start; }
.article { display: grid; gap: 14px; min-width: 0; }
.article section { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 22px 24px; box-shadow: var(--shadow); }
.article h2 { margin: 0 0 10px; font-size: clamp(20px, 2vw, 24px); letter-spacing: -.02em; }
.article p { margin: 0 0 10px; color: var(--ink-2); max-width: 72ch; } .article p:last-child { margin-bottom: 0; }
.t { width: 100%; border-collapse: collapse; font-size: 14.5px; margin: 8px 0 12px; }
@media (max-width: 767px) { .t { display: block; overflow-x: auto; } }
.t th, .t td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.t th { background: var(--ice-50); color: var(--ink-2); font-size: 12.5px; text-transform: uppercase; letter-spacing: .05em; }
.t td:last-child { white-space: nowrap; }
.chk { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.chk li { position: relative; padding-left: 28px; color: var(--ink-2); }
.chk li::before { content: ''; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--green-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316a34a' stroke-width='3'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center/11px no-repeat; }
.chk.warn li::before { background-color: var(--amber-50); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d97706' stroke-width='3'%3E%3Cpath d='M12 6v8M12 18h.01'/%3E%3C/svg%3E"); }
.steps-l { margin: 0; padding-left: 0; list-style: none; counter-reset: s; display: grid; gap: 10px; }
.steps-l li { counter-increment: s; position: relative; padding-left: 40px; color: var(--ink-2); }
.steps-l li::before { content: counter(s); position: absolute; left: 0; top: -2px; width: 28px; height: 28px; border-radius: 9px; background: var(--ice-100); color: var(--ice-600); font-weight: 800; display: grid; place-items: center; font-size: 13px; }
.offer-box { padding: 16px; border-radius: 14px; background: linear-gradient(90deg, var(--orange-50), #fff); border: 1px solid #fed7aa; }
.faq-in details { border-bottom: 1px solid var(--line); } .faq-in summary { cursor: pointer; font-weight: 700; padding: 12px 0; } .faq-in details p { margin: 0 0 12px; }
.sources ul { margin: 0; padding-left: 18px; font-size: 13.5px; } .sources li { margin: 4px 0; }
.side-cta { position: sticky; top: 84px; display: grid; gap: 10px; padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); }
.from { display: grid; gap: 2px; padding: 14px; border-radius: 14px; background: linear-gradient(180deg, var(--ice-50), #fff); border: 1px solid var(--ice-100); }
.from span { font-size: 12.5px; color: var(--muted); font-weight: 600; } .from b { font-size: 28px; letter-spacing: -.03em; } .from small { font-size: 12px; color: var(--muted); }
.side-cta .trust { padding: 0; }
.related h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 6px 0; }
.related ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; } .related a { font-weight: 600; text-decoration: none; }
.page .foot { padding-bottom: 24px; }
@media (max-width: 900px) { .page-grid { grid-template-columns: 1fr; } .side-cta { position: static; } .page .foot { padding-bottom: 96px; } .page-bar { display: flex; } .page-bar .btn { flex: 1; } }

/* ---------- responsive ---------- */
@media (max-width: 767px) { .config { grid-template-columns: 1fr; } .col-view { position: static; } .viewer { height: 46vh; min-height: 300px; } .recap { display: none; } .mbar { display: flex; } }
@media (max-width: 767px) {
  .mbar { position: fixed; z-index: 50; left: 0; right: 0; bottom: 0; align-items: center; gap: 10px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px)); background: rgba(255,255,255,.96); backdrop-filter: blur(10px); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(15,23,42,.08); }
  .mbar > div { display: grid; line-height: 1.1; margin-right: auto; } .mbar small { color: var(--muted); font-size: 11.5px; } .mbar b { font-size: 20px; font-variant-numeric: tabular-nums; }
  .mbar .btn { padding: 12px 18px; } .btn-round { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; background: var(--green); color: #fff; }
  .recap.sheet { display: block; position: fixed; z-index: 60; left: 0; right: 0; bottom: 0; max-height: 80vh; overflow: auto; border-radius: 22px 22px 0 0; }
  .recap.sheet .recap-body { max-height: none; }
}
@media (max-width: 767px) {
  .pip { width: 120px; } .pip span { display: none; }
  .config { padding: 8px 12px 40px; gap: 14px; } .grid-opt, .grid-3, .incl, .specs, .zone { grid-template-columns: 1fr; } .grid-war { grid-template-columns: 1fr 1fr; }
  .grid-act { grid-template-columns: repeat(3, minmax(0, 1fr)); } .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } .stats b { font-size: 15px; }
  .field-range { grid-template-columns: 80px 1fr 60px; } .v-help { display: none; } .v-tools button span { display: none; } .v-tools button { padding: 9px; }
  .modal .grid2 { grid-template-columns: 1fr; } .step-sum { display: none; } .top { padding: 8px 12px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }

/* =====================================================================
   Parcours guidé (v3) : une étape à la fois, aéré, mobile d'abord
   ===================================================================== */
.config { gap: 32px; padding-top: 24px; }
.col-steps.wizard { gap: 0; background: var(--card); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); overflow: clip; }
.js .wizard .step:not(.active) { display: none; }
.wizard .step { border: 0; border-radius: 0; box-shadow: none; background: transparent; scroll-margin-top: 140px; }
.wizard .step.active { animation: stepIn .32s ease both; }
@keyframes stepIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* barre d'étapes */
.stepper { position: sticky; top: 64px; z-index: 5; padding: 16px 24px 12px; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.stepper-top { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; font-weight: 700; color: var(--muted); }
.stepper-top #st-name { color: var(--ice-600); }
.prog { height: 6px; border-radius: 999px; background: var(--ice-100); margin: 8px 0 12px; overflow: hidden; }
.prog span { display: block; height: 100%; width: 12.5%; border-radius: 999px; background: linear-gradient(90deg, var(--ice), #38bdf8); transition: width .4s cubic-bezier(.2,.8,.2,1); }
.stepper ol { list-style: none; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 4px; margin: 0; padding: 0; }
.stepper ol button { width: 100%; display: grid; justify-items: center; gap: 4px; padding: 4px 2px; border: 0; background: none; cursor: pointer; font-size: 11.5px; font-weight: 600; color: var(--muted); }
.stepper ol button span { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: #f1f5f9; color: var(--muted); font-size: 12px; font-weight: 800; transition: all .2s; }
.stepper ol button.done span { background: var(--ice-100); color: var(--ice-600); }
.stepper ol button[aria-current="step"] { color: var(--ink); } .stepper ol button[aria-current="step"] span { background: var(--ice); color: #fff; box-shadow: 0 0 0 4px rgba(14,165,233,.18); }

/* en-tête et corps d'étape */
.step-head { display: flex; gap: 14px; align-items: flex-start; padding: 26px 28px 6px; }
.step-head h2 { margin: 0; font-size: clamp(22px, 2.2vw, 27px); letter-spacing: -.025em; line-height: 1.15; }
.step-head .step-n { margin-top: 2px; width: 34px; height: 34px; border-radius: 11px; font-size: 15px; }
.step-intro { margin: 6px 0 0; font-size: 15px; color: var(--muted); line-height: 1.5; max-width: 60ch; }
.wizard .step-b { padding: 18px 28px 8px; display: grid; gap: 18px; }
.wizard .step-b h3 { margin: 6px 0 -6px; }
.step-nav { display: flex; justify-content: space-between; gap: 12px; padding: 18px 28px 26px; }
.step-nav .btn-next { min-width: 220px; } .step:first-of-type .btn-back { visibility: hidden; }
.btn-xl { padding: 16px 24px; font-size: 16.5px; }

/* cartes : plus d'air, alignement régulier */
.grid-act { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.act label { min-height: 112px; padding: 18px 10px; align-content: center; font-size: 14px; border-radius: 16px; }
.grid-3 { gap: 12px; } .card-opt label { padding: 18px; border-radius: 16px; gap: 4px; }
.card-opt label b { font-size: 16px; }
.grid-opt { gap: 12px; }
.opt label { min-height: 84px; padding: 14px 46px 14px 14px; border-radius: 16px; }
.opt.has-photo label { padding: 0 14px 14px; }
.reco { margin-top: 0; padding: 16px 18px; border-radius: 16px; }
.stats { margin-top: 0; gap: 12px; } .stats div { padding: 14px 16px; border-radius: 16px; }

/* réglages facultatifs repliés */
details.more { border: 1.5px dashed var(--line-2); border-radius: 16px; background: #fbfdff; }
details.more summary { list-style: none; display: flex; align-items: center; gap: 10px; padding: 14px 16px; cursor: pointer; font-weight: 700; font-size: 14.5px; color: var(--ink-2); }
details.more summary::-webkit-details-marker, details.sub summary::-webkit-details-marker { display: none; }
details.more summary .ic:first-child { color: var(--ice); } details.more summary .chev { margin-left: auto; color: var(--muted); transition: transform .2s; }
details.more[open] summary .chev { transform: rotate(180deg); }
details.more .more-b { padding: 4px 16px 18px; display: grid; gap: 12px; }

/* rubriques d'équipements */
.subs { display: grid; gap: 10px; }
details.sub { border: 1.5px solid var(--line); border-radius: 16px; background: #fff; transition: border-color .15s, box-shadow .15s; }
details.sub[open] { border-color: var(--ice-200); box-shadow: 0 8px 24px rgba(14,165,233,.08); }
details.sub summary { list-style: none; display: flex; align-items: center; gap: 14px; padding: 14px 16px; cursor: pointer; }
.sub-ic { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 12px; background: var(--ice-50); color: var(--ice-600); }
.sub-t { display: grid; min-width: 0; } .sub-t b { font-size: 15.5px; } .sub-t small { color: var(--muted); font-size: 13px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sub-edit { margin-left: auto; font-size: 13px; font-weight: 700; color: var(--ice-600); white-space: nowrap; }
details.sub summary .chev { color: var(--muted); transition: transform .2s; } details.sub[open] summary .chev { transform: rotate(180deg); } details.sub[open] .sub-edit { display: none; }
.sub-b { padding: 2px 16px 18px; display: grid; gap: 14px; } .sub-intro { margin: 0; color: var(--muted); font-size: 14px; }

/* info-bulles */
.term { border-bottom: 1.5px dotted var(--ice); cursor: help; } .term:hover, .term:focus-visible { color: var(--ice-600); outline: none; }
.tip { display: none !important; }
.tip-btn { width: 30px; height: 30px; top: 8px; right: 8px; }
.tt { position: fixed; z-index: 90; max-width: 320px; padding: 12px 14px; border-radius: 14px; background: var(--ink); color: #fff; font-size: 13.5px; line-height: 1.5; box-shadow: 0 18px 44px rgba(15,23,42,.3); pointer-events: auto; animation: ttIn .14s ease; }
.tt a { color: #7dd3fc; font-weight: 700; }
.tt::after { content: ''; position: absolute; left: var(--ax, 50%); top: -6px; width: 12px; height: 12px; background: var(--ink); transform: translateX(-50%) rotate(45deg); border-radius: 2px; }
.tt.above::after { top: auto; bottom: -6px; }
@keyframes ttIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* étape finale */
.final { display: grid; gap: 16px; padding: 18px; border-radius: 20px; background: linear-gradient(180deg, var(--ice-50), #fff); border: 1px solid var(--ice-100); }
.final-tot { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.final-tot div { display: grid; padding: 12px 14px; border-radius: 14px; background: #fff; border: 1px solid var(--line); } .final-tot small { color: var(--muted); font-size: 12px; font-weight: 600; } .final-tot b { font-size: 22px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.final-tot div:first-child b { color: var(--ink); font-size: 26px; }
.final-cta { display: grid; grid-template-columns: 1.3fr 1fr; gap: 10px; }

/* barre mobile : retour · prix · continuer · appel */
.btn-round.ghost { background: #fff; color: var(--ink); border: 1.5px solid var(--line-2); }
.m-price { display: grid; line-height: 1.1; margin-right: auto; cursor: pointer; }

@media (max-width: 767px) {
  .col-view { gap: 10px; } .viewer { height: 36vh; min-height: 250px; border-radius: 18px; }
  .stepper { top: 56px; }
  .mbar { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 10px; }
  .mbar .btn { padding: 13px 20px; font-size: 15px; }
  .step-nav { display: none; }
  .wizard .step-b { padding-bottom: 24px; }
}
@media (max-width: 767px) {
  .config { padding: 8px 12px 110px; gap: 14px; }
  .col-steps.wizard { border-radius: 20px; }
  .stepper { padding: 12px 16px 10px; } .stepper ol { display: none; } .prog { margin-bottom: 2px; }
  .step-head { padding: 20px 18px 2px; gap: 12px; } .step-head .step-n { width: 30px; height: 30px; }
  .step-head h2 { font-size: 21px; } .step-intro { font-size: 14.5px; }
  .wizard .step-b { padding: 16px 16px 24px; gap: 16px; }
  .grid-act { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .act label { min-height: 100px; font-size: 13.5px; }
  .grid-3 { grid-template-columns: 1fr; gap: 10px; }
  .card-opt label { grid-template-columns: 40px 1fr auto; grid-template-areas: "ic t r" "ic s s"; align-items: center; column-gap: 12px; padding: 14px 16px; }
  .card-opt label .ic { grid-area: ic; margin: 0; } .card-opt label b { grid-area: t; } .card-opt .range { grid-area: r; text-align: right; } .card-opt small { grid-area: s; }
  .card-opt .badge { top: -8px; right: 12px; }
  .grid-war { grid-template-columns: 1fr; } .grid-war .card-opt label { grid-template-areas: "ic t r" "ic s s"; }
  .grid-opt { grid-template-columns: 1fr; gap: 10px; }
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; } .stats div { padding: 10px; } .stats b { font-size: 14.5px; }
  .final-tot { grid-template-columns: 1fr 1fr; } .final-tot div:first-child { grid-column: 1 / -1; } .final-tot b { font-size: 19px; white-space: nowrap; } .final-tot div:first-child b { font-size: 26px; } .final { padding: 14px; } .final-cta { grid-template-columns: 1fr; }
  .tt { left: 12px !important; right: 12px; bottom: calc(84px + env(safe-area-inset-bottom, 0px)); top: auto !important; max-width: none; padding: 16px 18px; font-size: 14.5px; border-radius: 18px; }
  .tt::after { display: none; }
  .v-mode button { padding: 7px 9px; font-size: 12px; } .v-cap { bottom: 58px; padding: 6px 10px; } .v-cap b { font-size: 13px; }
  .hero-3d { height: 32vh; max-height: 280px; border-radius: 20px; }
  .hero .display { font-size: 30px; } .lead { margin: 10px 0 16px; font-size: 15.5px; }
  .badges li { font-size: 12px; padding: 6px 10px; }
}
.step-head h2:focus, .step-head h2:focus-visible { outline: none; }

/* mobile et tablette : la 3D reste visible pendant qu'on choisit les options */
@media (max-width: 767px) {
  .col-view { position: sticky; top: 56px; z-index: 6; }
  .viewer { height: 32vh; min-height: 230px; max-height: 330px; box-shadow: 0 14px 30px -18px rgba(15,23,42,.45); transition: height .35s cubic-bezier(.2,.8,.2,1), min-height .35s cubic-bezier(.2,.8,.2,1); }
  .viewer.compact { height: 128px; min-height: 128px; }
  .viewer.compact .v-badge, .viewer.compact .dim, .viewer.compact .flow-legend, .viewer.compact .v-help { opacity: 0; pointer-events: none; }
  .viewer .v-badge, .viewer .dim { transition: opacity .25s; }
  .viewer.compact .v-temp { top: 8px; font-size: 15px; padding: 4px 9px; }
  .viewer.compact .v-tools { opacity: 0; pointer-events: none; } .viewer.flow .dim { opacity: 0 !important; } .viewer.compact .dim { opacity: 0 !important; }
  .v-tools { left: auto; right: 10px; bottom: auto; top: 54px; flex-direction: column; gap: 6px; transition: opacity .25s; }
  .v-tools button { width: 38px; height: 38px; padding: 0; justify-content: center; box-shadow: 0 4px 12px -6px rgba(15,23,42,.35); }
  .v-tools button span, #btn-rot, #btn-img { display: none; }
  .dim { font-size: 10.5px; padding: 2px 7px; }
  .v-temp { font-size: 16px; padding: 5px 10px; top: 10px; right: 10px; }
  .stepper { position: static; }
  .wizard .step, details.sub { scroll-margin-top: 200px; }
  .flow-legend { top: auto; right: auto; left: 8px; bottom: 8px; font-size: 10.5px; padding: 6px 9px; gap: 2px; }
  .v-badge { font-size: 11.5px; padding: 6px 10px; }
}

.flow-legend[hidden], .v-hint[hidden] { display: none; }
@media (min-width: 768px) { .viewer { height: min(62vh, 580px); } }
@media (min-width: 768px) {
  .v-tools { right: 12px; }
  .v-tools button { padding: 8px 11px; font-size: 12.5px; }
  #btn-img span, #btn-rot span { display: none; } #btn-img, #btn-rot { padding: 8px 9px; }
}

/* activité : 5 métiers principaux, le reste sur demande */
.grid-act:not(.open) .act.extra { display: none; }
.grid-act.open .act-more { display: none; }
.grid-act.open .act.extra { animation: stepIn .32s ease both; }
.act-more button { width: 100%; height: 100%; min-height: 112px; display: grid; justify-items: center; align-content: center; gap: 4px; padding: 14px 8px; border-radius: 16px; border: 1.5px dashed var(--ice-200); background: var(--ice-50); color: var(--ice-600); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; transition: border-color .2s, transform .2s; }
.act-more button:hover { border-color: var(--ice); transform: translateY(-1px); }
.act-more button small { font-size: 12px; font-weight: 600; color: var(--muted); }
.act-more button:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
@media (max-width: 767px) {
  .grid-act { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .act label, .act-more button { min-height: 92px; padding: 12px 6px; font-size: 12.5px; gap: 5px; border-radius: 14px; }
  .act label svg, .act-more button svg { width: 24px; height: 24px; }
  .act-more button small { font-size: 11px; }
}

/* ===== v4 : panneau de droite compact — tout voir sans défiler ===== */
/* barre d'étapes affinée */
@media (min-width: 768px) {
  .stepper { padding: 10px 18px 8px; }
  .stepper-top { display: none; }
  .stepper .prog { height: 3px; margin: 0 0 8px; }
  .stepper ol button { gap: 3px; padding: 2px 0; font-size: 11px; }
  .stepper ol button span { width: 22px; height: 22px; font-size: 11px; }
}
/* en-tête d'étape */
.step-head { padding: 16px 22px 0; gap: 12px; align-items: center; }
.step-head h2 { font-size: clamp(19px, 1.7vw, 22px); }
.step-head .step-n { width: 28px; height: 28px; border-radius: 9px; font-size: 13px; margin-top: 0; }
.step-intro { margin-top: 2px; font-size: 13.5px; line-height: 1.4; }
.wizard .step-b { padding: 12px 22px 4px; gap: 12px; }
.wizard .step-b h3 { margin: 2px 0 -4px; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.step-nav { padding: 12px 22px 16px; } .step-nav .btn { min-height: 44px; } .step-nav .btn-next { min-width: 200px; }

/* rubriques d'équipement */
.subs { display: grid; gap: 8px; }
details.sub { border-radius: 14px; }
details.sub summary { padding: 9px 12px; gap: 12px; }
.sub-ic { width: 34px; height: 34px; border-radius: 10px; } .sub-ic svg { width: 19px; height: 19px; }
.sub-t b { font-size: 14.5px; } .sub-t small { font-size: 12.5px; -webkit-line-clamp: 1; }
.sub-edit { font-size: 12.5px; }
.sub-b { padding: 0 12px 12px; gap: 10px; }
.sub-intro { display: none; }

/* cartes d'option compactes : icône, titre, prix — l'explication est dans ⓘ */
.grid-opt { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.opt label { min-height: 0; grid-template-columns: 30px 1fr; grid-template-rows: auto auto; gap: 1px 8px; padding: 8px 24px 8px 8px; border-radius: 12px; border-width: 1.5px; align-items: center; }
.opt-ic { width: 30px; height: 30px; border-radius: 9px; } .opt-ic svg { width: 17px; height: 17px; }
.opt-t b { font-size: 12.5px; line-height: 1.25; font-weight: 700; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.opt-t small { display: none; }
.opt-t .badge { font-size: 9.5px; padding: 1px 5px; vertical-align: 1px; }
.opt-p { font-size: 11.5px; line-height: 1.2; }
.opt .tip-btn { top: 5px; right: 4px; width: 20px; height: 20px; } .opt .tip-btn svg { width: 13px; height: 13px; }
.opt input[type=checkbox] + label::after { right: 6px; bottom: 7px; width: 14px; height: 14px; border-radius: 4px; background-size: 11px; }
/* photos réservées à l'étape « Installation » ; dans les rubriques, cartes simples */
.subs .opt-photo, .subs .opt-kind { display: none; }
.subs .opt.has-photo label { padding: 8px 24px 8px 8px; grid-template-rows: auto auto; }
.subs .opt.has-photo .opt-ic { grid-row: 1 / 3; }
.step:not([data-step="equipements"]) .opt.has-photo label { padding: 0 10px 10px; }
.opt-photo { aspect-ratio: 16 / 10; margin-bottom: 6px; }
/* blocs d'infos plus fins */
.specs { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-top: 0; }
.specs div { padding: 6px 9px; border-radius: 10px; } .specs span { font-size: 10.5px; } .specs b { font-size: 12.5px; }
.field-seg { margin: 0; } .field-seg > span { font-size: 13px; }
.reco { padding: 10px 12px; } .reco b { font-size: 13.5px; } .reco p { font-size: 12.5px; margin-top: 2px; }

@media (max-width: 767px) {
  .grid-opt { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
  .specs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step-head { padding: 14px 14px 0; } .wizard .step-b { padding: 10px 12px 18px; }
  .step-head h2 { font-size: 19px; } .step-intro { font-size: 13px; }
  .sub-b { padding: 0 10px 10px; }
}
@media (min-width: 768px) { details.sub, .wizard .step { scroll-margin-top: 150px; } }
@media (max-width: 767px) {
  .wizard .step, details.sub { scroll-margin-top: 196px; }
  .grid-opt { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .opt label { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 3px; padding: 8px 5px 7px; }
  .opt-ic { grid-row: auto; width: 28px; height: 28px; }
  .subs .opt.has-photo .opt-ic { grid-row: auto; }
  .subs .opt.has-photo label { padding: 8px 5px 7px; }
  .opt-t b { font-size: 11.5px; } .opt-p { grid-column: 1; justify-content: center; font-size: 10.5px; }
  .opt .tip-btn { top: 3px; right: 3px; width: 18px; height: 18px; }
  .opt input[type=checkbox] + label::after { left: 5px; right: auto; top: 5px; bottom: auto; width: 13px; height: 13px; }
}
@media (max-width: 767px) { .opt-t b { -webkit-line-clamp: 3; font-size: 11px; line-height: 1.22; } }

/* v4 : étapes Chantier, Garantie, Devis plus compactes */
@media (min-width: 768px) {
  .zone { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 14px; align-items: start; }
  .zone-map { padding: 6px; max-width: none; }
  .zone-map svg { max-height: 300px; }
  .zone-side .dep-chips { display: none; }
}
.zone-res { margin-top: 8px; padding: 9px 11px; font-size: 12.5px; }
.legend { margin-top: 8px; grid-template-columns: 1fr 1fr; gap: 3px 10px; font-size: 11.5px; }
.zone-side .field label { font-size: 13px; }
.card-opt.war label { padding: 10px 10px; gap: 3px; }
.card-opt.war label b { font-size: 13.5px; } .card-opt.war label small { font-size: 11.5px; line-height: 1.35; }
.grid-war { gap: 7px; }
.step[data-step="garantie"] .hint { font-size: 12px; margin: 0; }
.offer { margin: 0; padding: 10px 12px; } .offer b { font-size: 13.5px; } .offer p { font-size: 12.5px; }
.grid-chip label { padding: 7px 11px; font-size: 13px; }
/* devis : total et boutons d'abord, détail ensuite */
.final { gap: 12px; padding: 14px; }
.final > * { order: 3; } .final-tot { order: 0; } .final-cta { order: 1; } .final .lines { order: 2; }
.final .lines { font-size: 12.5px; } .final .lines td { padding: 4px 0; }
.war-why { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 12.5px; } .war-why .term { font-weight: 600; color: var(--ice-600); cursor: pointer; }
.step-nav { padding-bottom: 12px; }
/* v4.1 : badge posé sur le bord de la carte, titres jamais coupés */
.opt label { position: relative; }
.opt-t .badge { position: absolute; top: -8px; left: 8px; margin: 0; font-size: 9.5px; line-height: 1.5; padding: 0 6px; border-radius: 999px; z-index: 1; white-space: nowrap; }
.grid-opt { row-gap: 10px; padding-top: 4px; }
.opt-t b { -webkit-line-clamp: 3; }
@media (max-width: 767px) { .opt-t .badge { left: 50%; transform: translateX(-50%); top: -8px; } .opt-t b { -webkit-line-clamp: 4; } }
/* v4.1 : écrans d'ordinateur peu hauts (portables 13–14") */
@media (min-width: 768px) and (max-height: 720px) {
  .step-head { padding-top: 12px; } .step-intro { display: none; }
  .wizard .step-b { padding-top: 10px; gap: 10px; }
  .act label, .act-more button { min-height: 86px; padding: 10px 8px; }
  .reco p { display: none; }
  .step:not([data-step="equipements"]) .opt-photo { aspect-ratio: 16 / 7.5; }
  .zone-map svg { max-height: 230px; }
  .card-opt.war label small { font-size: 11px; }
  .offer p { display: none; }
  .sub-b { gap: 8px; } .specs div { padding: 4px 8px; }
  .step-nav { padding-top: 8px; padding-bottom: 10px; } .step-nav .btn { min-height: 40px; }
}
/* v4.1 mobile : tout voir sans défiler */
@media (max-width: 767px) {
  .viewer { height: clamp(190px, 26vh, 250px); min-height: 0; }
  .viewer.compact { height: 118px; min-height: 0; }
}
@media (max-width: 767px) {
  .step-intro { display: none; }
  .step-head { padding: 10px 12px 0; } .step-head h2 { font-size: 18px; } .step-head .step-n { width: 26px; height: 26px; }
  .wizard .step-b { padding: 8px 10px 14px; gap: 9px; }
  .reco { padding: 8px 10px; gap: 8px; } .reco b { font-size: 12.5px; } .reco p { font-size: 11.5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .reco-ic svg { width: 18px; height: 18px; }
  .act label, .act-more button { min-height: 80px; padding: 9px 4px; }
  /* température / taille : 3 cartes côte à côte */
  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .card-opt label { padding: 10px 6px; gap: 3px; text-align: center; justify-items: center; }
  .card-opt label b { font-size: 13px; } .card-opt label .range { font-size: 11px; } .card-opt label small { font-size: 10.5px; line-height: 1.3; }
  .card-opt label svg { width: 22px; height: 22px; }
  .card-opt .badge { font-size: 9px; padding: 0 5px; }
  .stats { gap: 6px; } .stats div { padding: 6px 8px; }
  details.more summary { padding: 9px 12px; font-size: 13px; }
  /* chantier : boutons de département au lieu de la carte */
  .zone-map { display: none; }
  .zone-side .dep-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; } .dep-chips button { padding: 5px 9px; font-size: 11.5px; }
  .legend { display: none; }
  .zone-res { margin-top: 6px; }
  /* garantie : 2 × 2 compact */
  .grid-war { grid-template-columns: 1fr 1fr; gap: 6px; }
  .grid-war .card-opt label { display: grid; grid-template-areas: none; text-align: left; justify-items: start; padding: 8px 9px; }
  .grid-war .card-opt label svg { display: none; } .grid-war .card-opt label small { font-size: 10.5px; -webkit-line-clamp: 2; display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
  .offer { padding: 8px 10px; gap: 8px; } .offer p { display: none; } .offer .ic, .offer svg { width: 20px; height: 20px; }
  .grid-chip { gap: 5px; } .grid-chip label { padding: 6px 9px; font-size: 12px; }
  /* électricité : infos sur une ligne */
  .specs { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; } .specs div { padding: 4px 5px; } .specs span { font-size: 9.5px; } .specs b { font-size: 11px; }
  .field-seg { gap: 6px; } .seg label { padding: 6px 8px; font-size: 11.5px; }
  /* devis : un seul bouton principal (l'appel est dans la barre du bas) */
  .final { padding: 10px; gap: 8px; } .final-cta .btn-ghost { display: none; } .final-cta .btn { min-height: 48px; }
  .final-tot b { font-size: 17px; } .final-tot div:first-child b { font-size: 22px; } .final-tot div { padding: 8px 10px; }
}
.elec-note { margin: 0; font-size: 11.5px; }
.field-seg { flex-wrap: nowrap; } .field-seg .seg { flex-wrap: nowrap; }
@media (max-width: 767px) {
  .elec-note { font-size: 10.5px; }
  .field-seg > span { font-size: 12px; }
}
@media (max-width: 767px) and (max-height: 720px) {
  .viewer.compact { height: 92px; }
  .viewer.compact .v-temp { top: 6px; padding: 3px 8px; font-size: 13px; }
  .stepper { padding: 8px 12px 6px; } .stepper-top { font-size: 12px; }
  .grid-opt { row-gap: 9px; } .opt label { padding-top: 7px; padding-bottom: 6px; }
}
@media (max-width: 767px) and (max-height: 720px) { .wizard .step, details.sub { scroll-margin-top: 160px; } }
@media (max-width: 767px) and (max-height: 720px) {
  .wizard .step, details.sub { scroll-margin-top: 150px; }
  .opt-ic { width: 24px; height: 24px; } .opt-ic svg { width: 15px; height: 15px; }
  .act label, .act-more button { min-height: 72px; padding: 7px 4px; gap: 3px; }
  .grid-war .card-opt label { padding: 6px 8px; gap: 1px; }
  .step[data-step="garantie"] .step-b { gap: 7px; }
  .offer { padding: 6px 9px; }
}
@media (max-width: 767px) and (max-height: 720px) { .wizard .step, details.sub { scroll-margin-top: 147px; } }

/* ===== v4.2 mobile : bloc de référence des cartes (remet à plat les anciennes dispositions) ===== */
@media (max-width: 767px) {
  /* température, taille : 3 cartes verticales */
  .grid-3 .card-opt label { grid-template-columns: 1fr; grid-template-areas: none; justify-items: center; align-content: start; text-align: center; padding: 14px 6px 10px; gap: 4px; column-gap: 0; }
  .grid-3 .card-opt label > * { grid-area: auto; }
  .grid-3 .card-opt label .ic { margin: 0; }
  .grid-3 .card-opt label b { font-size: 13px; line-height: 1.2; }
  .grid-3 .card-opt .range { text-align: center; font-size: 11px; line-height: 1.25; }
  .grid-3 .card-opt small { font-size: 10.5px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .grid-3 .card-opt .badge { right: auto; left: 50%; transform: translateX(-50%); top: -8px; white-space: nowrap; }
  .grid-3 { padding-top: 6px; }
  /* garantie : 2 × 2, texte aligné à gauche */
  .grid-war .card-opt label { grid-template-columns: 1fr; grid-template-areas: none; justify-items: start; text-align: left; column-gap: 0; }
  .grid-war .card-opt label > * { grid-area: auto; }
  .grid-war .card-opt .range { text-align: left; }
  .grid-war { padding-top: 6px; }
  /* installation : cartes photo propres (photo, titre complet, prix) */
  .step:not([data-step="equipements"]) .grid-opt { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
  .step:not([data-step="equipements"]) .opt.has-photo label { grid-template-columns: 1fr; grid-template-rows: auto; justify-items: stretch; align-content: start; text-align: left; padding: 0 0 8px; gap: 2px; overflow: hidden; }
  .step:not([data-step="equipements"]) .opt-photo { width: 100%; margin: 0 0 4px; aspect-ratio: 4 / 3; border-radius: 0; grid-column: 1; }
  .step:not([data-step="equipements"]) .opt.has-photo .opt-ic { display: none; }
  .step:not([data-step="equipements"]) .opt.has-photo .opt-t, .step:not([data-step="equipements"]) .opt.has-photo .opt-p { grid-column: 1; padding: 0 7px; justify-content: flex-start; }
  .step:not([data-step="equipements"]) .opt.has-photo .opt-t b { font-size: 11.5px; -webkit-line-clamp: 2; }
  .opt-kind { top: 5px; left: 5px; font-size: 8.5px; padding: 1px 6px; }
  .step:not([data-step="equipements"]) .opt.has-photo .tip-btn { top: 4px; right: 4px; }
}
@media (max-width: 767px) {
  .grid-chip { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; }
  .grid-chip label { display: grid; gap: 0; padding: 6px 9px; line-height: 1.25; }
  .grid-chip label small { margin-left: 0; font-size: 10.5px; }
  .stats div { padding: 6px 8px; gap: 1px; } .stats span { font-size: 10px; line-height: 1.2; } .stats b { font-size: 13px; line-height: 1.2; }
}

/* ===== v4.3 : robustesse toutes largeurs (320 → 1920) ===== */
.act label span, .opt-t b, .card-opt label b, .sub-t b, .grid-chip label, .act-more button span { overflow-wrap: anywhere; hyphens: auto; -webkit-hyphens: auto; }
.badge, .opt-t .badge, .card-opt .badge, .grid-3 .card-opt .badge { font-size: 10px; }
.opt-kind { font-size: 10px; }
.specs span { font-size: 10px; }
.opt .tip-btn::before { content: ''; position: absolute; inset: -9px; }
@media (max-width: 767px) {
  .opt .tip-btn { width: 24px; height: 24px; top: 2px; right: 2px; }
  .sub-t small { -webkit-line-clamp: 2; }
  .grid-war .card-opt label small { -webkit-line-clamp: 3; }
  .reco p { -webkit-line-clamp: 3; }
}
@media (max-width: 360px) {
  .act label span { font-size: 11.5px; }
  .act label, .act-more button { padding-left: 3px; padding-right: 3px; }
  .grid-3 .card-opt label b { font-size: 12px; }
  .opt-t b, .step:not([data-step="equipements"]) .opt.has-photo .opt-t b { font-size: 10.5px; }
  .grid-opt { gap: 5px; }
  .specs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 360px) { .sub-t small { -webkit-line-clamp: unset; display: block; } .reco p { display: none; } }
@media (max-width: 767px) { .reco-note { display: none; } .reco p { -webkit-line-clamp: unset; display: block; } }
@media (max-width: 360px) { .reco p { display: none; } }
/* pages : tableaux en fiches sur mobile, jamais plus larges que l'écran */
.page section, .page article, main section { min-width: 0; }
@media (max-width: 767px) {
  .t { display: block; overflow: visible; font-size: 13.5px; }
  .t thead { display: none; }
  .t tbody { display: grid; gap: 8px; }
  .t tr { display: grid; gap: 3px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
  .t td { display: flex; justify-content: space-between; gap: 12px; padding: 2px 0; border: 0; white-space: normal !important; text-align: right; }
  .t td::before { content: attr(data-label); font-weight: 600; color: var(--muted); font-size: 12px; text-align: left; flex: none; max-width: 45%; }
  .t td:first-child { font-weight: 700; color: var(--ink); }
  .bc a { padding: 6px 0; }
}
/* FAQ : chevron maison au lieu du triangle natif */
.faq summary, .faq-in summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker, .faq-in summary::-webkit-details-marker { display: none; }
.faq summary::after, .faq-in summary::after { content: ''; flex: none; width: 9px; height: 9px; border-right: 2px solid var(--ice-600); border-bottom: 2px solid var(--ice-600); transform: rotate(45deg) translate(-2px, -2px); transition: transform .2s; }
.faq details[open] summary::after, .faq-in details[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
@media (max-width: 767px) { .faq { padding: 16px 14px 32px; } .faq summary { font-size: 14.5px; } }
.logo small { white-space: nowrap; }
@media (max-width: 767px) { .t td:first-child { flex-wrap: wrap; } .t td .badge { white-space: nowrap; align-self: center; } }
@media (max-width: 360px) { .logo b { font-size: 17px; } .logo small { font-size: 8.5px; letter-spacing: .06em; } .btn-call span { font-size: 13.5px; } }
@media (max-width: 767px) and (max-height: 720px) {
  .step[data-step="garantie"] .grid-chip label { padding: 4px 8px; }
  .step[data-step="garantie"] .step-b h3 { font-size: 11.5px; margin: 0 0 -3px; }
  .step[data-step="garantie"] .war-why { font-size: 11.5px; }
  .stepper { padding: 6px 12px 5px; } .stepper .prog { margin-bottom: 0; }
}
#lead h2 { padding-right: 44px; text-wrap: balance; }
@media (max-width: 767px) { #lead h2 { font-size: 20px; line-height: 1.2; } }
.modal .sum b { white-space: nowrap; }
.opt .tip-btn::before { inset: -10px; border-radius: 50%; }

/* ===== mode intégré (iframe sur l'accueil smartchr.fr) ===== */
html.embed header.top, html.embed .hero, html.embed .faq, html.embed .foot, html.embed .skip, html.embed .related { display: none !important; }
html.embed body { background: transparent; }
html.embed .config { padding-top: 10px; }
html.embed .col-view { top: 10px; }
html.embed .stepper { top: 0; }
@media (min-width: 768px) { html.embed details.sub, html.embed .wizard .step { scroll-margin-top: 86px; } }
@media (max-width: 767px) {
  html.embed .col-view { top: 0; }
  html.embed .config { padding-top: 6px; }
  html.embed .wizard .step, html.embed details.sub { scroll-margin-top: 140px; }
}
@media (max-width: 767px) and (max-height: 720px) { html.embed .wizard .step, html.embed details.sub { scroll-margin-top: 91px; } }
.final-tot b { white-space: nowrap; } @media (min-width: 768px) { .final-tot b { font-size: clamp(17px, 1.5vw, 22px); } }

/* ===== v5 ordinateur : configurateur à la hauteur de l'écran, colonnes alignées, 3D jamais coupée ===== */
@media (min-width: 768px) {
  .config { height: calc(100svh - 76px); min-height: 600px; max-height: 1000px; grid-template-rows: minmax(0, 1fr); align-items: stretch; padding-top: 12px; padding-bottom: 14px; box-sizing: border-box; }
  html.embed .config { height: 100svh; max-height: none; padding-top: 10px; padding-bottom: 10px; }
  .col-view { position: relative; top: auto; height: 100%; min-height: 0; display: flex; flex-direction: column; gap: 10px; }
  html.embed .col-view { top: auto; }
  .viewer { flex: 1 1 auto; height: auto !important; min-height: 280px; }
  .recap { flex: none; border-radius: 18px; }
  .col-steps.wizard { height: 100%; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
  .stepper, html.embed .stepper { top: 0; }
  details.sub, .wizard .step, html.embed details.sub, html.embed .wizard .step { scroll-margin-top: 78px; }
  /* bloc prix affiné */
  .recap-head { padding: 10px 16px; gap: 12px; }
  .recap-head small { font-size: 11px; } .recap-head b { font-size: 22px; } .recap-head .r-ttc b { font-size: 15px; }
  .recap-cta { grid-template-columns: 1.35fr 1fr; gap: 8px; padding: 0 16px 10px; }
  .recap-cta .btn { min-height: 40px; padding: 8px 14px; font-size: 13.5px; border-radius: 12px; gap: 6px; }
  .recap-cta .btn svg { width: 16px; height: 16px; }
  .trust { padding: 0 16px 11px; font-size: 11.5px; gap: 4px 12px; } .trust svg { width: 14px; height: 14px; }
  .recap-body.open { max-height: 34vh; overflow-y: auto; }
}
@media (min-width: 768px) { .col-steps.wizard { align-content: start; } }
/* mobile : options avec photo dans les rubriques = tuiles normales (le prix ne part pas dans une 2e colonne) */
@media (max-width: 767px) {
  .subs .opt.has-photo label { grid-template-columns: 1fr; grid-template-rows: auto; }
  .subs .opt.has-photo .opt-t, .subs .opt.has-photo .opt-p, .subs .opt.has-photo .opt-ic { grid-column: 1; grid-row: auto; }
  .specs { grid-template-columns: 1fr 1fr; gap: 5px; }
  .specs div { display: flex; flex-direction: column; justify-content: center; padding: 5px 8px; min-height: 0; }
  .specs span { font-size: 10px; line-height: 1.2; } .specs b { font-size: 12px; line-height: 1.25; }
}

/* =====================================================================
   v6 — mobile-first (skills responsive-design + mobile-responsiveness)
   < 768 px : scène 3D plein cadre + panneau coulissant (bottom sheet)
   ≥ 768 px : deux colonnes ; composants pilotés par container queries
   ===================================================================== */
.sheet-grab { display: none; }
.v-toast { position: absolute; left: 50%; top: 14px; z-index: 5; max-width: calc(100% - 140px); padding: 7px 13px; border-radius: 999px; background: rgba(15,23,42,.88); color: #fff; font-size: 13px; font-weight: 700; line-height: 1.25; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: none; opacity: 0; transform: translate(-50%, -6px); transition: opacity .2s, transform .25s; backdrop-filter: blur(6px); }
.v-toast.show { opacity: 1; transform: translate(-50%, 0); }
.v-toast.off { background: rgba(71,85,105,.9); }

@media (max-width: 767px) {
  .config { position: relative; display: block; height: calc(100svh - 56px); min-height: 460px; max-width: none; margin: 0; padding: 0 !important; gap: 0; overflow: hidden; }
  html.embed .config { height: 100svh; }
  .col-view, html.embed .col-view { position: absolute; inset: 0; top: 0; display: block; z-index: 1; }
  .viewer, .viewer.compact { position: absolute; inset: 0; height: auto !important; min-height: 0 !important; max-height: none; border: 0; border-radius: 0; box-shadow: none; }
  .recap { display: none !important; }
  .col-steps.wizard { position: absolute; left: 0; right: 0; bottom: var(--bar-h, 64px); height: 52%; z-index: 4; border: 0; border-radius: 22px 22px 0 0; background: var(--card); box-shadow: 0 -12px 32px -10px rgba(15,23,42,.28); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; transition: height .32s cubic-bezier(.2,.8,.2,1); }
  .col-steps.wizard::-webkit-scrollbar { display: none; }
  .col-steps.wizard.dragging { transition: none; }
  .stepper, html.embed .stepper { position: sticky; top: 0; z-index: 3; padding: 0 14px 7px; border-radius: 22px 22px 0 0; touch-action: none; cursor: grab; }
  .sheet-grab { display: flex; align-items: center; justify-content: center; width: 100%; height: 24px; margin: 0; padding: 0; border: 0; background: transparent; cursor: grab; touch-action: none; }
  .sheet-grab span { width: 40px; height: 5px; border-radius: 99px; background: #cbd5e1; transition: background .2s, width .2s; }
  .sheet-grab:hover span, .sheet-grab:focus-visible span { background: var(--ice); width: 52px; }
  .sheet-grab:focus-visible { outline: none; }
  .stepper-top { font-size: 12px; } .stepper .prog { margin-top: 5px; }
  .mbar { position: absolute; left: 0; right: 0; bottom: 0; z-index: 6; padding-bottom: max(10px, env(safe-area-inset-bottom)); }
  .wizard .step, details.sub, html.embed .wizard .step, html.embed details.sub { scroll-margin-top: 66px; }
  .wizard .step-b { padding-bottom: 14px; }
  .v-badge { top: 10px; left: 10px; } .v-temp { top: 10px; right: 10px; }
  .v-tools { top: 54px; right: 10px; }
  .v-toast { top: 50px; max-width: calc(100% - 120px); font-size: 12.5px; }
  .flow-legend { top: 50px; left: 10px; right: auto; bottom: auto; }
  .viewer.tight .v-tools, .viewer.tight .dim, .viewer.tight .flow-legend, .viewer.tight .v-badge { opacity: 0 !important; pointer-events: none; }
  .viewer.tight .v-toast { top: 8px; }
  .viewer.tight .v-temp { top: 6px; padding: 3px 8px; font-size: 13px; }
}

@media (min-width: 768px) {
  .col-steps.wizard { container: wiz / inline-size; }
  .viewer { container: stage / inline-size; }
  .col-view { container: side / inline-size; }
}
/* colonne d'étapes étroite (tablette portrait) */
@container wiz (max-width: 560px) {
  .stepper .stepper-top { display: flex; }
  .stepper ol button { font-size: 0; gap: 0; } .stepper ol button span { font-size: 11px; }
  .grid-opt, .step:not([data-step="equipements"]) .grid-opt { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .opt label, .subs .opt.has-photo label { grid-template-columns: 1fr; grid-template-rows: auto; justify-items: center; text-align: center; gap: 3px; padding: 9px 5px 8px; }
  .opt-ic, .subs .opt.has-photo .opt-ic { grid-row: auto; grid-column: 1; }
  .opt-t, .opt-p, .subs .opt.has-photo .opt-t, .subs .opt.has-photo .opt-p { grid-column: 1; justify-content: center; }
  .opt-t b { font-size: 11.5px; -webkit-line-clamp: 4; }
  .opt-t .badge { left: 50%; transform: translateX(-50%); }
  .opt input[type=checkbox] + label::after { left: 5px; right: auto; top: 5px; bottom: auto; }
  .step:not([data-step="equipements"]) .opt.has-photo label { padding: 0 0 8px; justify-items: stretch; text-align: left; }
  .step:not([data-step="equipements"]) .opt.has-photo .opt-ic { display: none; }
  .step:not([data-step="equipements"]) .opt.has-photo .opt-t, .step:not([data-step="equipements"]) .opt.has-photo .opt-p { padding: 0 7px; justify-content: flex-start; }
  .step:not([data-step="equipements"]) .opt-photo { width: 100%; margin: 0 0 4px; }
  .grid-war { grid-template-columns: 1fr 1fr; }
  .final-tot { grid-template-columns: 1fr 1fr; } .final-tot div:first-child { grid-column: 1 / -1; }
  .specs { grid-template-columns: 1fr 1fr; }
  .zone { grid-template-columns: 1fr; } .zone-map svg { max-height: 220px; }
}
/* scène 3D étroite : outils en icônes */
@container stage (max-width: 540px) {
  .v-tools button span { display: none; }
  .v-tools button { width: 38px; height: 38px; padding: 0; justify-content: center; }
  .v-help { display: none; }
}
@container side (max-width: 460px) {
  .recap-cta { grid-template-columns: 1fr; }
  .trust { gap: 3px 10px; }
}
.hero .price-tag { display: inline-block; margin: 10px 0 0; padding: 6px 16px; border-radius: 999px; background: var(--ink); color: #fbbf24; font-weight: 800; font-size: 15px; letter-spacing: .06em; text-transform: uppercase; }
@media (max-width: 767px) { .hero .price-tag { font-size: 13px; padding: 5px 13px; } }
@media (max-width: 767px) {
  .stepper, html.embed .stepper { display: block; }
  .stepper .stepper-top { margin: 0; } .stepper .prog { margin: 6px 0 0; }
}
/* tablette : activités et cartes sur 3 colonnes dans une colonne étroite */
@container wiz (max-width: 560px) {
  .grid-act { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
  .act label, .act-more button { min-height: 92px; padding: 10px 5px; font-size: 12.5px; }
  .step-intro { display: none; }
  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .grid-3 .card-opt label { padding: 12px 6px 10px; justify-items: center; text-align: center; }
  .reco p { font-size: 12px; }
}
/* tablette (768–1023) : colonne du parcours un peu plus large */
@media (min-width: 768px) and (max-width: 1023px) { .config { grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr); gap: 14px; padding-left: 14px; padding-right: 14px; } }
.col-steps.wizard > *, .step, .step-b, .final, .final > * { min-width: 0; }
@container wiz (max-width: 560px) {
  .step:not([data-step="equipements"]) .opt.has-photo label { grid-template-columns: 1fr; grid-template-rows: auto; overflow: hidden; }
  .step:not([data-step="equipements"]) .opt-photo { width: 100%; max-width: 100%; margin: 0 0 4px; aspect-ratio: 4 / 3; border-radius: 0; grid-column: 1; }
  .step:not([data-step="equipements"]) .opt.has-photo .opt-t b { font-size: 12px; -webkit-line-clamp: 3; }
  .opt-kind { top: 5px; left: 5px; font-size: 10px; padding: 1px 6px; }
  .sub-t small { -webkit-line-clamp: 2; }
  .step-nav { gap: 8px; } .step-nav .btn-next { min-width: 0; flex: 1; } .step-nav .btn { padding-left: 14px; padding-right: 14px; }
  .final-cta { grid-template-columns: 1fr; } .incl { grid-template-columns: 1fr; }
  .final .lines td:first-child { word-break: normal; overflow-wrap: anywhere; }
}
@container wiz (max-width: 560px) {
  .step:not([data-step="equipements"]) .opt.has-photo .opt-t, .step:not([data-step="equipements"]) .opt.has-photo .opt-p, .step:not([data-step="equipements"]) .opt.has-photo .opt-photo { grid-column: 1 / -1; }
}
@container stage (max-width: 520px) { .v-badge span { display: none; } .v-badge { padding: 7px; } }
@media (max-width: 767px) {
  .step:not([data-step="equipements"]) .opt.has-photo .opt-t, .step:not([data-step="equipements"]) .opt.has-photo .opt-p, .step:not([data-step="equipements"]) .opt.has-photo .opt-photo { grid-column: 1 / -1; }
  .zone-side .field > label { display: block; padding: 6px 0; }
}

/* logo identique au site smartchr.fr (Inter 900, « CHR » rouge, mention grise) */
.logo { display: block; color: #0f172a; font-weight: 900; line-height: 1.05; text-decoration: none; }
.logo b { font-size: 26px; font-weight: 900; letter-spacing: normal; color: #0f172a; }
.logo span { color: #dc2626; }
.logo small { display: block; font-size: 10px; font-weight: 500; color: #64748b; letter-spacing: 1px; text-transform: uppercase; white-space: nowrap; }
@media (max-width: 767px) { .logo b { font-size: 22px; } .logo small { font-size: 8px; letter-spacing: 0; } }

/* titre commercial sur la scène 3D (toutes tailles, y compris intégré à l'accueil) */
.v-badge, .v-help { display: none !important; }
.v-title { position: absolute; left: 14px; top: 12px; z-index: 3; max-width: min(62%, 440px); display: grid; justify-items: start; gap: 6px; pointer-events: none; }
.v-title-t { margin: 0; font-size: clamp(15px, 1.5vw, 20px); font-weight: 800; line-height: 1.2; letter-spacing: -.01em; color: var(--ink); text-wrap: balance; text-shadow: 0 1px 0 rgba(255,255,255,.8); }
.v-title-tag { display: inline-block; padding: 3px 10px; border-radius: 999px; background: #0f172a; color: #fbbf24; font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.v-toast { top: auto; bottom: 62px; }
.flow-legend { top: auto; bottom: 62px; right: 12px; }
@media (max-width: 767px) {
  .v-title { left: 10px; top: 10px; max-width: calc(100% - 96px); gap: 4px; }
  .v-title-t { font-size: 14px; }
  .v-title-tag { font-size: 10px; padding: 2px 8px; }
  .v-toast { top: auto; bottom: calc(var(--sheet-cover, 0px) + 12px); }
  .flow-legend { top: auto; bottom: calc(var(--sheet-cover, 0px) + 10px); left: 10px; }
  .viewer.tight .v-title-t { font-size: 12.5px; } .viewer.tight .v-title-tag { display: none; }
}
@container stage (max-width: 520px) { .v-title { max-width: calc(100% - 100px); } .v-title-t { font-size: 14.5px; } }
.opt-t .badge { z-index: 2; }
@media (max-width: 767px) { .grid-opt { row-gap: 12px; } }
.subs .opt.has-photo label { overflow: visible; }

/* ===== v7 — accueil : configurateur dans la bannière (22/10/2026) ===== */
/* titre déjà affiché par la page d'accueil (?notitle=1) : la 3D récupère la place */
html.notitle .v-title { display: none !important; }
/* ordinateur intégré : en bout de liste, la molette passe à la page (pas de défilement piégé) */
@media (min-width: 768px) { html.embed .col-steps.wizard { overscroll-behavior: auto; } }
/* mobile : marges et hauteurs resserrées (cibles tactiles ≥ 44 px conservées) */
@media (max-width: 767px) {
  .col-steps.wizard { align-content: start; } /* panneau plus haut que l'étape (ouverture directe ?step=) : pas de bande vide sous la barre d'étapes */
  .sheet-grab { height: 18px; }
  .stepper, html.embed .stepper { padding: 0 14px 6px; }
  .stepper .prog { margin: 4px 0 0; }
  .step-head { padding: 10px 14px 0; gap: 10px; }
  .step-head h2 { font-size: 18px; }
  .step-head .step-n { width: 26px; height: 26px; border-radius: 8px; font-size: 12.5px; }
  .wizard .step-b { padding: 8px 12px 12px; gap: 10px; }
  .act label, .act-more button { min-height: 78px; padding: 8px 4px; gap: 4px; }
  .act label svg, .act-more button svg { width: 22px; height: 22px; }
  .reco { padding: 8px 11px; gap: 9px; } .reco b { font-size: 13px; } .reco p { font-size: 12px; }
  .mbar { padding-top: 7px; padding-bottom: max(7px, env(safe-area-inset-bottom)); gap: 8px; }
  .mbar .btn { min-height: 44px; padding: 10px 18px; }
  .mbar .btn-round { width: 44px; height: 44px; }
  .mbar b { font-size: 19px; }
}
