/* Shared editorial compositions, derived from the Auditons homepage. */
.audit-block{--block-bg:var(--paper);--block-ink:var(--ink);--block-muted:var(--muted);--block-line:var(--line);--block-accent:var(--green);background:var(--block-bg);color:var(--block-ink)}
.audit-block--yellow{--block-bg:var(--yellow);--block-muted:var(--ink);--block-line:#b69e43;--block-accent:var(--ink)}
.audit-block--green{--block-bg:var(--green);--block-ink:var(--paper);--block-muted:#e4eadc;--block-line:#77927d;--block-accent:var(--soft-yellow)}
.audit-block--brown{--block-bg:var(--deep);--block-ink:var(--paper);--block-muted:#e0dace;--block-line:#777165;--block-accent:var(--soft-yellow)}
.audit-block--soft-yellow{--block-bg:var(--soft-yellow);--block-muted:var(--ink);--block-line:#b9a96b;--block-accent:var(--ink)}
.audit-block .eyebrow{color:var(--block-accent)}
.audit-block :is(.source-note,.insulation-small){color:var(--block-muted)}
.audit-block :is(.insulation-audit-list,.insulation-audit-list>div,.insulation-results,.insulation-vigilance article,.insulation-checklist){border-color:var(--block-line)}
.audit-block .insulation-checklist li::marker{color:var(--block-accent)}
.audit-block :is(a:hover,a:focus-visible){color:var(--block-accent)}
.audit-block .insulation-text-link{color:var(--block-accent)}
.audit-block :is(a,button,summary):focus-visible{outline-color:var(--block-accent)}
.audit-panel{padding:clamp(1.5rem,3vw,3rem)}
.audit-split{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:clamp(2rem,4vw,4rem);align-items:start}
.audit-icon-heading{display:flex;align-items:center;gap:1rem}
.audit-icon-heading .editorial-icon{width:2.5rem;height:2.5rem;flex-basis:2.5rem}
.audit-block--brown .editorial-icon,.audit-block--green .editorial-icon{color:var(--paper);--icon-detail:var(--soft-yellow)}
.audit-block--yellow .editorial-icon,.audit-block--soft-yellow .editorial-icon{--icon-detail:var(--ink)}
.audit-icon-list{list-style:none;padding:0;margin:0}
.audit-icon-list>li{display:grid;grid-template-columns:2rem minmax(0,1fr);gap:1rem;padding:1.25rem 0;border-bottom:1px solid var(--block-line,var(--line))}
.audit-icon-list .editorial-icon{margin-top:.2rem}
/* These homepage instances use the same palette controls as the hubs. */
.report-section.audit-block{background:var(--block-bg);color:var(--block-ink)}
.report-section.audit-block .report-copy>p,.report-section.audit-block .benefits p{color:var(--block-muted)}
.report-visual.audit-block,.reading-example.audit-block{background:var(--block-bg);color:var(--block-ink)}
@media(max-width:800px){.audit-split{grid-template-columns:minmax(0,1fr)}}
@media print{.audit-block{--block-bg:var(--paper);--block-ink:var(--ink);--block-muted:var(--ink);--block-accent:var(--ink)}}

.page-byline{font-size:1rem;color:var(--block-muted,var(--muted));margin:1rem 0 1.5rem}


/* Icône éditoriale (grille 32) affichée en grand : même finesse de trait que les originales. */
.insulation-directory svg.icon-32,.ite-wall-icon.icon-32{stroke-width:1;--icon-detail:var(--green)}
.icon-32 .icon-accent{fill:var(--yellow)}
/* Pictogramme de paroi (grille 64) employé comme icône éditoriale : même épaisseur apparente. */
.editorial-icon[viewBox="0 0 64 64"]{stroke-width:3.3}

/* Outils de page : titres, choix exclusifs et lignes de résultat. */
.page-tool{margin-top:3rem}.page-tool form>h3{font-size:clamp(1.375rem,2vw,1.75rem);line-height:1.25;margin:0 0 .75rem}.page-tool form>h3+p{font-size:1.125rem;line-height:1.6;margin:0 0 1.5rem}
.tool-choice{border:0;margin:0 0 .5rem;padding:0;display:grid;gap:.5rem}.tool-choice legend{font-size:1.125rem;margin-bottom:.5rem;padding:0}.tool-choice label{display:flex;align-items:center;gap:.75rem;min-height:44px;font-size:1.125rem}.tool-choice input{width:1.25rem;height:1.25rem;accent-color:var(--green)}
.ite-estimate-result dl .tool-warning dd{color:var(--ink)}.ite-estimate-result dl .tool-ok dt:before{content:"✓ ";color:var(--green)}.ite-estimate-result dl .tool-warning dt:before{content:"! ";color:var(--error);font-weight:700}
#validity-error,#resistance-error,#heating-cost-error{color:var(--error);font-size:1rem;margin-top:1rem}
.heat-pump-flow{margin:0 0 3rem;display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:2.5rem;align-items:center}.heat-pump-flow svg{width:100%;height:auto;display:block}
.heat-pump-flow h3{font-size:1.375rem;margin:0 0 1rem}.heat-pump-steps{margin:0;padding-left:1.5rem;display:grid;gap:.75rem}.heat-pump-steps li{font-size:1.125rem;line-height:1.55;padding-left:.25rem}.heat-pump-steps li::marker{color:var(--green);font-weight:600}
.heat-pump-flow .flow{stroke-dasharray:8 14;animation:heat-flow 1.4s linear infinite}.heat-pump-flow .flow-return{animation-direction:reverse}.heat-pump-flow .flow-heat{animation:heat-rise 2.4s ease-in-out infinite}
@keyframes heat-flow{to{stroke-dashoffset:-44}}@keyframes heat-rise{0%,100%{opacity:.35}50%{opacity:1}}
@media (prefers-reduced-motion:reduce){.heat-pump-flow .flow,.heat-pump-flow .flow-heat{animation:none}}
@media(max-width:900px){.heat-pump-flow{grid-template-columns:minmax(0,1fr);gap:1.5rem}}
.page-tool .project-calculate{background:var(--green);color:var(--paper)}.page-tool .project-calculate:hover{background:var(--deep);color:var(--paper)}
/* Schémas explicatifs (passe images du 19 octobre 2026) : dessin SVG numéroté + légende HTML. */
.layer-svg{width:100%;max-width:26rem;height:auto;display:block;margin:0 0 1.25rem}
.diagram-legend{margin:.75rem 0 1.25rem;padding-left:1.5rem;display:grid;gap:.375rem}.diagram-legend li{font-size:1rem;line-height:1.5;padding-left:.25rem}.diagram-legend li::marker{color:var(--green);font-weight:600}
.diagram-note{font-size:.875rem;color:var(--muted);margin:.25rem 0 0}
.diagram-inline{margin:1.5rem 0}.diagram-inline .layer-svg{max-width:36rem}
.diagram-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:2rem;margin:0 0 2.5rem}.diagram-row figure{margin:0}.diagram-row h3{font-size:1.25rem;margin:0 0 .5rem}.diagram-row .layer-svg{max-width:15rem}
.diagram-row--two{grid-template-columns:repeat(2,minmax(0,1fr))}.diagram-row--two .layer-svg{max-width:18rem}
.diagram-figure{margin:3rem 0 0;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:2.5rem;align-items:center}.diagram-figure .layer-svg{max-width:28rem;margin:0 auto}.diagram-figure h3{font-size:1.375rem;margin:0 0 1rem}
.layer-svg .flow{stroke-dasharray:6 10;animation:heat-flow 1.6s linear infinite}
@media (prefers-reduced-motion:reduce){.layer-svg .flow{animation:none}}
@media(max-width:900px){.diagram-row,.diagram-figure{grid-template-columns:minmax(0,1fr)}}
.tool-to-quote{display:inline-flex;align-items:center;gap:.75rem;min-height:48px;margin-top:2rem;font-weight:600;color:var(--green);text-decoration:underline;text-underline-offset:.3em}.audit-block--brown .tool-to-quote{color:var(--soft-yellow)}
/* Largeur de lecture : environ 75 caractères au plus. */
.wrap p,.wrap li,.wrap dd{max-width:40em}
.text-link,.closing-link,.price-reference>a{min-height:44px;display:inline-flex;align-items:center}
.diagram-title{font-size:1.25rem;font-weight:500;line-height:1.3;margin:0 0 .75rem}.heat-pump-flow .diagram-title{font-size:1.375rem;margin:0 0 1rem}
.diagram-figure--wide{grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);margin-bottom:2.5rem}.diagram-figure--wide .layer-svg{max-width:36rem}
@media(max-width:900px){.diagram-figure--wide{grid-template-columns:minmax(0,1fr)}}
.diagram-figure .layer-svg.layer-svg--tall{max-width:20rem}
/* Formulaires d’outils : un seul rythme vertical, choix courts en ligne, hypothèses repliables (audit UX du 20 octobre 2026). */
.page-tool .project-budget>*+*{margin-top:1.5rem}.page-tool .project-budget>h3+*{margin-top:1rem}.page-tool .project-budget .ite-field,.page-tool .project-budget .tool-choice{margin-bottom:0}.page-tool .project-budget>.project-calculate{margin-top:2rem}
.page-tool .tool-choice:not(:has(label:nth-of-type(4))){display:flex;flex-wrap:wrap;column-gap:1.75rem;row-gap:0}.page-tool .tool-choice legend{margin-bottom:.25rem}
.tool-assumptions{border-top:1px solid var(--line,#d8d1bf);border-bottom:1px solid var(--line,#d8d1bf)}.tool-assumptions summary{display:flex;align-items:center;justify-content:space-between;gap:1rem;min-height:48px;cursor:pointer;font-size:1.125rem;list-style:none}.tool-assumptions summary::-webkit-details-marker{display:none}.tool-assumptions summary:after{content:"+";font-size:1.5rem;color:var(--green)}.tool-assumptions[open] summary:after{content:"−"}.tool-assumptions>div{display:grid;gap:1.5rem;padding:.5rem 0 1.5rem}.tool-assumptions .project-two-fields,.tool-assumptions .ite-field{margin:0}
.heat-pump-flow img{width:100%;height:auto;display:block}
/* Ouverture sur mobile : réponse puis appel principal dans le premier écran (audit structurel du 20 octobre 2026). */
@media (max-width:700px){.ite-intro>div,.insulation-opening-grid>div:first-child{display:flex;flex-direction:column}.ite-intro>div>.insulation-lead,.insulation-opening-grid>div:first-child>.insulation-lead{order:-2;font-size:1.3125rem;line-height:1.35;margin-bottom:1.25rem}.ite-intro>div>.button,.insulation-opening-grid>div:first-child>.button{order:-1;align-self:flex-start;margin:0 0 1.75rem}}
/* Aides en lignes : icône, intitulé, conditions (audit structurel du 20 octobre 2026). */
.ite-procedures.aid-rows{display:block;border-top:2px solid var(--ink)}.aid-rows>article{display:grid;grid-template-columns:2.5rem minmax(0,15rem) minmax(0,1fr);column-gap:1.75rem;padding:1.75rem 0;border-bottom:1px solid var(--line)}.aid-rows>article>.editorial-icon{grid-column:1;grid-row:1/span 9;width:2.5rem;height:2.5rem}.aid-rows>article>h3{grid-column:2;grid-row:1/span 9;font-size:1.375rem;line-height:1.3;margin:0}.aid-rows>article>:not(h3):not(.editorial-icon){grid-column:3;margin-top:0}.aid-rows>article>:not(h3):not(.editorial-icon)+*{margin-top:.75rem}
@media(max-width:800px){.aid-rows>article{grid-template-columns:2.5rem minmax(0,1fr);row-gap:.75rem}.aid-rows>article>.editorial-icon{grid-row:1}.aid-rows>article>h3{grid-row:1;align-self:center}.aid-rows>article>:not(h3):not(.editorial-icon){grid-column:1/-1}}
/* Sur mobile : sources repliables, panneau de prix redondant masqué. */
.sources-toggle{display:inline-flex;align-items:center;gap:.5rem;min-height:44px;margin-top:.75rem;padding:0;border:0;background:none;font:inherit;font-size:1.125rem;color:var(--green);text-decoration:underline;text-underline-offset:.2em;cursor:pointer}
@media(max-width:700px){.ite-price-panel{display:none}}
