/* V35 — maison crest centered above the name, with clear navigation below */
.ms-public header{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.65rem;text-align:center;padding-top:1.15rem;padding-bottom:1rem}
.ms-public header .marque{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.25rem;margin:0;text-align:center;line-height:1.05}
.ms-public header .marque img{display:block;width:76px;height:84px;object-fit:contain}
.ms-public header .marque span{display:flex;flex-direction:column;align-items:center}
.ms-public header .marque small{display:block;margin-top:.3rem;font-size:.72rem;letter-spacing:.035em;line-height:1.3}
.ms-public header nav{width:100%;margin:0;display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:.4rem clamp(.55rem,1.3vw,1.25rem)}
.ms-public header nav a{white-space:nowrap}
.ms-quote header .mast{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.65rem;text-align:center;padding-top:.65rem;padding-bottom:.7rem}
.ms-quote header .brand{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.2rem;text-align:center;line-height:1.05}
.ms-quote header .brand .embleme{display:block;width:70px;height:78px;object-fit:contain}
.ms-quote header .brand span{display:flex;flex-direction:column;align-items:center}
.ms-quote header .brand small{display:block;margin-top:.25rem;font-size:.72rem;line-height:1.3}
.ms-quote header nav{width:100%;margin:0;display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:.35rem clamp(.5rem,1.2vw,1.1rem)}
@media(max-width:760px){
 .ms-public header{gap:.4rem;padding:.75rem 4vw .7rem}
 .ms-public header .marque img{width:62px;height:68px}
 .ms-public header .marque{font-size:1.35rem}
 .ms-public header nav{justify-content:center;gap:.25rem .35rem;padding-top:.25rem}
 .ms-public header nav a,.ms-public header nav a:not(:last-child){justify-content:center}
 .ms-public header nav .nav-devis{flex:1 0 100%;max-width:25rem}
 .ms-quote header .mast{width:100%;gap:.4rem;padding:.6rem 4vw}
 .ms-quote header .brand .embleme{width:58px;height:64px}
 .ms-quote header nav{justify-content:center;gap:.25rem .35rem}
}


