/* V51 — contrastes explicites et navigation mobile. Aucune règle métier. */
:root{--v51-ink:#2b2220;--v51-muted:#594c43;--v51-wine:#4a151b;--v51-paper:#fffdf8;--v51-border:#c9b99f;--v51-accent:#775226}
html{color-scheme:light;scroll-padding-top:1rem}
body.ms-public,body.ms-quote,body.ms-intl{font-size:16px;line-height:1.65;color:var(--v51-ink)}
.ms-public header,.ms-intl header{position:relative;top:auto;backdrop-filter:none;background:#fffdf8}
.ms-public header .marque,.ms-quote header .brand{text-shadow:none}
.ms-public header .marque small,.ms-quote header .brand small{color:#594c43}
.ms-public .hero .label,.ms-public main .label,.ms-quote .ms-index,.ms-intl .eyebrow{color:var(--v51-accent)}
/* Each panel owns both foreground and background. */
.ms-public main .routes{background:#4a151b;color:#fff9ed;border-radius:20px}
.ms-public main .routes>div:first-child h2,.ms-public main .routes>div:first-child .label{color:#fff3dd}
.ms-public main .routes .ms-mode{background:#fffaf1;color:#2b2220;border:1px solid #d6bd91;box-shadow:none}
.ms-public main .routes .ms-mode h3,.ms-public main .routes .ms-mode a{color:#4a151b}
.ms-public main .routes .ms-mode p,.ms-public main .routes .ms-mode small{color:#3f342d}
.ms-public main .routes .texte{background:#fffaf1;color:#4a151b!important;border-color:#d6bd91}
.ms-public main .routes .texte:hover{background:#efe2ca}
.ms-public main .contact{background:#301116;color:#fff9ed}
.ms-public main .contact h2,.ms-public main .contact h3,.ms-public main .contact .label,.ms-public main .contact a:not(.cta){color:#fff3dd}
.ms-public main .contact .note{background:#fff9ed;color:#422b28}
.ms-public main .contact .note a{color:#4a151b!important}
.ms-maison44 .maison-editorial .maison-offer{background:#4a151b;color:#fff9ed;border-radius:20px}
.ms-maison44 .maison-editorial .maison-offer h2,.ms-maison44 .maison-editorial .maison-offer p,.ms-maison44 .maison-offer-links a{color:#fff9ed}
.ms-maison44 .maison-editorial .maison-offer .maison-kicker{color:#f2d6a0}
.ms-public .ms-proof>div,.ms-public .ms-path-grid article,.ms-public .offer-grid article,.ms-public .fragility-grid article,.ms-public .grille article,.ms-intl .grid article{background:#fffdf8;color:#2b2220;border:1px solid #d8cbb7;border-top:2px solid #b68b49;border-radius:14px;box-shadow:0 6px 18px #3a251008}
.ms-public .ms-path-grid article p,.ms-public .offer-grid article p,.ms-public .fragility-grid article p,.ms-public .grille article p{color:#493e36}
.ms-public .ms-step{color:#65451f;background:#f0e5d1;border-radius:4px;letter-spacing:.08em}
.ms-public .note,.ms-public .muted,.ms-quote .muted{color:#594c43}
.ms-public footer,.ms-quote footer,.ms-intl footer{color:#fff9ed;background:#301116}
.ms-public footer span,.ms-quote footer span,.ms-intl footer span{color:#fff2da}
.ms-public footer a,.ms-quote footer a,.ms-intl footer a{color:#f5d69c}
.ms-quote #recapitulatif .receipt,.ms-quote #estimation .receipt,.ms-quote .receipt{background:#4a151b;color:#fff9ed;border:1px solid #4a151b;border-radius:18px;max-height:none;overflow:visible}
.ms-quote .receipt h2,.ms-quote .receipt h3,.ms-quote .receipt p,.ms-quote .receipt .legal,.ms-quote .receipt .recrow,.ms-quote .receipt .muted,.ms-quote .receipt .recrow small{color:#fff9ed}
.ms-quote .receipt .eyebrow{background:#f0e5d1;color:#4a151b}
.ms-quote .receipt .somme,.ms-quote .receipt .fx-summary{background:#fff9ed;color:#4a151b;border:1px solid #d6bd91}
.ms-quote .receipt .somme strong,.ms-quote .receipt .somme small,.ms-quote .receipt .somme span,.ms-quote .receipt .somme p,.ms-quote .receipt .fx-summary p,.ms-quote .receipt .fx-summary strong{color:#4a151b}
.ms-quote .receipt button#valider{background:#f0d7a1;color:#341116!important;border:1px solid #e8c889;box-shadow:none}
.ms-quote .receipt button#valider:hover{background:#f9e4b7;color:#341116!important}
.ms-quote .receipt .recrow{border-color:#ffffff4d}
.ms-quote .receipt a{color:#fff0d0}
.ms-quote aside{min-width:0}
.ms-quote .layout{align-items:start}
.ms-quote .receipt{position:sticky;top:1rem}
.ms-quote .segments label:has(:checked){color:#fff9ed;background:#4a151b}
.ms-quote input[type=checkbox],.ms-quote input[type=radio]{appearance:auto;width:1.2rem!important;height:1.2rem!important;min-height:0!important;min-width:1.2rem!important;max-width:1.2rem!important;padding:0!important;margin:.18rem .4rem .1rem 0!important;flex:0 0 1.2rem;accent-color:#4a151b;box-shadow:none}
.ms-quote .segments input[type=radio]{width:1px!important;height:1px!important;min-width:0!important;position:absolute;opacity:0}
.ms-quote .lot-choice label.check{display:flex;align-items:flex-start;gap:.45rem}
.ms-quote input:not([type=checkbox]):not([type=radio]),.ms-quote select,.ms-quote textarea{font-size:16px;border-color:#a99a85;color:#2b2220;background:#fff}
.ms-quote input::placeholder,.ms-quote textarea::placeholder{color:#62554a;opacity:1}
.ms-quote #contact .telex{font-size:.875rem!important;color:#221e1f!important}
.ms-quote .fields>*{min-width:0}
.ms-quote .opt .price,.ms-quote .opt small,.ms-quote .modes small{color:#594c43}
.ms-quote .section h2{color:#4a151b}
.ms-quote .family summary,.ms-quote .sub summary{min-height:48px;display:list-item;padding:.65rem .15rem;font-size:1.05rem}
.ms-quote .family summary::marker,.ms-quote .sub summary::marker{color:#775226}
.ms-quote .ms-jump{display:flex;flex-wrap:wrap;gap:.45rem}
.ms-quote .ms-jump a{min-height:44px;background:#fffdf8;border:1px solid #c9b99f;color:#4a151b;border-radius:7px;padding:.45rem .7rem}
.ms-quote #contact .fields{grid-template-columns:repeat(2,minmax(0,1fr))}
.ms-public .cta,.ms-intl .cta,.ms-quote .darkbtn{border-radius:8px;min-height:48px;display:inline-flex;align-items:center;justify-content:center;text-align:center}
.ms-public .texte,.ms-intl .secondary,.ms-quote .linkbtn{border-radius:8px;min-height:44px}
.ms-public .cta:focus-visible,.ms-intl .cta:focus-visible,.ms-quote button:focus-visible,.ms-public a:focus-visible,.ms-intl a:focus-visible{outline:3px solid #a47730;outline-offset:3px}
.ms-nav-toggle{display:none}
/* Compact masthead, progressive enhancement: menu remains visible without JS. */
@media(max-width:850px){
 .ms-public header,.ms-quote header .mast,.ms-intl header{position:relative;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:.6rem;padding:.7rem 1rem;text-align:left;background:#fffdf8}
 .ms-quote header .mast{width:100%;margin:0;min-height:0}
 .ms-public header .marque,.ms-quote header .brand,.ms-intl header>a:first-child{display:flex;flex-direction:row;align-items:center;justify-content:flex-start;gap:.65rem;font-size:clamp(1.15rem,4.7vw,1.55rem);white-space:normal;text-align:left;letter-spacing:0;line-height:1.1;min-width:0}
 .ms-public header .marque img,.ms-quote header .brand .embleme,.ms-intl header img{width:43px;height:49px;object-fit:contain;flex:0 0 43px}
 .ms-public header .marque span,.ms-quote header .brand span{align-items:flex-start;text-align:left}
 .ms-public header .marque small,.ms-quote header .brand small{font-size:.61rem;letter-spacing:.025em;line-height:1.35;text-transform:none}
 .ms-nav-toggle{min-width:46px;min-height:46px;padding:.55rem .65rem;display:inline-flex;align-items:center;gap:.5rem;border:1px solid #bda67b;background:#fffdf8;color:#4a151b;border-radius:8px;font:600 .85rem system-ui;cursor:pointer}
 .ms-nav-toggle svg{width:19px;height:19px;flex-shrink:0}
 .ms-public header nav,.ms-quote header nav,.ms-intl header nav{grid-column:1/-1;width:100%;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.3rem .5rem;max-width:none;padding:.75rem 0 0;border-top:1px solid #d8cbb7;text-align:left}
 .ms-public header nav a,.ms-quote header nav a,.ms-intl header nav a{white-space:normal;display:flex;justify-content:flex-start;min-height:44px;padding:.55rem .65rem;font-size:.88rem;color:#4a151b}
 .ms-public header nav .nav-devis,.ms-quote header nav .nav-devis{grid-column:1/-1;max-width:none;margin:0;justify-content:center;color:#fff9ed}
 .ms-public header nav .ms-languages,.ms-quote header nav .ms-languages,.ms-intl header nav .ms-languages{justify-content:space-around;min-width:0;padding:0 .2rem;gap:0}
 .ms-public header nav .ms-languages a,.ms-quote header nav .ms-languages a{padding:.35rem .3rem;justify-content:center}
 .ms-public header nav .ms-currency,.ms-quote header nav .ms-currency,.ms-intl header nav .ms-currency{white-space:normal;font-size:.76rem;justify-content:flex-end;min-width:0}
 .ms-public header nav .ms-currency select,.ms-quote header nav .ms-currency select,.ms-intl header nav .ms-currency select{font-size:16px;min-height:44px}
 body.ms-intl header nav{grid-template-columns:repeat(3,minmax(0,1fr))}
 body.ms-intl header nav .ms-currency{grid-column:1/-1;justify-content:flex-start}
 .ms-nav-ready [data-ms-nav][hidden]{display:none!important}
 .ms-public .hero{margin:0;gap:1rem;padding:1.2rem 1rem 1.6rem;grid-template-columns:1fr}
 .ms-public .hero>div{background:transparent;box-shadow:none;border:0;border-radius:0;padding:.4rem 0}
 .ms-public .hero h1{font-size:clamp(2.35rem,8vw,3.8rem);line-height:1.08;max-width:20ch}
 .ms-public .hero figure{padding:.4rem;box-shadow:none;border-radius:13px}
 .ms-public .hero figure img{height:auto;max-height:430px;aspect-ratio:4/3;border-radius:9px;outline:0;box-shadow:none}
 .ms-public .hero .cta,.ms-public .hero .texte{margin:.4rem 0;max-width:100%;width:100%}
 .ms-public .ms-proof{grid-template-columns:1fr;width:auto;margin:1rem;gap:.55rem}
 .ms-public .ms-proof>div{padding:.85rem 1rem;border-radius:10px}
 .ms-public main section{padding-block:clamp(1.6rem,6vw,2.7rem);padding-inline:1rem}
 .ms-public main .routes{margin-inline:1rem;gap:1rem;padding:1.2rem;border-radius:14px}
 .ms-public .routes>div+div{padding-left:0;border-left:0}
 .ms-public .ms-path-grid,.ms-public .offer-grid,.ms-public .fragility-grid,.ms-public .grille,.ms-intl .grid{grid-template-columns:1fr;gap:.8rem}
 .ms-public .ms-path-grid article,.ms-public .offer-grid article,.ms-public .fragility-grid article,.ms-public .grille article{padding:1.1rem}
 .ms-public .ms-path-grid article .cta,.ms-public .ms-path-grid article .texte{width:100%;margin:.3rem 0}
 .ms-public .ms-path-grid article .cta{max-width:none}
 .ms-public .editorial,.ms-public .faq{border-radius:12px;box-shadow:none}
 .ms-quote .hero-grid{display:block;width:auto;padding:1rem}
 .ms-quote .hero-photo{height:130px;min-height:130px;margin:0 0 .4rem;border-radius:10px}
 .ms-quote .intro{padding:.4rem 0 1rem}
 .ms-quote .intro h1{font-size:clamp(2.3rem,8.5vw,3.4rem);line-height:1.1}
 .ms-quote .layout,.ms-quote .contact{width:auto;margin:0;padding:1rem;display:block}
 .ms-quote .section{padding:1rem;margin-bottom:1rem;border-radius:14px;box-shadow:none}
 .ms-quote #recapitulatif,.ms-quote #estimation,.ms-quote .receipt{position:static}
 .ms-quote .fields,.ms-quote #contact .fields,.ms-quote .modes{grid-template-columns:1fr;gap:.75rem}
 .ms-quote .lot-choice,.ms-quote details.sub,.ms-quote .family{padding:.8rem;min-width:0}
 .ms-quote .opt .row{flex-wrap:wrap;gap:.5rem}
 .ms-quote .opt .price{text-align:left}
 .ms-quote .recommend46{display:block}
 .ms-quote .recommend46 button{max-width:100%;min-height:44px}
 .ms-quote .ms-jump a{font-size:.8rem;flex:1 1 auto;justify-content:center}
 .ms-quote .mobile-total{background:#4a151b;color:#fff9ed;border-top:1px solid #bda67b;min-height:58px;padding:.65rem 1rem max(.65rem,env(safe-area-inset-bottom));text-decoration:none}
 .ms-quote .mobile-total b,.ms-quote .mobile-total span{color:#fff9ed}
 .ms-quote{padding-bottom:76px}
 .ms-help button{min-height:44px}
 .ms-help-panel{max-height:calc(100dvh - 9rem)}
 .ms-public .ms-help,.ms-intl .ms-help{bottom:max(1rem,env(safe-area-inset-bottom))}
 .ms-quote .ms-help{bottom:max(4.8rem,calc(env(safe-area-inset-bottom) + 4.8rem))}
 .ms-maison44 .maison-editorial .maison-founder,.ms-maison44 .maison-editorial .maison-offer{grid-template-columns:minmax(0,1fr);padding:1.2rem}
 .ms-intl .intro{display:block;padding:1rem 0}
 .ms-intl .intro>div{padding:1rem;box-shadow:none;border-radius:12px}
 .ms-intl .intro img{margin-top:1rem;padding:0;box-shadow:none;border-radius:12px}
}
@media(max-width:380px){.ms-nav-toggle span{display:none}.ms-public header,.ms-quote header .mast,.ms-intl header{padding:.65rem .7rem}.ms-quote .layout,.ms-quote .contact{padding:.65rem}.ms-quote .section{padding:.8rem}.ms-quote .segments{grid-template-columns:1fr}.ms-quote .ms-jump{gap:.3rem}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{transition:none!important}}
@media print{.ms-nav-toggle,.mobile-total,.ms-help{display:none!important}.ms-quote .receipt{position:static}}
.ms-nav-toggle[hidden]{display:none!important}
