/* INFILTRO — pages détaillées des prestations (complète style.css) */

.sp-hero { padding: calc(var(--header-h) + clamp(2rem, 1.5rem + 2vw, 3.5rem)) 0 clamp(3.5rem, 2.5rem + 4vw, 6rem); background: radial-gradient(800px 420px at 90% 0%, rgba(92, 203, 255, 0.14), transparent 60%), #fff; }
.sp-hero__grid { display: grid; gap: clamp(2rem, 1.5rem + 2vw, 3.5rem); align-items: center; }
@media (min-width: 900px) { .sp-hero__grid { grid-template-columns: 1.05fr 1fr; } }
.sp-kicker { display: inline-flex; align-items: center; gap: 0.5rem; margin: 0 0 1rem; font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue-600); }
.sp-kicker svg { width: 18px; height: 18px; }
.sp-hero h1 { font-size: clamp(2.4rem, 1.6rem + 3.4vw, 4.2rem); margin-bottom: 1rem; }
.sp-hero__lead { font-size: var(--fs-lg); color: var(--muted); max-width: 34rem; margin: 0 0 1.75rem; }
.sp-facts { list-style: none; padding: 0; margin: 0 0 2rem; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.sp-facts li { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.5rem 0.9rem; border-radius: 999px; background: var(--ice); border: 1px solid var(--line); font-size: 0.875rem; font-weight: 600; color: var(--navy); }
.sp-facts svg { width: 18px; height: 18px; color: var(--blue); flex: none; }
.sp-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.sp-hero__media { position: relative; }
.sp-hero__media img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.sp-hero__badge { position: absolute; left: -0.75rem; bottom: 1.5rem; display: inline-flex; align-items: center; gap: 0.6rem; padding: 0.8rem 1.1rem; border-radius: 16px; background: #fff; box-shadow: var(--shadow); font-size: 0.875rem; font-weight: 700; color: var(--navy); }
.sp-hero__badge svg { width: 22px; height: 22px; color: var(--blue); }

/* ---------- Explorateur (illustration interactive) ---------- */
.sp-explorer { display: grid; gap: clamp(1.5rem, 1rem + 2vw, 3rem); align-items: center; }
@media (min-width: 960px) { .sp-explorer { grid-template-columns: 1.25fr 1fr; } }
.sp-explorer__art { border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); padding: clamp(0.75rem, 0.5rem + 1vw, 1.5rem); }
.sp-explorer__art svg { display: block; width: 100%; height: auto; }
.sp-parts { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.sp-part { width: 100%; display: grid; grid-template-columns: 44px 1fr; gap: 0.9rem; align-items: start; padding: 1rem 1.1rem; border-radius: 18px; border: 1px solid var(--line); background: #fff; text-align: left; font: inherit; color: inherit; cursor: pointer; transition: border-color 0.3s, box-shadow 0.4s var(--ease); }
.sp-part:hover { border-color: var(--blue-300); }
.sp-part[aria-pressed="true"] { border-color: var(--blue); box-shadow: var(--shadow); }
.sp-part__num { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--ice); color: var(--blue); font-weight: 800; font-size: 1rem; transition: background-color 0.3s, color 0.3s; }
.sp-part[aria-pressed="true"] .sp-part__num { background: var(--blue); color: #fff; }
.sp-part b { display: block; color: var(--navy); font-size: 1.0625rem; margin-top: 0.15rem; }
.sp-part__more { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.45s var(--ease); }
.sp-part__more > span { overflow: hidden; }
.sp-part__more p { margin: 0.4rem 0 0; color: var(--muted); font-size: var(--fs-sm); line-height: 1.55; }
.sp-part__more p strong { color: var(--navy); font-weight: 600; }
.sp-part[aria-pressed="true"] .sp-part__more { grid-template-rows: 1fr; }

/* Illustration : maison en coupe */
.house-art .ground { stroke: #cfdbe6; stroke-width: 3; stroke-linecap: round; }
.house-art .roof { fill: #eef5fb; stroke: var(--navy-700); stroke-width: 3; stroke-linejoin: round; }
.house-art .shell { fill: #fff; stroke: var(--navy-700); stroke-width: 3; }
.house-art .slab { stroke: var(--navy-700); stroke-width: 3; }
.house-art .wall-in { stroke: #9fb2c4; stroke-width: 3; stroke-linecap: round; }
.house-art .door { fill: #f3f7fb; stroke: #9fb2c4; stroke-width: 2; }
.house-art .win { fill: #dff1fc; stroke: #9fb2c4; stroke-width: 2; }
.house-art .label { font: 600 11px var(--font); fill: #7a8a9a; letter-spacing: 0.02em; }
.house-art .part-shape { fill: #fff; stroke: var(--blue); stroke-width: 2.5; }
.house-art .part-fill { fill: var(--blue); }
.house-art .duct { fill: none; stroke: #b7c7d6; stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; }
.house-art .flow { fill: none; stroke-width: 3; stroke-linecap: round; stroke-dasharray: 2 9; animation: sp-flow 1.4s linear infinite; }
.house-art .flow--in { stroke: #3fb6f0; }
.house-art .flow--out { stroke: var(--blue-600); }
@keyframes sp-flow { to { stroke-dashoffset: -22; } }
.house-art .pin circle { fill: var(--navy); stroke: #fff; stroke-width: 3; }
.house-art .pin text { font: 700 12px var(--font); fill: #fff; text-anchor: middle; dominant-baseline: central; }
/* Test d'étanchéité : porte soufflante et fuites */
.house-art .fabric { fill: #e5484d; }
.house-art .fan { fill: #1d2a38; stroke: #cfd6dd; stroke-width: 2; }
.house-art .pipe { fill: none; stroke: #9fb2c4; stroke-width: 8; stroke-linecap: round; }
.house-art .leak { fill: #3fb6f0; }

/* Thermographie : façade en vue normale / vue caméra */
.thermo-art .n-roof { fill: #c9d3dc; stroke: var(--navy-700); stroke-width: 3; stroke-linejoin: round; }
.thermo-art .n-wall { fill: #f6f2ea; stroke: var(--navy-700); stroke-width: 3; }
.thermo-art .n-win { fill: #dff1fc; stroke: var(--navy-700); stroke-width: 2.5; }
.thermo-art .n-door { fill: #b7c7d6; stroke: var(--navy-700); stroke-width: 2.5; }
.thermo-art .t-bg { fill: #14123f; }
.thermo-art .t-roof { fill: #2a2470; }
.thermo-art .t-wall { fill: #2f3a9c; }
.thermo-art .t-win { fill: #4a3aa8; stroke: #f97316; stroke-width: 7; }
.thermo-art .t-door { fill: #3d3fae; stroke: #fbbf24; stroke-width: 6; }
.thermo-art .t-hot { fill: #f97316; }
.thermo-art .t-warm { fill: #fbbf24; }
.thermo-art .ground { stroke: #cfdbe6; stroke-width: 3; stroke-linecap: round; }
.thermo-art .cmp-line { stroke: #fff; stroke-width: 3; }
.thermo-art .cmp-knob { fill: #fff; stroke: var(--blue); stroke-width: 3; }
.thermo-art .cmp-arrows { fill: none; stroke: var(--blue); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.thermo-art .pin circle { fill: var(--navy); stroke: #fff; stroke-width: 3; }
.thermo-art .pin text { font: 700 12px var(--font); fill: #fff; text-anchor: middle; dominant-baseline: central; }
.sp-compare { display: flex; align-items: center; gap: 0.75rem; margin-top: 0.9rem; padding-inline: 0.25rem; font-size: 0.8125rem; font-weight: 600; color: var(--navy); }
.sp-compare input { flex: 1; min-width: 0; accent-color: var(--blue); cursor: ew-resize; }

/* DPE : étiquette énergie */
.dpe-art .bar { stroke: transparent; stroke-width: 3; stroke-linejoin: round; transition: stroke 0.3s; }
.dpe-art [data-part].is-active .bar { stroke: var(--navy); }
.dpe-art .letter { font: 800 22px var(--font); fill: #fff; dominant-baseline: central; }
.dpe-art .val { font: 600 12px var(--font); fill: #fff; dominant-baseline: central; text-anchor: end; }
.dpe-art .dark { fill: var(--navy); }
.dpe-art .axis { font: 600 11px var(--font); fill: #7a8a9a; }
.dpe-art .tag rect { fill: #fff; stroke: #cfdbe6; stroke-width: 1.5; }
.dpe-art .tag text { font: 700 11px var(--font); fill: var(--navy); text-anchor: middle; dominant-baseline: central; }
.dpe-art [data-part].is-active .tag rect { stroke: var(--navy); }

/* Attestations : le dossier de fin de chantier */
.doc-art .sheet-back { fill: #e3eef8; }
.doc-art .sheet { fill: #fff; stroke: #cfdbe6; stroke-width: 2; }
.doc-art .doc-title { font: 800 15px var(--font); fill: var(--navy); letter-spacing: 0.06em; }
.doc-art .doc-rule { stroke: var(--line); stroke-width: 2; }
.doc-art .row-title { font: 700 14px var(--font); fill: var(--navy); }
.doc-art .row-sub { font: 500 12px var(--font); fill: #7a8a9a; }
.doc-art .box { fill: #fff; stroke: var(--blue); stroke-width: 2.5; transition: fill 0.3s; }
.doc-art .tick { fill: none; stroke: var(--blue); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.doc-art [data-part].is-active .box { fill: var(--blue); }
.doc-art [data-part].is-active .tick { stroke: #fff; }
.doc-art .stamp circle { fill: none; stroke: var(--blue); stroke-width: 3; }
.doc-art .stamp text { font: 800 12px var(--font); fill: var(--blue); letter-spacing: 0.1em; text-anchor: middle; dominant-baseline: central; }
.doc-art .sign { fill: none; stroke: var(--navy-700); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }

/* Mise en avant de l'élément choisi (commun à toutes les illustrations) */
[data-explorer-art] [data-part] { cursor: pointer; transition: opacity 0.35s; }
[data-explorer-art] .halo { fill: none; stroke: var(--cyan); stroke-width: 3; opacity: 0; }
[data-explorer-art].has-active [data-part]:not(.is-active) { opacity: 0.35; }
[data-explorer-art] [data-part].is-active .halo { opacity: 1; animation: sp-halo 1.6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
[data-explorer-art] [data-part].is-active .pin circle { fill: var(--blue); }
@keyframes sp-halo { 0%, 100% { transform: scale(1); opacity: 0.9; } 50% { transform: scale(1.25); opacity: 0.25; } }

/* ---------- Déroulé en cartes ---------- */
.sp-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; counter-reset: sp; }
@media (min-width: 640px) { .sp-steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .sp-steps { grid-template-columns: repeat(4, 1fr); } }
.sp-step { position: relative; padding: 1.6rem 1.5rem 1.7rem; border-radius: 24px; background: #fff; border: 1px solid var(--line); }
.sp-step::before { counter-increment: sp; content: "0" counter(sp); position: absolute; top: 1.3rem; right: 1.4rem; font-size: 2rem; font-weight: 800; letter-spacing: -0.04em; line-height: 1; color: #d6e6f3; }
.sp-step__ico { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 1.1rem; border-radius: 16px; background: var(--ice); color: var(--blue); }
.sp-step__ico svg { width: 26px; height: 26px; }
.sp-step h3 { font-size: 1.125rem; margin: 0 0 0.35rem; }
.sp-step p { margin: 0; color: var(--muted); font-size: var(--fs-sm); line-height: 1.55; }

/* ---------- Chiffres réglementaires ---------- */
.sp-figures { display: grid; gap: 1rem; }
@media (min-width: 900px) { .sp-figures { grid-template-columns: repeat(3, 1fr); } }
.sp-figure { padding: 1.75rem; border-radius: var(--radius-lg); background: var(--ice); border: 1px solid var(--line); }
.sp-figure__big { display: block; font-size: clamp(2.4rem, 1.8rem + 2.4vw, 3.5rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1; color: var(--blue); }
.sp-figure h3 { margin: 1rem 0 0.3rem; font-size: 1.0625rem; }
.sp-figure p { margin: 0; color: var(--muted); font-size: var(--fs-sm); line-height: 1.55; }

/* ---------- Bandeau final ---------- */
.sp-cta { padding: clamp(2rem, 1.5rem + 2vw, 3.25rem); border-radius: var(--radius-lg); background: var(--navy); color: #fff; display: grid; gap: 1.5rem; align-items: center; }
@media (min-width: 860px) { .sp-cta { grid-template-columns: 1fr auto; } }
.sp-cta h2 { color: #fff; font-size: clamp(1.6rem, 1.3rem + 1.4vw, 2.3rem); margin: 0 0 0.4rem; }
.sp-cta p { margin: 0; color: rgba(255, 255, 255, 0.75); }
.sp-cta .sp-actions { justify-content: flex-start; }

.sp-others { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.25rem; }
.sp-others a { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.55rem 1rem; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--navy); font-size: 0.9375rem; font-weight: 600; text-decoration: none; transition: border-color 0.3s, color 0.3s; }
.sp-others a:hover { border-color: var(--blue); color: var(--blue); }
.sp-others svg { width: 18px; height: 18px; color: var(--blue); }

/* ---------- Mobile ---------- */
@media (max-width: 699px) {
  .sp-hero { padding: calc(var(--header-h) + 1.5rem) 0 2.75rem; }
  .sp-kicker { font-size: 0.6875rem; margin-bottom: 0.7rem; }
  .sp-hero h1 { font-size: 2.2rem; }
  .sp-hero__lead { font-size: 0.9375rem; margin-bottom: 1.25rem; }
  .sp-facts { gap: 0.45rem; margin-bottom: 1.5rem; }
  .sp-facts li { padding: 0.4rem 0.75rem; font-size: 0.8125rem; }
  .sp-actions .btn { flex: 1 1 100%; }
  .sp-hero__badge { left: 0.75rem; bottom: 0.75rem; padding: 0.6rem 0.85rem; font-size: 0.8125rem; }
  /* l'illustration reste visible pendant qu'on choisit un élément dans la liste */
  .sp-explorer__art { position: sticky; top: 4.6rem; z-index: 2; padding: 0.4rem; border-radius: 20px; box-shadow: 0 12px 24px -16px rgba(11, 34, 57, 0.35); }
  .sp-part { padding: 0.85rem 0.95rem; grid-template-columns: 36px 1fr; gap: 0.75rem; border-radius: 16px; }
  .sp-part__num { width: 36px; height: 36px; border-radius: 11px; font-size: 0.875rem; }
  .sp-part b { font-size: 0.9375rem; margin-top: 0.4rem; }
  .sp-step { padding: 1.2rem 1.15rem 1.3rem; border-radius: 20px; }
  .sp-step__ico { width: 44px; height: 44px; margin-bottom: 0.8rem; border-radius: 13px; }
  .sp-step::before { font-size: 1.6rem; top: 1.1rem; right: 1.1rem; }
  .sp-step h3 { font-size: 1rem; }
  .sp-step p { font-size: 0.875rem; }
  .sp-figure { padding: 1.2rem 1.25rem; border-radius: 20px; }
  .sp-figure__big { font-size: 2.2rem; }
  .sp-cta { border-radius: 20px; }
  .sp-others a { font-size: 0.8125rem; padding: 0.45rem 0.8rem; }
}
@media (prefers-reduced-motion: reduce) {
  .house-art .flow { stroke-dasharray: none; }
}