/* V36 — refined ivory masthead, gold detail and clearer navigation hierarchy */
.ms-public header{
 position:relative;isolation:isolate;
 background:linear-gradient(180deg,#fffefa 0%,#fbf8f1 100%);
 border-bottom:1px solid #dfd2bd;
 box-shadow:0 5px 18px rgba(57,38,18,.055);
 gap:.8rem;padding-top:1.25rem;padding-bottom:.85rem
}
.ms-public header::before{
 content:"";position:absolute;z-index:-1;top:0;left:0;right:0;height:3px;
 background:linear-gradient(90deg,#9d7440,#d4b273 50%,#9d7440)
}
.ms-public header .marque{font-size:clamp(1.75rem,2.2vw,2.25rem);letter-spacing:.005em}
.ms-public header .marque img{width:82px;height:88px;filter:drop-shadow(0 5px 7px rgba(54,24,17,.16))}
.ms-public header .marque small{color:#79644b;font-family:system-ui,sans-serif;font-size:.69rem;letter-spacing:.11em;text-transform:uppercase}
.ms-public header nav{max-width:1420px;padding:.75rem 0 0;border-top:1px solid rgba(191,166,126,.35);gap:.3rem clamp(.35rem,.75vw,.8rem)}
.ms-public header nav a{display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:.48rem .72rem;border:1px solid transparent;border-radius:5px;color:#492027;font-weight:600;text-decoration:none;transition:background-color .18s ease,border-color .18s ease,color .18s ease}
.ms-public header nav a:hover,.ms-public header nav a:focus-visible{background:#f2eadc;border-color:#e2d4bd;color:#351116}
.ms-public header nav a.nav-devis{margin-left:.25rem;padding:.62rem 1rem;background:#4a151b;border-color:#4a151b;color:#fffefa;border-radius:6px;box-shadow:0 3px 8px rgba(74,21,27,.12)}
.ms-public header nav a.nav-devis:hover,.ms-public header nav a.nav-devis:focus-visible{background:#63232b;border-color:#63232b;color:#fff}
.ms-quote header{background:linear-gradient(180deg,#fffefa 0%,#fbf8f1 100%);border-bottom:1px solid #dfd2bd;box-shadow:0 5px 18px rgba(57,38,18,.055)}
.ms-quote header .mast{gap:.55rem;padding-top:.8rem;padding-bottom:.75rem}
.ms-quote header .brand{font-size:clamp(1.65rem,2vw,2.1rem)}
.ms-quote header .brand .embleme{width:76px;height:82px;filter:drop-shadow(0 5px 7px rgba(54,24,17,.16))}
.ms-quote header .brand small{color:#79644b;font-family:system-ui,sans-serif;font-size:.68rem;letter-spacing:.1em;text-transform:uppercase}
.ms-quote header nav{padding-top:.7rem;border-top:1px solid rgba(191,166,126,.35);gap:.3rem clamp(.35rem,.75vw,.8rem)}
.ms-quote header nav a{display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:.48rem .72rem;border:1px solid transparent;border-radius:5px;color:#492027;font-weight:600;text-decoration:none}
.ms-quote header nav a:hover,.ms-quote header nav a:focus-visible{background:#f2eadc;border-color:#e2d4bd}
@media(max-width:760px){
 .ms-public header{gap:.4rem;padding:1rem 4vw .65rem}
 .ms-public header .marque{font-size:1.48rem}
 .ms-public header .marque img{width:66px;height:70px}
 .ms-public header nav{max-width:100%;padding-top:.55rem;gap:.25rem .35rem}
 .ms-public header nav a,.ms-public header nav a:not(:last-child){min-height:44px;padding:.42rem .6rem;font-size:.82rem}
 .ms-public header nav a.nav-devis{flex:1 0 100%;max-width:26rem;margin:.2rem auto 0;min-height:46px}
 .ms-quote header .mast{gap:.35rem;padding:.7rem 4vw .55rem}
 .ms-quote header .brand{font-size:1.45rem}
 .ms-quote header .brand .embleme{width:60px;height:65px}
 .ms-quote header .brand small{font-size:.62rem;letter-spacing:.075em}
 .ms-quote header nav{padding-top:.5rem;gap:.25rem .35rem}
 .ms-quote header nav a,.ms-quote header nav a:not(:last-child){min-height:44px;padding:.42rem .6rem;font-size:.82rem}
}
@media(prefers-reduced-motion:reduce){.ms-public header nav a{transition:none}}


/* V37 — larger Maison crest as the visual signature */
.ms-public header .marque img{width:116px;height:124px;filter:drop-shadow(0 7px 10px rgba(54,24,17,.18))}
.ms-quote header .brand .embleme{width:108px;height:116px;filter:drop-shadow(0 7px 10px rgba(54,24,17,.18))}
@media(max-width:760px){
 .ms-public header .marque img{width:88px;height:94px}
 .ms-quote header .brand .embleme{width:78px;height:84px}
}
@media(max-width:380px){
 .ms-public header .marque img{width:80px;height:86px}
 .ms-quote header .brand .embleme{width:72px;height:78px}
}


/* V38 — larger crest with a visible embossed, dimensional finish */
.ms-public header .marque img{
 width:140px;height:150px;
 transform:perspective(720px) rotateX(7deg) rotateY(-5deg) translateZ(8px);
 transform-origin:50% 72%;
 filter:drop-shadow(0 1px 0 #d5b878) drop-shadow(0 3px 0 #9d7440) drop-shadow(0 6px 1px #67431f) drop-shadow(0 15px 13px rgba(47,23,15,.28));
 transition:transform .3s ease,filter .3s ease
}
.ms-public header .marque:hover img,.ms-public header .marque:focus-visible img{
 transform:perspective(720px) rotateX(1deg) rotateY(0) translateY(-4px) translateZ(14px);
 filter:drop-shadow(0 1px 0 #dfc88e) drop-shadow(0 4px 0 #9d7440) drop-shadow(0 8px 2px #67431f) drop-shadow(0 19px 15px rgba(47,23,15,.31))
}
.ms-quote header .brand .embleme{
 width:130px;height:140px;
 transform:perspective(720px) rotateX(7deg) rotateY(-5deg) translateZ(8px);
 transform-origin:50% 72%;
 filter:drop-shadow(0 1px 0 #d5b878) drop-shadow(0 3px 0 #9d7440) drop-shadow(0 6px 1px #67431f) drop-shadow(0 15px 13px rgba(47,23,15,.28));
 transition:transform .3s ease,filter .3s ease
}
.ms-quote header .brand:hover .embleme,.ms-quote header .brand:focus-visible .embleme{
 transform:perspective(720px) rotateX(1deg) rotateY(0) translateY(-4px) translateZ(14px);
 filter:drop-shadow(0 1px 0 #dfc88e) drop-shadow(0 4px 0 #9d7440) drop-shadow(0 8px 2px #67431f) drop-shadow(0 19px 15px rgba(47,23,15,.31))
}
@media(max-width:760px){
 .ms-public header .marque img{width:104px;height:112px}
 .ms-quote header .brand .embleme{width:96px;height:104px}
}
@media(max-width:380px){
 .ms-public header .marque img{width:94px;height:102px}
 .ms-quote header .brand .embleme{width:86px;height:94px}
}
@media(prefers-reduced-motion:reduce){
 .ms-public header .marque img,.ms-quote header .brand .embleme{transition:none}
}


/* V39 — Maison Sabléor wordmark styled to match the embossed crest */
.ms-public header .marque{font-family:Baskerville,"Palatino Linotype","Book Antiqua",Georgia,serif;font-size:clamp(2rem,2.45vw,2.55rem);font-weight:600;letter-spacing:.035em;color:#4a151b;text-shadow:0 1px 0 #fffefa,0 2px 0 #d9c99f,0 4px 8px rgba(51,24,16,.15)}
.ms-public header .marque span{line-height:1.08}
.ms-public header .marque small{display:flex;align-items:center;justify-content:center;gap:.65rem;margin-top:.42rem;color:#80653e;font-family:system-ui,sans-serif;font-size:.66rem;font-weight:650;letter-spacing:.15em;text-transform:uppercase;text-shadow:none}
.ms-public header .marque small::before,.ms-public header .marque small::after{content:"";display:block;width:1.7rem;height:1px;background:linear-gradient(90deg,transparent,#b89658)}
.ms-public header .marque small::after{transform:scaleX(-1)}
.ms-quote header .brand{font-family:Baskerville,"Palatino Linotype","Book Antiqua",Georgia,serif;font-size:clamp(1.9rem,2.25vw,2.4rem);font-weight:600;letter-spacing:.035em;color:#4a151b;text-shadow:0 1px 0 #fffefa,0 2px 0 #d9c99f,0 4px 8px rgba(51,24,16,.15)}
.ms-quote header .brand span{line-height:1.08}
.ms-quote header .brand small{display:flex;align-items:center;justify-content:center;gap:.6rem;margin-top:.38rem;color:#80653e;font-family:system-ui,sans-serif;font-size:.63rem;font-weight:650;letter-spacing:.13em;text-transform:uppercase;text-shadow:none}
.ms-quote header .brand small::before,.ms-quote header .brand small::after{content:"";display:block;width:1.45rem;height:1px;background:linear-gradient(90deg,transparent,#b89658)}
.ms-quote header .brand small::after{transform:scaleX(-1)}
@media(max-width:760px){
 .ms-public header .marque{font-size:1.75rem;letter-spacing:.025em}
 .ms-public header .marque small{gap:.4rem;font-size:.57rem;letter-spacing:.12em}
 .ms-public header .marque small::before,.ms-public header .marque small::after{width:1.1rem}
 .ms-quote header .brand{font-size:1.65rem;letter-spacing:.025em}
 .ms-quote header .brand small{gap:.35rem;font-size:.55rem;letter-spacing:.1em}
 .ms-quote header .brand small::before,.ms-quote header .brand small::after{width:1rem}
}
@media(max-width:360px){
 .ms-public header .marque{font-size:1.58rem}
 .ms-public header .marque small{font-size:.52rem;letter-spacing:.09em}
}


/* V40 — founder story page */
.story-main{width:min(1280px,100%);margin:0 auto;padding:clamp(2rem,5vw,5rem) clamp(1rem,5vw,4rem) 4rem}
.story-hero{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(250px,.8fr);gap:clamp(2rem,6vw,6rem);align-items:center;padding:clamp(1rem,3vw,2rem) 0 3.2rem}
.story-copy .label{margin:0 0 1rem;color:#916c3b;font:700 .72rem/1.5 system-ui,sans-serif;letter-spacing:.18em;text-transform:uppercase}
.story-copy h1{max-width:17ch;margin:0 0 1.25rem;color:#4a151b;font:500 clamp(2.7rem,5vw,4.7rem)/1.02 Georgia,"Times New Roman",serif;letter-spacing:-.045em;text-wrap:balance}
.story-copy .lead{max-width:64ch;color:#614b3d;font-size:clamp(1.08rem,1.5vw,1.27rem);line-height:1.8}
.story-portrait{position:relative;display:flex;min-height:390px;aspect-ratio:4/5;flex-direction:column;align-items:center;justify-content:center;overflow:hidden;border:1px solid #d1b878;border-radius:180px 180px 12px 12px;background:radial-gradient(ellipse at 50% 32%,#fffefa 0%,#f3eadb 54%,#e6d6bd 100%);box-shadow:inset 0 0 0 8px rgba(255,254,250,.75),inset 0 0 0 9px rgba(184,150,88,.28),0 24px 55px rgba(55,35,19,.13)}
.story-portrait img{width:114px;height:124px;object-fit:contain;filter:drop-shadow(0 5px 9px rgba(52,25,16,.2))}
.story-portrait strong{margin-top:1rem;color:#4a151b;font:500 1.6rem Georgia,serif}
.story-portrait span{margin-top:.35rem;color:#80653e;font:700 .65rem system-ui,sans-serif;letter-spacing:.16em;text-transform:uppercase}
.story-portrait .portrait-hint{position:absolute;bottom:1.1rem;color:#776b5d;font:.76rem system-ui,sans-serif;letter-spacing:.02em}
.story-message{max-width:82ch;margin:0 auto;padding:clamp(1.4rem,4vw,3rem);border:1px solid #e1d5c3;border-left:3px solid #b89658;border-radius:5px 14px 14px 5px;background:#fffefa;box-shadow:0 12px 32px rgba(57,38,18,.045)}
.story-message p{margin:0 0 1.15rem;color:#50443a;font-size:1.02rem;line-height:1.9}
.story-signature{margin-top:1.8rem!important;color:#4a151b!important;font:italic 1.45rem Georgia,serif!important}
.story-values{padding:3.2rem 0 2.5rem}
.story-values h2{margin:0 0 1.5rem;color:#4a151b;font:500 clamp(2rem,3.3vw,3rem) Georgia,serif;letter-spacing:-.03em}
.story-values-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem}
.story-values-grid article{padding:1.5rem;border-top:2px solid #b89658;border-radius:0 0 8px 8px;background:#f5efe5}
.story-values-grid h3{margin:0 0 .55rem;color:#4a151b;font:500 1.45rem Georgia,serif}
.story-values-grid p{margin:0;color:#6a5b4c;line-height:1.7}
.story-actions{display:flex;flex-wrap:wrap;align-items:center;gap:.75rem;margin-top:2rem}
.story-actions a{min-height:46px;display:inline-flex;align-items:center;justify-content:center}
@media(max-width:760px){
 .story-main{padding:1.5rem 5vw 2.5rem}
 .story-hero{grid-template-columns:minmax(0,1fr);gap:1.6rem;padding:.5rem 0 2rem}
 .story-copy h1{font-size:clamp(2.5rem,10vw,3.6rem)}
 .story-portrait{min-height:0;width:min(78%,360px);margin:0 auto;aspect-ratio:4/4.4}
 .story-portrait img{width:92px;height:100px}
 .story-message{padding:1.25rem}
 .story-message p{font-size:.98rem;line-height:1.8}
 .story-values{padding:2.2rem 0 1rem}
 .story-values-grid{grid-template-columns:minmax(0,1fr)}
 .story-actions{flex-direction:column;align-items:stretch}
 .story-actions a{width:100%}
}


/* V41 — real founder portrait and editorial frame */
.story-portrait{display:block;width:100%;max-width:430px;min-height:0;aspect-ratio:4/5;justify-self:center}
.story-portrait::after{content:"";position:absolute;z-index:0;inset:48% 0 0;background:linear-gradient(180deg,transparent 4%,rgba(38,18,14,.72) 100%);pointer-events:none}
.story-portrait img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:50% 18%;filter:none}
.story-portrait figcaption{position:absolute;z-index:1;inset:auto 0 0;display:flex;flex-direction:column;align-items:center;padding:3.3rem 1rem 1.55rem;color:#fff}
.story-portrait strong{margin:0;color:#fff;font:500 1.8rem Georgia,serif;text-shadow:0 2px 9px rgba(0,0,0,.35)}
.story-portrait span{margin:.3rem 0 0;color:#f1dfbd;font:700 .66rem system-ui,sans-serif;letter-spacing:.16em;text-transform:uppercase}
@media(max-width:760px){.story-portrait{width:min(82%,360px);aspect-ratio:4/5}}

/* V43 — offre et niveaux de fragilité */
.ms-offer .offer-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1rem;margin:1.75rem 0 2.5rem}
.ms-offer .offer-grid article,.ms-offer .fragility-grid article{min-width:0;padding:clamp(1rem,2vw,1.55rem);background:#fffdfa;border:1px solid #e0d4c1;border-top:3px solid #c5a059;border-radius:0 0 12px 12px;box-shadow:0 8px 20px rgba(58,29,18,.045)}
.ms-offer .offer-grid h3,.ms-offer .fragility-grid h3{font-size:clamp(1.35rem,2vw,1.8rem);margin:.7rem 0;color:#4a151b;line-height:1.18}
.ms-offer .offer-km{display:block;color:#4a151b;font:600 1rem/1.5 system-ui,sans-serif;letter-spacing:.01em}
.ms-offer .offer-grid p,.ms-offer .fragility-grid p{color:#5d5148;font-size:.95rem;line-height:1.7;margin:.65rem 0 0}
.ms-offer .fragility-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;margin:1.25rem 0}
.ms-offer .fragility-grid article:last-child{background:#f1e7d8;border-top-color:#4a151b}
.ms-offer .offer-actions{display:flex;flex-wrap:wrap;gap:.8rem;align-items:center;margin-top:1.3rem}
.ms-quote .offer-classification{padding:1rem 1.1rem;background:#f8f2e7;border:1px solid #dfcfb4;border-radius:10px;margin:1rem 0}
.ms-quote .offer-classification output{display:block;font-weight:650;color:#4a151b;margin:.3rem 0 .65rem;overflow-wrap:anywhere}
.ms-quote .offer-classification select{width:100%;margin-top:.45rem}
.ms-quote .offer-classification .muted{margin:.5rem 0;color:#584b40}
.ms-quote .offer-classification .extra-note{padding:.75rem;border-left:3px solid #a87b41;background:#fffdfa;color:#4a151b;margin:.7rem 0 0}
.ms-quote .offer-classification .extra-note[hidden]{display:none}
@media(max-width:1000px){.ms-offer .offer-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:580px){.ms-offer .offer-grid,.ms-offer .fragility-grid{grid-template-columns:1fr;gap:.8rem}.ms-offer .offer-actions{align-items:stretch;flex-direction:column}.ms-offer .offer-actions .cta{text-align:center}}
