html[data-theme="bleu"]{--color-primary:#015581;--color-primary-dark:#013a59;--color-primary-light:#ebf4fa;--color-primary-focus:#ebf4fa;--color-border-active:#015581;--color-bg:#eeeae2;--color-surface:#f7f4ee;--color-surface-subtle:#ebf4fa;--color-text-main:#1e293b;--color-text-secondary:#475569;--color-text-muted:#64748b;--color-border:#ccd9e3;--color-border-hover:#015581;--theme-line:#81aac7;--theme-wash:238,234,226;--theme-on-accent:#ffffff;color-scheme:light;}
html[data-theme="noir-or"]{--color-primary:#e0bd72;--color-primary-dark:#f0d49a;--color-primary-light:#302a20;--color-primary-focus:#302a20;--color-border-active:#e0bd72;--color-bg:#151515;--color-surface:#202020;--color-surface-subtle:#302a20;--color-text-main:#faf5e9;--color-text-secondary:#ded5c5;--color-text-muted:#bcb3a5;--color-border:#625847;--color-border-hover:#e0bd72;--theme-line:#d3b475;--theme-wash:21,21,21;--theme-on-accent:#19160e;color-scheme:dark;}
html[data-theme="sauge"]{--color-primary:#38604a;--color-primary-dark:#284b37;--color-primary-light:#e8efe8;--color-primary-focus:#e8efe8;--color-border-active:#38604a;--color-bg:#eaeade;--color-surface:#f4f3e9;--color-surface-subtle:#e8efe8;--color-text-main:#253a2e;--color-text-secondary:#526455;--color-text-muted:#647465;--color-border:#c7d2c6;--color-border-hover:#38604a;--theme-line:#75947a;--theme-wash:234,234,222;--theme-on-accent:#ffffff;color-scheme:light;}
html[data-theme="terre"]{--color-primary:#984b33;--color-primary-dark:#793822;--color-primary-light:#f6e8de;--color-primary-focus:#f6e8de;--color-border-active:#984b33;--color-bg:#eee4d8;--color-surface:#f7efe5;--color-surface-subtle:#f6e8de;--color-text-main:#422f29;--color-text-secondary:#70594f;--color-text-muted:#816b61;--color-border:#ddc9ba;--color-border-hover:#984b33;--theme-line:#b6775e;--theme-wash:238,228,216;--theme-on-accent:#ffffff;color-scheme:light;}
html[data-theme="ardoise"]{--color-primary:#a95d39;--color-primary-dark:#854226;--color-primary-light:#f8ebe1;--color-primary-focus:#f8ebe1;--color-border-active:#a95d39;--color-bg:#e8e7e2;--color-surface:#f4f2ed;--color-surface-subtle:#f8ebe1;--color-text-main:#263744;--color-text-secondary:#52616d;--color-text-muted:#657580;--color-border:#c8d2d9;--color-border-hover:#a95d39;--theme-line:#bc825e;--theme-wash:232,231,226;--theme-on-accent:#ffffff;color-scheme:light;}

html[data-theme] .hero-section{background:var(--color-bg)}
html[data-theme] .photo-background .hero-section::before{background-image:linear-gradient(90deg,rgba(var(--theme-wash),var(--background-wash-edge,.48)),rgba(var(--theme-wash),var(--background-wash-center,.88)) 35%,rgba(var(--theme-wash),var(--background-wash-center,.88)) 65%,rgba(var(--theme-wash),var(--background-wash-edge,.48))),var(--preview-photo,none)}
html[data-theme] :is(.top-nav,.form-card,.review-card,.reassurance-item,.hero-portrait-badge,.hero-agency-subtle,.buyer-option span){background:var(--color-surface);color:var(--color-text-main);border-color:var(--color-border)}
html[data-theme] :is(.intent-switch,.trust-pill,.step-badge,.buyer-tags li){background:var(--color-primary-light);border-color:var(--color-border);color:var(--color-primary)}
html[data-theme] .intent-switch button{color:var(--color-primary)}
html[data-theme] :is(.intent-switch button[aria-pressed="true"],.btn-primary){background:var(--color-primary);color:var(--theme-on-accent);border-color:var(--color-primary)}
html[data-theme] :is(.btn-primary:hover,.intent-switch button[aria-pressed="true"]:hover){background:var(--color-primary-dark)}
html[data-theme] :is(.agency-tag,.badge-agent-role,.buyer-tags button){color:var(--color-primary)}
html[data-theme] :is(.badge-agent-name,.agent-brand){color:var(--color-text-main)}
html[data-theme] :is(.choice-content,.choice-row-content,.pill-radio-btn,.form-group input,.buyer-option span){border-color:var(--color-text-muted)}
html[data-theme] :is(.form-group input::placeholder){color:var(--color-text-muted)}
html[data-theme] .buyer-option input:checked + span{background:var(--color-primary-light);color:var(--color-primary);border-color:var(--color-primary);box-shadow:inset 0 0 0 1px var(--color-primary)}
html[data-theme] :is(a,button,input,select,textarea):focus-visible{outline-color:var(--color-primary)}
html[data-theme] .skyline-outline{stroke:var(--theme-line)}
html[data-theme] .hero-portrait-frame{border-color:var(--color-surface);background:var(--color-surface)}
html[data-theme] .preview-note{background:var(--color-surface);color:var(--color-text-secondary)}
html[data-theme="noir-or"] .about-field-card{background:#28251f}
html[data-theme="noir-or"] .hero-agency-subtle img{background:#fff;border-radius:4px;padding:3px}
html[data-theme="noir-or"] .hero-portrait-badge{background:#202020}
.preview-nav{display:none!important}
.theme-studio{position:sticky;top:0;z-index:600;display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:10px 24px;padding:10px 20px;background:#172936;color:#fff;border-bottom:1px solid #ffffff30;font:500 14px 'IBM Plex Sans',sans-serif;box-shadow:0 3px 15px #0002}
.theme-studio label{display:flex;align-items:center;gap:10px}
.theme-studio select{min-height:44px;padding:7px 32px 7px 12px;border:1px solid #a9bbc6;border-radius:8px;background:#fff;color:#172936;font:inherit;cursor:pointer;max-width:65vw}
.theme-studio select:focus-visible{outline:3px solid #ffe28c!important;outline-offset:3px}
.theme-studio small{color:#d5e2e9}
@media(max-width:639px){.theme-studio{position:relative;justify-content:space-between;padding:10px 14px;gap:8px}.theme-studio label{width:100%;justify-content:space-between}.theme-studio select{width:72%;max-width:none}.theme-studio small{display:none}}

html[data-theme] .about-section{background:var(--color-surface)}
html[data-theme] .stone-background .hero-section{background-image:radial-gradient(ellipse at 18% 18%,var(--color-surface),transparent 42%),radial-gradient(ellipse at 92% 48%,var(--color-primary-light),transparent 40%)}
html[data-theme="noir-or"] .stone-background .hero-section::before{mix-blend-mode:screen}

/* Compact composition dock: native disclosure and native accessible selects. */
body{padding-bottom:96px}
.theme-studio{position:fixed;inset:auto auto max(16px,env(safe-area-inset-bottom)) 50%;transform:translateX(-50%);display:block;width:max-content;max-width:calc(100vw - 28px);padding:0;border:1px solid #ffffff80;border-radius:28px;background:color-mix(in srgb,var(--color-surface) 88%,transparent);color:var(--color-text-main);box-shadow:0 12px 36px #0002,0 2px 8px #0001;backdrop-filter:blur(18px) saturate(135%);-webkit-backdrop-filter:blur(18px) saturate(135%);font:500 14px 'IBM Plex Sans',sans-serif}
.theme-studio summary{list-style:none;min-height:48px;display:flex;align-items:center;justify-content:center;gap:9px;padding:10px 20px;border-radius:28px;cursor:pointer;user-select:none;transition:background-color 220ms,transform 220ms}
.theme-studio summary::-webkit-details-marker{display:none}
.theme-studio summary svg{width:20px;height:20px;flex:none}
.theme-studio summary::after{content:'⌃';font-size:18px;line-height:1;margin-left:3px}
.theme-studio[open] summary::after{content:'⌄'}
.theme-studio summary:hover{background:var(--color-primary-light)}
.theme-studio summary:active{transform:scale(.97)}
.theme-studio summary:focus-visible,.theme-studio select:focus-visible{outline:3px solid var(--color-primary)!important;outline-offset:3px}
.theme-studio .dock-panel{position:absolute;bottom:calc(100% + 12px);left:50%;transform:translateX(-50%);width:310px;max-width:calc(100vw - 28px);padding:18px;border-radius:22px;background:var(--color-surface);border:1px solid var(--color-border);box-shadow:0 12px 40px #0003;display:grid;gap:14px}
.theme-studio .dock-panel label{display:grid;gap:6px;width:auto;color:var(--color-text-secondary);font-size:13px}
.theme-studio .dock-panel select{width:100%;max-width:100%;min-height:44px;border:1px solid var(--color-border);border-radius:12px;background:var(--color-surface-subtle);color:var(--color-text-main);font:500 15px 'IBM Plex Sans',sans-serif;padding:10px}
.theme-studio small{display:none}
@media(prefers-reduced-motion:reduce){.theme-studio summary{transition:none}}

.contact-pending{font-size:.875rem;color:var(--color-text-secondary);line-height:1.5}

.hero-section::before{opacity:var(--background-opacity,1)}
@media(max-width:639px){.hero-section::before{opacity:var(--background-mobile-opacity,.55)}}
.background-visibility{padding-top:12px;border-top:1px solid var(--color-border);color:var(--color-text-secondary)}
.visibility-heading{display:flex;justify-content:space-between;align-items:center;gap:8px}
.theme-studio .visibility-heading label{font-size:13px;margin:0}
.visibility-heading output{font-size:13px;font-variant-numeric:tabular-nums;color:var(--color-text-main);font-weight:600}
.theme-studio input[type=range]{display:block;width:100%;height:36px;min-height:36px;margin:2px 0;padding:0;accent-color:var(--color-primary);cursor:pointer;border:0;background:transparent;box-shadow:none}
.theme-studio input[type=range]:focus-visible{outline:3px solid var(--color-primary);outline-offset:2px;border-radius:8px}
.visibility-scale{display:flex;justify-content:space-between;font-size:11px}
.theme-studio .dock-panel{max-height:calc(100dvh - 100px);overflow-y:auto}

html[data-theme="blanc-or"]{--color-primary:#846321;--color-primary-dark:#684b14;--color-primary-light:#f6f0e3;--color-primary-focus:#f6f0e3;--color-border-active:#846321;--color-bg:#eee7da;--color-surface:#f7f2e8;--color-surface-subtle:#f7f3ea;--color-text-main:#2d2922;--color-text-secondary:#635b4e;--color-text-muted:#766b59;--color-border:#dfd3ba;--color-border-hover:#846321;--theme-line:#ba9654;--theme-wash:238,231,218;--theme-on-accent:#ffffff;color-scheme:light}
html[data-theme="blanc-or"] .hero-portrait-frame{border-color:#e1ceaa;box-shadow:0 14px 40px #7458241a}
html[data-theme="blanc-or"] .about-field-card{background:linear-gradient(145deg,#f7f2e8,#eee4d0);border-color:#dfd3ba}
html[data-theme="blanc-or"] .form-card{box-shadow:0 12px 40px #74582412;border-color:#dfd3ba}

/* Défilement continu des garanties, sans déplacement de la page. */
.hero-trust-row{position:relative;display:block;width:var(--trust-viewport,100vw);max-width:none;overflow:hidden;padding:4px 0;margin-inline:calc((100% - var(--trust-viewport,100vw))/2);text-align:left}
.hero-trust-row[hidden]{display:none!important}
.trust-track{display:flex;width:max-content;animation:trust-right 70s linear infinite}
.trust-group{display:flex;align-items:center;gap:12px;padding-right:12px;flex-shrink:0}
.trust-group .trust-pill{white-space:nowrap;flex-shrink:0}
.trust-pause{position:absolute;right:0;top:50%;transform:translateY(-50%);display:grid;place-items:center;width:32px;height:32px;border-radius:50%;border:1px solid var(--color-border);background:var(--color-surface);color:var(--color-primary);box-shadow:0 2px 8px #0002;cursor:pointer;font-size:13px;z-index:1}
.trust-pause:focus-visible{outline:3px solid var(--color-primary);outline-offset:-3px}
.hero-trust-row:hover .trust-track,.hero-trust-row:focus-within .trust-track,.trust-paused .trust-track{animation-play-state:paused}
@keyframes trust-right{from{transform:translateX(-33.333333%)}to{transform:translateX(0)}}
@media(prefers-reduced-motion:reduce){.trust-track{animation:none;width:auto}.trust-group{flex-wrap:wrap;justify-content:center;padding-right:0}.trust-copy,.trust-pause,[data-trust-fill]{display:none}}

.hero-title{text-transform:none}

/* Independent section backgrounds: only the decorative layer is blurred. */
html[data-theme] body [data-section-background="photo"][data-section-background]{position:relative;isolation:isolate;background:var(--color-bg)}
html[data-theme] body [data-section-background="photo"][data-section-background]::before{content:"";position:absolute;inset:0;height:100%;max-height:none;z-index:-1;pointer-events:none;background-image:linear-gradient(90deg,rgba(var(--theme-wash),var(--background-wash-edge,.48)),rgba(var(--theme-wash),var(--background-wash-center,.88)) 35%,rgba(var(--theme-wash),var(--background-wash-center,.88)) 65%,rgba(var(--theme-wash),var(--background-wash-edge,.48))),var(--section-photo);background-size:cover;background-position:center;background-repeat:no-repeat;opacity:var(--background-opacity,1);filter:blur(var(--background-blur,0px));clip-path:inset(0);mask-image:none;mix-blend-mode:normal}
html[data-theme] body [data-section-background="none"][data-section-background]{background:var(--color-bg)}
html[data-theme] body [data-section-background="none"][data-section-background]::before{display:none}
html[data-theme] body [data-section-background="pattern"][data-section-background]::before{filter:blur(var(--background-blur,0px));opacity:var(--background-opacity,1)}
@media(max-width:639px){html[data-theme] body [data-section-background="photo"][data-section-background]::before{background-image:linear-gradient(90deg,rgba(var(--theme-wash),var(--background-wash-edge,.48)),rgba(var(--theme-wash),var(--background-wash-center,.88)) 35%,rgba(var(--theme-wash),var(--background-wash-center,.88)) 65%,rgba(var(--theme-wash),var(--background-wash-edge,.48))),var(--section-photo-mobile);opacity:var(--background-mobile-opacity,.55)}}
.theme-studio .photo-settings-note{font-size:12px;color:var(--color-text-secondary);margin:8px 0 0;line-height:1.4}
.theme-studio input:disabled{opacity:.5;cursor:not-allowed}

/* Static fades join section photos through the shared off-white background. */
html[data-theme] body :is(.hero-section,.about-section,.reviews-section,.site-footer){--section-fade:min(120px,22%);border-top:0;border-bottom:0;background-color:var(--color-bg)}
html[data-theme] body [data-section-background="photo"][data-section-background]::before{-webkit-mask-image:linear-gradient(to bottom,transparent 0,#000 var(--section-fade),#000 calc(100% - var(--section-fade)),transparent 100%);mask-image:linear-gradient(to bottom,transparent 0,#000 var(--section-fade),#000 calc(100% - var(--section-fade)),transparent 100%)}
html[data-theme] body .hero-section[data-section-background="photo"]::before{-webkit-mask-image:linear-gradient(to bottom,#000 0,#000 calc(100% - var(--section-fade)),transparent 100%);mask-image:linear-gradient(to bottom,#000 0,#000 calc(100% - var(--section-fade)),transparent 100%)}
@media(max-width:639px){html[data-theme] body :is(.hero-section,.about-section,.reviews-section,.site-footer){--section-fade:min(64px,18%)}}
