/* Maison Sabléor V29 — couche de présentation, aucun service externe. */
:root{--ms-wine:#4A151B;--ms-gold:#C5A059;--ms-bg:#F9F6F0;--ms-ink:#221E1F;--ms-card:#fffefa;--ms-line:#ded4c5;--ms-muted:#625b54;--ms-radius:13px;--ms-shadow:0 10px 28px #362c2210}
body{font-size:16px;line-height:1.6}a,button,input,select,textarea,summary{touch-action:manipulation}button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid #8a642d;outline-offset:3px}input,select,textarea{min-width:0}h1,h2,h3{overflow-wrap:break-word}img{height:auto}button{max-width:100%;white-space:normal}a.cta{min-height:44px}
/* Vitrine : grandes compositions, proportions généreuses et orientation par public. */
.ms-public header,.ms-public section,.ms-public footer{padding-left:max(5vw,calc((100% - 1380px)/2));padding-right:max(5vw,calc((100% - 1380px)/2))}.ms-public header{gap:1.6rem;padding-top:1rem;padding-bottom:1rem}.ms-public .marque{font-size:clamp(1.6rem,2.1vw,2.25rem)}.ms-public nav{gap:clamp(.65rem,1.3vw,1.4rem)}.ms-public nav a{font-size:.92rem}.ms-public .hero{grid-template-columns:minmax(0,1fr) minmax(0,1.06fr);gap:clamp(2rem,4vw,5rem);background:linear-gradient(115deg,#f9f6f0 0%,#eee3d2 100%);padding-top:clamp(2.5rem,5vw,5.5rem);padding-bottom:clamp(2.5rem,5vw,5.5rem)}.ms-public .hero h1{font-size:clamp(3.2rem,5.15vw,5.65rem);max-width:13ch;line-height:1.025;letter-spacing:-.05em;text-wrap:pretty}.ms-public .hero h1 em{display:block;color:#80552e}.ms-public .hero img{height:clamp(360px,39vw,610px);border-radius:8px;box-shadow:0 20px 50px #39260f1c;object-position:55% center}.ms-public .hero figcaption{font-size:.78rem}.ms-public .ms-proof>div{padding:1.2rem 1rem}.ms-public .ms-paths{background:#fffefa}.ms-public .ms-path-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1.2rem}.ms-path-grid article{padding:clamp(1.3rem,3vw,2.4rem);background:#f5efe5;border:1px solid var(--ms-line);border-top:3px solid var(--ms-gold);border-radius:8px}.ms-path-grid h3{font-size:clamp(1.65rem,2.4vw,2.25rem);margin:.7rem 0}.ms-path-grid p{color:var(--ms-muted)}.ms-public .ms-path-grid a.texte{margin:.5rem .3rem}.ms-public .grille article{box-shadow:none;border-top:3px solid var(--ms-gold)}.ms-public .routes{background:#4a151b}.ms-public .routes .texte{color:#fffefa}.ms-public .contact{background:#301116}.ms-public .contact .note{max-width:80ch}.ms-public footer{gap:.65rem;line-height:1.8}
/* Devis : formulaire prioritaire, raccourcis et récapitulatif accessible. */
.ms-quote .wrap{width:min(1380px,92%)}.ms-quote .hero-grid{grid-template-columns:minmax(0,1.5fr) minmax(0,.5fr);padding:1rem 0;align-items:center}.ms-quote .hero-photo{min-height:180px;height:100%;max-height:270px;border-radius:8px}.ms-quote .intro h1{font-size:clamp(2.8rem,4.2vw,4.3rem)}.ms-quote .layout{grid-template-columns:minmax(0,1.65fr) minmax(300px,.85fr);gap:1.4rem}.ms-quote .section,.ms-quote .contact{border-radius:12px;box-shadow:none}.ms-quote .section h2{margin-bottom:1rem}.ms-quote .sub,.ms-quote .family{padding:.75rem .85rem;margin:.5rem 0;border:1px solid var(--ms-line);border-radius:8px;background:#fbf8f2}.ms-quote .sub>summary,.ms-quote .family>summary{min-height:40px;padding:.5rem 0}.ms-quote .sub[open]>summary,.ms-quote .family[open]>summary{margin-bottom:.55rem;border-bottom:1px solid var(--ms-line)}.ms-quote .receipt{top:1rem;border-radius:12px;background:#35151b;max-height:calc(100vh - 2rem);overflow:auto;scrollbar-color:#ad8d65 #35151b}.ms-quote .receipt h2{font-size:1.85rem}.ms-quote .receipt .somme strong{font-variant-numeric:tabular-nums}.ms-quote .ms-jump a{min-height:44px;display:inline-flex;align-items:center}.ms-mobile-estimate{display:none}
/* Direction : navigation latérale réelle, sans JS ni modifications des permissions. */
.ms-portal{background:#f4f1eb}.ms-portal header{padding:1rem max(3vw,calc((100% - 1540px)/2));background:#fffefa}.ms-portal main{width:min(1540px,100%);padding:1.6rem clamp(1rem,3vw,2.5rem) 4rem}.ms-portal main:has(>.ms-worknav){display:grid;grid-template-columns:minmax(205px,230px) minmax(0,1fr);gap:clamp(1rem,2.5vw,2.1rem);align-items:start}.ms-workspace-content{min-width:0}.ms-portal .ms-worknav{position:sticky;top:1rem;display:flex;flex-direction:column;align-items:stretch;gap:.22rem;padding:.9rem;background:#fffefa;border:1px solid var(--ms-line);border-radius:12px;margin:0;max-height:calc(100vh - 2rem);overflow:auto}.ms-nav-title{margin:.25rem .55rem .65rem;font:600 1.38rem Georgia,serif;color:#4a151b}.ms-nav-group{font-size:.68rem;font-weight:750;letter-spacing:.11em;text-transform:uppercase;color:#766348;margin:.85rem .55rem .18rem}.ms-portal .ms-worknav a{display:flex;align-items:center;min-height:44px;padding:.65rem .7rem;border-radius:7px;line-height:1.35;font-size:.88rem}.ms-portal .ms-worknav a[aria-current=page]{box-shadow:inset 3px 0 #c5a059}.ms-worknav form{margin-top:.65rem;padding-top:.7rem;border-top:1px solid var(--ms-line)}.ms-worknav form button{width:100%;text-align:left}.ms-portal .ms-workspace-content>h1{font-size:clamp(2rem,3vw,3rem);margin:.3rem 0 .65rem}.ms-portal .ms-workspace-content>.eyebrow{margin-top:.3rem}.ms-portal .panel{border-radius:12px;box-shadow:0 3px 12px #362c2207}.ms-portal .metric,.ms-portal .mg-metric,.finance-grid>div{border-radius:9px;min-width:0}.ms-portal .metric strong,.mg-metric strong,.finance-grid strong{font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.ms-portal .mg-section{background:#fffefa;border:1px solid var(--ms-line);border-radius:10px;padding:.8rem 1rem;margin:1rem 0}.ms-portal .mg-section>summary{font-size:1.03rem;padding:.5rem 0;min-height:44px}.ms-portal .mg-section[open]>summary{border-bottom:1px solid var(--ms-line);padding-bottom:.8rem}.ms-portal .mg-shortcuts{gap:.45rem}.ms-portal .manage-actions{box-shadow:0 -4px 12px #362c2208;border-radius:8px;padding:.8rem;background:#fffefa;z-index:2}.ms-portal .chat #conversation{min-height:260px;max-height:55vh;background:#f8f5ef;border:1px solid var(--ms-line);border-radius:10px;padding:1rem}.ms-portal .chat .bubble{border:1px solid #ded4c5;background:#fffefa}.ms-portal .chat .bubble.mine{background:#4a151b;color:#fffefa;border-color:#4a151b}.ms-portal .chat .bubble.mine small{color:#f3dcc3}.ms-portal .chat aside{background:#fffefa;border:1px solid var(--ms-line);border-radius:10px}.ms-portal .chat .client[aria-current]{background:#f0e5d7;border-radius:6px;border-left:3px solid #4a151b}.ms-portal .chat-columns{grid-template-columns:minmax(150px,200px) minmax(0,1fr)}.ms-portal .ms-auth,.ms-portal.ms-auth{background:#f4f1eb}.ms-portal.ms-auth main{padding-top:3rem}.ms-portal.ms-auth .panel{box-shadow:var(--ms-shadow)}
@media(max-width:1100px){.ms-portal .chat-columns{grid-template-columns:1fr}.ms-portal .chat aside{max-height:14rem}.ms-portal main:has(>.ms-worknav){grid-template-columns:minmax(175px,195px) minmax(0,1fr);gap:1rem}.ms-public header nav{flex-wrap:wrap}}
@media(max-width:850px){.ms-public .hero,.ms-public .ms-path-grid{grid-template-columns:1fr}.ms-public .hero h1{max-width:17ch;font-size:clamp(3rem,8vw,4.5rem)}.ms-public .hero img{height:clamp(270px,60vw,430px)}.ms-portal main:has(>.ms-worknav){display:block}.ms-portal .ms-worknav{position:static;max-height:none;display:flex;flex-direction:row;flex-wrap:wrap;gap:.3rem;align-items:center;margin-bottom:1.3rem;padding:.65rem}.ms-nav-title{width:100%;margin:.3rem .5rem}.ms-nav-group{display:none}.ms-portal .ms-worknav a{font-size:.82rem;padding:.5rem .65rem}.ms-worknav form{margin:0;padding:0;border:0}.ms-quote .layout{display:flex;flex-direction:column}.ms-quote .receipt{position:static;max-height:none;overflow:visible}.ms-quote .hero-grid{grid-template-columns:1.4fr .6fr}.ms-quote .ms-mobile-estimate{display:inline-flex;position:fixed;bottom:calc(.75rem + env(safe-area-inset-bottom,0px));right:1rem;z-index:5;min-height:44px;align-items:center;background:#4a151b;color:#fffefa;border:1px solid #c5a059;border-radius:99px;padding:.65rem 1rem;box-shadow:0 6px 20px #0003;text-decoration:none;font-size:.86rem;font-weight:650}.ms-quote footer{padding-bottom:5rem}.ms-quote #estimation{scroll-margin-top:1rem}.ms-portal .manage-actions{position:static}}
@media(max-width:520px){.ms-public .hero h1{font-size:clamp(2.8rem,11vw,3.8rem)}.ms-public .hero img{height:280px}.ms-quote .hero-grid{display:block}.ms-quote .hero-photo{min-height:112px;max-height:140px}.ms-quote .mast{flex-wrap:wrap;gap:.5rem;padding:.6rem 0}.ms-quote nav{width:100%;gap:.6rem}.ms-quote .intro h1{font-size:2.7rem}.ms-portal header .brand{max-width:100%;font-size:1.35rem}.ms-portal .dashboard{grid-template-columns:1fr}.ms-portal .chat #conversation{min-height:180px;padding:.6rem}.ms-portal .mg-section{padding:.65rem}.ms-portal .ms-worknav a{min-height:44px}.ms-portal .ms-worknav{gap:.15rem}.ms-public .ms-path-grid article{padding:1.2rem}}
@media print{.ms-mobile-estimate,.ms-worknav{display:none!important}.ms-portal main:has(>.ms-worknav){display:block}.ms-quote .receipt{max-height:none;overflow:visible}.ms-portal .manage-actions{display:none}.ms-portal .ms-workspace-content{width:100%}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{transition:none!important}}

/* V53 — continuity between the private workspace and public identity */
.ms-portal{background:#f9f6f0;color:#221e1f}
.ms-portal .panel,.ms-portal .metric,.ms-portal .order,.ms-portal .ms-worknav{border-radius:12px;border-color:#d8cbb7}
.ms-portal .ms-worknav a{min-height:44px;border-radius:8px;overflow-wrap:anywhere}
.ms-portal .ms-worknav a[aria-current=page]{background:#4a151b;color:#fff}
.ms-portal input:not([type=checkbox]):not([type=radio]),.ms-portal select,.ms-portal textarea{border-radius:8px;border-color:#a99880;color:#221e1f;background:#fff;min-width:0}
.ms-portal button{border-radius:8px;min-height:44px}
.ms-portal .panel,.ms-portal .order{box-shadow:0 5px 16px #352a250a}
.ms-portal .muted,.ms-portal .intro{color:#5d5147}
.ms-portal .ms-workspace-content{min-width:0}
@media(max-width:600px){.ms-portal .panel{padding:1rem}.ms-portal input:not([type=checkbox]):not([type=radio]),.ms-portal textarea,.ms-portal select{font-size:16px}.ms-portal button{max-width:100%;white-space:normal}.ms-portal .fields>*{min-width:0}}
