/* Quiz visuel : cartes photo, trois étapes et cadre stable. */
.pg:has(.quiz-tool){padding-top:0}
.pg:has(.quiz-tool) .tool-page{padding-top:1rem}
.pg .quiz-intro{max-width:960px;margin:0 auto 1rem}
.pg .quiz-eyebrow{font-size:.75rem;letter-spacing:.14em;font-weight:800;color:var(--green);margin:0 0 .4rem}
.pg .quiz-intro h1{font:800 clamp(1.65rem,3vw,2.35rem)/1.12 var(--disp);letter-spacing:-.04em;margin:0;color:var(--ink)}
.pg .quiz-local-note{max-width:960px;margin:1rem auto;font-size:.75rem;color:var(--muted)}
.pg .quiz-tool{max-width:960px;margin:auto;scroll-margin-top:80px;padding:1.25rem;box-shadow:0 10px 38px rgba(12,31,26,.045)}
.pg .quiz-layout{display:block}
.pg .quiz-summary{padding:0 0 .65rem;border-bottom:1px solid var(--line);margin-bottom:.65rem}
.pg .quiz-sections{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem;list-style:none;margin:0;padding:0}
.pg .quiz-sections__item{min-width:0;display:grid;align-content:start;gap:.3rem;border:0;padding:.15rem .5rem;color:var(--muted)}
.pg .quiz-sections__item button{padding:0;background:none;border:0;color:inherit;font:700 .8rem var(--sans);text-align:left;min-height:44px;cursor:pointer}
.pg .quiz-sections__item span{font-size:.75rem;line-height:1.4;min-height:1.4em;overflow-wrap:anywhere}
.pg .quiz-sections__item.is-active,.pg .quiz-sections__item.is-done{color:var(--green-deep)}
.pg .quiz-sections__item.is-active button{text-decoration:underline;text-underline-offset:5px;text-decoration-thickness:2px}
.pg .quiz-question{min-width:0}
.pg .quiz-question--step{display:flex;flex-direction:column;block-size:clamp(26rem,calc(100svh - 18rem),36rem)}
.pg .quiz-progress{display:none}
.pg .quiz-question-content{flex:1;min-height:0;overflow-y:auto;scrollbar-gutter:stable;padding:.2rem .25rem .5rem}
.pg .quiz-question-content:focus-visible{outline:2px solid var(--green);outline-offset:3px;border-radius:6px}
.pg .quiz-section-kicker{font-size:.7rem;color:var(--muted);margin:0 0 .4rem}
.pg .quiz-question .t-q{font-size:clamp(1.4rem,2.7vw,1.9rem);letter-spacing:-.025em;margin:0 0 1.35rem;line-height:1.2}
.pg .quiz-tool fieldset.t-opts{min-width:0;margin:0;padding:0;border:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem}
.pg .quiz-radio{position:relative;cursor:pointer;transition:border-color .15s,box-shadow .15s}
.pg .quiz-radio input{position:absolute;opacity:0;width:1px;height:1px}
.pg .quiz-radio:has(input:focus-visible){outline:3px solid var(--green);outline-offset:3px}
.pg .quiz-photo-card{display:flex;align-items:stretch;justify-content:flex-start;gap:0;padding:0;overflow:hidden;border:2px solid var(--line);border-radius:14px;text-align:left;background:var(--paper)}
.pg .quiz-photo-card img{width:100%;height:128px;object-fit:cover;display:block;flex:none}
.pg .quiz-photo-card>span{padding:.85rem 1rem;font-size:.9rem;font-weight:750;line-height:1.25;color:var(--ink)}
.pg .quiz-photo-card>small{font-size:.73rem;font-weight:400;line-height:1.4;padding:0 1rem .9rem;margin-top:-.4rem;color:var(--muted)}
.pg .quiz-radio.is-local-selected{border-color:var(--green);background:var(--mint);box-shadow:0 0 0 2px rgba(11,110,79,.14)}
.pg .quiz-radio:hover{transform:none;border-color:var(--green)}
.pg .quiz-actions{flex:none;display:flex;align-items:center;justify-content:space-between;gap:1rem;border-top:1px solid var(--line);padding-top:1rem;margin-top:.5rem;min-height:4.5rem}
.pg .quiz-actions>.t-btn{margin:0 0 0 auto;min-width:160px;min-height:48px;border-radius:12px;box-shadow:none}
.pg .quiz-actions>.t-btn-ghost{min-height:44px}
.pg .quiz-tool button:disabled{cursor:not-allowed;opacity:.48;transform:none;box-shadow:none}
.pg .quiz-tool .t-opts.quiz-budget-options{grid-template-columns:repeat(2,minmax(0,1fr));max-width:none;margin-top:0}
.pg .quiz-budget-options .quiz-radio{padding:0;min-height:0;justify-content:flex-start;font-size:1rem}
.pg .quiz-question .t-note{font-size:.85rem;line-height:1.5;color:var(--muted);margin:0 0 1.2rem}
.pg .quiz-results-head{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-bottom:1.5rem}
.pg .quiz-results-head .t-q{font-size:1.5rem}
.pg .quiz-alert{background:var(--gold-soft);border:1px solid #f0d999;border-radius:12px;padding:.8rem;margin-bottom:1.2rem;font-size:.85rem;color:var(--gold-ink)}
.pg .quiz-disclaimer{padding:1rem 0 0;margin-top:1rem;border-top:1px solid var(--line);font-size:.8rem;color:var(--muted)}
.pg .quiz-tool .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:820px){
 .pg .quiz-tool{padding:1rem}.pg .quiz-summary{margin-bottom:.75rem;padding-bottom:.75rem}
 .pg .quiz-sections{gap:.4rem}.pg .quiz-sections__item{padding:0 .1rem}.pg .quiz-sections__item button{font-size:.75rem;min-height:44px}
 .pg .quiz-sections__item span{font-size:.7rem;min-height:3lh}
 .pg .quiz-question--step{block-size:clamp(29rem,calc(100svh - 19rem),36rem)}
 .pg .quiz-tool fieldset.t-opts{grid-template-columns:repeat(2,minmax(0,1fr));gap:.65rem}
 .pg .quiz-photo-card img{height:72px}.pg .quiz-projects .quiz-photo-card img{height:64px}.pg .quiz-photo-card>span{padding:.55rem .6rem;font-size:.8rem;min-height:2.8rem}
 .pg .quiz-photo-card>small{padding:0 .6rem .7rem;font-size:.7rem}
 .pg .quiz-question .t-q{font-size:1.35rem;margin-bottom:1rem}
 .pg .quiz-actions>.t-btn{min-width:140px}.pg .quiz-budget-options .quiz-radio{font-size:1rem;padding:0}
 .pg .quiz-results-head{align-items:flex-start;flex-direction:column}
}
@media(prefers-reduced-motion:reduce){.pg .quiz-radio{transition:none}}

@media(min-width:821px) and (max-height:820px){.pg .quiz-photo-card img{height:90px}.pg .quiz-photo-card>span{padding:.65rem .85rem}.pg .quiz-question .t-q{margin-bottom:1rem}.pg .quiz-tool fieldset.t-opts{gap:.75rem}}

@media(min-width:821px){
 .pg .quiz-budget-options .quiz-photo-card{flex-direction:row;align-items:center}
 .pg .quiz-budget-options .quiz-photo-card img{width:100px;height:90px}
}
@media(max-width:820px){.pg .quiz-budget-options .quiz-photo-card img{height:72px}}
.pg .quiz-photo-card img[src$="mounting-ground.jpg"]{object-position:center 85%}
.pg .quiz-photo-card img[src$="mounting-wall.jpg"]{object-position:center 85%}
.pg .quiz-photo-card img[src$="mounting-railing.jpg"]{object-position:center 65%}
.pg .quiz-photo-card img[src$="mounting-solid.jpg"]{object-position:center 80%}

.pg .quiz-photo-card img[src$="solar-balcony-yuma.jpg"]{object-position:center 70%}

.pg .quiz-budget-details{margin-top:.65rem}
.pg .quiz-budget-details summary{cursor:pointer;font-weight:700;text-decoration:underline;text-underline-offset:3px}
.pg .quiz-budget-details[open] summary{margin-bottom:.65rem}

/* Distinguer le choix confirmé localement du simple survol. */
.pg .quiz-radio.is-local-selected::after{content:"";position:absolute;top:.45rem;right:.45rem;width:1.4rem;height:1.4rem;border-radius:50%;background-color:var(--green);background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12 4 4 8-8' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");box-shadow:0 0 0 2px var(--paper);pointer-events:none}

.pg .quiz-tool .prod .thumb{background:var(--paper)}
